LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

identify unique combination of inputs

Im new to Labview, but I hav a little project which Ive set myself. I have 4 switch inputs via compact fieldpoint these are used to identify a component which will activate a unique combination of the 4 inputs, depending on the component. For example, component activates switch 1 and 4 and its name is displayed in a text box. Im not asking for someone to do this for me, as I believe the best way to learn is through trial and error! but I could really do with a little help on this one. Many thanks. 
0 Kudos
Message 1 of 3
(2,459 Views)
If you have 4 inputs and each component activates a unique combination then you have a 4-bit pattern that you can simply convert the 4-bit array to a number that identifies each component by using the "Array to Num" function (in the Boolean palette) to convert your 4-bit boolean array to a number. Do you need to do anything more complicated than this?
0 Kudos
Message 2 of 3
(2,447 Views)

many thanks for your help,

thats the first stage of the test as i said Im a bit of a beginner so simple tasks at the moment will be a bit of a struggle.

0 Kudos
Message 3 of 3
(2,438 Views)