Hi Jason,
First let me make sure that I understand your problem correctly:
The transition doesn't happen after 5 secs even if you use autoreset for the elapsed time. The elapsed time stays on after the first iteration meaning that the next time it checks, it sees that the elapsed time is more than 5 secs (even though it's not) and automatically makes the transition.
What you want to do:
Ensure that it checks for the inputs or if the time elapsed is more than 5 secs before it transitions.
One possible solution:
Use a guard inside your statechart to check for elapsed time or for the inputs.
Other solution:
Check for the conditions in the caller VI and just use the statechart for your transitions with null triggers.
There are many different ways to this depending on your statechart and your caller VI is set-up. I prefer the solution of using the guard to move through the transitions.
Few questions:
- Are you in synchronous or asynchronous mode?
- Where do you want to check for these conditions?
- Are you using guards right now?
- Are you sending the current time and inputs to your statechart?
Screenshots of your caller VI and your module will be helpful.
Hope all this information helped!
Warm regards,
Karunya R
National Instruments
Applications Engineer