MATLAB: How to get all simulink model block’s data type without compile the modle

scriptsimulink

How can I get all Simulink model block's data type without compile the modle? there's something wrong with the compliation.
Thank you very much~

Best Answer

In your model, click menu Format->Port/Signal Displays->Port Data Types
f14;
Blocks=find_system('f14');
f14([],[],[],'compile');
for k=2:length(Blocks)
Blocks{k}
d = get_param(Blocks{k},'CompiledPortDataTypes')
end
f14([],[],[],'term');