LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Boolean values from multiple Digital Inputs

Solved!
Go to solution

Hi guys,

This should be really basic but I've looked around to find a solution with no succes...

I have a Digital Input device with multiple inputs. 
Eg, I'm reading 0-24VDC signals from pushbuttons and limit switches.

I simply would like to be able to assign each input to a boolean variable to use throughout the code.

Example: I've setup the DAQ Assist and get the usual "Data" output. I'm guessing this produces an array of boolean signals.

How do I convert that array into an individual boolean DI signal for each input?
Or better still, is there a VI I should be using that outputs individual signals?

I've also got the same problem for Digital Outputs. I'm guessing I'll be able to apply the same principles to that problem though.

Sorry if this is obvious and thanks for the help,
Joel

0 Kudos
Message 1 of 3
(4,130 Views)
Solution
Accepted by topic author Leo_J

Index Array will break apart an array into individual elements.

 

Build Array does the reverse taking individual values and build them into an array.

 

I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

0 Kudos
Message 2 of 3
(4,120 Views)

I knew it would be simple. Thanks alot, I'll definitely go through those courses.

0 Kudos
Message 3 of 3
(4,116 Views)