Why Does get_param(gcb,CompiledPort*) Return Weird Results for Several Object Parameters ?
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Model References en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
