ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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,807 Views)

Try this

 

BooleanArrayExample.png 

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

Hi,

 

Check the attached vi.

 

Hope it helps,

Paulo

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

One solution among several others

 

Build boolean array.png

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

Hi,

 

Try this.

Rodrigo Cuenca
www.cidesi.com

Message 5 of 5
(6,790 Views)