Link Model Objects
链接对象s 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 selectRequirements>Select for Linking with Simulink.
Right-click the link source model object and selectRequirements>Add Link to Selected Object.
Right-click the link source model object again and selectRequirements. The new link appears at the top of theRequirementssubmenu.
链接对象s in Different Models
You can create links between objects in related models. This example shows how to link model objects inslvnvdemo_powerwindow_controller
andslvnvdemo_powerwindow
.
Open the
slvnvdemo_powerwindow_controller
andslvnvdemo_powerwindow
models.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. SelectRequirements>Select for Linking with Simulink.In the
slvnvdemo_powerwindow_controller
model window, right-click thecontrol
subsystem. SelectRequirements>Add Link to Selected Object.Right-click the
slvnvdemo_powerwindow_controller/control
subsystem and selectRequirements. The new RMI link appears at the top of theRequirementssubmenu.To verify that the links were created, in theAppstab, clickRequirements Manager. In theRequirementstab, clickHighlight Links.
The blocks with requirements links are highlighted.
Close the
slvnvdemo_powerwindow_controller
andslvnvdemo_powerwindow
models.