Save logsout variable to file after executing test cases with test manager

2 ビュー (過去 30 日間)
leonidas86
leonidas86 2020 年 6 月 17 日
Hello,
I'm using the Simulink Test Manager GUI for creating and executing multiple test cases. After executing I want to do some post processing, plot my data and save the data to a file. Therefor the signal logging to the 'logsout' variable is activated in the simulink model and data format is set to 'Structure with time'. By executing the following code in the custom criteria section of the test case it is possible to access the logged signals and plot them. But how can I export the logged signals to a .mat file for later usage? There is no logsout variable in the workspace after executing one of the test cases..
[...]
subplot(4,2,1);
time=test.sltest_simout.get('logsout').get('force1').Values.Time;
data=test.sltest_simout.get('logsout').get('force1').Values.Data;
plot(time,data)
[...]

回答 (0 件)

カテゴリ

Help Center および File ExchangeOutputs についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by