Quote:
|
Kind of like Round Robin?
|
Sort of. LabVIEW does do scheduling using round robin, but nothing is inherently rescheduled, that is what loops are for. It is also possible for a flat diagram, no loop, to execute things once and they don't go again.
I think you have the idea, but not the terminology. The VI is the whole loop and everything. The blue box is a loop, a special sort of loop that is capable of all sorts of timing stuff. The down arrow and up arrow are called a shift register. It is a feedback mechanism so that one iteration of a loop can give data to the next iteration. But yes, branching the wire on the left gives the original data, on the right, after the +1 gives the new data.
To relate the original issue to C, If you put a printf() inside of a loop it executes each time the loop does, displaying i. I you place it after the loop, it executes once, displaying the last i. The terminal of an indicator is sort of like calling printf to display data.
Greg McKaskle