FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Joystick trigger to digital output example?

We are trying to simply wire a joystick trigger to turn on a digital output when it is pressed. Has anyone tried this? All the digital output examples on the net are not for this specific situation and I can't get any of them to work properly.

0 Kudos
Message 1 of 2
(3,300 Views)

You should be able to use the JoystickGet.vi in order to pull out a boolean value from your button on your Joystick and feed it directly into a DigitalOutputSetValue.vi. You can see an example of this in this VI snippet.

JoystickDIOexample.png

Miles G.
National Instruments
Staff Applications Engineering Specialist
0 Kudos
Message 2 of 2
(2,416 Views)