Download Stateflow User's Guide

Transcript
Event Inputs from Simulink
When you add an event input, a single Simulink trigger port is added to the top
of the Stateflow block.
Select the Trigger
The trigger defines how the Stateflow block’s input events are handled in the
context of their Simulink model. The Trigger type indicates what kind of
signal has meaning for the input event. The Trigger can have these values:
Keyword
Description
Either Edge
Either rising or falling edge trigger, where
the control signal changes either from 0 to a
nonzero value, from a negative value to a positive value, or from a positive value to a negative value.
Rising Edge
Rising edge trigger, where the control signal
changes from either from 0 to a positive value
or from a negative value to a positive value.
Falling Edge
Falling edge trigger, where the control signal
changes from either 0 to a negative value or
from a positive value to a negative value.
Function Call
Function call triggered.
Each Stateflow block can only have one overall trigger type. See “Determining
Overall Input Trigger Type” on page 3-18 for more information.
Apply the Changes
Click on the Apply button to save the properties. Click on the Close button to
save the properties and close the dialog box.
4-17