This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Linearization of Pneumatic System at Simulation Snapshots

This example shows how to use the time based operating point snapshot feature in Simulink Control Design. This example uses a model of the dynamics of filling a cylinder with compressed air.

Pneumatic System Model


Get the Initial Simulation

[t,x,y] = sim('scdpneumaticlin');

Plot the Simulation Results

In this example, the supply pressure is closed and the system has an initial pressure of 0.2 MPa. The supply pressure is at 0.7 MPa and in the simulation the servo valve is opened to 0.5e-4 m. During the simulation, the pressure increases from the initial pressure of 0.2 MPa and eventually settles at the supply pressure.


Gathering Simulation Snapshots

To get operating point snapshots at various instants of the simulation use

op = findop('scdpneumaticlin',[0 10 20 30 40 50 60]);

The operating points are a vector that can be accessed using

 Operating point for the Model scdpneumaticlin.
 (Time-Varying Components Evaluated at time t=10.7245)

(1.) scdpneumaticlin/Cylinder Pressure Model/dPc//dt
      x: 3.12e+05     
(2.) scdpneumaticlin/Pipe Model/dPp//dt
      x: 3.13e+05     

Inputs: None 

The operating point is now ready for linearization. First specify the input and output points using the commands:

io(1) = linio('scdpneumaticlin/x',1,'input');
io(2) = linio('scdpneumaticlin/Cylinder Pressure Model',1,'output');

Linearize the model and plot the Bode plot for each condition to see the variability in the linearizations.

sys = linearize('scdpneumaticlin',op,io);