Export Logged Signals While Using Test Manager

2 次查看(过去 30 天)
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 个评论
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 中查找有关 Outputs 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by