LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

it takes only the first"number"value and the small loop goes on and on

i want to read every "number" value and compare it with the "numeric constant.but in the small loop it reads only the first value and then the loop goes on and on and the next value is not read.
0 Kudos
Message 1 of 3
(2,403 Views)
If you repost you code in V6.0 format I'll be glad to look at it, but in the meantime, turn on execution highlighting and watch the loops execute. You should be able to see why the small loop's exit condition is never met.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(2,403 Views)
That's the expected behavior the way you've programmed it. A value outside of a while loop is read once and is not updated inside. If you're passing this value from a main VI, you've got an infinite as well as a subVI does not continuously get a new value from th main.
0 Kudos
Message 3 of 3
(2,403 Views)