LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

exit case structure

I currently use the real-time module to control the on/off of the pump at certain time. The screen shot of the code is attached. I want to add an additional condition in the case structure. When the working water level is lower than certain level, the pump should not turn on. How can I exit the case struture when the comparision has been done when the timer just start to count down?

 

Thanks,

0 Kudos
Message 1 of 5
(4,364 Views)

Not sure what you wnat to do,

but a flow exits a case structure when everything in the selected case has run.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 5
(4,321 Views)

I want to exit the selected case before everying finish running when certain condition is met.

 

0 Kudos
Message 3 of 5
(4,315 Views)

@pikaqiu wrote:

I want to exit the selected case before everying finish running when certain condition is met.

 


That cannot be done.  

 

You CAN however, design a producer consumer loop where the consummer state machine is properly designed Look at this link where another poster had a simillar issue with a long uninteruptable process.  then refactor your code.


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 5
(4,304 Views)

Everything directly in the selected case will run exactly once.

Everything in the selected case must finish running in order to exit the case.

 

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 5 of 5
(4,298 Views)