Is it possible to extract block data with get_param when the model is in the compiled state in Simulink 7.6 (R2010b)?

1 view (last 30 days)
I need to extract some data which is only available when I put the model in the compiled state. Therefore I use the following syntax:
<model>([],[],[],'compile')
Additionally I need to extract data with get_param about the datatype of the block. Is this still possible?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 1 Mar 2011
The compiled state does not reduce functionality, it adds/expands functionality.
You can see this by taking a look at the attached demo. It puts a model into compiled state and then extracts a parameter with get_param.
%%compile state
c_stat.mdl([],[],[], 'compile')
%%get the param
get_param(gcb,'ParamDataTypeStr')
%%terminate compile
c_state([],[],[], 'term')

More Answers (0)

Products


Release

R2010b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!