
上QQ阅读APP看书,第一时间看更新
3.7.1 常数模块
在Simulink中,Constant模块用于创建实数或复数常量值信号,如图3-14所示。
双击模块,弹出如图3-15所示的“Block Parameters:Constant(模块参数)”对话框,在该对话框中可设置相关参数。该对话框包含两个选项卡,参数属性见表3-3。

图3-14 常量模块

图3-15 “Block Parameters:Constant(模块参数)”对话框
表3-3 Constant模块参数属性

(续)

在“Constant value(参数值)”文本框后单击按钮,选择“Create variable…(创建变量)”选项,弹出“Create New Data(创建新的数据)”对话框,如图3-16所示,在该对话框中设置数据“Name(名称)”“Value(值)”和“Location(路径)”。

图3-16 “Create New Data(创建新的数据)”对话框