Simulink test cleanup script - how do I export sltest_simout programmatically?

12 ビュー (過去 30 日間)
Joel Gibbons
Joel Gibbons 2019 年 12 月 23 日
コメント済み: Joel Gibbons 2019 年 12 月 27 日
I have a test case with multiple scripted iterations.
I've been going back and right-clicking on the Simulation Outputs to export them to specific files.
I'd like to be able to do that in a Cleanup script, but I can't find an export function that works with the same data type that results from the sltest_simout call. I tried testmanager.exportResults, but that resulted in a bunch of recursion errors (I don't think I should've called it in a Callback...)
Thanks in advance...
  2 件のコメント
Shishir Dwivedi
Shishir Dwivedi 2019 年 12 月 27 日
Hi Joel,
I think following commands can solve the purpose of exporting Simulation outputs to MAT files from Custom Criteria section.
assignin('base', sltest_iterationName, sltest_simout); %Assign the data in Base WorkSpace
save([sltest_iterationName '.mat'],'sltest_iterationName'); % Save data in MAT file(s).
-Shishir.
Joel Gibbons
Joel Gibbons 2019 年 12 月 27 日
Sweet! Thanks!

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeText Data Preparation についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by