07-04-2013 08:00 AM
Hello,
I am having trouble keeping track of the number of time that I enter a case in a statemachine. Each time I change cases the count is reset.
Happy Fourth of July!
Best,
HF
07-04-2013 08:13 AM
Your tunnel is set to Use Default if Unwired. Check to see what happens to the count in the default case, and make sure it's wired through without incrementing for all other cases.
07-04-2013 08:13 AM
You need to pass the count through all of the cases. If you don't wire a value to the output tunnel, it is set to output the default (0) and your count was just reset. If you are using LabVIEW 8.6 or newer, you can right-click on the output tunnel and select Linked Input Tunnel->Create &Wire Unwired Cases and it will be automatically done for you.