Distributed Model Code Generation
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.
- Distributed Model Code Generation Options
Generate code for individual components of distributed models and integrate them externally.
- Generated Code Structure for PLC_RemoveSSStep
PLC_RemoveSSStepoption allows you to generate code for individual components of your model and then integrate the generated code externally.
- Generated Code Structure for PLC_PreventExternalVarInitialization
PLC_PreventExternalVarInitializationoptions allows you to generate code with the external variable definition initializations removed that prevents your model external variable data corruption.
- PLC_RemoveSSStep for Distributed Code Generation
Generate structured text code for different components of your model.
- Generate Structured Text Code with VAR_IN_OUT Variables
This example shows how to model and generate structured text code that has