Question: Write a function PI _ Cont that models the PI Controller. The function should take as input the current state of the system , calculate
Write a function PIContthat models the PI Controller. The function should take as input the current state of the system calculate a control signal s and return it as output.
Test your function at the initial conditions.
function sPIConty
implement the PI controller function
Kb;
Kc;
KI;
CbSP;
Cby;
Ierry;
sKbKcCbSPCbKIIerr;
end
Part b
Write a function getfthat evaluates the righthand side function of this ODEIVP system at the current state and control signal s
Test your funciton at the initial conditions.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
