Stateflow    

Stateflow API


The procedures and conceptual information in this chapter explain the basic operations of the Stateflow API (Application Programming Interface). It includes the following sections:
Overview of the Stateflow API
Introduces you to concepts you need to know to understand the Stateflow API and how to use it to create and edit Stateflow diagrams.
Quick Start for the Stateflow API
Step-by-step instructions for constructing a Stateflow diagram with the Stateflow API.
Accessing the Properties and Methods of Objects
Describes the conventions used in naming the properties and methods of Stateflow API objects and the rules for using them in commands.
Displaying Properties and Methods
Information on calling built-in methods for listing properties and methods for each object type.
Creating and Destroying API Objects
Information on creating and destroying any Stateflow object with the Stateflow API, and how to connect one object with another.
Accessing Existing Stateflow Objects
Create handles to any object in an existing Stateflow diagram and use them to manipulate actual Stateflow objects in a Stateflow diagram.
Copying Objects
Learn the copy and paste procedure for copying Stateflow objects from one environment to another.
Using the Editor Object
Access the Editor object for a Stateflow diagram to perform operations that are graphical only, such as changing fonts and colors.
Entering Multiline Labels
The Stateflow API provides two techniques to enter text with more than one line for the labels of states and transitions.
Creating Default Transitions
The Stateflow API provides two means for making default transitions.
Creating a MATLAB Script of API Commands
You can execute your API commands in a single MATLAB script.


  API Guide and Reference Overview of the Stateflow API