Why Does get_param(gcb,CompiledPort*) Return Weird Results for Several Object Parameters ?
이전 댓글 표시
I have the following very simple model that has been compiled and simulated in Normal mode

Verify the Constant block is selected
>> gcb
ans =
'mymodel/Constant'
This looks incorrect.
>> get_param(gcb,'CompiledPortComplexSignals')
ans =
0×0 empty struct array with fields:
Inport
Outport
Enable
Trigger
State
LConn
RConn
Ifaction
Reset
Event
According to the linked doc page above, these parameters should be "properties common to all Simulink® blocks."
>> get_param(gcb,'CompiledPortDesignMin')
Constant block does not have a parameter named 'CompiledPortDesignMin'
>> get_param(gcb,'CompiledPortDesignMin')
Constant block does not have a parameter named 'CompiledPortDesignMin'
This looks incorrect.
>> get_param(gcb,'CompiledPortDimensions')
ans =
0×0 empty struct array with fields:
Inport
Outport
Enable
Trigger
State
LConn
RConn
Ifaction
Reset
Event
According to the linked doc page above, this parameter should be "properties common to all Simulink® blocks."
>> get_param(gcb,'CompiledPortDimensionsMode')
Constant block does not have a parameter named 'CompiledPortDimensionsMode'
This looks incorrect.
>> get_param(gcb,'CompiledPortFrameData')
ans =
0×0 empty struct array with fields:
Inport
Outport
Enable
Trigger
State
LConn
RConn
Ifaction
Reset
Event
This looks incorrect
>> get_param(gcb,'CompiledPortWidths')
ans =
0×0 empty struct array with fields:
Inport
Outport
Enable
Trigger
State
LConn
RConn
Ifaction
Reset
Event
Can anyone explain these results?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Model References에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
