建立基本的StateFlow模型
元智大學
機械系
陳傳生 博士
建立基本的Stateflow模型 2
課程目標
w了解Simulink/Stateflow環境內的術語.
w使用Graphic Edition建立stateflow diagram.
w建立包含Stateflow block的基本 Simulink 模型.
w建立Stateflow/Simulink之間的資料交換介面.
w模擬Stateflow/Simulink的執行.
Copyright 1984 - 1999 by The MathWorks, Inc.
建立基本的Stateflow模型 3
How Does Stateflow Work?
建立及模擬一個Simulink/Stateflow的模型將用到下列
工具
Dialog
Graphics
Boxes
Editor Debugger
Data Dictionary
Explorer
Simulink
Generated
Finder
Code
Copyright 1984 - 1999 by The MathWorks, Inc.
建立基本的Stateflow模型 4
術語Terminology
Stateflow Machine
The collection of all Stateflow diagrams
contained within a single Simulink model.
Stateflow Block
A block inside a Simulink diagram that
represents Stateflow. one-to-one
Stateflow Diagram or Chart
The Stateflow contents that are
contained in a single graphical window
and correspond to one Stateflow Block.
Copyright 1984 - 1999 by The MathWorks, Inc.
建立基本的Stateflow模型 5
Creating a New Simulink Model
and Stateflow Diagram
wType sfnew to open a new
Simulink model containing a
Stateflow block
wAlternatively, the St