Export Logged Signals While Using Test Manager

Trying to figure out how to export the logged signals found under the "Results and Artifacts" tab after you run a test case in the Test Manager?

4 comentarios

Swarooph
Swarooph el 23 de Jun. de 2017
Are you talking about the Sim Output for each case? There seems to be an export option in the right click menu as shown in the screenshot below that will help you export it to workspace or MAT files. Note that this seems to work for only individual Sim Outputs. If you are interested in saving multiple signals, you would need to export each of them to the workspace individually and then save all of those variables in a MAT file.
Richard Hopple
Richard Hopple el 26 de Jun. de 2017
I just realized I forgot a word. Was looking to export it via command line. Trying to pull it out so as to feed it into report generator
Swarooph
Swarooph el 26 de Jun. de 2017
Florian Keller
Florian Keller el 28 de Jun. de 2018
I am still looking for a solution to export the logged signals to Matlab workspace. I dont need them for creating a report, but for further computing in Matlab. Until now, I only get the Metadata and general test data via getIterationResults, but not the timeseries of values computed.
Best regards and thanks in advance!

Iniciar sesión para comentar.

Respuestas (3)

Swetha Murali
Swetha Murali el 20 de Feb. de 2018

0 votos

Here is the command to generate a report using the command line, this has the options to "includeSimulationSignalPlots".
https://www.mathworks.com/help/sltest/ref/sltest.testmanager.report.html
Dinesh Kundumani Krishnamoorthy
Dinesh Kundumani Krishnamoorthy el 4 de Mzo. de 2019

0 votos

Try with these,
res = sltest.testmanager.getResultSets;
tcr = getTestCaseResults(res);
runArray = getOutputRuns(tcr);
Alternatively, try working with predefined variable sltest_simout in "Callbacks > Cleanup"

1 comentario

William Curry
William Curry el 18 de Dic. de 2019
Once you get the runArray object can you export the logged signal data to a dataset?

Iniciar sesión para comentar.

Joel Gibbons
Joel Gibbons el 20 de Dic. de 2019

0 votos

How do you export sltest_simout in a cleanup callback? I need to save to a file, but don't see a call that would work like testmanager.exportResults...

Categorías

Más información sobre Results, Reporting, and Test File Management en Centro de ayuda y File Exchange.

Preguntada:

el 22 de Jun. de 2017

Respondida:

el 20 de Dic. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by