Main Content

La traducción de esta página está obsoleta. 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

sfnewCreate Simulink model that contains an empty Stateflow block
sfrootRaíz de la jerarquía de Stateflow
sfclipboardClipboard object
sfgcoSelected objects in chart
Stateflow.findMatchingPortIdentify matching entry or exit port

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
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
getChildrenIdentify children of object
getParentIdentify parent of object
defaultTransitionsIdentify default transitions in specified object
innerTransitionsIdentify inner transitions with specified source
outerTransitionsIdentify outer transitions with specified source
sinkedTransitionsIdentify transitions with specified destination
sourcedTransitionsIdentify transitions with specified source

Acceder a las propiedades y modificarlas

dialogOpen properties dialog box
setImageInsert image into annotation
isCommentedDetermine if graphical object is commented out

Controlar la visualización

viewDisplay object in editing environment
highlightHighlight graphical object
fitToViewZoom in on graphical object
zoomInZoom in on Stateflow chart
zoomOutZoom out on Stateflow chart

Copiar y pegar objetos

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

Temas