Clear Filters
Clear Filters

How to prevent simulink requirements linked to subsystem references from generating requirement links in models which include the subsystem references.

1 view (last 30 days)
I'm using a build toolchain which doesn't work with model references. Therefor to modularise the code I have chosen subsystem references spec'd as atomic and with strong typing enforced at the interfaces ports to get as close as possible to a model reference.
Each subsystem reference has requirements linked to the code. The problem I have is that simulink keeps creating dubplicate link sets to the code inside the subsystem reference in the main model. Is there a way to stop this happening.

Answers (1)

Ayush
Ayush on 28 Nov 2023
Hi Duncan,
I understand that you want to avoid duplicating the link sets to the code for your subsystem reference.
A possible workaround for this is to use the “Requirements Management Interface (RMI)” to link the desired requirements for you model to a particular subsystem reference block. You can configure the RMI to store the requirement links externally to preserve modularity and disable the option to duplicate links for your desired output. Please see the screenshot attached below:
Please refer to the below documentation to know more about the “Managing Requirements Without Modifying Simulink Model Files”:
Additionally, you can also refer to the below documentation to know more about requirement links and their functioning with regards to reference blocks:
Hope it helps,
Regards,
Ayush Misra

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!