View Full Version : Launchpad control panel outputs help
Sjtumlin16
22-02-2016, 21:57
How would the labview code be made so that if a limit switch is pressed a light turns on on the control panel which is using a Launchpad, from what i can see the joystick output block only allows 1 non-addressable output to be turned on.
Thanks.
wt200999
22-02-2016, 23:28
The joystick output block takes an array of Boolean values to define the output state on the TI LaunchPad.
Here are a couple of examples of setting the outputs with arrays:
20156
If you have a couple of switches, you could do something similar to below:
20157
Note that in my examples above everything is zero indexed (the output names I set start with 0). On the TI LaunchPad documentation the outputs are 1 indexed (the output naming start with 1).
Sjtumlin16
23-02-2016, 06:15
Thank you w200999! That's exactly what I needed.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.