Fixed point data type tab visibility for System objects
flag = showFiSettingsImpl
flag = showFiSettingsImpl specifies whether
the Data Types tab appears on the MATLAB® System block dialog
box. The Data Types tab includes parameters to control processing
of fixed point data the MATLAB System block. You cannot specify
which parameters appear on the tab. If you implement
the simulation mode is set code generation.
showFiSettingsImpl is called by the MATLAB System
The parameters that appear on the Data Types tab, which cannot be customized, are
Saturate on integer overflow is a check box to control the action to take on integer overflow for built-in integer types. The default is that the box is checked, which indicates to saturate. This is also the default for when Same as MATLAB is selected as the MATLAB System fimath option.
Treat these inherited Simulink signal types
as fi objects is a pull down that indicates which inherited
data types to treat as fi data types. Valid options are
Fixed point & integer.
The default value is
MATLAB System fimath has two
radio button options: Same as MATLAB and Specify
Other. The default, Same as MATLAB,
uses the current MATLAB fixed-point math settings. Specify
Other enables the edit box for specifying the desired fixed-point
math settings. For information on setting fixed-point math, see
in the Fixed-Point
If you do not want to display the tab, you do not need to implement this method in your class definition file.
You must set
Access = protected and
Flag indicating whether to display the Data Types tab on the MATLAB
System block mask, returned as a logical scalar value. Returning
Show the Data Types tab on the MATLAB System block dialog box.
methods (Static, Access = protected) function isVisible = showFiSettingsImpl isVisible = true; end end
If you set the flag,
the tab appears as follows when you add the object to Simulink® with
the MATLAB System block.