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
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 中查找有关 Outputs 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by