Export Logged Signals While Using Test Manager

조회 수: 3 (최근 30일)
Richard Hopple
Richard Hopple 2017년 6월 22일
답변: Joel Gibbons 2019년 12월 20일
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
Swarooph
Swarooph 2017년 6월 26일
Florian Keller
Florian Keller 2018년 6월 28일
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!

댓글을 달려면 로그인하십시오.

답변 (3개)

Swetha Murali
Swetha Murali 2018년 2월 20일
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
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
William Curry
William Curry 2019년 12월 18일
Once you get the runArray object can you export the logged signal data to a dataset?

댓글을 달려면 로그인하십시오.


Joel Gibbons
Joel Gibbons 2019년 12월 20일
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...

카테고리

Help CenterFile Exchange에서 Results, Reporting, and Test File Management에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by