Page 856 - Mechatronics with Experiments
P. 856
842 MECHATRONICS
1 + Kp + 1
X_cmd – – DAC
P-Gain
2
X_fbk
3 Kv
V_fbk
V-Gain
Blocks are “grouped” to form a sub-system block,
showing only the input and output ports.
Select all blocks, Edit → Create SubSystem
1 X_cmd
X_cmd
2 X_fbk DAC 1
X_fbk DAC
3 V_fbk
V_fbk
PD control
Mask the sub-system–when double clicked, instead of
showing the details of the block (the first figure), it will bring
up a user interface which can be used to define the menu to
assign sub-system parameters.
Edit → Mask or Edit Mask
®
FIGURE A.14: Grouping and masking of Simulink blocks. This example shows the grouping
and masking for a PD control block diagram.