0% found this document useful (0 votes)
58 views6 pages

Assignment 1 - Block Diagrams and MatlabSimulink

Uploaded by

davidmesz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views6 pages

Assignment 1 - Block Diagrams and MatlabSimulink

Uploaded by

davidmesz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Control Theory Assignment year 4, week 1:

Block Diagrams and Matlab/Simulink


T. Hegberg - [email protected]
M.N.J. Bruin - [email protected]

November 9, 2022

1 Assignment 1: Block Diagrams and Matlab/Simulink


The idea of assignment 1 is to get acquainted with/to refresh your knowledge about the Matlab/Simulink© en-
vironment. This assignment will guide you through the steps to model simplistic first and second order sys-
tems. The goal is to learn to generate Simulink models in a structured manner. Secondly, it is important to
realize that you can move blocks around to create more overview. Therefore, you are tasked to provide
an equivalent transfer function from an huge block-diagram. You will see that ’suddenly’ you would only need
one block.

1
1.1 Matlab Simulink basics
Try to recreate Figure 2. In control engineering it is very easy to get lost. Therefore, we work with areas, sub/super
systems, and functions. The steps below will guide you creating your first area.

• Open the library;


• Drag-and-drop the selected block(s) to the model;

• Try to recreate Figure 1, note that some blocks are flipped, and within some blocks values have changed.

Figure 1: Matlab basic library Components

Figure 2: Matlab basic library Components - Commented Out

• Make sure you created, and named, the area;

• Make sure you have commented the area out. This way the programme does not try to compile, and compute
that system.

Once you have double-clicked all your blocks, and you have assembled your first area you can start with the actual
assignment.
1.2 Theory questions
The questions below correspond to Figure 3 and Figure 4. The transfer functions G1, G2, G3, and G4 are setup
in the S-domain (recall Laplace), yet the scope in Figure 3 displays the system responses in the time domain, see
Figure 4 . The length of the simulation is determined by the value in the ’Simulation stop time’ bar in the top of the
model window. By default the simulation stop time is set to 10.0 [s].

3
Figure 3: Open loop systems: G1(s) - G4(s)

Figure 4: Open loop system responses: G1(s) - G4(s)

Theory Questions:
1. Where does R(s) stand for?
2. What is the order order of systems G1, G2, G3, and G4? How do you recognise that?
3. Is the slope at t=1.0 [s] equal to zero?
4. Give the formula for the final value theorem. Also describe under which conditions the formula
5. How do we find the pole location of a transfer function?
6. Present a table with for G1,G2,G3, and G4. (|Input|Transfer Function|Pole location|Final Value|).
7. Discuss if these four systems will be stable or unstable when you create a negative 1:1 feedback loop?

Now, have a look at Figure 5.

4
Figure 5: An open loop system response

8. How many poles do we need in order to observe oscillations in the system response?
9. How are the poles closest to the origin called?
10. Give a qualitative drawing of the poles corresponding to the system response in Figure 5.

Please have a look at Figure 6.

11. Complete the ’...’ in Figure 6. Also write down the correct words in the caption.
12. Give a equation for E(s).
13. Obtain the transfer function C(s)
R(s)

Figure 6: ... order ... feedback system

1.3 Matlab questions


Now, open your Matlab/Simulink© model and answer the following questions:
14. Verify your answer given in Theory questions (7.). Place an area around it, and name it ’Stability check Theory
questions 7.’.
15. Draw the system given in Figure 6 in Matlab/Simulink. Place an area around it, and name it ’<Caption Figure
6>’.
16. Draw a mass-spring-damper system. Choose m = 1, k = 10, and c = 2. Give the open-loop system
response to a pulse input. (When you do not recall how to determine the transfer function, open the lecture
sheets of Control Theory year 2, week 5). Place an area around it, and name it ’Mass-Spring-Damper system’.
What is the value of the system response at t = 21 [s] after a step input with amplitude A = 4 at t = 17 is ap-
plied?
17. Generate an overview print screen/snapshot/picture of your Matlab/Simulink© model and add it to the re-

5
port.

1.4 Block Diagrams


Have a look at Figure 7.

Figure 7: Huge Block Diagram

18. Reduce the block diagram into one equivalent transfer function. Show the intermediate steps of reducing the
block diagram.

Hint 1, make use of the properties of a linear system (Homogeneity: f (t)·G = xf (t) (t) –> αf (t)·G = α·xf (t) (t), and
Additivity: f (t)+g(t)·G = xf (t) (t)+xg(t) (t)); Hint 2, have a look at the equations below:

Moving a summing point behind a block: Figure 8 belongs to equation 1 and equation 2.

Figure 8: Summing point behind

X3 = G(X1 ±X2 ) (1)

X3 = GX1 ±GX2 (2)


Moving a summing point ahead of a block: Figure 9 belongs to equation 3 and equation 4.

Figure 9: Summing point ahead

X3 = GX1 ±X2 (3)

X2
X3 = GX1 ± (4)
G

6
Closed loop simplification or elimination feedback loop: Figure 10 belongs to equation 5.

Figure 10: Closed loop block diagram

C(s) G(s)
= (5)
R(s) 1±G(s)H(s)
Note for a negative feedback loop a + sign should be used; for a positive feedback loop a − sign should be used.

Good luck!

Kind Regards,

T. Hegberg
Lecturer Aeronautical Engineering, Inholland university of applied sciences - Delft

You might also like