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

Parallel while loops for failsafe system and control system

$
0
0

Hello all,

 

So, I'm needing some direction for the best way to go about making a control system and failsafe system run in parallel. I've attached the VIs for both systems. I'm wanting it where if the failsafe VI detects any problems in the outputs or inputs, then it tells the control VI to send 0 volts to the proportional valve (input to the plant in the simulation).

 

In the failsafe VI, it checks all the outputs and inputs (simulated signals at the moment) and if any thresholds are suprassed then a false value is assigned to the particular global variable. Then in the next sequence it checks if any of these variables are false. If so, then it assigns the "normal state" to false. In the final sequence it reads the value of "normal state" and if true, nothing happens and it goes to the first sequence and checks the I/O values again. If false, it sends a 0 voltage to the proportional valve, sends an email and text to someone telling them a failure happened, and then gives a siren.

 

In the control system VI, it continually sends a voltage to the valve based off of the error in the set point. 

 

Now how would I run these in parallel and have it where the failsafe VI while loop would stop the control VI (which is actually in a case statement inside the while loop) while loop if any failures are detected? My only guess is that I could put them in the same VI, one below the other, and then before the control while loop iterates and it goes into the case statement, it checks the normal state. If the normal state is false, it sends 0 volts to the valve, if true is continues as normal. I'm not sure if this is the most efficient way to do things though so I'd appreciate any advice anyone could give. Thanks!


Viewing all articles
Browse latest Browse all 69534

Trending Articles



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