Simulink Test -- Configure Other Outputs from script

조회 수: 1 (최근 30일)
Danish Belal
Danish Belal 2020년 4월 6일
댓글: Pratik Patil 2020년 11월 20일
Hello,
I need to configure the Other Outputs Checkboxes in the Simulation Outputs Region of the Simulink Test Test-Manager (see highlighted region in the image down below). Until now I did not find a way to do this from a script.
Is there a way to modify said checkboxes from a script?
  댓글 수: 1
Pratik Patil
Pratik Patil 2020년 11월 20일
Hello Danish,
You can achieve the same using setProperty method on testcase object.
You can refer to the following example
tf = sltest.testmanager.TestFile('someSimulinkTestFile');
ts = tf.getTestSuites % get first test suite object of test file
tc = ts.getTestCases % get first case object of test suite
setProperty(tc, 'SaveState', true) % for 'States'
setProperty(tc, 'SaveOutput', true) % For 'Output'
setProperty(tc, 'SaveFinalState', true) % For 'Final states'
setProperty(tc, 'DSMLogging', true) % for 'Data stores
setProperty(tc, 'SignalLogging', true) % For 'Signal Logging'
You can refer to this following page for other properties that you can modify for test case,
https://www.mathworks.com/help/sltest/ref/sltest.testmanager.testcase.setproperty.html

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by