Products & Services Solutions Academia Support User Community Company

Learn more about SimEvents   

Schedule Timeout - Schedule timeout event for each entity

Library

Timing

Description

This block schedules a timeout event for each arriving entity. Timeout events enable you to limit the time that an entity spends on designated entity paths during the simulation. Topologically, this block designates a beginning of an entity path that is relevant to the time limit.

Characteristics of Timeout Event

The timeout event is on the event calendar and has these characteristics:

Occurrence of Timeout Event

If the timeout event occurs for a specific entity, then that entity attempts to depart from a TO entity output port of the storage block in which it resides. To configure a block so that it has a TO port, select the Enable TO port for timed-out entities parameter in the block's dialog box. If the timeout event occurs while the entity is in a block that has no TO port, then the Schedule Timeout block's If entity has no destination when timeout occurs parameter indicates whether the simulation halts with an error message, or discards the entity while issuing a warning.

To cancel a timeout event before it occurs, use the Cancel Timeout block. You cannot directly change the scheduled time or priority of a timeout event that is already on the event calendar. You can, however, cancel a timeout event and subsequently schedule a new one having the same timeout tag.

Ports

Entity Input Ports

LabelDescription
INPort for arriving entities.

Signal Input Ports

LabelDescription
tiTimeout interval for a newly arrived entity. You see this port only if you set Timeout interval from to Signal port ti.

Entity Output Ports

LabelDescription
OUTPort for entities whose timeout event the block has just scheduled.

Signal Output Ports

LabelDescriptionTime of Update When Statistic Is On
#dNumber of entities that have departed from this block since the start of the simulation.After entity departure

The initial output value, which is in effect from the start of the simulation until the first update by the block, is 0.

Dialog Box

Schedule Timeout Tab

Timeout tag

Name of the timeout to associate with each entity.

Timeout interval from

Determines whether the timeout interval is computed from a parameter in this dialog box, an input signal, or an attribute of the arriving entity.

Timeout interval

The length of time between an entity's arrival time and the scheduled timeout event for that entity. You see this field only if you set Timeout interval from to Dialog.

Attribute name

The name of the attribute whose value the block uses as the timeout interval for an entity. You see this field only if you set Timeout interval from to Attribute.

Timeout event priority

The priority of the timeout event, relative to other simultaneous events in the simulation.

If timeout is already scheduled

Behavior of the block if a timeout event with the specified timeout tag is already scheduled for the arriving entity.

If entity has no destination when timeout occurs

Behavior of the block if a timeout event occurs for an entity that resides in a block that has no visible TO entity output port.

Statistics Tab

These parameters determine whether certain ports produce data throughout the simulation, produce data only when you stop or pause the simulation, or are omitted from the block. For descriptions of the affected ports, see the preceding table, "Signal Output Ports".

Number of entities departed

Controls the presence and behavior of the signal output port labeled #d.

Examples

See Also

Cancel Timeout

Forcing Departures Using Timeouts

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

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