Main Content

Generate Testbench for Subsystem

Enable the generation of testbench code for the subsystem

Model Configuration Pane: PLC Code Generation

Description

The Generate testbench for subsystem parameter instructs the code generator to generate testbench code for the subsystem. You can use the generated testbench code to validate the generated code in your target IDE.

Settings

off (default) | on

Default: off

On

Enables generation of test bench code for subsystem.

Off

Disables generation of test bench code for subsystems.

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityOn
EfficiencyNo impact
Safety precautionOn

Programmatic Use

Parameter: PLC_GenerateTestbench
Type: string
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced in R2010a