Hey guys, a newbie here.
I have a .vi with a stacked sequence. The first few frames are hardware initialization and settings (LIN master node) and the data the hardware should transmit (frame response table). In the next frame there's a loop in which the hardware sends and recieves data (LIN monitor). If I want to change the initialization, settings or data values, I have to stop the .vi and restart it. I was wondering if there is a simple way of doing this with a single click (a button on the front panel).
An alternative would be to put another loop outiside the whole stacked sequence and then run it a single time with a push of a button (the inner loop should let the outer one restart), is that possible?
I hope I made any sense. Thanks for any suggestions.
Solved! Go to Solution.
Can you post your vi?
It has about 100 custom subVIs, I don't think posting it would be of much use. Basically, the vi goes like this:
stacked sequence: do A -> do B -> do loop until "stop".
I'd like a way to start again from the beginning of the sequence ("do A") without stopping and restarting the VI (or doing this with a single button).
I'd like a way to start again from the beginning of the sequence ....
Take the great advice given. Think of a State Machine as LabVIEW's only way to do a GoTo statement, or even a GoSub statement with a Return.
It turned out that wrapping everything in a while loop was all I needed for this case. I also learned how to use a state machine so thanks to all of you guys for the help!