From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,777 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,893 Views)