Unable to load the externally saved test harness

39 次查看(过去 30 天)
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.

回答(2 个)

Donovan McGraw
Donovan McGraw 2021-5-12
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>

伟任
伟任 2023-7-5
not work

类别

Help CenterFile Exchange 中查找有关 Outputs 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by