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.
Miles G.
National Instruments
Staff Applications Engineering Specialist