Simulink Baseline Tests returning 'empty' after input renaming.

9 vues (au cours des 30 derniers jours)
Chris
Chris le 30 Juin 2025
Réponse apportée : Sameer le 3 Juil 2025
I have recently renamed a simulink model input, and gone through the steps of updating the test harness, input test matrix, and remapped the inputs in the test manager test cases. Now when I run the tests, the results return 'empty' as shown in the attached EmptyTestResults.PNG. There are two sub-points which have thrown me:
First, when I review the 'SIM Outputs' from the test harness, I get the expected result, as shown in 'SimOutput.png', so why isn't this transferring to the baseline results?
Second, why isn't the baseline.mat result showing up? This has not been modified, so I would expect if there was a test output issue, the baseline would be generated normally, yet that doesn't appear to be the case.
If anyone has experienced this issue, or knows what causes it and how to resolve the problem, any support would be much appreciated.

Réponses (1)

Sameer
Sameer le 3 Juil 2025
I understand that you're seeing correct outputs when running the test harness directly, but not through Test Manager. This strongly suggests the Test Manager is not correctly connected to the model signals anymore.
Check the Signal Logging configuration in the Test Manager:
  • Go to Test Manager > Test Case > Logged Signals.
  • Ensure that the signals are still being logged and that the paths to the logged signals match the renamed inputs.
  • If the test manager expects a signal that doesn’t exist due to renaming, it won’t log it — resulting in “empty” results.
As you mentioned that the baseline hasn't been modified, but it's also not being shown
Check the comparison settings:
  • Under Test Case > Baseline Criteria, confirm that:
  • The baseline file is still correctly linked.
  • The signals for comparison are correctly listed and match the current outputs.
  • There’s no signal mismatch (e.g., name or dimension).
Hope this helps!

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by