simulink.event.InputWriteLost
Trigger event when input port value update overwrites unprocessed data
Since R2022b
Description
Use a simulink.event.InputWriteLost
object to configure a root
input port to trigger a schedule event each time a value update on the input port overwrites
unprocessed data. By configuring event triggers on input ports, you can model and simulate
quality of service effects.
You can trigger one or more model partitions in a rate-based system based on the flow of
data into an input port in the top model or on a model reference interface. The
EventTriggers
parameter of an Inport or In Bus
Element block stores the event trigger objects associated with the port. Each event
trigger maps an input event to the name of the schedule event it triggers. The schedule for
the model specifies the partition to execute in response to the schedule event. The table
summarizes the event triggers you can configure on input ports. For each input port, you can
configure one event trigger for each input event.
Input Event | Input Event Description | Event Trigger Object |
---|---|---|
Input write | Value for input port updates. | simulink.event.InputWrite |
Input write timeout | Input port value does not update within a specified amount of time. | simulink.event.InputWriteTimeout |
Input write lost | Input port value update overwrites unprocessed data. | simulink.event.InputWriteLost |
To configure the schedule for your model, use the Schedule Editor.
Creation
You can configure the event triggers for an input port programmatically or interactively.
When you configure an event trigger programmatically, create and configure the event trigger object yourself using the
simulink.event.InputWriteLost
function.When you configure an event trigger interactively by using the Block Parameters dialog box or the Property Inspector, the software creates and configures the event trigger object.
Description
creates the event trigger writeLost
= simulink.event.InputWriteLostwriteLost
that you can use to configure an
input port to trigger a specified schedule event each time an update of the input port
value overwrites unprocessed data.
Properties
Examples
Version History
Introduced in R2022b