主要内容

Stateflow 图注意事项

R2026b
Stateflow® 图名称、属性和架构

对 Stateflow 图名称、属性和架构应用高完整性规范。

建模规范

全部展开

hisl_0031:模型文件名Use naming conventions for model file names
hisl_0032:模型元素名称Naming conventions for model elements that produce valid identifiers in generated code
hisf_0001:状态机类型Use the same state machine type for all Stateflow charts in the model
hisf_0011:Stateflow 调试设置Protect against unreachable code and indeterminate execution time by configuring Stateflow debugging settings
hisf_0004:防止递归函数调用以提高代码合规性Avoid recursive function calls to promote bounded call behavior in generated code
hisf_0013:转移路径的使用(跨并行状态边界)Avoid creating transitions that cross from one parallel state to another
hisf_0014:转移路径的使用(直通状态)Avoid transition paths that pass through states without ending on a substate
hisf_0015:强数据定型(在表达式中强制转换变量和参数)Explicitly type cast variables and parameters of different data types in expressions
hisf_0016:Stateflow 端口名称Name Stateflow input and output ports the same as the corresponding signal
hisf_0017:Stateflow 数据对象作用域Define locally scoped Stateflow data objects at the chart level or below