Simulink Test -- Configure Other Outputs from script
조회 수: 1 (최근 30일)
이전 댓글 표시
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
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 Center 및 File Exchange에서 Test Scripts에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!