LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reset iteration counter at the end of execution

Solved!
Go to solution

Hello,

I'm using the iteration counter inside a while loop to measure the time of a process. If I end the execution of the program and run it again, the iteration counter does not reset to 0. How can I make it automatically reset at the end (or beginning) of the execution?

0 Kudos
Message 1 of 7
(2,946 Views)

Try posting your code as a snippet.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 7
(2,944 Views)

Here is the code with subVIs included. another subVI will be in the next post as I can't upload more than three files at once.

0 Kudos
Message 3 of 7
(2,941 Views)

the last subVI

0 Kudos
Message 4 of 7
(2,940 Views)

Iter.JPG

 


Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD)

Message 5 of 7
(2,935 Views)
Solution
Accepted by topic author shears

You have to wire the initialize terminal with zero.

 

 

-----

The best solution is the one you find it by yourself
Download All
Message 6 of 7
(2,929 Views)

Thanks both for help, I understand the process now.

0 Kudos
Message 7 of 7
(2,918 Views)