| Contents | Index |
• Introduction to the Stateflow Product
What Does a Stateflow Chart Look Like?
How Stateflow Software Works with Simulink Software
Basic Tutorial for Modeling Event-Driven Systems
• The Stateflow Chart You Will Build
• Defining the Interface to the Simulink Model
• Defining the States for Modeling Each Mode of Operation
• Defining State Actions and Variables
• Defining Transitions Between States
• Triggering a Stateflow Chart
• Finite State Machine Concepts
• Stateflow Charts and Simulink Models
• What Do Semantics Mean for Stateflow Charts?
• How Chart Constructs Interact During Execution
Modeling Guidelines for Stateflow Charts
• How Events Drive Chart Execution
• Process for Grouping and Executing Transitions
• Evaluation Order for Outgoing Transitions
• Process for Entering, Executing, and Exiting States
• Basic Workflow for Building a State Chart
• Working with States in Charts
• Modeling Logic Patterns and Iterative Loops Using Flow Graphs
Difference Between Flow Graphs and State Charts
• Creating Flow Graphs with the Pattern Wizard
• Drawing and Customizing Flow Graphs By Hand
• Building Mealy and Moore Charts
• Overview of Mealy and Moore Machines
Creating Mealy and Moore Charts
• Design Considerations for Mealy Charts
• Design Considerations for Moore Charts
• Techniques for Streamlining Chart Design
• Recording State Activity with History Junctions
• Using Subcharts to Encapsulate Modal Logic
• Moving Between Different Levels of Hierarchy with Supertransitions
• Maintaining Transition Shapes with Smart Behavior
• Graphical Functions for Reusing Logic Patterns and Iterative Loops
• Setting Data Properties in the Data Dialog Box
• Sharing Inputs, Outputs, and Parameters with Simulink and the MATLAB Workspace
• Sharing Global Data with Multiple Charts
• Sharing Chart Data with External Modules
• Handling Integer Overflow for Chart Data
• 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
• Controlling States When Function-Call Inputs Reenable Charts
• Using Actions in Stateflow Charts
• Supported Action Types for States and Transitions
• Combining State Actions to Eliminate Redundant Code
• Supported Operations on Chart Data
• Supported Symbols in Actions
• Calling C Functions in Actions
• Calling Built-In MATLAB Functions and Accessing Workspace Data
Using Data and Event Arguments in Actions
• Broadcasting Events to Synchronize States
• Using Temporal Logic in State Actions and Transitions
• Making States Reusable with Atomic Subcharts
• Benefits of Using Atomic Subcharts in a Stateflow Chart
• Restrictions for Converting to Atomic Subcharts
• Converting to and from Atomic Subcharts
• Mapping Variables for Atomic Subcharts
• Generating Reusable Code for Unit Testing
• Reusing Utility Functions Across Multiple Models
Rules for Using Atomic Subcharts in Stateflow Charts
• Tutorial: Reusing a State Multiple Times in a Chart
• Tutorial: Reducing the Compilation Time of a Chart
• Tutorial: Dividing a Chart into Separate Units for Editing
• Saving and Restoring Simulations with SimState
• Benefits of Using a Snapshot of the Simulation State
• Dividing a Long Simulation into Segments
• Testing a Unique Chart Configuration
• Testing a Chart with Fault Detection and Redundant Logic
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
• 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
• 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 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
• 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
• Tutorial: Using Fixed-Point Chart Inputs
• 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
• Best Practices for Using Complex Data in Stateflow Charts
Detection of Valid Transmission Data with Frame Synchronization
• 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
• Creating Specialized Chart Libraries for Large-Scale Modeling
• Working with Structures and Bus Signals in Stateflow Charts
• Scheduling Execution of Simulink Subsystems
• Implementing Dynamic Test Vectors with Hierarchy and Parallelism
• Truth Table Functions for Decision-Making Logic
Why Use a Truth Table in a Stateflow Chart?
• Language Options for Stateflow Truth Tables
Workflow for Using Truth Tables
• Building a Model with a Stateflow Truth Table
• Correcting Overspecified and Underspecified Truth Tables
• Using MATLAB Functions in Stateflow Charts
What Is a MATLAB Function in a Stateflow Chart?
Why Use a MATLAB Function in a Stateflow Chart?
Where to Use a MATLAB Function
Example of a MATLAB Function in a Stateflow Chart
Building a Model with a MATLAB Function in a Chart
Programming a MATLAB Function in a Chart
• Debugging a MATLAB Function in a Chart
• Working with Structures and Bus Signals in MATLAB Functions
Working with Enumerated Data in MATLAB Functions
Working with Variable-Size Data in MATLAB Functions
Enhancing Readability of Generated Code for MATLAB Functions
• Using Simulink Functions in Stateflow Charts
Differences Between Simulink Functions and Function-Call Subsystems
• Why Use a Simulink Function in a Stateflow Chart?
Where to Use a Simulink Function
• How to Define a Simulink Function in a Stateflow Chart
• How a Simulink Function Binds to a State
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
• Choosing a Procedure to Generate Embeddable Code for a Model
• Procedures for Embeddable Code Generation
• Using Command-Line API to Set Simulation and Code Generation Parameters
• Specifying Relative Paths for Custom Code
• Examples of Integrating Custom C Code in Nonlibrary Models
• How to Build a Stateflow Custom Target
What Happens During the Target Building Process?
• Resolving Undefined Symbols in Your Chart
• Generated Code Files for Targets You Build
• Debugging and Testing Stateflow Charts
• Using the Stateflow Debugger
• Example of Debugging Run-Time Errors in a Chart
• Common Modeling Errors the Debugger Can Detect
Guidelines for Avoiding Unwanted Recursion in a Chart
• Watching Data Values During Simulation
• Changing Data Values During Simulation
• Exploring and Modifying Charts
Categories of Semantic Examples
• Transitions to and from Exclusive (OR) States Examples
• Connective Junction Examples
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
• Blocks
|
|
| MathWorks Web Site Resources |
|
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |