Go to Post I'd like to welcome all the rookie teams to FIRST. Hang on tight! It is a wild, crazy and fun ride that will impact your lives for decades to come. - Sayrah [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 19-01-2013, 15:49
theblazefenix theblazefenix is offline
Registered User
FRC #4096
 
Join Date: Jan 2013
Location: Illinois
Posts: 4
theblazefenix is an unknown quantity at this point
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-
Reply With Quote
  #2   Spotlight this post!  
Unread 19-01-2013, 15:53
theblazefenix theblazefenix is offline
Registered User
FRC #4096
 
Join Date: Jan 2013
Location: Illinois
Posts: 4
theblazefenix is an unknown quantity at this point
Re: New to FRC, and LabVIEW. Need some help.

Also What is an Array? I am currently reading the 2011 manual.
Reply With Quote
  #3   Spotlight this post!  
Unread 19-01-2013, 16:18
Wildcats1378 Wildcats1378 is offline
Registered User
no team
 
Join Date: Jan 2012
Rookie Year: 2011
Location: hawaii
Posts: 93
Wildcats1378 is an unknown quantity at this point
Re: New to FRC, and LabVIEW. Need some help.

You can access the team code from Robot Main as well.
Reply With Quote
  #4   Spotlight this post!  
Unread 19-01-2013, 16:41
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 19-01-2013, 17:12
theblazefenix theblazefenix is offline
Registered User
FRC #4096
 
Join Date: Jan 2013
Location: Illinois
Posts: 4
theblazefenix is an unknown quantity at this point
Re: New to FRC, and LabVIEW. Need some help.

Thanks alot, that makes things a lot clearer.
Reply With Quote
  #6   Spotlight this post!  
Unread 19-01-2013, 19:05
Dinoyan Dinoyan is offline
Registered User
no team
Team Role: Electrical
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Canada
Posts: 62
Dinoyan is an unknown quantity at this point
Re: New to FRC, and LabVIEW. Need some help.

Tutorials for LabVIEW

http://www.youtube.com/playlist?list=PL819E6F5E300A83EF
Reply With Quote
  #7   Spotlight this post!  
Unread 19-01-2013, 20:24
Chiller Chiller is offline
Registered User
AKA: Connor Christie
FRC #4095 (RoXI Robotics)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 118
Chiller is on a distinguished road
Re: New to FRC, and LabVIEW. Need some help.

Quote:
Originally Posted by theblazefenix View Post
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!
Reply With Quote
  #8   Spotlight this post!  
Unread 20-01-2013, 08:22
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,752
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: 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
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


All times are GMT -5. The time now is 21:51.

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