Effacer les filtres
Effacer les filtres

Unable to load the externally saved test harness

43 vues (au cours des 30 derniers jours)
Donovan McGraw
Donovan McGraw le 12 Mai 2021
Réponse apportée : 伟任 le 5 Juil 2023
While building a test sequence for a plant model, Matlab crashed. Upon re-launch all of my externally saved test harnesses (146 in total) are no longer linked to the base plant model, stating that it could not find test harness 'harness_name.slx' for 'base_model'. Is there a way to link them all back together without having to rebuild each of the 146 harnesses? Thank you.

Réponses (2)

Donovan McGraw
Donovan McGraw le 12 Mai 2021
There may be an easier way to resolve this, but in case anybody else has this problem also the following is what worked for me:
  1. If 'base_model_harnessInfo.xml' is missing, create a dummy test harness and build it, which will generate the xml file
  2. open the harnessInfo.xml and take note of the HarnessUUID field in the Harness section
  3. Copy the Harness section and past it as a new Harness section within the same xml file. so the format will roughly be
<HarnessInformation>
<Harness>
...
</Harness>
<Harness>
...
</Harness>
</HarnessInformation>
4. In the Matlab command window type the following : get_param('YOURHARNESSNAME','HarnessUUID')
5. The result should take the format of the UUID noted in step 2
6. Copy/Paste that HarnessUUID into the respective field of the new <Harness> ... </Harness>

伟任
伟任 le 5 Juil 2023
not work

Catégories

En savoir plus sur Test Execution dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by