Link Simulink Design Verifier Report to different model file?
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
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
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.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Dependency Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!