Why Does get_param(gcb,CompiledPort*) Return Weird Results for Several Object Parameters ?
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on General Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!