LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can you move back to a previous frame in a sequence structure?

I have a VI that contains a sequence structure with seven frames. I would like to add a button on the front panel to allow the user to move back to the previous frame. Is this possible?

Thanks
0 Kudos
Message 1 of 3
(3,864 Views)
I don't think that's possible. Try replacing the sequence structure with a
state machine.

A state machine is a case statement embedded in a while loop. Each case
outputs at least an integer to indicate the next case to be executed and a
boolean to indicate if the while loop should continue. The integer is wired
to a shift register. The input side of the shift register is wired inside
the while loop to the conditional terminal of the case statement. Outside
of the while loop, the input side of the shift register would be wired to a
constant indicating the first case to be executed.

To mimic a sequence structure, each case would take the incoming integer and
increment it by one. To move back to the previous frame, the integer would
be decremented instead.

"Jeff - PP
L" wrote in message
news:506500000008000000F0260000-993342863000@exchange.ni.com...
> I have a VI that contains a sequence structure with seven frames. I
> would like to add a button on the front panel to allow the user to
> move back to the previous frame. Is this possible?
>
> Thanks
Message 2 of 3
(3,864 Views)
I am not sure if you can go back to previous frames in a Sequence structure, but chances are you can do what you want using a Case structure.

Check the answer that I posted for the following question regarding creating a Wizard-like interface. You can go back and forth using navigation buttons. It can give you a starting point:

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000B4230000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0

Best regards;
Enrique
www.vartortech.com
0 Kudos
Message 3 of 3
(3,864 Views)