View Full Version : New to FRC, and LabVIEW. Need some help.
theblazefenix
19-01-2013, 15:49
I was asked to become a programmer for my FRC team (4096). I am currently reading through as many tutorials as possible to familiarize myself with LabVIEW. I have a question as of now.
When I program, do I just work under Team VI's? Also, do i even bother the Robot Main VI?
Thanks for any help.
Cheers
-theblazefenix-
theblazefenix
19-01-2013, 15:53
Also What is an Array? I am currently reading the 2011 manual.
Wildcats1378
19-01-2013, 16:18
You can access the team code from Robot Main as well.
Mark McLeod
19-01-2013, 16:41
Make the changes/additions you want to the code under Team Code and keep any new vi's you may decide to write under there as well.
Leave Robot Main.vi alone.
theblazefenix
19-01-2013, 17:12
Thanks alot, that makes things a lot clearer.
Tutorials for LabVIEW
http://www.youtube.com/playlist?list=PL819E6F5E300A83EF
I was asked to become a programmer for my FRC team (4096). I am currently reading through as many tutorials as possible to familiarize myself with LabVIEW. I have a question as of now.
When I program, do I just work under Team VI's? Also, do i even bother the Robot Main VI?
Thanks for any help.
Cheers
-theblazefenix-
How ironic that we are team 4095!
Greg McKaskle
20-01-2013, 08:22
You asked what an array was.
An array is a collection of similar values stored in a piece of memory. You can access the values one at a time or operate on the collection as a whole.
For example:
If your robot collects ultrasonic data at 20 per second and stores them for five seconds, you now have 100 ultrasonic readings.
Do you put them in individual variables or wires? That would be a lot of variables to keep track of. So, instead, you might want to put the data into one sequential array with values labeled 0 through 99. You could index the array at 0, 20, 40, 60, and 80 to see what was in front of the robot each second as it moved. And you could compute different indices to grab any time's measurement you want.
In other math, you could operate on the whole array at once to convert it to millimeters or inches or offset it to the edge of the robot. You could also break the array into five other arrays and compare or operate on them.
Finally, arrays don't have to be one dimensional. If you have values on a grid, a 2-D array is very useful. This is how images from the camera are typically stored.
Greg McKaskle
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.