Borrar filtros
Borrar filtros

Simulink Test -- Configure Other Outputs from script

1 visualización (últimos 30 días)
Danish Belal
Danish Belal el 6 de Abr. de 2020
Comentada: Pratik Patil el 20 de Nov. de 2020
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 comentario
Pratik Patil
Pratik Patil el 20 de Nov. de 2020
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

Iniciar sesión para comentar.

Respuestas (0)

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by