How can I identify the last active step of a test sequence when the test run stopped (because of reaching a defined stop time) using Simulink Test R2020a?
13 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2020 年 7 月 9 日
回答済み: MathWorks Support Team
2020 年 7 月 9 日
When I run my tests using the Simulink Test Manager, there are some situations where my tests get finished because the stop time of the test case has been reached. When this timeout happens, I would like to know which was the active step right before the test stopped due to the stop time. That way, I could know where my test got stuck and why it needed a timeout to finish the test.
Is it possible to export the last step of my test sequence once it finishes?
採用された回答
MathWorks Support Team
2020 年 7 月 9 日
To identify the last active step you could track the active steps in general. So you can evaluate after the simulation, which one was the last active step. To do so:
1) get the active step output through the Test Sequence block's property/option "Create data to monitor the active step"
(This option is also mentioned on this documentation page: https://www.mathworks.com/help/releases/R2020a/sltest/ug/connecting-blocks-for-verify-statements.html)
2) log this output signal of the Test Sequence Block, like:
3) analyze which was the last step (in the command window):
as = get(out.logsout,('Active_Step'))
as.Values
as.Values.Data
%or
%as.Values.Data(end)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Inputs についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!