| Simulink Reference | ![]() |
Invokes the Fixed-Point Settings interface
Syntax
Description
fxptdlg('model') brings up the Fixed-Point Settings interface for the MDL-file model. You can also invoke this interface by
With the Simulink Fixed Point product, the Fixed-Point Settings interface provides convenient access to global data type overrides and logging settings, the logged data, the automatic scaling script, and the Plot System interface. You can invoke the Fixed-Point Settings interface for any system or subsystem, and it controls the model specified by the Select current system parameter.
If Simulink Fixed Point is installed, the Fixed-Point Settings interface displays the name, minimum simulation value, maximum simulation value, data type, and scaling of each block in the model that logs data. Additionally, if a signal saturates or overflows, a message is displayed for the associated block indicating how many times saturation or overflow occurred. You can display a block's dialog box by double-clicking on the appropriate block entry in this pane.
Most of the functionality in the Fixed-Point Settings interface is for use with the Simulink Fixed Point product. However, even if you do not have Simulink Fixed Point, you can use the Fixed-Point Settings interface to perform a data type override that allows you to work with a fixed-point model.
If you do not have Simulink Fixed Point, you can work with a model containing Simulink blocks with fixed-point settings by doing the following:
Force off model wide.
True doubles or True singles model wide.
This procedure allows you to share fixed-point Simulink models among people in your company who may or may not have Simulink Fixed Point.
Parameters and Dialog Box
+ and - signs. The information displayed in the rest of the Fixed-Point Settings interface applies to the subsystem designated by this parameter.
Use local settings is selected:
Use local settings -- Data is logged according to the value of this parameter set for each subsystem. Otherwise, settings for parent systems always override those of child systems.
Min, max and overflow -- Minimum value, maximum value, and overflow data is logged for all blocks in the current system or subsystem.
Overflow -- Only overflow data is logged for all blocks in the current system or subsystem.
Force off -- No data is logged for any block in the current system or subsystem. Use this selection to work with models containing fixed-point enabled blocks if you do not have a Simulink Fixed Point license.
Use local settings is selected:
Use local settings -- Data types are overridden according to the value of this parameter set for each subsystem. Otherwise, settings for parent systems override those of child systems.
Scaled doubles -- The output data type of all blocks in the current system or subsystem is overridden with doubles; however, the scaling and bias specified in the mask of each block is maintained.
True doubles -- The output data type of all blocks in the current system or subsystem is overridden with true doubles. The overridden values have no scaling or bias.
True singles -- The output data type of all blocks in the current system or subsystem is overridden with true singles. The overridden values have no scaling or bias.
Force off -- No data type override is performed on any block in the current system or subsystem.
True doubles or True singles to work with models containing fixed-point enabled blocks if you do not have a Simulink Fixed Point license.
| Note The following Simulink blocks allow you to set data types in their block masks, but ignore the Data Type Override setting: Probe, Trigger, Width. |
Overwrite log -- Information in the Simulation data logged for current system pane is completely cleared before new logging data is entered.
Merge log -- New logging data is merged with any information previously appearing in the Simulation data logged for current system pane.
The Fixed-Point Settings interface contains eight buttons:
fxptdlg function.
The Plot systems interface is shown below. In this example, the interface is displaying variable names that correspond to Scope block outputs from the fxpdemo_feedback demo.
To plot the simulation results, select one or more variable names, and then select the appropriate plot button:
True doubles.
Examples
To learn how to use the Fixed-Point Settings interface, refer to Tutorial: Feedback Controller Simulation in the Simulink Fixed Point documentation.
See Also
showfixptsimerrors, showfixptsimranges
| float | num2fixpt | ![]() |
© 1994-2005 The MathWorks, Inc.