LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create bool for any iteration

Solved!
Go to solution

Hello everybody

 

Is it possible to create as many iterations of booleans as for example in a for loop

Example: For a loop of 6 iterations, I create 6 buttons.

                 For a loop of 12 iterations, I create 12 buttons.

Thank you in advance

0 Kudos
Message 1 of 7
(2,858 Views)

This sounds like that you are looking for something like this:

BooleanArrayForLoop.png

 

Please note that the constant can be replaced by an array located on the UI. I recommend you NOT to use buttons though, but LEDs or checkboxes.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 7
(2,842 Views)

Norbert,

 

I don't really understand.

 

Can you give an example please ?

 

My Labview is 2010

0 Kudos
Message 3 of 7
(2,837 Views)
Solution
Accepted by topic author kenshinsano

Hi,

 

as kenshinsano shows... you can take an array of booleans. When you wire the controller to the FOR loop, there two possibilities of the tunneling Auto Indexing/Disabled Auto-Indexing. You can see the example array_of_booleans...

 

Cheers...

 

Angel

0 Kudos
Message 4 of 7
(2,826 Views)

THAT was an example....at least a screenshot of it. So if you do not understand the image, you are lacking basics of LabVIEW. I recommend you to read the Introduction to NI LabVIEW.

 

What i am using in the screenshot is called "autoindexing" which will make sure that the loop will only execution as many times as there are elements within the array.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 5 of 7
(2,824 Views)

I totally agree with this is a basic stuff. And it's very nice explained in the HELP of LV. 🙂

 

Angel

0 Kudos
Message 6 of 7
(2,815 Views)

Thanks all of you !

0 Kudos
Message 7 of 7
(2,805 Views)