This week I want to highlight one of my favorite enhancement in R2014a: The improved workflow for converting a subsystem to a referenced model.
As your models are getting larger and larger, you might be interested to convert some of the subsystems to Referenced Models.
If you are not familiar with Model Referencing and its advantages, I recommend getting started with the documentation page Component-Based Modeling with Model Reference.
To help converting subsystems to referenced models, we have been providing the function Simulink.SubSystem.convertToModelReference and a menu option which you can see when right-clicking on a subsystem:
For all those who tried this approach, you very likely ran into a series of errors that had to be fixed one-by-one before successfully converting your subsystem into a referenced model.
In R2014a, the Model Reference Conversion Advisor is introduced to improve this workflow. When you right-click on the subsystem, this new tool based on the Model Advisor shows up, listing all the steps you will need to go through to convert the subsystem:
Depending on your preferences, you can run the tasks one by one to understand each part of the process, or you can configure the advisor to run all the checks and automatically do all the modifications required by model referencing.
If needed, the Model Reference Conversion Advisor will create and save the bus objects necessary for the referenced model interface. At the end, it will generate a report so you can review the changes that have been automatically applied.
Now it's your turn
Try the improved workflow for converting a subsystem to a referenced model, and let us know what you think by leaving a comment here
To leave a comment, please click here to sign in to your MathWorks Account or create a new one.