Converting a Subsystem to a Referenced Model

You can convert any atomic subsystem to a referenced model. The conversion requires that the model containing the subsystem have the following configuration parameter settings:

After specifying the indicated parameter values, select Convert to Model Block from the subsystem's context menu. Simulink® does the following:

If an error occurs during the conversion, the result depends on the error:

Once you have successfully created a Model block and referenced model from a subsystem, you can delete the subsystem block from the source model and copy the Model block to the subsystem block's location. All signals will automatically reconnect. The source model is now a parent model that contains a referenced model.

You can use Simulink.SubSystem.convertToModelReference to convert subsystems to model references programmatically. The function provides more capabilities than Convert to Model Block, such as the ability to replace a subsystem with an equivalent Model block in a single operation. See the Simulink reference documentation for details.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS