Event Output¶
EventOutput masks for different context options¶
The Event Output block allows creating and generating user-defined PMP events.
The event associated with the Event Output block becomes active when the value of the Active port changes to true and becomes inactive when the value of the Active port changes to false.
Checking the Enable context parameter enables the use of Context information for the associated event.
When enabled, additional input ports Context0, Context1, …, ContextN are available, of which the value is substituted for the corresponding value placeholders {0}, {1}, …, {N} in the context string when the event becomes active.
The additional input port labels can be renamed via Context Label 0, Context Label 1, …, Context Label N.
Up to four context values are supported.
During simulation, the Event Output acts as a Simulink terminator block and thus does not implement any functional behavior.
Parameters and Dialog Box¶
- Event name
- Name of the event associated with the Event Output block.The event name must be astring.
- Enable context
- Enable or disable context functionality. 
- Number of context values
- Determines the number of available context values and corresponding input ports.Up to four context values are supported.
- Context string
- The context message of the associated event. Context value placeholders {0}, {1}, …, {N} can be used to represent context values, which are substituted by the actual values on the context input ports when the event becomes active. 
- Context Label(s)
- Rename the label(s) of the corresponding input port. 
Data Type Support¶
The input port Active accepts only signals of type boolean.
The input ports Context0, Context1, …, ContextN accept signals of types double, single, uint32 or boolean.