07-01-2015 11:48 AM
I am trying to re-run a test once I get to the "ENDEND" case statement. When the "Run Test File" is turned "off" then "on" on the control panel, the test should run again. How can I achieve this as I have several nested loops?
Also, how can I reinitialize all the outputs from the case statements to zero once the "Run Test File" is off?
See attached picture
Thanks for the help!
07-01-2015 11:51 AM
If you have a proper State Machine, you should not have nested loops. You just sequence through the states until you see a condition to go to a different state. I recommend making a state chart before you start doing any coding.
07-01-2015 01:40 PM
I actually mean that I have case structures inside others, my main loop is a while loop.
07-01-2015 01:56 PM