没有合适的资源?快使用搜索试试~ 我知道了~
MATLABSimulink建模标准协议第四版(下)
需积分: 5 1 下载量 108 浏览量
2023-07-26
21:25:56
上传
评论
收藏 5.59MB PDF 举报
温馨提示
试读
175页
MATLABSimulink建模标准协议第四版(下)
资源推荐
资源详情
资源评论
© Copyright 2013JMAAB. All rights reserved.
1
CONTROL ALGORITHM MODELING
GUIDELINES USING MATLAB
®
,
Simulink
®
, and Stateflow
®
MATLAB
®
, Simulink
®
, 和 Stateflow
®
控制算
法建模指南
第二部分
4.01 版(中英对照版)
(2017 年 8 月 1 日修正)
© Copyright 2013JMAAB. All rights reserved.
2
TABLE OF CONTENTS 目录
CONTROL ALGORITHM MODELING GUIDELINES USING MATLAB
®
, SIMULINK
®
,
AND STATEFLOW
®
MATLAB
®
, SIMULINK
®
, 和 STATEFLOW
®
控制算法建模指南
5. STATEFLOW 8
5.1. Stateflow variable settings /Stateflow 变量设置 8
5.1.1. db_0123: Stateflow port names/ Stateflow 端口名称 8
5.1.2. jc_0700: Unused data in Stateflow block 状态流模块中未使用的数据 9
5.1.3. db_0122: Stateflow and Simulink interface signals and parameters /Stateflow 和 Simulink 接
口信号和参数 10
5.1.4. db_0125: Scope of internal signals and local auxiliary variables 内部信号和局部辅助变量的范
围 11
5.1.5. jc_0701: Usable numbers in first index 第一索引中可使用的数字 13
5.1.6. jc_0702: Stateflow parameters and constants 状态流的参数和常量 14
5.1.7. jm_0011: Pointers in Stateflow 状态流中的指针 14
5.2. Basic appearance of state transition 状态迁移的基本外观 16
5.2.1. db_0129: Stateflow transition appearance 状态流迁移外观 16
5.2.2. db_0137: States in state machines 状态机中的状态 17
5.2.3. jc_0711: Division in Stateflow 状态流中的除法 18
5.2.4. jc_0531: Placement of the default transition 缺省状态迁移的布置 18
5.2.5. jc_0712: Execution timing for default transition path 缺省状态迁移路径的执行时间 21
5.2.6. na_0038: Levels in Stateflow charts 状态流图中的层级 22
5.2.7. na_0040: Number of states per container 每个图框中状态的数量 23
5.2.8. jc_0720: Guideline for using subcharting 子图使用指导规则 24
5.2.9. jc_0721: Guidelines for using parallel states 并行状态使用指导规则 25
5.2.10. jc_0722: Guidelines for setting local variables in parallel states 并行状态中局部变量设置指导
规则 27
5.2.11. jc_0723: Prohibited direct transition from external state to child state 禁止从外部状态向子状
态直接迁移。 27
5.3. Description of state label 状态标签的描述 28
5.3.1. jc_0730: Independence of state name in charts 状态流图中状态名称的独立性 28
5.3.2. jc_0731: Slash (/) in the state name 状态名称中的斜线(/) 31
5.3.3. jc_0732 :Distinction between state name and data item name 状态名称和数据项名称的区别
32
5.3.4. jc_0733: Order of state action types 状态动作类型的顺序 33
5.3.5. jc_0734: Number of state action types 状态动作类型的数量 33
5.3.6. jc_0740: Usage restrictions of action type exit 动作类型 exit 的使用限制 34
5.3.7. jc_0501: Format of entries in a State block 状态模块中条目的格式 35
5.3.8. jc_0735: Semicolons in state label 状态标签中的分号 36
5.3.9. jc_0736: Uniform indentations in Stateflow blocks 状态流模块中一致的缩进 37
5.3.10. jc_0737: Uniform spaces before and after operators 运算符前后一致的空格 39
5.3.11. jc_0738: Guidelines for writing comments in state actions 状态动作中注释编写指导规则 41
5.3.12. jc_0739: Guidelines for describing texts inside states 状态中描述文本的指导规则 42
5.3.13. jc_0741: Timing to update the variables used in the state's transition conditions 更新状态迁
移条件中使用的变量的时间 44
© Copyright 2013JMAAB. All rights reserved.
3
5.4. Conditions and conditional actions 条件和条件动作 45
5.4.1. jc_0742: Guidelines for writing Boolean operations in condition labels 条件标签中布尔运算编
写指导规则 45
5.4.2. jc_0770: Placement of conditional statements and action statements 条件语句和动作语句的布
置 48
5.4.3. jc_0771: Placement of comments in transition lines 迁移线中注释的布置 49
5.4.4. jc_0772: Execution order and transition conditions of transition lines 迁移线的执行顺序和迁移
条件 49
5.4.5. jc_0752: Parentheses of condition actions 条件动作的括号 51
5.4.6. jc_0743: Guidelines for writing condition actions 条件动作编写指导规则 51
5.5. State transition 状态迁移 53
5.5.1. jc_0750: Guidelines for drawing transition lines in Stateflow 状态流中迁移线绘制指导规则 53
5.5.2. jc_0751 : Backtracking prevention in state transition 预防状态迁移中的回溯 54
5.5.3. jc_0754: Transition actions in Stateflow 状态流中的迁移动作 58
5.5.4. jc_0753: Condition actions and transition actions in Stateflow 状态流中的条件动作和迁移动作
59
5.5.5. db_0151: State machine patterns for transition actions 迁移动作的状态机模式 60
5.5.6. na_0013: Comparison operation in Stateflow 状态流中的比较运算 61
5.5.7. jc_0481: Use of hard equality comparisons for floating point numbers in Stateflow 状态流中浮
点数严格相等比较的使用 62
5.5.8. na_0001: Bitwise Stateflow operators 状态流逐位运算符 63
5.5.9. jc_0655: Prohibited comparison operation of logical type signal in Stateflow 状态流中禁用的
逻辑类信号的比较运算 64
5.5.10. jc_0451: Use of unary minus on unsigned integers in Stateflow 状态流中无符号整数上一元负
号的使用 67
5.5.11. jc_0755: Guidelines for use of increments/decrements 增量/减量的使用指导规则 67
5.5.12. jc_0756: Prohibited use of operation expressions in array indexes 数组下标中禁用的运算表达
式 68
5.5.13. jc_0757: Guidelines for describing condition expressions 条件表达式描述指导规则 69
5.5.14. jc_0491: Reuse of variables within a single Stateflow scope 单个状态流范围内变量的重新使用
69
5.5.15. jc_0521: Use of the return value from graphical functions 图形函数返回值的使用 72
5.6. Internal transition of the state transition 状态迁移的内部迁移 72
5.6.1. jc_0760: Starting point of internal transition in Stateflow 状态流中内部迁移的起点 72
5.6.2. jc_0762: Prohibited combination of state action and Flow Chart 禁止状态动作和流程图的组合
74
5.6.3. jc_0763: Usage restrictions of multiple internal transitions 多个内部迁移的使用限制 75
5.6.4. jc_0761: Statement method when using multiple internal transitions 使用多个内部迁移时的陈
述方法 77
5.7. Flow Chart foundation 流程图基础 78
5.7.1. db_0132: Transitions in Flow Charts 流程图中的迁移 78
5.7.2. db_0134: Flow Chart patterns for If constructs/ If 结构的流程图模式 79
5.7.3. db_0159: Flowchart patterns for case constructs/ case 结构的流程图模式 80
5.7.4. db_0135: Flow Chart patterns for loop constructs 循环结构的流程图模式 82
5.7.5. jc_0773: Unconditional transition of a flow chart 流程图的无条件迁移 83
5.8. Flow Chart details 流程图详细说明 85
5.8.1. jc_0774: Comments on unconditional transition which has no process 没有过程的无条件迁移的
注释 85
5.8.2. jc_0511: Setting the return value from a graphical function 设置一个图形函数的返回值 86
5.8.3. jc_0775: Number of terminal junctions in Flow Charts 流程图中终端交汇点的数量 88
© Copyright 2013JMAAB. All rights reserved.
4
5.8.4. jc_0776: Number of inputs to the terminal junction of Flow Charts 流程图终端交汇点输入的数
量 89
5.9. Event 事件 90
5.9.1. db_0126: Scope of events 事件的范围 90
5.9.2. jc_0780: Usage restrictions of events 事件的使用限制 90
5.9.3. jc_0781: Function Call from Stateflow 来自 Stateflow 的函数调用 91
5.9.4. jm_0012: Event broadcasts 事件广播 92
5.10. Functions within Stateflow 状态流中的函数 93
5.10.1. na_0041: Selection of function type 函数类型的选择 93
5.10.2. na_0042: Location of functions 函数的位置 94
5.10.3. na_0039: Use of Simulink in Stateflow charts/ Stateflow 图中 Simulink 的使用 95
5.10.4. db_0127: MATLAB commands in Stateflow 状态流中的 MATLAB 命令 96
6. MISCELLANEOUS: VARIANTS, ENUMERATED TYPE, MATLAB FUNCTIONS
其它:变种、枚举类型、MATLAB 函数 98
6.1. Variant Subsystem 变种子系统 98
6.1.1. na_0037: Use of single variable variant conditionals 单个变量变种条件的使用 98
6.1.2. na_0020: Number of inputs to variant subsystems 变种子系统输入的数量 99
6.1.3. na_0036: Default variant 缺省变种 99
6.2. Enumerated type data 枚举类型数据 100
6.2.1. na_0033: Enumerated Types Usage 枚举类型用法 100
6.2.2. na_0031: Definition of default enumerated value 缺省枚举值的定义 101
6.3. MATLAB functions/MATLAB 函数 103
6.3.1. na_0018: Number of nested if/else and case statement 嵌套的 if/else 和 case 语句的数量 103
6.3.2. na_0025: MATLAB function header/MATLAB 函数的头部 103
6.3.3. na_0034: MATLAB Function block input/output settings/MATLAB Function 模块输入/输入设
置 104
6.3.4. na_0024: Global variable 全局变量 105
6.3.5. na_0022: Recommended patterns for Switch / Case statements 建议的 Switch /Case 语句的模
式 106
6.3.6. na_0016: Source lines of MATLAB Functions /MATLAB 函数的源代码行 107
6.3.7. na_0017: Number of called function levels 被调用函数层的数量 107
6.3.8. na_0021: Strings 字符串 108
7. BASIS, LIST OF RULE PARAMETERS 基本目的,规则参数列表 109
7.1. Basis 基本目的 109
7.1.1. Basis category 基本目的分类 109
7.1.2. List of rule basis 规则基本目的列表 109
7.2. Selectable parameters of each rule 每个规则的可选择参数 114
7.2.1. Interpretation 说明 114
7.2.2. List of rule parameters 规则参数列表 114
8. TERMINOLOGY/SUPPLEMENTARY EXPLANATION 术语/补充说明 121
8.1. Commentary on Simulink terminologies/Simulink 术语的说明 121
© Copyright 2013JMAAB. All rights reserved.
5
8.1.1. Definition of basic blocks 基本模块的定义 121
8.1.2. Definition of port blocks.端口模块的定义 121
8.1.3. Conditional control flow 条件控制流 122
8.1.4. Blocks with State Variables 带状态变量的模块 122
8.1.5. Branch Syntax with State Variables 带状态变量的分支语法 124
8.1.6. The definition of subsystem 子系统的定义 125
8.1.7. The definition of a dictionary 词典的定义 126
8.1.8. Signal 信号 126
8.1.9. Parameter 参数 127
8.1.10. Signal label and signal name 信号标签和信号名称 127
8.1.11. Control Characters 控制字符 127
8.1.12. Commentary vector signals/path signal 矢量信号/路径信号说明 128
8.1.13. Boolean type and boolean value 布尔类型和布尔值 128
8.1.14. On enumerated types 关于枚举类型 129
8.2. Stateflow terminology commentary 状态流术语说明 131
8.2.1. Operators available for Stateflow 状态流可使用的运算符 131
8.2.2. Transition line condition, condition action, transition action 迁移线条件、条件动作、迁移动作
132
8.2.3. State Actions and Action Types 状态动作和动作类型 133
8.2.4. State Transition and Flow Chart 状态迁移和流程图 134
8.2.5. Backtrack 回溯 136
8.2.6. Note on flowchart outside state 状态外流程图的注释 137
8.2.7. How to use custom C code 如何使用自定义 C 代码 138
8.3. Initialization 初始化 140
8.3.1. Initial value setting in initialization 初始化中初始值设置 140
8.3.2. List of blocks that have internal initialization values 具有内部初始化值的模块列表 141
8.3.3. Initial values of signals registered in the the data dictionary 数据词典中注册信号的初始值 141
8.3.4. Example of a block where the external input value is the initial value 外部输入值为初始值的
一个模块示例 143
8.3.5. Initial value settings in a system configuration that would enable initialization parameters
可以启用初始化参数的系统配置中的初始值设置 144
8.4. Supplement: Commentary on functions 补充:函数的说明 146
8.4.1. About Atomic Subsystem 关于原子子系统 146
9. DETERMINING GUIDELINE OPERATION RULES 确定指导规则操作规则 149
9.1. Necessity of process definition 过程定义的必要性 149
9.2. A version of MATLAB/Simulink / MATLAB/Simulink 的版本 149
9.3. MATLAB/Simulink setting / MATLAB/Simulink 设置 149
9.4. Usable blocks 可使用的模块 150
9.5. Setting of the configuration to be used 要使用配置的设置 150
9.5.1. Optimization parameters 优化参数 150
9.5.2. Other configurations 其它配置 151
9.5.3. Configuration settings 配置设置 151
9.6. Guideline rules that are used 要使用的指导规则 152
剩余174页未读,继续阅读
资源评论
qq_34309267
- 粉丝: 213
- 资源: 20
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功