Include String literals in testbench diagnostic code
Insert string literals in test bench diagnostic code
Since R2025a
Model Configuration Pane: PLC Code Generation
Description
The Include String literals in testbench diagnostic code parameter inserts string literals in the generated test bench for the Rockwell Automation® Studio 5000 integrated development environment (IDE).
Dependencies
To enable this parameter, set Target IDE to Rockwell
Studio 5000: Routine or Rockwell Studio 5000: AOI,
and select Generate testbench for subsystem and Include
testbench diagnostic code.
Settings
on (default) | off
On Inserts string literals in the generated test bench.
OffDo not insert string literals in the generated test bench code. Simulink® PLC Coder™ inserts string tags in the generated testbench code.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | Off |
| Safety precaution | No impact |
Programmatic Use
Parameter:
PLC_EnableStringLiteralTB |
| Type: string |
Values:'on' | 'off'
|
Default:'on'
|
Version History
Introduced in R2025a