Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Generating Structured Text for a Simple Simulink® Subsystem Using Multirate

This model shows the code generated for a simple subsystem using multirate.

This model shows how a subsystem using multirate maps to Structured Text.

You can generate PLC Structured Text code for this subsystem by right-clicking on the subsystem block and select PLC Code -> Generate Code for Subsystem

Alternatively, you can use the following command generatedFiles = plcgeneratecode('plcdemo_multirate/SimpleSubsystem');

After the code generation, the Diagnostic Viewer window is displayed with hyperlinks to the generated code files. You can open the generated files by clicking on the links.

Was this topic helpful?