Simulink Test -- Configure Other Outputs from script

1 vue (au cours des 30 derniers jours)
Danish Belal
Danish Belal le 6 Avr 2020
Commenté : Pratik Patil le 20 Nov 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 commentaire
Pratik Patil
Pratik Patil le 20 Nov 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

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Test Scripts dans Help Center et File Exchange

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by