필터 지우기
필터 지우기

How to change SIMULATION OUTPUTS settings programmatically in TestManager?

조회 수: 9 (최근 30일)
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개)

카테고리

Help CenterFile Exchange에서 Test Scripts에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by