LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get out of a Stacked sequence beside letting it running till its last sequence?

Hi all,
 
May I know how can I exit from a stack sequence without it reaching the last sequence.  ie.  at any point of time, by clicking a button, it will exit the whole sequence.
 
ThanksSmiley Very Happy
Jieyi
0 Kudos
Message 1 of 4
(2,657 Views)

NO, YOU CAN'T.

But there there are so many other ways wherein you can control the execution of the code inside the various frames of the Stacked Sequence ( for that matter Flat Sequence too... ). Smiley Wink

- Partha ( CLD until Oct 2024 🙂 )
Message 2 of 4
(2,653 Views)

Probably you can use a state machine for your task instead of a sequence. Search the forum for state machine or check this article if you're not familiar with them.

 
Message 3 of 4
(2,649 Views)

A easy way to brake out of your code, might be to make a custom 'abort' error code. Whenever you want to skip the execution, trigger that error code.  That way, the normale error lines will take care of checking wether to continue exectuting code, or wether to skip. 

The only thing you have to do, is to put some extra VI's into the line of execution, that fire the abort error when the button was pressed.  That's more elegant, than having tons of case structures in the code...

 

Message Edited by Anthony de Vries on 04-11-2007 12:34 PM

0 Kudos
Message 4 of 4
(2,641 Views)