Thread: Labview Help
View Single Post
  #5   Spotlight this post!  
Unread 19-01-2013, 11:09
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,855
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: Labview Help

You should have created a default robot project, and there will be default code already in the vi's. The vi's you want to modify are under the CompactRIO Target -> Team Code

There are three parts:
  • The code labeled Begin.vi goes in Begin.vi
  • The code labeled Teleop.vi goes in Teleop.vi
  • The code labeled Finish,vi goes in Finish.vi
You also have to add a second Joystick 2 in Begin.vi, but you can highlight and copy/paste the default code for Joystick 1, then change the USB and the name.

For the drive code there will be conflicting default code, so remove that or at least make sure the PWMs referenced in Begin.vi are different than the ones you are using.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle