Discrete Event Inport - Input port for Discrete Event Subsystem block

Library

SimEvents Ports and Subsystems

Description

Discrete Event Inport blocks are the links from outside a discrete event subsystem into the subsystem. The application executes the subsystem when at least one of the Discrete Event Inport blocks within the subsystem detects a qualifying signal-based event. If the signal corresponding to this block is a nonscalar array, the block detects a single qualifying event if any of the positions in the array has a qualifying event; for example, a value change from [1 2 3] to [1 5 6] represents one event, not two events. If N distinct qualifying events occur at the same time at distinct Discrete Event Inport blocks or at distinct sample time hits of a single Discrete Event Inport block, then the subsystem executes N times and updates its output signals N times.

By default, the names of Discrete Event Inport blocks appear in the subsystem window as Din, Din1, Din2, etc. A discrete event inport represents a real or complex sample-based signal of type double and any dimension.

Copying and pasting Discrete Event Inport blocks is supported, but duplicating them is not.

To create a subsystem using the Discrete Event Subsystem block, see Setting Up Signal-Based Discrete Event Subsystems.

Dialog Box

Execute subsystem upon signal-based events

If you select this option, the application executes the subsystem when a qualifying signal-based event occurs in the signal corresponding to this inport block. If you clear this option, the subsystem reads the signal upon execution but does not respond to its events.

Type of signal-based event

Determines the type of event that is a qualifying event in the signal corresponding to this inport block. If the signal is complex, you must select Sample time hit. This field appears only if you select Execute subsystem upon signal-based events.

Type of change in signal value, Trigger type

The type of change in the control signal's value, or the type of trigger, that further restricts the event type specified in Type of signal-based event. This field appears only if you set Type of signal-based event to Change in signal or Trigger.

Resolve simultaneous signal updates according to event priority

Select this option to control the sequencing of the subsystem's execution event in response to updates in the signal corresponding to this inport block, relative to other simultaneous events in the simulation. If you do not select this option, the application executes the subsystem immediately upon detecting the signal-based event that causes it. For details, see Choosing How to Resolve Simultaneous Signal Updates.

Event priority

The priority of the subsystem's execution event (in response to updates in the signal corresponding to this inport block), relative to other simultaneous events in the simulation. For details, see Specifying Event Priorities to Resolve Simultaneous Signal Updates. This field appears only if you select Resolve simultaneous signal updates according to event priority.

Examples

See Examples Using Discrete Event Subsystem Blocks.

See Also

Discrete Event Subsystem, Discrete Event Outport

Controlling Timing with Subsystems

  


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