Simulink Reference Previous page   Next Page
fxptdlg

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:

  1. Access the Fixed-Point Settings interface from the model by selecting Tools -> Fixed-Point Settings.
  2. Set the Logging mode parameter to Force off model wide.
  3. Set the Data type override parameter to 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

Select current system
Displays the names of all systems and subsystems in currently opened models in a hierarchical format. The menu can be expanded and collapsed using the + and - signs. The information displayed in the rest of the Fixed-Point Settings interface applies to the subsystem designated by this parameter.
Logging mode
Controls which blocks log data. The value of this parameter for parent systems controls logging for all child subsystems, unless Use local settings is selected:
Data type override
Controls data type override of blocks that allow you to specify data types in their block masks. The value of this parameter for parent systems controls data type override for all child subsystems, unless Use local settings is selected:

Block Name
Displays blocks that log data in the selected system or subsystem. The block path is described in terms of the blockset model name. The minimum value, maximum value, data type, and scaling are shown opposite each block name when the simulation is run.
Logging type
Controls the logging type:
Safety margin
The Safety margin parameter is used as part of the automatic scaling procedure. Before automatic scaling is performed, you must run the simulation to collect min/max data. To learn how to do this, refer to Tutorial: Feedback Controller Simulation.
Simulation values are multiplied by the factor designated by this parameter, allowing you to specify a range different from that defined by the maximum and minimum values logged to the workspace. For example, a value of 55 specifies that a range at least 55 percent larger is desired. A value of -15 specifies that a range up to 15 percent smaller is acceptable.

The Fixed-Point Settings interface contains eight buttons:

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:

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


Previous page  float num2fixpt Next page

© 1994-2005 The MathWorks, Inc.