Sintaxis para estados y transiciones
Controle la ejecución del gráfico de Stateflow® especificando cuándo ocurren las transiciones entre estados y cuándo se ejecutan las acciones. Sincronice la ejecución de estados emitiendo eventos. Detecte los cambios en los valores de los datos y compruebe qué estados están activos durante la ejecución del gráfico.
Bloques
Sintaxis de Stateflow
Temas
- Differences Between MATLAB and C as Action Language Syntax
Compare the functionality of the chart action languages.
- Directrices para nombrar objetos de Stateflow
Palabras clave reservadas, restricciones de longitud de los nombres y limitaciones de nomenclatura.
- Eliminar código redundante combinando acciones de estado
Combine las acciones
entry
,during
yexit
en un estado. - Control Function-Call Subsystems by Using bind Actions
Bind a function-call output event to the activity of a state.
- Combinar transiciones e intersecciones para crear rutas ramificadas
Cree puntos de decisión en las rutas de transición.
- 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.
- Control Oscillations by Using the duration Operator
Simplify debouncing logic in charts that have transient signals.