LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Loop Count

Hi at all!

I'm new in Labview, and for a measurement test i would try to count no° of iteration of a for loop inner another for loop.

The outer loop has an indexing with 5 elements, and inner loop other 5 loop.

So, my intent is to indicating to the operator the n. of step in execution respect of the total.

I have try with shift register but i'm worng in something that.

Can anyone help me please?

Thank you in advance!

0 Kudos
Message 1 of 3
(917 Views)

Maybe this will help. The numeric indicator will show the step number.

 

For Loop Snippet.png

This is a snippet. Save the .png file then open a new vi and drag it (.png file) onto the block diagram.

 

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 3
(909 Views)

Here's another way (for completeness -- the single Shift Register way, in my opinion, is better, but I've also used code like the following snippet):

Inner Loop Count.png

I trust you understand why the "1" is in the compound arithmetic function, and also why the "Wait" function is there ...  

 

Bob Schor

0 Kudos
Message 3 of 3
(903 Views)