05-10-2012 06:13 AM
I have a "Case" structure (when a button is pressed, it is "case True").
I want to keep track of how many times this "case True" has been entered.
How can I do this?
Solved! Go to Solution.
05-10-2012 06:28 AM
For that you need to have a shift register or a feedback node and keep counting whenever the case structure case is executed the count will be increased by one see the attached snippet.
Good Luck
05-10-2012 09:56 PM
Hi,
What happens if I want to have a button to reset the output of the feedback node to zero?
Can I reset the value of the "wire"?
05-10-2012 10:04 PM
Use a select statement to feed a zero into the feedback node instead of the value coming from the +1.
05-10-2012 10:09 PM
Yes you can do by this way.
Instead You can use the case structure also as said.