帮助中心帮助中心
本页翻译不是最新的。点击此处可查看最新英文版本。
通过外部触发器重置模块状态的子系统
库: Simulink / Ports & Subsystems
Resettable Subsystem 模块是一个预先配置的 Subsystem 模块,您可基于它创建一个每当控制端口收到触发信号就会重置模块状态的子系统。子系统的行为由放置在子系统内部的 Reset 模块控制。
Use two resettable subsystems to implement a ramp signal.
Compares the behavior of discrete and continuous resettable subsystems. After you run the simulation, one scope shows the results for the discrete resettable subsystem, and the other scope shows the results for the continuous resettable subsystem.
全部展开
在子系统中放置一个 Inport 模块会向 Subsystem 模块添加一个外部输入端口。端口标签与 Inport 模块的名称相匹配。
使用 Inport 模块可以从局部环境中接收信号。
数据类型: half | single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | fixed point | enumerated | bus | image
half
single
double
int8
int16
int32
int64
uint8
uint16
uint32
uint64
Boolean
fixed point
enumerated
bus
image
在子系统中放置一个 Reset 模块会向 Subsystem 模块添加一个外部输入端口并将该模块更改为 Resettable Subsystem 模块。
数据类型: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | fixed point
在子系统中放置一个 Outport 模块会从 Subsystem 模块添加一个输出端口。Subsystem 模块上的端口标签是 Outport 模块的名称。
使用 Outport 模块可以向局部环境发送信号。
数据类型
Booleana | busa | doublea | enumerateda | fixed pointa | halfa | integera | singlea | stringa
Booleana
busa
doublea
enumerateda
fixed pointa
halfa
integera
singlea
stringa
直接馈通
否
多维信号
是a
可变大小信号
过零检测
a 实际支持的数据类型或功能取决于模块实施。
实际代码生成支持取决于模块实现。
实际数据类型支持取决于模块实现。
在 R2015a 中推出
Reset | Subsystem
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office