Link Simulink Design Verifier Report to different model file?

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

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

Hi Jon, can you elaborate on this a little please? How can I do that so that the original model is referenced in the report? I have a slightly different question that could solve my issue if you have any insight: When you run block replacement during a Design Verifier task (e.g. dead logic detection with block replacement), can the dead logic report link to the model that DV is running on rather than the model that is generated during block replacement? I dont really care what the model that is generated during block replacement looks like, and I don't want to modify the block replacement model file when I open a link in the dead logic report because that isn't the model I am developing, just a temporary version for V&V.
Thanks again,
Collin
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.
I think this could work- I'll play around with it. Thanks for the response.

Sign in to comment.

More Answers (0)

Asked:

on 23 Oct 2014

Commented:

on 4 Nov 2014

Community Treasure Hunt

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

Start Hunting!