Why do I receive a warning "Missing RM data file" regarding a deleted link set file (.slmx) in R2024b?

7 ビュー (過去 30 日間)

I have a Simulink model "testmodel.slx" with linked requirements. Simulink automatically creates a "testmodel~slx.slmx" file. I also have a corresponding test case with a link between the test file and the model.
Now, I wanted to remove the requirement. Therefore, I have deleted all requirements and link files in the Requirements Editor. I also deleted the entire Git repository. But when I run the test case, I get the following warning:

Warning: Missing RM data file: C:\Projects\\testmodel~slx.slmx
The warning refers to a subsystem in the model for which I have created a harness (and linked requirements). I have many test cases for different subsystems. But the warning only occurs when I run test cases of the main model.
When I clone the repository with another name, everything works fine. 
How can I find where this missing artifact is linked?

採用された回答

MathWorks Support Team
MathWorks Support Team 2025 年 7 月 7 日
Persistent memory about a deleted .slmx file may exist in two places:
(a) user-owned preference file with linkset file path mapping:  (source artifact path) -> (linkset file path)
(b) .slreqx-owned list of "dependent linksets".
In case (a), the following commands may help to identify and clean up the outdated mapping in user preferences:
artifact = which('testmodel.slx') [linkFilePath, isDefault] = slreq.getLinkFilePath(artifact) slreq.map(artifact, 'clear') slreq.map('testmodel', 'clear')
If the above does not help, there's probably an outdated "incoming linkset" record stored in .slreqx - case (b).
Please reach out to the Technical Support team if you need further assistance.

その他の回答 (0 件)

タグ

タグが未入力です。

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by