LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

building a boolean array

Hallo,

I have two numeric constants, for example 4 and 3. With these two numbers I would like to make an array of booleans like this: true true true false, meaning the first three elements are true, and the totals of elements is 4.

 

thanks

0 Kudos
Message 1 of 5
(6,303 Views)

Try this

 

BooleanArrayExample.png 

0 Kudos
Message 2 of 5
(6,296 Views)

Hi,

 

Check the attached vi.

 

Hope it helps,

Paulo

0 Kudos
Message 3 of 5
(6,295 Views)

One solution among several others

 

Build boolean array.png

0 Kudos
Message 4 of 5
(6,292 Views)

Hi,

 

Try this.

Rodrigo Cuenca
www.cidesi.com

Message 5 of 5
(6,286 Views)