View Single Post
  #25   Spotlight this post!  
Unread 18-01-2009, 15:02
Booksy Booksy is offline
Registered User
FRC #1244 (Viking Robotics)
Team Role: Programmer
 
Join Date: Apr 2008
Rookie Year: 2007
Location: Great White North
Posts: 97
Booksy will become famous soon enoughBooksy will become famous soon enough
Re: Labview Joystick Buttons...

Quote:
Originally Posted by team877 View Post
I would like to know how to do both!!! haha
You could use a case structure attached to the button, or one of those boolean selectors with the question mark.

For the case structure, you would just put the relay function in the C/S, then wire a constant to the input.
The boolean selector would be similar but smaller and simpler, and if you know what Im talking about, I'd use it.

Go here for how to use the relay function (as well as any other first function):http://decibel.ni.com/content/docs/DOC-2631
If you right click on the input node and select create->constant it will put an enum there with forward and reverse settings. Because it is an enum, the three states will be 0, 1, 2 for forward, reverse and off, I think (in no particular order, check the enum for the real values).

Hope that helps get you on your way. That should be enough to do both of those scenarios.
__________________
My favorite CD quote ever(taken out of context of course):
Quote:
Originally Posted by ttldomination
water would be hard to build
Reply With Quote