Main Content

La traducción de esta página aún no se ha actualizado a la versión más reciente. Haga clic aquí para ver la última versión en inglés.

Interfaz programática de Stateflow

Cree y modifique elementos del gráfico en la línea de comandos de MATLAB®

Cree y edite gráficos de Stateflow® programáticamente. Añada nuevos objetos al gráfico, acceda a las propiedades y edítelas, establezca posiciones, copie y pegue objetos y modifique el nivel de ampliación del editor de Stateflow.

Funciones

expandir todo

sfnewCrear un modelo de Simulink que contenga un bloque de Stateflow vacío
sfrootRaíz de la jerarquía de Stateflow
sfclipboardClipboard object
sfgcoSelected objects in chart
Stateflow.findMatchingPortIdentify matching entry or exit port (desde R2021b)

Objetos

expandir todo

Objetos de máquina, gráfico y bloque

Stateflow.ChartGraphical representation of a finite state machine
Stateflow.StateTransitionTableChartTabular representation of state machine for modal logic
Stateflow.TruthTableChartTabular representation of state machine for decision logic
Stateflow.EMChartStateflow interface to MATLAB Function block
Stateflow.MachineContainer for Stateflow blocks in a Simulink model

Objetos gráficos

Stateflow.AnnotationAnnotation in chart, state, box, or function
Stateflow.AtomicBoxAtomic box in chart, state, box, or function
Stateflow.AtomicSubchartAtomic subchart in chart, state, or box
Stateflow.BoxBox in chart, state, box, or function
Stateflow.EMFunctionMATLAB function in chart, state, box, or function
Stateflow.FunctionGraphical function in chart, state, box, or function
Stateflow.JunctionConnective or history junction in chart, state, box, or function
Stateflow.PortEntry or exit port in state or atomic subchart (desde R2021b)
Stateflow.SimulinkBasedStateSimulink based state in chart, state, or box
Stateflow.SLFunctionSimulink function in chart, state, box, or function
Stateflow.StateState in chart, state, or box
Stateflow.TransitionTransition in chart, state, box, or function
Stateflow.TruthTableTruth table function in chart, state, box, or function

Objetos no gráficos

Stateflow.DataData in chart, state, box, or function
Stateflow.EventEvent in chart, state, or box
Stateflow.MessageMessage in chart, state, or box

Objetos de portapapeles y de editor

Stateflow.ClipboardClipboard to copy and paste Stateflow objects
Stateflow.EditorGraphical aspects of a chart or state transition table

Funciones de objeto

expandir todo

Navegar por la jerarquía

findIdentifique objetos especificados en la jerarquía
getChildrenIdentificar los elementos secundarios de un objeto
getParentIdentificar el elemento principal de un objeto
getReferencesIdentify references to symbol name
commentedByIdentify objects that implicitly comment out a graphical object
defaultTransitionsIdentify default transitions in specified object
innerTransitionsIdentify inner transitions with specified source
outerTransitionsIdentify outgoing transitions with specified source
sinkedTransitionsIdentify transitions with specified destination
sourcedTransitionsIdentify transitions with specified source

Acceder a las propiedades y modificarlas

dialogAbrir el cuadro de diálogo de propiedades
exportAsStructExport contents of state transition table as structure array
renameReferencesRename symbol and update references to symbol name
setImageInsert image into annotation

Controlar la visualización

viewMostrar un objeto en un entorno de edición
highlightResalte un objeto gráfico
fitToViewAumentar un objeto gráfico
zoomInZoom in on Stateflow chart
zoomOutZoom out on Stateflow chart

Asignar símbolos en subgráficos atómicos y estados basados en Simulink

getMappingForSymbolGet mapping for symbol in atomic subchart, atomic box, or Simulink based state
setMappingForSymbolSet mapping for symbol in atomic subchart, atomic box, or Simulink based state
clearMappingForSymbolClear mapping for symbol in atomic subchart, atomic box, or Simulink based state
disableMappingForSymbolDisable input event in atomic subchart or box

Copiar y pegar objetos

copyCopy array of objects to clipboard
pasteToPaste objects in clipboard to specified container object

Convertir gráficos y tablas de transición de estados

convertToChartConvert state transition table to Stateflow chart
convertToSTTConvert Stateflow chart to state transition table

Temas