
Build a Discrete-Event Model
2-13
Connect Blocks
Now that the model window for dd1 contains blocks that represent the key processes,
connect the blocks as shown in the following graphic.
To connect blocks, do one of the following:
• With the mouse, drag from the output port of the source block to the input port of the
destination block.
• Select the source block. Ctrl+click the destination block.
In both cases, SimEvents connects the source block to the destination block. If necessary,
the software also routes the connecting line around intervening blocks or lines.
Note: The following section about inserting blocks is general information that does not
apply to the dd1 model. When you have connected the blocks as shown in the preceding
graphic, the dd1 model is ready for simulation as described in “Run the Simulation” on
page 2-13.
Run the Simulation
Save the dd1 model you have created. Then start the simulation by choosing Simulation
> Run from the model window's menu.
Resolve Solver Warnings
When you first simulate the model in this example, you will see warning messages in
the MATLAB Command Window about continuous states and the maximum step size.
These messages appear because certain default parameters for a Simulink model are
Komentáře k této Příručce