필터 지우기
필터 지우기

Link Simulink Design Verifier Report to different model file?

조회 수: 2 (최근 30일)
Collin
Collin 2014년 10월 23일
댓글: Collin 2014년 11월 4일
Hello,
I am working in a simulink model using the Design Verifier software. I am running various checks on the model and outputting reports and data-files about each check. The checks are assembled into an automated code that completes each selected task programmatically and saves everything to a specified directory. My issue is that the model I am working with has to be simulated in accelerator mode, however DV required operation in normal mode. Because of this my automated code first takes the model and creates a new model file in normal mode with unsupported blocks replaced using Block Replacement rules. It then runs the tasks I want to complete on this DV-formatted model file. This works fine and outputs everything correctly, however the reports are linked to the formatted files, so if someone clicks a link in the report and modifies the model that opens it is not the original file and therefore does not save the changes to the original model. Is there a way to access the report file that Matlab is generating to tweak it and output a it as a custom report instead, or a way to link the original model to the report instead of the formatted one?
Any insight is greatly appreciated.
Thanks Collin

채택된 답변

Jon Boerner
Jon Boerner 2014년 10월 24일
I do not believe there is a way to do that via any options anywhere. It might be easiest to just find/replace instances of the temporary model name with the original model name.
  댓글 수: 3
Jon Boerner
Jon Boerner 2014년 10월 27일
I had meant for the report you could do something like:
reportText = fileread('report.html');
newReportText = strrep(reportText,tempModelName,originalModelName);
f = fopen('report.html','w');
fprintf(f,newReportText);
fclose(f);
I did not double-check that that works, but that's the idea. I'm not sure on the block replacement report specifically if there is different behavior that allows you to do what you want.
Collin
Collin 2014년 11월 4일
I think this could work- I'll play around with it. Thanks for the response.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dependency Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by