主要内容

面具控制系统编程

金宝app仿真软件®定义了一组参数来配置和编辑系统的面具。

  • addParameter

  • removeParameter

  • removeAllParameters

  • MaskParameter.Name

注意:

  • 添加、删除和重命名参数系统上面具使用这些方法不支持一个模型面具。金宝app

金宝appSimulink.Mask.create

使用金宝appSimulink.Mask.create方法在一个模型上创建面具。语法掩盖一个模型,

  • 使用模型名称

金宝appSimulink.Mask.create (ModelName)

  • 使用该系统处理

“处理”SystemHandle = get_param (gcs) %的系统处理

金宝appSimulink.Mask.create (SystemHandle) %创建面具使用系统处理

例子:

new_system (“vdp”);save_system;maskObj = 金宝appSimulink.Mask.create (“vdp”)
maskObj =面具的属性:类型:vdp的描述:“帮助:”初始化:“SelfModifiable:‘离开’ImageFile:”显示:“IconFrame:”“IconOpaque:“不透明”RunInitForIconRedraw:“分析”IconRotate:“没有一个”PortRotate:“违约”IconUnits:“自动定量”SaveCallbackFileWithModel:‘off’CallbackFile:“参数:[0 x0仿真软件。金宝appMaskParameter] PortIdentifiers: [0 x0金宝app Simulink.Mask。PortIdentifier] ParameterConstraints: [0 x0金宝app Simulink.Mask。约束]CrossParameterConstraints: [0 x0 Simulink.金宝appMask。CrossParameterConstraints] PortConstraints: [0 x0金宝app Simulink.Mask。PortConstraint] CrossPortConstraints: [0 x0金宝app Simulink.Mask。CrossPortConstraint] BaseMask: [0 x0金宝app Simulink.Mask]

金宝appSimulink.Mask.get

使用金宝appSimulink.Mask.get方法来获取模型作为一个面具的面具对象。语法模型的现有的面具,

  • 使用模型名称

金宝appSimulink.Mask.get (ModelName)

  • 使用该系统处理

“处理”SystemHandle = get_param (gcs) %的系统处理

金宝appSimulink.Mask.get (SystemHandle) %创建面具使用系统处理

例子:

maskObj = 金宝appSimulink.Mask.get (“vdp”)
maskObj =面具的属性:类型:vdp的描述:“帮助:”初始化:“SelfModifiable:‘离开’ImageFile:”显示:“IconFrame:”“IconOpaque:“不透明”RunInitForIconRedraw:“分析”IconRotate:“没有一个”PortRotate:“违约”IconUnits:“自动定量”SaveCallbackFileWithModel:‘off’CallbackFile:“参数:[0 x0仿真软件。金宝appMaskParameter] PortIdentifiers: [0 x0金宝app Simulink.Mask。PortIdentifier] ParameterConstraints: [0 x0金宝app Simulink.Mask。约束]CrossParameterConstraints: [0 x0 Simulink.金宝appMask。CrossParameterConstraints] PortConstraints: [0 x0金宝app Simulink.Mask。PortConstraint] CrossPortConstraints: [0 x0金宝app Simulink.Mask。CrossPortConstraint] BaseMask: [0 x0金宝app Simulink.Mask]

注意:

把面具模型面具,面具对象回调,你可以使用金宝appSimulink.Mask.get ()没有通过系统名称或系统处理。金宝apptm_simulink不需要系统模型回退的名字(gcb)或系统处理(gcs)查询面具的面具对象模型。

相关的话题