Distributed Model Code Generation

Generate code for model components separately and integrate them externally

Distributed model design is an approach where users split their models into different hierarchical subsystems to model systems that operate as tasks with different scan times and cycle rates. This approach enables users to split the model components across different teams and accelerate their development times. Using Simulink® PLC Coder™, you can:

  • Generate code for individual model subsystems and integrate them externally.

  • Suppress variable initialization for externally defined variables.

Topics

Distributed Model Code Generation Options

Generate code for individual components of distributed models and integrate them externally.

Generated Code Structure for PLC_RemoveSSStep

The PLC_RemoveSSStep option allows you to generate code for individual components of your model and then integrate the generated code externally.

Generated Code Structure for PLC_PreventExternalVarInitialization

The PLC_PreventExternalVarInitialization options allows you to generate code with the external variable definition initializations removed that prevents your model external variable data corruption.

Featured Examples