Go to Post As Alice once said: "Curiouser and curiouser!" - Mike Betts [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-05-2008, 21:22
Joohoo's Avatar
Joohoo Joohoo is offline
Registered User
FRC #0340 (G.R.R.)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 2005
Location: Rochester
Posts: 241
Joohoo is just really niceJoohoo is just really niceJoohoo is just really niceJoohoo is just really niceJoohoo is just really nice
Send a message via AIM to Joohoo Send a message via Yahoo to Joohoo
Labview and Sensors

To start off i have next to no experience with labview and I, like many others are trying to find which programming language to use next year. I know for all the drag and drop type of programming i've done in the past, LEGO NXT and RCX there are a specific set of sensors that you can use without seriously hacking the firmware.

Does anyone know how the support for different sensors will be done, in labview can you make your own ISR or low level code that is necessary to interpret sensors such as a custom CMU cam or a turbo encabulator, or will we need to rely on NI to release support for specific sensors.
Reply With Quote
  #2   Spotlight this post!  
Unread 09-05-2008, 08:16
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Labview and Sensors

Sensors are usually supported in LV by adding a collection of subVIs that give you a higher level API. The API can vary, but will usually include a Configure, a Read, perhaps a Write, maybe even a session based Open and Close.

These subVIs are written on top of the I/O used to communicate with the sensor. If analog, the subVIs will use the analog driver icons, and they will scale values and do book keeping in their layer.

If the sensor is on a serial link, then the subVIs will use the serial driver icons to send and parse messages to the device, do book keeping, etc.

For the cRIO and FRC, most of the I/O will come in through the FPGA, and the fast computation will happen there as well. So, the low level subVI icons are already built. WPILib will then use those icons, add addressing and scaling, and return the sensor values.

If you want to play with sensors in LV before WPILib is available, you might want to open up the Example Finder in the help menu. Search for a sensor such as a thermistor or accelerometer, and poke around in the sample programs looking at what is done. You can also look at serial examples. Just keep in mind that most professionals aren't building FRC bots, and the sensors and devices they use may be quite different.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 09-05-2008, 13:32
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: Labview and Sensors

Greg,

can we assume that the sensor VIs from the NXT toolkit will look like the VI's we will be using?
__________________
Jon Mittelman

Senior Judge Advisor New England & Israel 2014-2015
Infinite Loop Mentor 2011-2015
TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009 Team236 TechnoTicks
Judge 2010-2015 Championships
Senior Judge Advisor New England District Championship 2014-2015
Judge Advisor Tel Aviv Regional 2007-2015
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006
Reply With Quote
  #4   Spotlight this post!  
Unread 09-05-2008, 20:01
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
Danny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond repute
Send a message via AIM to Danny Diaz
Re: Labview and Sensors

Quote:
Originally Posted by Jon236 View Post
Can we assume that the sensor VIs from the NXT toolkit will look like the VI's we will be using?
I don't think anyone can say that for sure just yet.

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
Reply With Quote
  #5   Spotlight this post!  
Unread 09-05-2008, 20:44
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Labview and Sensors

Quote:
Originally Posted by Jon236 View Post
Greg,

can we assume that the sensor VIs from the NXT toolkit will look like the VI's we will be using?
My smartaleck answer: They will both be small square icons with wires coming from them.

Better answer: The NXT toolkit icons are similar, but simpler. Their implementation is built on top of LEGO I/O -- either analog, or I2C. Learning how to do robotics using the NXT toolkit will be a good way to prep for the upcoming FRC libraries.

Greg McKaskle
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CMUCam, Easy C, and Labview JJMax7 Programming 28 07-02-2007 22:20
Labview and the IFI hardware ajlapp Control System 3 21-09-2006 16:09
Labview dashboard and multiple variables Joe Ross LabView and Data Acquisition 2 15-03-2006 21:55
Camera and Labview phrontist LabView and Data Acquisition 1 28-01-2006 21:07
Testing and Cause of Failure for Encoders and Hall Effect sensors ChrisH Electrical 28 19-09-2005 01:07


All times are GMT -5. The time now is 04:25.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi