EventVariableDelay

When activated, this block programs an event, with a delay, on its output activation port. The value of the delay is given by the value of the regular input of the block at the time of activation.

    EventVariableDelay

Library

Activate/ActivationOperations

Description

When activated, the EventVariableDelay block programs an event, with a delay, on its output activation port. The value of the delay is given by the value of the regular input of the block at the time of activation. The block can also generate an initial event.

The output event can be reprogrammed before it is fired (this generates a warning). If the value of delay is negative, no event is programmed and if an event is already programmed, it is de-programmed. Initially, an event may programmed by the block.

One event is generated on the unique output event port if "Initial event firing time" is larger than or equal to zero, if not, no event is generated.

Parameters

EventVariableDelay_0

NameLabelDescriptionData TypeValid Values

initfir

Initial event firing time (<0 if absent)

Real scalar value. Time for the initial event firing.

Scalar

externalActivation

External activation

Specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is selected, an additional activation port is added to the block. By default, external activation is not selected.

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

activation

output

1

Port 2

activation

input

externalActivation

Port 3

explicit

input

1

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no

See Also