Convert subsystems to referenced models
The Model Reference Conversion Advisor converts subsystems, including conditional and referenced subsystems, to referenced models.
Converting subsystems to referenced models is beneficial for modeling large, complex systems and for team-based development. Many large models use a combination of subsystems and referenced models. To decide whether to convert a subsystem to a referenced model, see Choose Among Types of Model Components.
When the conversion encounters an issue, the advisor helps you review and fix the issue. Preparing the contents of a Subsystem block can eliminate or reduce the number of issues that the advisor identifies. Addressing these issues in the model editing environment can be more efficient than switching repeatedly between the advisor and the Simulink® Editor.
The Model Reference Conversion Advisor does not support conversion for some types of subsystems. For example:
Subsystem blocks with Simscape™ Multibody™ components that cross the subsystem boundary
Asynchronous subsystems — To convert asynchronous subsystems to referenced models that accept asynchronous function calls, see Asynchronous Support Limitations (Simulink Coder).
In the Simulink Editor, select a Subsystem block. In the Simulink Toolstrip, on the Subsystem Block tab, select Convert > Model Block.
In the MATLAB® command window, use the Simulink.SubSystem.convertToModelReference
function with the
'UseConversionAdvisor'
argument set to
true
.