Defining a joystick

Hey, how do you set the buttons on a joystick? For example, we are trying to program the trigger on our joystick to operate a motor for a pulley system.

You “set” the value of joystick buttons by physically pressing them.

You read the value by using the Joystick Get VI. One of that VI’s outputs is a cluster containing all the button states. Unbundle the cluster and you have access to each button individually.