端口和子系统
与子系统有关的模块,例如 Inport、Outport、Subsystem 和 Model
使用 Ports and Subsystem 库中的模块来创建输入和输出端口,以及条件执行子系统、迭代子系统和可变子系统。
模块
Configurable Subsystem | 表示从用户指定的模块库中选择的任何模块 |
Enable | 将使能端口添加到子系统或模型 |
Enabled Subsystem | 由外部输入使能执行的子系统。 |
Enabled and Triggered Subsystem | 由外部输入使能和触发执行的子系统 |
For Each Subsystem | 将算法应用于输入信号或封装参数的单个元素或子数组 |
For Iterator Subsystem | 在仿真时间步内重复执行指定迭代次数的子系统 |
Function Element | Specify function to be called via exporting function port (自 R2022a 起) |
Function Element Call | Specify function call to be issued via invoking function port (自 R2022a 起) |
Function-Call Feedback Latch | Break feedback loop involving data signals between function-call blocks |
Function-Call Generator | 提供函数调用事件来控制子系统或模型的执行 |
Function-Call Split | 提供联接点以用于拆分函数调用信号线 |
Function-Call Subsystem | 由外部函数调用输入控制执行的子系统 |
If | 使用类似于 if-else 语句的逻辑选择子系统执行 |
If Action Subsystem | 由 If 模块使能执行的子系统。 |
In Bus Element | Select input from external port |
Inport | 为子系统或外部输入创建输入端口 |
Model | 引用另一个模型来创建模型层次结构 |
Out Bus Element | Specify output of external port |
Outport | 为子系统或外部输出创建输出端口 |
Resettable Subsystem | 通过外部触发器重置模块状态的子系统 |
Subsystem | 对各模块进行分组以创建模型层次结构 |
Switch Case | 使用类似于 switch 语句的逻辑选择子系统执行 |
Switch Case Action Subsystem | 由 Switch Case 模块使能执行的子系统 |
Trigger | 向子系统或模型添加触发器或函数端口 |
Triggered Subsystem | 由外部输入触发执行的子系统 |
Unit System Configuration | Restrict units to specified allowed unit systems |
Variant Subsystem | Template subsystem containing Subsystem blocks as variant choices |
While Iterator Subsystem | 当逻辑表达式为 true 时,在仿真时间步中重复执行子系统 |
主题
- 使用控制流逻辑
如何使用控制流模块对控制逻辑建模。