LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

wait a 'while loop' until new order

Hi,
 
the VI added works OK. My doubt is that: How I do to execute in only 2 loops?
This VI should do, in the first loop, switch ON the led. Soon after, when the user wishes, stop the program (and switch OFF the led) in a second loop.
 
LV7.1 / Win XP
0 Kudos
Message 1 of 5
(2,852 Views)
Looks good to me and don't see the problem.
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 2 of 5
(2,842 Views)
There aren't any problem... but I want to optimize the VI: when I stop the program it has do XXXXXX loops. I want to do 2 loops: the first to switch ON and the second to switch OFF.
0 Kudos
Message 3 of 5
(2,835 Views)
Hi vicens,

you can do it like this...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 5
(2,832 Views)

I would use an event structure. Modify as needed.

(Of course it seems a bit overkill to even use a while loop for exactly 2 iterations. If you know the numer of iterations beforehand, a FOR loop is usually more appropriate. Can you explain in a few sentences what the purpose of all this is? Maybe there is a much better solution :))

0 Kudos
Message 5 of 5
(2,810 Views)