How to close autosar updater report with programming script?

7 Ansichten (letzte 30 Tage)
sasaki
sasaki am 7 Jun. 2024
Bearbeitet: Walter Roberson am 8 Jul. 2024
hello guys,i update my autosar model by updateModel(ar,modelName). At the end of update process, a updater report will be opened. I want to close this report by m-scripts.It will be generous of you to provide me api name to complete this function.
Best regard

Antworten (1)

Jinal
Jinal am 13 Jun. 2024
Bearbeitet: Jinal am 13 Jun. 2024
Hi Sasaki,
You can make use of MATLAB's 'closeReport' function to programmatically close the update report that opens after updating the model.
Adding a sample code snippet for your reference:
modelAdvisor1 = Simulink.ModelAdvisor.getModelAdvisor('Model Name');
closeReport(modelAdvisor1);
For more information on 'closeReport', kindly refer the following documentation page: https://www.mathworks.com/help/releases/R2022b/simulink/slref/simulink.modeladvisor.closereport.html
  1 Kommentar
sasaki
sasaki am 8 Jul. 2024
Bearbeitet: sasaki am 8 Jul. 2024
Hi Jinal
I really appreciate you for answering my question. But sadly, it doesn't seem to work. Maybe the reason is that the autosar update report doesn't belong to modeladvisor.
Thank you so much for taking the time to answer my question. And I'm truly grateful for your support.Hope you have a nice day.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu AUTOSAR Blockset finden Sie in Help Center und File Exchange

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by