LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I reset the following application?

The program below counts every high that is inputed by the button. The problem is that the add function does not reset.
If i start it and klik a couple of times it counts the amount of times I create a new high. But then I stop it adn run it again it continues where it had stopped the last time.
Can somebdy help me out?
0 Kudos
Message 1 of 3
(2,669 Views)
You just need to initialize the Feedback Node init terminal on the left side of the loop for your counter. Create a constant outside the loop on the terminal with a value of zero, or what ever you want the starting count to be.

The attached image shows this.

If you do not initialize the Feedback Node, or a Shift Register, it will remember the value that it last contained unless you change it or remove the VI from memory.

Ed


Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 2 of 3
(2,669 Views)
Thank you very much.

Learned again something today.

Dirk
0 Kudos
Message 3 of 3
(2,669 Views)