Hauptinhalt

Single Precision Converter

R2026b

Convert double-precision system to single precision

Description

The Single Precision Converter automatically converts a double-precision system to single precision.

During the conversion process, the converter replaces all user-specified double-precision data types, as well as output data types that compile to double precision, with single-precision data types. The converter does not change built-in integer, Boolean, or fixed-point data types.

Open the Single Precision Converter

  • From the Simulink® Apps tab, select Single Precision Converter.

Programmatic Use

report = DataTypeWorkflow.Single.convertToSingle(systemToConvert) converts the system specified by systemToConvert to single-precision and returns a report. The systemToConvert must be open before you begin the conversion.

Limitations

  • The Single Precision Converter app does not support automatic conversion of MATLAB System blocks. These blocks are flagged during the compatibility check and must be converted manually.

  • Model references that can only compile in accelerator mode are not supported for automatic single precision conversion. Ensure that all model references in the system under design can compile in normal mode, or exclude subsystems that can only be run in accelerator mode from conversion.

Version History

Introduced in R2016b

expand all