Link Model Objects
Link Objects in the Same Model
You can create a requirements link from one model object to another model object:
Right-click the link destination model object and select Requirements > Select for Linking with Simulink.
Right-click the link source model object and select Requirements > Add Link to Selected Object.
Right-click the link source model object again and select Requirements. The new link appears at the top of the Requirements submenu.
Link Objects in Different Models
You can create links between objects in related models. This example shows how to
link model objects in slvnvdemo_powerwindow_controller
and
slvnvdemo_powerwindow
.
Open the models using
openExample("slvnvdemo_powerwindow_controller.slx")
andopenExample("slvnvdemo_powerwindow.slx")
.In the
slvnvdemo_powerwindow
model window, double-click thepower_window_control_system
subsystem. Thepower_window_control_system
subsystem opens.In the
slvnvdemo_powerwindow/power_window_control_system
subsystem window, right-click thecontrol
subsystem. Select Requirements > Select for Linking with Simulink.In the
slvnvdemo_powerwindow_controller
model window, right-click thecontrol
subsystem. Select Requirements > Add Link to Selected Object.Right-click the
slvnvdemo_powerwindow_controller/control
subsystem and select Requirements. The new RMI link appears at the top of the Requirements submenu.To verify that the links were created, in the Apps tab, click Requirements Manager. In the Requirements tab, click Highlight Links.
The blocks with requirements links are highlighted.
Close the
slvnvdemo_powerwindow_controller
andslvnvdemo_powerwindow
models.