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

7 visualizaciones (últimos 30 días)

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?

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 7 de Jul. de 2025
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.

Más respuestas (0)

Etiquetas

Aún no se han introducido etiquetas.

Productos


Versión

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by