From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic control the boolean outside the state machine

I'm trying to create a LabVIEW program to control some values, and in the program, I'll use boolean to show the status of valves (on/off). I want my three values (boolean) turn on each at a time, but have an overlapping time (~ 10 sec) when switching between 2 values. So I used a state machine to build this structure. The problem is that if I put the boolean inside each case structure, the boolean will turn on/off based on the T/F in the case structure. But if I move the boolean outside While loop, it wound change (stay on 'off'). Because I'm using it to control the valves using Daq. I have to put the three booleans outside the state machine. Is anyone can provide some suggestions? 

 

Thanks!

 

Here is the screenshot:

wsl7842_0-1603411444433.png

 

0 Kudos
Message 1 of 2
(835 Views)

Check your other post, I've replied on that

0 Kudos
Message 2 of 2
(807 Views)