- In the top-level model, right-click the current control subsystem block
- Select Subsystem → Convert to → Referenced Model
- Click convert the model, Model Advisor shows a successful conversion message
- Simulink creates a new, separate model file containing exclusively the current control algorithm contents
- The original subsystem in the top-level model is automatically replaced by a model reference block pointing to the newly created model. Rename the top model to avoid conflict with reference example model.
- Verify that the top-level model simulates correctly after conversion, the numerical results must remain identical to the pre-conversion baseline
The top-level FOC system continues to run entirely on the Simulink host. Only the current control Model Reference block is deployed to the AM13x during PIL execution.