
Build a Hybrid Model
2-39
7
Double-click the Get Attribute block. The Get Attribute tab of the dialog box
contains a table. On the first row of the table, set Name to Value. Click OK. The
block acquires an extra signal output port, Value.
8
From the Servers library, drag the N-Server block into the subsystem window.
9
Double-click the N-Server block. Set Service time from to Signal port t. Click
OK. The block acquires an extra signal input port, t.
10
From the SimEvents Sinks library, drag an Entity Sink block into the subsystem
window.
11
From the Gateways library, drag a Timed to Event Signal block and an Event to
Timed Signal block into the subsystem window.
12
Connect and place the blocks as shown in Network Delay Subsystem Contents.
13
Navigate to the top-level view of the model. Select View > Navigate > Up to
Parent. Save the model.
Complete the Hybrid Model
Before you connect the newly created Network Delay subsystem block to complete the
hybrid model, simplify the top-level view of the original ABS model by grouping related
blocks. When you complete this procedure, the model looks as shown in Top-Level View of
Completed Hybrid Model.
1
To select both the Desired Relative Slip and ABS Controller blocks of the model,
hold down the left mouse button and drag the mouse. As you drag the mouse, a box
appears. Drag this box across a portion of both blocks. When you release the mouse
button, the two blocks are highlighted in blue.
2
Right-click one of the two highlighted blocks and select Create Subsystem from
Selection. The software places both blocks inside a new Subsystem block.
3
For the newly created Subsystem block, place the cursor in the text box that is
beneath the block. type the new name, ABS Controller.
4
To select both the Brake System Dynamics and Sensor Relative Slip blocks of the
model, hold down the left mouse button and drag the mouse. As you drag the mouse,
a box appears. Drag this box across a portion of both blocks. When you release the
mouse button, the two blocks are highlighted in blue.
5
Right-click one of the two highlighted blocks and select Create Subsystem from
Selection. The software places both blocks inside a new Subsystem block.
6
For the newly created Subsystem block, place the cursor in the text box that is
beneath the block. type the new name, Brake System Dynamics.
Comentários a estes Manuais