Priyanka Gotika, MathWorks
Simulink® supports large-scale project componentization by allowing you to reference multiple Simulink projects from a system-level parent project. Referenced projects also facilitate component reuse and modular design.
This demonstration illustrates a shipping example and an airframe project. In order to add a referenced project to your current project, click References. Notice that the “Wind Gust Library” project is listed under “Referenced Projects.” There are two ways in which you can add an existing project as a reference: You can add it as an absolute reference when the child project is in a fixed location accessible to your computer, such as in a network drive; you can also add it as a relative reference when the child project has a project root that is related to its parent project’s root.
This example shows how to add an existing project, titled the “Signal Multiplier,” as a relative reference. This is because its project root is in a directory located within the airframe project root directory. By adding this project as a referenced project, you can now access all the files present in the “Signal Multiplier” project.
In addition, the Project Shortcuts tab provides quick access to the referenced project’s shortcuts. Using referenced projects, multiple teams working on different projects can collaborate efficiently to work on system-level projects.