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.
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
Name | Label | Description | Data Type | Valid 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 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | activation | output | 1 | |
Port 2 | activation | input | externalActivation | |
Port 3 | explicit | input | 1 |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | |
direct-feedthrough | yes | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |