Largest atomic size: floating-point
Largest floating-point data type supported for atomic loading and storage on test hardware
Model Configuration Pane: Hardware Implementation
Description
The Largest atomic size: floating-point parameter specifies the largest floating-point data type that can be atomically loaded and stored on the hardware that you use to test code. Use this parameter, where possible, to remove unnecessary double-buffering or unnecessary semaphore protection, based on data size, in generated multirate code.
Selecting a device by using the Device vendor and Device type parameters sets a device-specific value for this parameter.
Dependencies
This parameter is enabled only if you can modify it for the selected hardware.
Settings
Float
(default) | Double
| None
Float
Specifies that
float
is the largest floating-point data type that can be atomically loaded and stored on the hardware that you use to test code.Double
Specifies that
double
is the largest floating-point data type that can be atomically loaded and stored on the hardware that you use to test code.None
Specifies that there is no applicable setting or not to use this parameter in generating multirate code.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | Target specific |
Safety precaution | No impact when Test hardware is the same as production hardware is selected. If it is not selected, no recommendation. |
Programmatic Use
Parameter: TargetLargestAtomicFloat |
Type: string | character vector |
Values:
'Float' | 'Double' |
'None' |
Default: 'Float' |
Version History
Introduced in R2010a
See Also
Topics
- Specifying Test Hardware Characteristics (Simulink Coder)
- Hardware Implementation Options (Simulink Coder)
- Hardware Implementation Pane