How to change SIMULATION OUTPUTS settings programmatically in TestManager?

How do I programmatically change the option in TestManager?
I'm tring to change the state of the checkbox named as 'Plot signals on the specified plots after simulation' which is one of SIMULATION OUTPUTS settings in TestManager(in detail, Test Case).

 採用された回答

Angelo Yeo
Angelo Yeo 2024 年 3 月 29 日
% Open the model sltestFlutterSuppressionSystemExample for example.
openExample('sltestFlutterSuppressionSystemExample')
% Open test suite and test case. And set the property accordingly.
tf = sltest.testmanager.TestFile('sltestFlutterCriteriaTest.mldatx')
ts = tf.getTestSuites;
tc = ts.getTestCases;
tc.setProperty('PlotSignalAfterSimulation', true); % tc is the test case object
FYI, I tested the script in R2024a.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeResults, Reporting, and Test File Management についてさらに検索

製品

リリース

R2021b

質問済み:

2024 年 3 月 28 日

回答済み:

2024 年 3 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by