LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why does this two loops have different upshot !thanks

check attatched !i called toolbar ActiveX to realize manipulating of the buttons , but I got two different upshots with both loops ,why? thanks in advance
0 Kudos
Message 1 of 3
(2,415 Views)

In the lower loop, the value reference is only read once before the loop, so the value feeding to the case structure will never change once the loop starts. In the upper loop, you read the value reference at each loop iteration.

Think dataflow!

What are you trying to achieve?

(... and don't forget to place a small wait inside each while loop ;))

0 Kudos
Message 2 of 3
(2,386 Views)
thanks all the people , I got it,you are hospitable
0 Kudos
Message 3 of 3
(2,363 Views)