Main Content
Include Testbench Diagnostic Code
Enable generation of diagnostic code to identify testbench failures
Model Configuration Pane: PLC Code Generation
Description
The Enable testbench diagnostic code parameter, enables the generation of testbench code with additional diagnostic information to help you identify the names of variables that are causing test bench failures.
Dependencies
To enable this parameter, select the Generate testbench for subsystem parameter.
Settings
off (default) | on
Default: off
- On
Enables generation of test bench code with additional diagnostic information.
- Off
Disables generation of test bench code with additional diagnostic information.
Recommended Settings
Application | Setting |
---|---|
Debugging | On |
Traceability | On |
Efficiency | No impact |
Safety precaution | On |
Programmatic Use
Parameter: PLC_GenerateTestbenchDiagCode |
Type: string |
Value: 'on' | 'off' |
Default: 'off' |
Version History
Introduced in R2019b