MATLAB: Simulation of a missile valve with Simscape

MATLABSimscapesimulinkvalve

Hello,
I would like to realize a missile valve in Simscape. For the valve I use the Local Restriction. Now I would like to close the valve when a previously defined mass or volume flow is reached and keep it closed until the end of the simulation.
A first approach was to implement an if-condition in Simulink. I was able to use this to close the valve when a defined mass flow was reached but not able to keep it closed, as it reopens as the mass flow drops.
Does anyone have an idea how I can keep the valve closed state? Is there a corresponding block in Simulink or Simscape?
Thanks a lot and greetings
Tom

Best Answer

Hi Tom,
A flip-flop will latch the valve shut once the flow reaches the threshold and keep it shut until you manually reset it. That is an S-R Flip-Flop in the picture.
Related Question