Need Help (Simulink Matlab)

edited March 2008 in Science & Tech
Hi guys,
<O:pI really need your help in the matlab (simulink)
I have a small project, which is about simulated the state of charge for lead acid battery, the main condition in the project is we have to stop state of charge (SOC) when it = 30<O:p
I did every thing I can
<O:pBut 1 thing is missing

socdq2.jpg<O:p></O:p>
<O:p</O:pWhen SOC=30, I just want the plotting to stop<O:p
I don't want the SOC to go below the 30... I tried the saturation but it's not a practical solution..
<O:p
Also I tried a switch but I couldn’t make work...<O:p
<O:p
So please somebody help me<O:p</O:p
This discussion has been closed.