Block port handles are structure variables that contain the elements LConn and RConn. These elements represent the block left and right connection ports.
Port indices, such as RConn(1), correspond to the top-down order of connection ports when you look at the block in the Simulink Editor. The autorouting feature routes lines around any intervening blocks or other lines, as needed.
Note: If you want to connect blocks that are inside a subsystem, use the full path to the subsystem as the first argument of the add_line function:
add_line('MyModel/MySubsystem',Block1PortHandles.RConn(1),... )
Конец раздела Build a Discrete-Event Model директории R2013a>SimEvents>Getting Started with SimEvents.
Продолжение раздела Getting Started with SimEvents директории R2013a>SimEvents.