10-23-2012 06:13 AM
I would like to create a reset button for a counter on my vi. I have tried many methods as seen in the forums but my latest one will reset to 0, but as soon as the button is released the number that was displayed when the button was pressed can be seen back in the counter box.
As you can tell I am a very new newbie.
Any help would be greatly appreciated!!
Solved! Go to Solution.
10-23-2012 06:24 AM
First, there is no reset button on your diagram. If you mean the cancel indicator it is simply connect to zero if the case is true and to the shift register if not. The case doesn't reset anything.
You might consider to replace the shift register by a feedback node that acts on an indicator and a local variable.
Cheers
Edgar
10-23-2012 06:55 AM - edited 10-23-2012 06:55 AM
I find the Select function a lot more readable in these situations. Also, the value you are writing to your indicator should also be wired to the add that is going into the shift register. Basically, you are not resetting the count stored in the shift register.
10-23-2012 07:38 AM
Hi thank you for the quick reply. I have done some of what you have said but do not understand the final bit. Sorry to be so useless, I have been given this assignment with an hours introduction to labview! In addition to this I have been watching videos/tutorials etc but still struggling!
Thanks again
Stuart
10-23-2012 08:09 AM
You are so close. Wire the output of the Select to your indicator. Also wire that output to the wire directly above it. Remove the "short circuit".
The shift register on the left should only be going to the Select function. The output of the Select should be going where you put the wire from the shift register (the add function on the right).
10-23-2012 08:34 AM
Thank you!!!