> > I have a long sequence structure and to which I would like to allow the user
> > to be able to get out of. Using a binary control, is there a simple way
> > to allow them to jump from some internal frame of the sequence to the end?
>
> I suppose it could be done by using a boolean and a sequence local.
> You could put a case around the code in every sequence and either
> execute of not depending on the control. I would not suggest this however
> since it could become very messy quite quickly.
>
> My suggestion would be to go to a state machine. This is simply
> a case inside a while loop. Each case writes to a local variable
> of the case selector to choose the next case.
>
If you only want the ability to stop the sequence at some point,
then a special
case of the state machine is to popup on the sequence,
and replace it with a select structure. This will preserve the order
and the frames. Now drag a while loop around the select, and wire i
to the selector ? Now that Boolean you were mentioning can be wired
to the while loop continuation terminal. The stuff you want to jump
to goes after the while loop.
The other suggestion about using subVIs is a really good one to, but
will be a bit more work to switch to.
Greg McKaskle