LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Count number of iterations of a sub-VI to output accordingly

Hi all,

 

For the last few hours I have been trying to figure this out, but haven't managed, so I ask for your help please. I have a sub-VI that needs to output the next element of an array every time is gets called from the parent VI. If I there was a way to know the number of iterations of the sub-VI, then I could use this as a parameter to determine which element of the output array to return.

 

Thank you very much in advance for your help.

0 Kudos
Message 1 of 3
(2,158 Views)

You will need an uninitialized shift register to keep track of the index (or count number) in the SubVI.

Have a look at the Action Engine thread.

0 Kudos
Message 2 of 3
(2,153 Views)
That or a feedback node. Put down an increment function and wire the input to the output and one should magically appear.
=====================
LabVIEW 2012


0 Kudos
Message 3 of 3
(2,150 Views)