Unable to load the externally saved test harness

조회 수: 42 (최근 30일)
Donovan McGraw
Donovan McGraw 2021년 5월 12일
답변: 伟任 2023년 7월 5일
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