查询和配置C主叫块属性
查询和配置ç来电阻断功能的定义和返回参数。配置ç来电编程块输入参数。
myCCallerConfigObj = get_param(GCB, 'FunctionPortSpecification')
创建ç来电对于所选择的块配置对象ç来电块。
这个例子创建一个ç来电使用配置对象'slexCCallerExample'
演示模型。
my_CCallerObj = get_param('slexCCallerExample / C来电','FunctionPortSpecification')
my_CCallerObj = FunctionPortSpecification与属性:CPrototype: 'real_T加(real_T U1,U2 real_T);'InputArguments:[1×2 S金宝appimulink.CustomCode.FunctionArgument] ReturnArgument:[1×1 Simulink.CustomCode.FunctionArgument]
FunctionArgument
对象的第一输入端口:inargone = my_CCallerObj.InputArguments(1)
inargone = FunctionArgument与属性:名称: 'U1' PORTNUMBER:1种尺寸: '1' 类型: '双' 标签: 'U1' 范围: '参数'
inargone.Label ='inputport1'
inargone = FunctionArgument与属性:名称: 'U1' PORTNUMBER:1种尺寸: '1' 类型: '双' 标签: 'inputport1' 范围: '参数'