|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Launchpad control panel outputs help
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. |
|
#2
|
||||
|
||||
|
Re: Launchpad control panel outputs help
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: If you have a couple of switches, you could do something similar to below: 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). |
|
#3
|
|||
|
|||
|
Re: Launchpad control panel outputs help
Thank you w200999! That's exactly what I needed.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|