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