LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pause a stacked sequence structure?

I'm working with a program that compares two date/time inside the stacked sequence structure. In a particular frame if 2 date/time are differents the sequence structure will not advance to the next frame, but when the 2 date/time are equals will turn the next frame.
 
Thank you
0 Kudos
Message 1 of 5
(3,774 Views)
Hi,
 
You can use an case structure,  with an while loop inside it. To reserve resources use "wait on front panel activity" inside the loop. The case structure should be controlled by the code that determines of the date are identical...
 
But this isnt the most elegant way... Sequences arent the best way to do this.. maybe you can consider a state machine.
 
cheers,
B. Bakels
Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
Message 2 of 5
(3,762 Views)
Hello Suguruk,

I agree with Bart, I think you should use a state machine more than a stack sequence... and about the pause, well, have a look at the example attached, it is a basic state machine with 3 "task" cases and 2 "transition" cases (transition form case 1 to 2 and 2 to 3).

Feel free to ask for further comment or ideas if you need.

I hope this will help you 😉


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 3 of 5
(3,747 Views)
Hi,
 
definitivelly you should use an state machine.
 
Jaime Cabrera
NI Applications Engineering
Regards,

Jaime Cabrera

NI Applications Engineering Spain
0 Kudos
Message 4 of 5
(3,716 Views)
Thanks for the information.
0 Kudos
Message 5 of 5
(3,694 Views)