Link Simulink Design Verifier Report to different model file?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
0 commentaires
Réponse acceptée
Jon Boerner
le 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 commentaires
Jon Boerner
le 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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Dependency Analysis dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!