LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Going back in a stacked sequence

Hi ppl,
 
I have a wierd question, that may not be possible, but still I need to ask.
 
Is there a possibility to go back in a stacked sequence. For example when I reach frame 'X', i would like to have a
Yes/No choise, and if I press Yes, go back to Frame 'X-n', if I choose No, I go forward with the next frame.
 
The problem I am trying to solve is how to command one tool to do different measurements. For example I have two channels,
and I have already made a program to control the channel selection, the output source and value and so on. But actually I have to
do more than one measurement, by changing the output chanel, the output value and so on. What I was thinking was to do a stacked sequence
and to go back  and forth in it. Maybe this is not possible, but I will be happy with any other solutions of the problem.
 
Or just tell me if this is not possible, and I just have to start my program every time I want to make new measurement.
 
Thanks in advance
 
Best
 
Zhelio
0 Kudos
Message 1 of 3
(3,186 Views)
That is not possible. A stacked sequence executes sequentially.

You want a state machine.
0 Kudos
Message 2 of 3
(3,184 Views)
Also, stacked sequences are usually considered poor practice in LabVIEW programming, because it's not only difficult to follow wires, it's even more difficult to debug.  You should be able to achieve all the ordering and linearity you need with dataflow.
0 Kudos
Message 3 of 3
(3,178 Views)