Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.

If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.

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

Try this

 

BooleanArrayExample.png 

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

Hi,

 

Check the attached vi.

 

Hope it helps,

Paulo

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

One solution among several others

 

Build boolean array.png

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

Hi,

 

Try this.

Rodrigo Cuenca
www.cidesi.com

Message 5 of 5
(6,793 Views)