Which one of the two block parameters ‘OutDataType’ and ‘DataType’ should I use to change the data type for the block using SET_PARAM for my Simulink 6.6 (R2007a) model?

19 views (last 30 days)
I want to change the data type of the inport block defined in my Simulink model using SET_PARAM function. I see two objects parameters namely ‘OutDataType’ and ‘DataType’ to be used for the same, which one of the two object parameters ‘OutDataType’ and ‘DataType’ should I use to change that data type using set_param for my Simulink model.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
The OutDataTypeMode, OutDataType, and OutScaling object parameters have been deprecated starting from R2007b and these parameters exists only for the purpose of backward compatibility. However SET_PARAM and GET_PARAM on the 'old' data type parameters (OutDataTypeMode, OutDataType, OutScaling) should still work.
Hence ‘Data Type’ object parameter would be the option instead of ‘OutDataType’ as it corresponds to the DataType you can access through the port dialog box.

More Answers (0)

Products


Release

R2007a

Community Treasure Hunt

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

Start Hunting!