update parameter during simulink simulation
Mostrar comentarios más antiguos
I have a PID controller which provide to heat up water in a tank with temperature target set to 35°C. Now, once the target is reached, i want to stop the PID controller working and let drop water temperature till 30°C; only when the temperature is below 30°C i want to use again PID controller to reach water again to its target temperature. To do this i need to determinate with a parameter when the tank is warming up and when it is cooling down; since the calculation based on temperature's derivative is unsteable, i want to use a parameter (A) which is =1 when T>=35°C and it is -1 when T<=30°C and in all the others possible case it is the same value of the last calculate value. How can i do that in Simulink? Thank you :)
1 comentario
Aquatris
el 23 de Jul. de 2018
Did you try Switch blocks? or Matlab Function block where you can type out the thing you want as a script?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Real-Time PID Autotuning en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!