View Single Post
  #2   Spotlight this post!  
Unread 02-02-2009, 19:23
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: Button Programming: Is this right?

It seems you're opening multiple references for each set or get. All you need to do is open one reference for each physical device and wire it to as many get/set vi's as you want. Also, you're opening the motors within the while loop, which will slow the loop a lot. Move the Open Motor vi's to the left of the while loop and wire them to the get/set vi's in the while loop.

Motors take -1 to 1 for values, with 0 being don't move. I think if you fix the multiple references and opening motors in the loop, it will work.
__________________
Twitter Profile
Reply With Quote