Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   New to FRC, and LabVIEW. Need some help. (http://www.chiefdelphi.com/forums/showthread.php?t=111620)

theblazefenix 19-01-2013 15:49

New to FRC, and LabVIEW. Need some help.
 
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

Re: New to FRC, and LabVIEW. Need some help.
 
Also What is an Array? I am currently reading the 2011 manual.

Wildcats1378 19-01-2013 16:18

Re: New to FRC, and LabVIEW. Need some help.
 
You can access the team code from Robot Main as well.

Mark McLeod 19-01-2013 16:41

Re: New to FRC, and LabVIEW. Need some help.
 
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

Re: New to FRC, and LabVIEW. Need some help.
 
Thanks alot, that makes things a lot clearer.

Dinoyan 19-01-2013 19:05

Re: New to FRC, and LabVIEW. Need some help.
 
Tutorials for LabVIEW

http://www.youtube.com/playlist?list=PL819E6F5E300A83EF

Chiller 19-01-2013 20:24

Re: New to FRC, and LabVIEW. Need some help.
 
Quote:

Originally Posted by theblazefenix (Post 1218655)
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

Re: New to FRC, and LabVIEW. Need some help.
 
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


All times are GMT -5. The time now is 10:53.

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