Fixed-Point Blockset | ![]() ![]() |
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
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.
For each block in the model that logs data, the Fixed-Point Settings interface displays its name, minimum simulation value, maximum simulation value, data type, and scaling in the Simulation data logged for current system pane. 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.
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 Fixed-Point Blockset 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 Fixed-Point Blockset license.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:
autofixexp
.
fxptdlg
function.
The Plot System interface is shown below. In this example it 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
.
Example
To learn how to use the Fixed-Point Settings interface, refer to Tutorial: Feedback Controller Simulation.
See Also
autofixexp
, showfixptsimerrors
, showfixptsimranges
![]() | fpupdate | num2fixpt | ![]() |