0% found this document useful (0 votes)
382 views

Exercise Simulink Systems

The document describes a series of Simulink exercises to model different transfer functions and control systems. It includes instructions to create Simulink models for: 1) A first order PT1 transfer function. 2) An integrator function without using an integrator block. 3) A state space representation using matrices instead of blocks. 4) A feedback control loop combining the previous models. 5) Linearizing the full system model to analyze it using MATLAB commands.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
382 views

Exercise Simulink Systems

The document describes a series of Simulink exercises to model different transfer functions and control systems. It includes instructions to create Simulink models for: 1) A first order PT1 transfer function. 2) An integrator function without using an integrator block. 3) A state space representation using matrices instead of blocks. 4) A feedback control loop combining the previous models. 5) Linearizing the full system model to analyze it using MATLAB commands.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Exercise 6: Simulink systems

Simulink systems

6.1

Simulink model with PT1 (first order) transfer function

a) Generate a Simulink model simulink_systems_ex1.mdl for the equation


y =

V
u
1 + s T1

y =

1
(V u y)
s T1

(1)

with input u, output y, V = 1 and T1 = 0.01.


In addition to gain, sum etc blocks use integrator blocks as dynamic block only.
Save the data for V and T1 in MATLAB initialization file simulink_systems_ex1.m to
be called before start of the Simulink model.
b) Use a step function from 0 to 1 at 0.1 seconds as input signal u and a simulation time of
0.2 seconds.
c) Use an appropriate scope-block for display of input signal u and output signal y in the same
axis.
d) In the same Simulink model now use parallel and in addition to the former programmed
function a more simple simulink block and display its output and the above input signal u
in the same way as above in a separate scope block.

6.2

Simulink model for integrator function

a) Generate a Simulink model simulink_systems_ex2.mdl for the equation


y =

1
u
s Ti

(2)

with Ti = 0.1.
Do not use an integrator block!
Save the data for Ti in MATLAB initialization file simulink_systems_ex2.m to be called
before start of the Simulink model.
b) Use a step function from 0 to 1 at 0.1 seconds as input signal u and a simulation time of
0.2 seconds.
c) Use Signal & Scope Manager (Menue Tools) displaying input signal u and output signal y
in the same axis.

Exercise 6: Simulink systems

6.3

Simulink model for state space representation

a) Generate a Simulink model simulink_systems_ex3.mdl for the state space representation

x = A x + B u

(3)

y = Cx+Du
with matrizes

1
Tr
with Vr = 2 and Tr = 0.005.
A=

B=

Vr
Tr

C=1 ;

D=0

Do not use the State-Space-block!


Please be aware that A, B, C and D are matrizes. Hence, gain blocks should not multiply
element-by-element!
Save the data for Vr and Tr in MATLAB initialization file simulink_systems_ex3.m to
be called before start of the Simulink model.
b) Use a step function from 0 to 1 at 0.1 seconds as input signal u and a simulation time of
0.2 seconds.
c) Use Signal & Scope Manager (Menue Tools) displaying input signal u and output signal y
in the same axis.
d) In the same Simulink model now use parallel and in addition to the former programmed
function the State-Space-Block and display its output and the above input signal u in the
same way as above in a separate scope of the Signal & Scope Manager.
e) Test the Simulink model for the following vaues:
"

A=

2Dw w2
1
0

with D = 0.75 and w = 200.

"

B=

w2
0

C = [0 1];

D=0

Exercise 6: Simulink systems

6.4

Control loop with Simulink


u- e (3)

- (2)

- (1)

(4)
Fig. 1: Feedback control loop
a) Generate a Simulink model simulink_systems_ex4.mdl for the control loop shown in
fig. 1. The numbers in the blocks refer to the functions defined in the respective Simulink
models of exercises 6.16.3.
b) Use an appropriate Simulink block for measurement transfer function
Fmess =

Vm
1 + s Tm

(4)

with Vm = 1 and Tm = 0.01.


Save the data for Vm and Tm in MATLAB initialization file simulink_systems_ex4.m.
Initialize the system in appropriate manner.
c) Use a step function from 0 to 1 at 0.1 seconds as input signal u and a simulation time of
0.5 seconds.
d) Use Signal & Scope Manager (Menue Tools) displaying input signal u, measurement output signal from measurement block of equation (4), output signal of state-space-block of
equation (3) and output signal y of equation (1)) in four axis.

6.5

Linearization of a Simulink models

For working with the simulink model in MATLAB workspace the simulink model from 6.4 should
be linearized from input u to output y.
a) Generate an input and an output block for linearization from input u to output y in Simulink
model simulink_systems_ex4.mdl .
b) Operate command linmod from MATLAB Command Window.
c) Save the linearized Simulink model in variable sys and check the result of Simulink simulation by generating the step response of LTI model sys with step-command of Control
System Toolbox.

You might also like