Simulink Control Design™ - MathWorks

(Tuis.) #1
Change the transfer function of the Reference Filter block. Set the Numerator
parameter to 100 and the Denominator parameter to [1 20 100].

set_param('scdspeedctrl/Reference Filter','N',"100");
set_param('scdspeedctrl/Reference Filter','D',"[1 20 100]");

Since the model parameters have changed, trying to find an operating point that meets
the specifications in opspec using the following command generates an error.

op = findop(sys,opspec);

Update the operating point specification object to reflect the changes in the model.

opspec = update(opspec);

Find an operating point that meets the updated specifications.

op = findop(sys,opspec);

Operating point search report:
---------------------------------

Operating point search report for the Model scdspeedctrl.
(Time-Varying Components Evaluated at time t=0)

Operating point specifications were successfully met.
States:
----------
(1.) scdspeedctrl/External Disturbance/Transfer Fcn
x: 0 dx: 0 (0)
x: 0 dx: 0 (0)
(2.) scdspeedctrl/PID Controller/Filter/Cont. Filter/Filter
x: 0 dx: 0 (0)
(3.) scdspeedctrl/PID Controller/Integrator/Continuous/Integrator
x: 8.98 dx: -4.51e-14 (0)
(4.) scdspeedctrl/Throttle & Manifold/Intake Manifold/p0 = 0.543 bar
x: 0.544 dx: 2.94e-15 (0)
(5.) scdspeedctrl/Vehicle Dynamics/w = T//J w0 = 209 rad//s
x: 209 dx: -1.52e-13 (0)
(6.) scdspeedctrl/Reference Filter/State Space
x: 0 dx: 0 (0)
x: 20 dx: 0 (0)

Inputs: None

1 Steady-State Operating Points

Free download pdf