Professional Documents
Culture Documents
Introduction
This report objective is to explain how a MATLAB GUI can be used to interact with Simulink, changing
block values and visualizing data, using as model a heating tank being controlled by a PID Controller.
1.1
The Model
The versality and easiness to create a Simulink Model is very appreciated. The idea is that the software
can be easily adapted to another model or objective.
The model used is shown on Figure 1.
The heating tank has four inputs: There is the temperature of the heat used (Heat Temp.) and its flow
rate (HeatInputFlowRate). Also, there is the input temperature of the water being heated (TankInputTemp) and its flow rate (TankInputFlowRate).
This lead to two outputs: The temperature of the heat after passing through the tank (HeatTempOutput)
and the temperature of the water inside the tank (TankTempOutput).
It is necessary to know the name of the parameter that we are going to change. This can be achieved
using the following code.
1
2
3
4
5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Conclusion
The objective of the project led to the understanding of how it is possible to interact Simulink and
GUI, as shown above. Therefore, the knowledge obtained through this software can be easily adapted
to another model or objective.