Fixed-Point Blockset    
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

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

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. 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 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:

Example

To learn how to use the Fixed-Point Settings interface, refer to Tutorial: Feedback Controller Simulation.

See Also

autofixexp, showfixptsimerrors, showfixptsimranges


  fpupdate num2fixpt