Simulink switching heat/cool controller
15 次查看(过去 30 天)
显示 更早的评论
I'm looking for a way to model a dual output PID controller, heating and cooling, in Simulink. I currently have it set up as so, and it works, but I am trying to make it so that heating is never on at the same time cooling is on. Because of the integral in the controller, there are small overlaps in cooling and heating output.

I've tried to use a switch block to switch the outputs when the error crosses zero, but I get an algebraic loop error when the error crosses the zero point.

Is there a better way to set this up, possibly with if-else blocks or better logic?
Thanks in advance.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 General Applications 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!