Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69319

Overwriting an output in idle state

$
0
0

Hello everyone,

I am using an RT and a Host VI to control a motor. The RT VI contains a state machine which executes after the user presses a "start button" on the host VI. The motor ON/OFF is an output from the state machine.

After the state machine executes and goes back to the idle state, I would like to retain the last state of the motor before allowing the user to turn ON or OFF the motor from a "Motor Button" on the host VI. How can I achieve this without having a race condition?

So in iddle state, the "Motor Button" turns ON or OFF the button, but after the state machine executes, the state of the motor is determined by a shift register and the "Motor Button".

 

Thank you for the help.

 


Viewing all articles
Browse latest Browse all 69319

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>