From 11:00 PM CDT Friday, May 10 – 02:30 PM CDT Saturday, May 11 (04:00 AM UTC – 07:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,925 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,923 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,920 Views)

the last subVI

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

Iter.JPG

 


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

Message 5 of 7
(2,914 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,908 Views)

Thanks both for help, I understand the process now.

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