03-03-2011 04:19 AM
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
Solved! Go to Solution.
03-03-2011 04:47 AM
This sounds like that you are looking for something like this:
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
03-03-2011 05:11 AM
Norbert,
I don't really understand.
Can you give an example please ?
My Labview is 2010
03-03-2011 05:49 AM
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
03-03-2011 05:51 AM
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
03-03-2011 06:14 AM
I totally agree with Norbert B this is a basic stuff. And it's very nice explained in the HELP of LV. 🙂
Angel
03-03-2011 06:47 AM
Thanks all of you !