Syntax für Zustände und Übergänge
Steuern Sie die Ausführung Ihres Stateflow®-Diagramms, indem Sie angeben, wann Übergänge zwischen Zuständen stattfinden und wann Aktionen ausgeführt werden. Synchronisieren Sie die Ausführung von Zuständen durch das Übertragen von Ereignissen. Erkennen Sie Änderungen der Datenwerte und prüfen Sie, welche Zustände während der Diagrammausführung aktiv sind.
Blöcke
Stateflow Syntax
Themen
- Differences Between MATLAB and C as Action Language Syntax
Compare the functionality of the chart action languages.
- Anleitung zur Benennung von Stateflow-Objekten
Reservierte Schlüsselwörter, Beschränkungen der Namenslänge und Einschränkungen bei der Namensgebung.
- Eliminate Redundant Code by Combining State Actions
Combine
entry
,during
, andexit
actions in a state. - Control Function-Call Subsystems by Using bind Actions
Bind a function-call output event to the activity of a state.
- Combine Transitions and Junctions to Create Branching Paths
Create decision points in transition paths.
- Call Extrinsic MATLAB Functions in Stateflow Charts
Access MATLAB® functions that are not supported for code generation.
- Access MATLAB Functions and Workspace Data in C Charts
Call built-in MATLAB functions by using the
ml
operator. - Call C Library Functions in C Charts
Access C functions in state and transition labels.
- Check State Activity by Using the in Operator
Determine if a state is active during chart execution.
- Detect Changes in Data and Expression Values
Define chart behavior when data and expressions change value between time steps.
- Control Chart Execution by Using Temporal Logic
Use event-based and absolute-time temporal logic operators.
- Control Chart Behavior by Using Implicit Events
Trigger chart actions by changes in data values and state activity.
- Reduce Transient Signals by Using Debouncing Logic
Design state machines that are resilient to rapidly changing signals.
- Control Oscillations by Using the duration Operator
Simplify debouncing logic in charts that have transient signals.