Main Content

Number of bits: ptrdiff_t

ptrdiff_t bit length for test hardware

Model Configuration Pane: Hardware Implementation

Description

The Number of bits: ptrdiff_t parameter specifies the bit length of ptrdiff_t data for the hardware that you use to test code.

Selecting a device by using the Device vendor and Device type parameters sets a device-specific value for this parameter.

Whether the software checks the ptrdiff_t bit length for the test hardware or for the production hardware for a processor-in-the-loop (PIL) simulation depends on whether you select Test hardware is the same as production hardware.

  • When Test hardware is the same as production hardware is selected, the software uses ptrdiff_t bit length for the test hardware, specified in the TargetBitPerPtrDiffT parameter.

  • When Test hardware is the same as production hardware is not selected, the software uses the ptrdiff_t bit length for the production hardware, specified in the ProdBitPerPtrDiffT parameter.

Dependencies

This parameter is enabled only if you can modify it for the selected hardware.

Settings

64 (default) | 8 | 16 | 24 | 32 | 40 | 128

The ptrdiff_t bit length must be greater than or equal to the int bit length.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
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: TargetBitPerPtrDiffT
Type: integer
Values: 8 | 16 | 24 | 32 |40 | 64 | 128
Default: 64

Version History

Introduced in R2016b