main content

highlight dependencies for multiple instance reference models -凯发k8网页登录

to highlight the functional dependencies in a simulink model with multiple instances of a referenced model, use model slicer. you can use model slicer on a simulink model that contains single or multiple references to a same model in normal simulation mode.

this example shows the behavior of model slicer when there are multiple instances of the referenced model. the slslicerdemo_multi_instance model consists of sldemo_mdlref_counter referenced two times with different inputs during the course of the signal flow transition.

1. open the model slslicerdemo_multi_instance.slx.

open_system('slslicerdemo_multi_instance');

2. on the apps tab, under model verification, validation, and test gallery, click model slicer.

3. in the model slicer window, click add all outports. this sets outa and outb as starting points.

4. ensure that the signal propagation is set to upstream.

5. in the simulation time window section, click run simulation.

6. in the simulation time window, click ok. the model simulation starts.

7. the simulated model highlights the upstream dependency of the outports outa and outb.

you can notice that the referenced model in both the instances shows different signal propagations highlighted by simulink slicer for which the signal travels.

8. to generate the slice, click generate slice.

more about

网站地图