An Introduction to Using Simulink



Yüklə 291,42 Kb.
Pdf görüntüsü
səhifə5/27
tarix19.10.2023
ölçüsü291,42 Kb.
#157119
1   2   3   4   5   6   7   8   9   ...   27
simulink introduction

Block Settings 
Each block has its own settings in Block Parameters and Block Properties
 
 
 
Block Parameters
 
 
Double click on a block to open Block Parameters, where 
you change the settings for that specific block.
e.g. In a Saturation Block, you can set the upper and lower 
limit.
Block Properties 
Right click and select “Properties…” to open the Block Properties. This contains settings to do with 
how the block works as part of the larger model.
You can change what information is displayed 
about the block in the Block Annotation tab. 
For properties to be displayed under a block 
in your model, move properties from the left 
to the right by using the double arrow (>>). 
You can also add your own text around the 
various %< Properties> 
% 
x0 = % m 
The example above shows how to display the block type and initial condition to 
under an Integration Block. 
Simulink Models & MATLAB Variables 
Simulink blocks can contain MATLAB variables. These variables need to be defined in the MATLAB 
workspace before you run the Simulink model, otherwise an error will state there is an undefined 
function or variable. Below 
c
and 
zeta
, in the gain block, are defined in the MATLAB workspace. 
It is good practice to design a MATLAB script that sets up all the parameters needed in your model. 
It is easier to change a variable in a script than to open many block parameter menus in Simulink. 
It allows you to set up loops to run a simulation for many values of 
c
for example (see page 17). 



Model Annotation 
 
Text and Image Annotation 
You can double click anywhere on the background of 
your model and type a comment. Pressing Enter will 
select the “Create Annotation” option of the quick 
menu.
You can also use the 
shortcuts 
on the left to bring up the annotation tool. There are 
many formatting options. You can insert 

Text and images 

Greek letters: use backslash (e.g. \alpha for 
𝛼
).

TeX typesetting: Right click text box, select Properties… and tick Enable TeX Commands. 

Yüklə 291,42 Kb.

Dostları ilə paylaş:
1   2   3   4   5   6   7   8   9   ...   27




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©www.azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin