Role of Discrete Event Subsystems in SimEvents Models

Overview of Discrete Event Subsystems

Given the questions raised in Timing Issues in SimEvents Models about the response of time-based blocks to events, this section gives an overview of discrete event subsystems and describes how you can use them to ensure appropriate simulation timing. A discrete event subsystem:

Purpose of Discrete Event Subsystems

The purpose of a discrete event subsystem is to call the blocks in the subsystem at the exact time of each qualifying event and not at times suggested by the time-based simulation clock. This is an important change in the semantics of the model, not merely an optimization.

Processing Sequence for Events in Discrete Event Subsystems

When creating a discrete event subsystem, you might need to confirm or manipulate the processing sequence for two or more events, such as:

Consider the next schematic, which involves a discrete event subsystem. Suppose an entity departure from Block A, an entity arrival at Block C, and updates in all of the signals occur at a given value of the simulation clock.

Typically, the goal is to execute the subsystem:

For details on processing sequences, see Interleaving of Block Operations, Processing Sequence for Simultaneous Events, and Managing Simultaneous Events.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS