It is very common that people want a sequence that can be stopped or redirected depending on user inputs or return values from functions and sub VIs.
That's why you have the State Machine structure. Take a look at the already made template in "New� >> VI From Template >> Frameworks >> Design Patterns >> Standard State Machine".
This programming structure is extremely flexible and expandable. It basically performs a sequence, depending on the return values from each step. This means that you can go to a certain �shutdown� state if you receive an error, or if the customer chooses to stop, or you can simply stop the loop without a state.
I would recommend you to read the
online State Machine tutorial, for you to evaluate how useful it would be to implement it in your application.
Have fun!
Best regards,
Philip C.
Applications Engineer
National Instruments
- Philip Courtois, Thinkbot Solutions