| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Stateflow |
| Contents | Index |
• Finite State Machine Concepts
What Is a Finite State Machine?
Finite State Machine Representations
• Stateflow Charts and Simulink Models
The Simulink Model and the Stateflow Machine
Overview of Defining Stateflow Block Interfaces to Simulink Models
• Overview of Stateflow Objects
• Rules for Naming Stateflow Objects
• States
Transitions to and from Exclusive (OR) States
Transitions to and from Junctions
Transitions to and from Exclusive (OR) Superstates
• Boxes
• What Do Semantics Mean for Stateflow Charts?
• How Chart Constructs Interact During Execution
Modeling Guidelines for Charts with Events, States, and Transitions
• How Events Drive Chart Execution
Lifecycle of a Stateflow Chart
Execution of an Inactive Chart
• Process for Grouping and Executing Transitions
• Evaluation Order for Outgoing Transitions
What Does Ordering Mean for Outgoing Transitions?
Explicit Ordering of Outgoing Transitions
Implicit Ordering of Outgoing Transitions
What Happens When You Switch Between Explicit and Implicit Ordering
• Process for Entering, Executing, and Exiting States
• Working with States in Charts
Creating Substates and Superstates
Specifying Substate Decomposition
• Working with Transitions in Charts
Displaying the Context Menu for Objects
Specifying Colors and Fonts in the Stateflow Editor
Differentiating Syntax Elements in the Stateflow Action Language
Selecting and Deselecting Graphical Objects
Cutting and Pasting Graphical Objects
Viewing Stateflow Objects in the Model Explorer
Zooming a Chart Object Using the Stateflow API
Undoing and Redoing Editor Operations
Stateflow Chart Notes Dialog Box
• Modeling Logic Patterns and Iterative Loops Using Flow Graphs
Difference Between Flow Graphs and State Charts
• Creating Flow Graphs with the Pattern Wizard
How to Create Reusable Flow Graphs
Saving and Reusing Flow Graph Patterns
MAAB-Compliant Patterns from the Pattern Wizard
Try It: Creating and Reusing a Custom Pattern with the Pattern Wizard
• Drawing and Customizing Flow Graphs By Hand
• Building Mealy and Moore Charts
• Overview of Mealy and Moore Machines
Semantics of Mealy and Moore Machines
Running a Demo of Mealy and Moore Machines
The Default State Machine Type
Advantages of Mealy and Moore Charts Over Classic Stateflow Charts
Creating Mealy and Moore Charts
• Design Considerations for Mealy Charts
• Using History Junctions to Extend Charts and States
• Using Subcharts to Extend Charts
• Using Supertransitions to Extend Transitions
• Extending Transitions with Smart Behavior
• Using Graphical Functions to Extend Actions
Where to Use a Graphical Function
Workflow for Defining a Graphical Function
Managing Large Graphical Functions
Calling Graphical Functions in Stateflow Action Language
• Using Boxes to Extend Charts
• Setting Data Properties in the Data Dialog Box
What Is the Data Properties Dialog Box?
When to Use the Data Properties Dialog Box
Opening the Data Properties Dialog Box
Properties You Can Set in the General Pane
Properties You Can Set in the Value Attributes Pane
• Sharing Data with Simulink Models and the MATLAB Workspace
Sharing Input and Output Data with Simulink Models
Sharing Simulink Parameters with Stateflow Charts
• Sharing Global Data with Simulink Models
How Stateflow Charts Work with Local and Global Data Stores
Accessing Data Store Memory from a Stateflow Chart
Diagnostics for Sharing Data Between Stateflow Charts and Simulink Blocks
• Sharing Chart Data with External Modules
• Using Dot Notation to Identify Data in a Chart
• Resolving Data Properties from Simulink Signal Objects
• How Events Work in Stateflow Charts
• Setting Properties for an Event
• Using Input Events to Activate a Stateflow Chart
Using Edge Triggers to Activate a Stateflow Chart
• Using Output Events to Activate a Simulink Block
Using Edge Triggers to Activate a Simulink Block
Using Function Calls to Activate a Simulink Block
• Using Actions in Stateflow Charts
Boolean Symbols, true and false
Hexadecimal Notation Symbols, 0xFF
• Calling C Functions in Actions
• Using MATLAB Functions and Data in Actions
Using Data and Event Arguments in Actions
• Broadcasting Events in Actions
Example of Directed Event Broadcasting Using send
Example of Directed Event Broadcasting Using Qualified Event Names
• Using Temporal Logic in State Actions and Transitions
Rules for Using Temporal Logic Operators
Operators for Event-Based Temporal Logic
Examples of Event-Based Temporal Logic
Notations for Event-Based Temporal Logic
Operators for Absolute-Time Temporal Logic
Examples of Absolute-Time Temporal Logic
Running a Model That Demonstrates Absolute-Time Temporal Logic
Using Absolute-Time Temporal Logic in a Conditionally Executed Subsystem
• Saving and Restoring Simulations Using SimState
• Benefits of Using a Snapshot of the Simulation State
• Example of Dividing a Long Simulation into Segments
• Example of Testing a Unique Chart Configuration
• Example of Testing a Chart with Fault Detection Logic
Modifying SimState Values for One Actuator Failure
Testing the SimState for One Failure
Methods for Interacting with the SimState of a Chart
• Using Vectors and Matrices in Stateflow Charts
• How Vectors and Matrices Work in Stateflow Charts
• How to Define Vectors and Matrices
• Scalar Expansion for Converting Scalars to Nonscalars
• How to Assign and Access Values of Vectors and Matrices
Notation for Vectors and Matrices
Assigning and Accessing Values of Vectors
Assigning and Accessing Values of Matrices
Using Scalar Expansion to Assign Values of a Vector or Matrix
• Operations That Work with Vectors and Matrices in Stateflow Action Language
Rules for Using Vectors and Matrices in Stateflow Charts
• Best Practices for Vectors and Matrices in Stateflow Charts
• Using Variable-Size Data in Stateflow Charts
How Charts Implement Variable-Size Data
Enabling Support for Variable-Size Data
Declaring Variable-Size Inputs and Outputs
• Example: Computing Output Based on Size of Input Signal
• Using Enumerated Data in Stateflow Charts
Benefits of Using Enumerated Data in a Chart
Elements of an Enumerated Data Type Definition
• How to Define Enumerated Data in a Stateflow Chart
Ensuring That Changes in Data Type Definition Take Effect
• Notation for Referring to Enumerated Values in a Chart
Operations on Enumerated Data in Stateflow Action Language
• How to View Enumerated Values in a Stateflow Chart
Rules for Using Enumerated Data in a Stateflow Chart
Best Practices for Using Enumerated Data in a Stateflow Chart
• Modeling Continuous-Time Systems in Stateflow Charts
• About Continuous-Time Modeling
Workflow for Creating Continuous-Time Charts
Configuring a Stateflow Chart to Update in Continuous-Time
When to Enable Zero-Crossing Detection
• Defining Continuous-Time Variables
About Continuous-Time Variables
Rules for Using Continuous-Time Variables
• Modeling a Bouncing Ball in Continuous-Time
• Design Considerations for Continuous-Time Modeling in Stateflow Charts
• Using Fixed-Point Data in Stateflow Charts
• How Fixed-Point Data Works in Stateflow Charts
How Stateflow Software Defines Fixed-Point Data
Fixed-Point Context-Sensitive Constants
Tips for Using Fixed-Point Data
• Using Complex Data in Stateflow Charts
• How Complex Data Works in Stateflow Charts
• Operations on Complex Data in Stateflow Action Language
• Using Operators to Handle Complex Numbers
Rules for Using Complex Data in Stateflow Charts
• Tips for Using Complex Data in Stateflow Charts
Performing Math Function Operations with an Embedded MATLAB Function
Performing Complex Division with an Embedded MATLAB Function
• Implementing a Frame Synchronization Controller Using a Stateflow Chart
• Defining Interfaces to Simulink Models and the MATLAB Workspace
• Overview of Stateflow Block Interfaces
Setting the Stateflow Block Update Method
• Implementing Update Interfaces to Simulink Models
Defining a Triggered Stateflow Block
Defining a Sampled Stateflow Block
Defining an Inherited Stateflow Block
Defining a Continuous Stateflow Block
• Working with Structures and Bus Signals in Stateflow Charts
• Defining Stateflow Structures
• Language Options for Stateflow Truth Tables
Stateflow Classic Truth Tables
Selecting a Language for Stateflow Truth Tables
Migration from Stateflow Classic to Embedded MATLAB Truth Tables
Workflow for Using Truth Tables
• Building a Simulink Model with a Stateflow Truth Table
Opening a Truth Table for Editing
Entering Truth Table Conditions
Entering Truth Table Decisions
• Correcting Overspecified and Underspecified Truth Tables
• Checking Model Coverage for Truth Tables
• Using Embedded MATLAB Functions in Stateflow Charts
Introduction to Embedded MATLAB Functions
Building a Simulink Model with an Embedded MATLAB Function
Programming an Embedded MATLAB Function
• Debugging an Embedded MATLAB Function
Checking Embedded MATLAB Functions for Syntax Errors
• Model Coverage for an Embedded MATLAB Function
Types of Model Coverage in Embedded MATLAB Functions
• Working with Structures and Bus Signals in Embedded MATLAB Functions
Working with Enumerated Data in Embedded MATLAB Functions
Working with Variable-Size Data in Embedded MATLAB Functions
Enhancing Readability of Generated Code for Embedded MATLAB Functions
• Using Simulink Functions in Stateflow Charts
• When to Use a Simulink Function in a Stateflow Chart
Advantages of Using Simulink Functions in a Stateflow Chart
Benefits of Using a Simulink Function to Access Simulink Blocks
Benefits of Using a Simulink Function to Schedule Execution of Multiple Controllers
• How to Define a Simulink Function in a Stateflow Chart
• How a Simulink Function Binds to a State
Binding Behavior of a Simulink Function
Controlling Subsystem Variables When the Simulink Function Is Disabled
How a Simulink Function Behaves When Called from Multiple Sites
Rules for Using Simulink Functions in Stateflow Charts
Best Practices for Using Simulink Functions
• Choosing a Procedure to Simulate a Model
Integrating Custom C++ Code for Simulation
Integrating Custom C Code for Nonlibrary Charts for Simulation
• Choosing a Procedure to Generate Embeddable Code for a Model
• Procedures for Embeddable Code Generation
Integrating Custom C++ Code for Code Generation
Integrating Custom C Code for Nonlibrary Charts for Code Generation
Integrating Custom C Code for Library Charts for Code Generation
Integrating Custom C Code for All Charts for Code Generation
• Using the Command-Line API to Set Parameters for Simulation and Embeddable Code Generation
How to Set Parameters at the Command Line
Simulation Parameters for Nonlibrary Models
Simulation Parameters for Library Models
• Specifying Relative Paths for Custom Code
• Examples of Integrating Custom C Code in Nonlibrary Models
Accessing Examples of Custom C Code Integration
Example of Using Custom C Code to Define Global Constants
Example of Using Custom C Code to Define Global Constants, Variables, and Functions
• How to Build a Stateflow Custom Target
What Happens During the Target Building Process?
• Resolving Event, Data, and Function Symbols in Stateflow Action Language
• Error Messages When Parsing Charts and Generating Code
• Generated Code Files for Targets You Build
Folder Structure of Generated Files
Code Files for a Simulation Target
Code Files for an Embeddable Target
• Traceability of Stateflow Objects in Real-Time Workshop Generated Code
• Debugging and Testing Stateflow Charts
• Using the Stateflow Debugger
Opening the Stateflow Debugger
Setting Breakpoints for Debugging a Chart
Options for Error Checking in the Debugging Window
Starting Simulation in the Debugging Window
• Example of Debugging Run-Time Errors in a Chart
• Debugging State Inconsistencies in a Chart
• Debugging Conflicting Transitions in a Chart
• Debugging Data Range Violations in a Chart
• Debugging Cyclic Behavior in a Chart
Guidelines for Avoiding Unwanted Recursion in a Chart
• Watching Data Values with Debuggers
• Exploring and Modifying Charts
• Using the Model Explorer with Stateflow Objects
Viewing Stateflow Objects in the Model Explorer
Editing States or Charts in the Model Explorer
Adding Data and Events in the Model Explorer
Adding Custom Targets in the Model Explorer
Renaming Objects in the Model Explorer
Setting Properties for Stateflow Objects in the Model Explorer
Moving and Copying Data, Events, and Targets in the Model Explorer
Categories of Semantic Examples
• Transitions to and from Exclusive (OR) States Examples
Label Format for a State-to-State Transition Example
Transitioning from State to State with Events Example
Transitioning from a Substate to a Substate with Events Example
Condition and Transition Actions Example
Condition Actions in For-Loop Construct Example
Condition Actions to Broadcast Events to Parallel (AND) States Example
Default Transition in Exclusive (OR) Decomposition Example
Default Transition to a Junction Example
Processing Events with an Inner Transition in an Exclusive (OR) State Example
Processing Events with an Inner Transition to a Connective Junction Example
• Connective Junction Examples
Label Format for Transition Segments Example
If-Then-Else Decision Construct Example
Transitions from a Common Source to Multiple Destinations Example
Transitions from Multiple Sources to a Common Destination Example
Transitions from a Source to a Destination Based on a Common Event Example
Event Actions in a Superstate Example
• Overview of the Stateflow API
• Quick Start for the Stateflow API
• Accessing the Properties and Methods of Objects
• Displaying Properties and Methods
• Creating and Destroying API Objects
• Accessing Existing Stateflow Objects
About Stateflow Object Handles
Finding Objects and Properties
Finding Objects at Different Levels of Containment
Reference Table Column Descriptions
Embedded MATLAB Function Properties
• Blocks
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The MathWorks Web Site Resources |
|
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |
Store