模块参数
模块的数值参数决定它们计算输出值的方式。要控制模块执行的计算,您可以指定参数值。
要将多个模块参数设置为相同的值,可以使用您创建的且存储在工作区(例如基础工作区、模型工作区)或数据字典中的数值变量。
For each block parameter in a reusable component,
specify the same value for all instances of the component or a different
value for each instance.
通过将模块参数值汇聚到结构体中,提高模型的可读性并减少模型的维护工作。
构建模型时,您可以使用模块参数(例如,Transfer Fcn 模块的系数)进行试验,以帮助您确定使用哪些模块。
通过参数扫描并将真实系统中的不确定性纳入考虑范围来调整控制参数,估计未知模型参数并测试控制算法的稳定性。
Switch between independent sets of values for the
same block parameters by storing the sets in an array of structures.
Control the data type that Simulink and
the generated code use to store block parameter values in computer
memory.
通过设置数值模块参数的最小值和最大值,完全指定设计并优化生成的代码。
要编写用于创建和修改模型的脚本,请确定模块对话框中的参数或属性的编程名称。
免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删