Simulink Control Design™ - MathWorks

(Tuis.) #1
In this case, inserting a Data Type Conversion block converts the input signal to the
Square block to double precision.

Overriding Data Types Using Fixed Point Tool


When you linearize a model that contains nondouble data types but still runs correctly in
full double precision, you can override all data types with doubles using the Fixed Point
Tool. Use this approach when you have many nondouble precision signals.

After linearizing the model, restore your original settings.

NoteOverriding nondouble data types is not appropriate when the model relies on these
data types, such as relying on integer data types to perform truncation from floats.

(^1) In the Simulink model, select Analysis > Fixed Point Tool.
The Fixed Point Tool opens.
(^2) In the Data type override menu, select Double.
This setting uses double precision values for all signals during linearization.
(^3) Restore settings when linearization completes.
2 Linearization

Free download pdf