matlab.System.showFiSettingsImpl - Fixed point data type tab visibility for System objects - MATLAB (original) (raw)
Main Content
Fixed point data type tab visibility for System objects
Syntax
flag = showFiSettingsImpl
Description
[flag](#bu444oz-1-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 showFiSettingsImpl
, the simulation mode is set to code generation.
The parameters that appear on the Data Types tab, which cannot be customized, are:
- Saturate on integer overflow — 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 whenSame as MATLAB is selected as the MATLAB System fimath option.
- Treat these inherited Simulink signal types as fi objects — a pull down that indicates which inherited data types to treat as fi data types. Valid options are:
Fixed point
(default)Fixed point & integer
- MATLAB System fimath has two radio button options:
- Same as MATLAB (default) — 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 fimath (Fixed-Point Designer).
Method Authoring Tips
- 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
for this method.
Output Arguments
flag
— Display Data Types tab
false
(default) | true
Flag indicating whether to display the Data Types tab on the MATLAB System block mask, returned as a logical scalar value. Returning atrue
value displays the tab. A false
value does not display the tab.
Examples
Show the Data Types Tab
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, isVisible
, to true
, the tab appears as follows when you add the object to Simulink® with the MATLAB System block.
Version History
Introduced in R2016a