LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

zero iteration for loop

Hi folks,

There's an old behavior that I'm pretty used to, but it still occasionally bites me (usually with references).  It happened again today, and it got me to wondering if it's really intended behavior.

If you pass a value into a zero iteration for loop, then send it out the other side, the value exiting the for loop is returned to default, not the value you fed in (see simple.vi, LV7.1).

Any ideas?

Joe Z.
0 Kudos
Message 1 of 3
(5,662 Views)

This is expected behavior...the workaround is to use shift registers to pass the value through instead of tunnels.  I believe this is discussed in the LabVIEW Help.

-D

Message 2 of 3
(5,656 Views)
Thanks Darren, it's right there in the help.

It puts me in a bit of a quandry, since I've seen some odd behaviors when I put things like queue references into shift registers.

Ah, well, we've all managed this far.

Thanks again,

Joe Z.
0 Kudos
Message 3 of 3
(5,652 Views)