LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there an example vi for converting an array of boolean to list an array of Int based on a selected T/F state?

I would like to use arrays to minimize code.
I am trying to generate an array of int base on an array of boolean randomly selected.
0 Kudos
Message 1 of 2
(2,324 Views)
You can try using 'Boolean to 0,1.vi', found in the Boolean palette: this vi converts a scalar, array or cluster of booleans to a scalar, array or cluster of word (I16 integers).
To use it, simply wire an array of booleans (indicator) to its left, and an array of integers (control) to its right et voilà.
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,324 Views)