Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

PID Controller Constraints

Please login with a confirmed email address before reporting spam

Hi all,

I have implemented a PID temperature controller (based on Voltage control) into my model but I am having one issue with it when I change the setpoint temperature. I have the setpoint temperature change as a function of time and after a few seconds of ramping up I have it drop about 30 degs (simulate cooling) and then my PID algorithm explodes bc of the error term. I was wondering if theres an easy way to make my model use the PID controller for ramp up but then when I want it to cool down just turn have voltage = 0. I have tried using a piecewise function that defines an interval for using V_ctrl and then an interval that V = 0 but my model will not solve.

Any advice?

Thanks
Alex


0 Replies Last Post 21 nov 2013, 12:05 GMT-5
COMSOL Moderator

Hello Alex Sposito

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.