Export Logged Signals While Using Test Manager

5 ビュー (過去 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
Dinesh Kundumani Krishnamoorthy 2019 年 3 月 4 日
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 Center および File ExchangeResults, 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