LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Indicator not display in while loop but it works with for loop

Please any one help me to understand why the indicator is not update in the while loop but it works in the for loop.
Thank you very much.
XN
Download All
0 Kudos
Message 1 of 3
(2,625 Views)
Data passed into a loop stays constant between iterations. The for loop does the same thing expect in your case the while loop around it, causes it to be used more than once (the inner while loop is only entered once).
0 Kudos
Message 2 of 3
(2,616 Views)
For the elapse-time-1.vi, the inner while-loop will keep on running till the time the stop button is pressed. Once the stop button is pressed, a boolean true is going to be sent to the condition terminal of the outer while-loop meaning that it would only execute once.
 
Regards,
Chetan K
Application Engineer
National Instruments
0 Kudos
Message 3 of 3
(2,594 Views)