所需积分/C币:17 2016-11-07 09:36:59 6.52MB PDF
收藏 收藏

Contents P reface System Requirements Using Stateflow on a Laptop Computer XXIII Related products XXIV USing This Guide XXV Typographical Conventions XXVII Installing Stateflow Starting Stateflow Stateflow Overview ·· 1-2 What Is Stateflow 1-2 Examples of Stateflow Applications Stateflow Components Stateflow Works with Simulink and Real-Time Workshop.. 1-4 Stateflow and Simulink design approaches 1-4 Quick Start 1-6 Look at the power switch model 1-6 Create a simulink model 1-8 Create a Stateflow Diagram .............. 1-10 Define input events ,,,1-13 Define the stateflow interface 1-14 Define simulink parameters .1-15 Parse the Stateflow Diagram 1-16 Run a simulation 1-17 Debug the Model During Simulation .......... 1-19 Save the model ,1-20 How Stateflow Works 2 Finite State Machine Concepts What is a finite state machine? 2-2 Finite State Machine Representations ..2-2 Stateflow Representations 2-3 Notatio 2-8 Semantics References 2 Stateflow and simulink Defining Stateflow Interfaces to Simulink,'.B The Simulink model and the Stateflow machine 25 Stateflow Data Dictionary of Objects .2-6 Contents Stateflow Diagram Objects 2-9 Graphical Objects Example Diagram 2-10 Stat 2-10 Transitions 2-12 Default Transitions ,,,,,2-13 Events ,2-14 Data 2-1 Conditions 2-15 History Junction 2-16 actions ...2-17 Connective Junctions 2-18 Stateflow Hierarchy of objects ...,2-20 Exploring a real-World stateflow application...... 2-21 Overview of the“ fuel rate controller”Mode 2-21 Control logic of the "fuel rate controller"Model 2-24 Simulating the"fuel rate controller" Model 227 Stateflow notation 3 Overview of Stateflow Objects 3-3 Graphical objects Nongraphical Objects 3-4 The Data Dictionary 35 How Hierarchy Is Represented 3-5 States...,,,,,, 垂垂垂 .38 What is a state? 3-8 State Decomposition 3-9 State label notation 3-10 Transitions 3-14 What is a transition? 3-14 Transition label notation 3-15 Valid Transitions....,. 3-17 Transition Connections..……… ,,,,3-18 Transitions to and from Exclusive(OR) States ,3-18 Transitions to and from Junctions 3-1 Transitions to and from Exclusive(OR) Superstates....3-19 Transitions to and from substates .,,......,.,.3-20 Self-Loop transitions 3-22 Inner transitions 3-22 Default Transitions 3-26 What is a default Transition? 326 Drawing default Transitions ,,,,3-26 Labeling Default Transitions a27 Default Transition Examples 3-27 Connective Junctions ..,,,,,,,,,,.,,,,,331 What is a junction 9-1 Flow Diagram Notation with Connective Junctions .... 3-32 History Junctions What Is a History Junction? ··· ,,,,3-38 History Junctions and Inner transitions 3-39 Boxes Graphical functions 3-41 Action Language 3 What Is action language 3-42 Action Language Categories Example 1 3-4 Action Language notation 3-43 Action Language semantics 3-44 Stateflow semantics 4 Executing an event 4-3 Sources for Stateflow Events 4-8 Processing Events 4-4 Executing a Chart 45 Executing an Inactive Chart...............4-5 Executing an Active Chart 45 Executing a Transition 4-6 Transition Flow Graph Types 4-6 Executing a Set of Flow graphs 垂·b 47 Ordering Single Source Transitions 4-8 Executing a State 4-13 Entering a State 413 Executing an Active State 415 Exiting an Active State........ 4-15 State Execution Example 4-16 Early return Logic for Event Broadcasts 4-18 Semantic Examples 4-21 Transitions to and from Exclusive (OR)States Examples 4-23 Label Format for a State-to-State Transition Example.... 4-23 Transitioning from State to State with Events Examp 4-24 Transitioning from a Substate to a Substate with Events Example 4-27 Condition Action Examples ,,,,,,,,,,,,,,,,,,,429 Condition Action Example 429 Condition and Transition Actions Example 4-31 Condition Actions in For Loop Construct Example Condition actions to broadcast Events to Parallel(and) states example 432 Cyclic Behavior to Avoid with Condition Actions Example..4-33 Default Transition Examples..….…4-35 Default Transition in Exclusive(OR) Decomposition Example 4-35 Default Transition to a Junction Example......... 4-36 Default Transition and a History Junction Example 4-7 Labeled Default Transitions Example .......... 4-39 Inner Transition Examples ...4-41 Processing Events with an Inner Transition in an Exclusive(OR) State Example 4-41 Processing Events with an Inner Transition to a Connective Junction Example 4-45 Inner Transition to a History unction Example 4-48 Connective Junction Examples 450 Label Format for Transition Segments Example...........4-50 If-Then-Else Decision Construct Example 451 Self-Loop Transition Example..…… For Loop construct Example 454 Flow Diagram Notation Example 4-55 Transitions from a Common Source to Multiple Destinations Example 4-57 Transitions from Multiple sources to a on destination exa 459 Transitions from a Source to a destination based on ommon event example 460 Backtracking Behavior in Flow Graphs Example 4-61 Event Actions in a Superstate Example ..,4-63 Parallel (AND) State Examples 4-65 Event Broadcast State Action Example 4-65 Event broadcast Transition action with a Event Broadcast Condition Action Exampe ested Event broadcast Example 4-69 4-72 Directed Event Broadcasting Examples.........4-77 Directed Event Broadcast Using send Example 477 Directed Event Broadcasting Using Qualified Event Names Example 479 vI Contents Working with Charts 5 Creating a Stateflow Chart 5 Using the stateflow Editor Stateflow Diagram Editor Window ··垂 5-6 Drawing Objects 58 Displaying the Context Menu for Objects 5 Specifying Colors and Fonts 5-10 Selecting and Deselecting Objects............ 5-13 Cutting and Pasting Objects 5-13 Copying objects ········ 5-14 Editing Object labels 5-14 Viewing data and Events from the editor 5-15 Zooming a Diagram 5-15 Undoing and redoing editor Operations ......... 5-16 Using States in Stateflow Charts ........... 5-18 Creating a State ·4 5-18 Moving and Resizing states 5-19 Creating Substates 5-20 romping 520 Specifying Substate Decomposition ..5-21 Specifying Activation Order for Parallel States 521 Changing State Properties .5-22 Labeling States ............,... 523 Outputting State Activity to Simulink 5-26 USing Transitions in Stateflow Charts Creating a transitic 528 Creating Straight Transitions Labeling transitions 5-30 Moving Transitions ,,,,,,,,,,,,,,,,,,,,,,5-81 Changing Transition Arrowhead Size 5-33 Creating Self-Loop Transitions.......... 5-38 Creating default Transitions 5-34 Setting Smart Behavior in Transitions 5-84 What smart Transitions do ,,,,,,,,,,,..,,5-35 What nonsmart transitions do 5-42 Changing Transition Properties .5-44 Using boxes in Stateflow Charts 5-47 Using Graphical Functions in Stateflow Charts..... 5-48 Creating a graphical function ··· 5-48 Calling Graphical Functions 5-53 Exporting Graphical Functions 5-5 Specifying Graphical Function Properties ....,,,,5-54 Using Junctions in Stateflow Charts..........5-57 Creating a Junction 557 Changing size 5-58 Moving a Junction · 5-58 Editing Junction Properties ,,,,,,,,,,,,5-58 Using Notes in Stateflow Charts............ 5-61 Creating notes....................5-61 Editing Existing Notes ....,.5-62 Changing note Font and color 5-62 Moving notes Deleting Notes Contents

试读 127P Stateflow系统建模
立即下载 低至0.43元/次 身份认证VIP会员低至7折
    关注 私信 TA的资源
    Stateflow系统建模 17积分/C币 立即下载


    17积分/C币 立即下载 >