Main Content
Check if model can generate testbench
Check ID:
mathworks.PLC.TestBenchWithoutIOCheck
Check that the model top-level subsystem has inputs and outputs when the generate testbench option is enabled.
Description
This check generates a warning when the generate testbench option is enabled and the top-level subsystem has no inputs and outputs.
Available with Simulink® PLC Coder™.
Results and Recommended Actions
Condition | Recommended Action |
The top-level subsystem has no inputs and outputs. Testbench generation is not supported. | Do not enable testbench generation when the top-level subsystem has no inputs and outputs. |
Capabilities and Limitations
Analyzes content in the selected subsystem only.
Exclusion of blocks and charts is not supported.