LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of booleans

Solved!
Go to solution

Hello,

In one array of buttons how can I know which button is turn on?

0 Kudos
Message 1 of 5
(2,476 Views)

I don't quite understand the question. The array will be something like FFTFFTT. The Trues are on. In general if you want to do something with an array you connect it to a For loop and check each element. Do you want to get the indices of the Trues? Loop through it and build an array of 'i' where the element is True.

Have the array changed and you want to know which changed? Do a XOR with the previous array (cached through a feedback node) and Search 1D array for True.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 5
(2,466 Views)
Solution
Accepted by topic author labview99

Get Selected Buttons From Array.png

Lucian
CLA
Message 3 of 5
(2,465 Views)

Thank you so much for helping me!!

Best regards

0 Kudos
Message 4 of 5
(2,459 Views)

Thank you so much!! It has been very hepful for me your image!

Best regards

0 Kudos
Message 5 of 5
(2,456 Views)