07-02-2009 08:24 AM
Hi,
I am using labview 7.1 to communicate with red tide USB 650 spectrometer. In my program I want a certain function to operate 32 times and the whole set of 32 functions to operate n times. i was thinking about using one "for loop" inside another with the No. of iterations of inner loop as 32 and for outer loop as n. Will this give me 32 complete iterations in the inner loop in every one iteration of the outer loop?
Thanks in advance!
07-02-2009 08:28 AM
Yes.
Should i expand?
07-02-2009 08:28 AM
That is correct. The outer loop may only proceed to the next iteration if everything inside it has finished executing. A loop will only finish its execution if it terminates due to the termination condition; a "standard" for loop has only a single terminal condition: i == N.
hope this helps,
Norbert
07-02-2009 08:30 AM
07-02-2009 08:31 AM
Most definitely!
Whenever I have questions about nesting like this, I just use the highlight execution mode (the little "lightbulb" button on the block diagram window) and watch the loops run.
07-02-2009 08:46 AM