Main Content

Test Hardware is the same as production hardware

Equivalence of production and target hardware characteristics

Description

App Configuration Pane: Hardware

Configuration Objects: coder.HardwareImplementation

The Test hardware is the same as production hardware parameter indicates whether the production and target (test) hardware are functionally equivalent.

The code generator stores two sets of hardware parameters — one for the characteristics of the production hardware and one for the characteristics of the test hardware. By default, the code generator uses the parameters configured for the production hardware. Typically, you leave the Test hardware is the same as production hardware check box selected and work only with the production parameters.

Clearing the Test hardware is the same as production hardware check box is an advanced feature that enables separate parameters for the test and production hardware. If you clear this check box, the code generator uses the configuration of the test hardware and generates code to emulate the behavior of the production hardware on the test hardware. If you clear the Test hardware is the same as production hardware check box for testing, you must select this check box and regenerate the code before you deploy the generated code to the production hardware.

At the beginning of an Embedded Coder® processor-in-the-loop (PIL) execution, the software checks the hardware implementation properties with reference to the test hardware on which the PIL execution runs. If the Test hardware is the same as production hardware check box is selected, the code generator checks the properties of the production hardware (parameters labeled Production Device Details). If the Test hardware is the same as production hardware check box is not selected, the code generator checks the properties of the target hardware (parameters labeled Test Device Details).

Dependencies

  • Clearing this check box enables the Device (Production) and Device (Test) settings on the Hardware configuration pane.

Settings

On

The code generator uses the production hardware settings. This setting is the default.

Off

The code generator uses the target hardware settings.

Programmatic Use

Property: ProdEqTarget
Values: true | false
Default: true

Version History

Introduced in R2011a