LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

State exit Using Stop Function, State inside loop do not wish to stop while loop

I have two state structurees within a while loop. I wish for one state struture to end or exit at the end of a time function. For example this state structure is for streaming data to disk while time conditionis to be met, then end. Five minute data stream end, but I have only been able to stop by sending output of condition met to stop button of the while loop. This is not desirable as I plan to make an excutable.
0 Kudos
Message 1 of 2
(2,545 Views)
The state machine that you want to end needs to have some way to end. One way is to stop the loop. You said that you don't like that. Another way would be to have an idle state. Have the state machine go to the idle state. In the idle state, have a wait to let your other state machine have most of the processor.

Hope that this helps,
Bob
0 Kudos
Message 2 of 2
(2,539 Views)