09-02-2008 11:57 AM
I have been using an event case structure within a while loop to allow the user to exit the while loop and execute a subVI.
Now, however, I'd like to use a flat sequence structure to execute a series of steps in order while still retaining the ability to exit the VI and execute a subVI. Some of the steps include relatively long waits, and I'd like to be able to stop these waits prematurely.
Does anyone have any advice on how to do this? Thanks for any help you can provide.
09-02-2008 12:05 PM
09-02-2008 12:32 PM
09-02-2008 12:35 PM
There should, if memory serves, be a template you can use in 7.1 for the statemachine. Of course, once you have seen the template and are comfortable with it you will be able to create your own. Try following a path similar to this. File>>New>>VI>>From Template>>Frameworks>>Design Patterns>>Standard State Machine
I dont have access to 7.1, perhaps someone can verify that this is the path to the template in 7.1?
09-02-2008 01:05 PM
09-03-2008 11:11 AM
FYI, there is also this tutorial on State Machines. It goes over the why/how and gives an example. Pretty useful.
Hope it helps!