Link Simulink Design Verifier Report to different model file?

1 view (last 30 days)
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

Accepted Answer

Jon Boerner
Jon Boerner on 24 Oct 2014
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 Comments
Jon Boerner
Jon Boerner on 27 Oct 2014
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 on 4 Nov 2014
I think this could work- I'll play around with it. Thanks for the response.

Sign in to comment.

More Answers (0)

Categories

Find more on Dependency Analysis in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!