Simulink Test: How to run the same test for MIL and SIL?

10 ビュー (過去 30 日間)
Robert
Robert 2018 年 1 月 30 日
コメント済み: Robert 2018 年 2 月 2 日
I defined a test harness for a MIL test and defined a test sequence. The test works. Now I want to do the same test for SIL. Of course I can create another test harness for SIL test and redefine the test sequence. But this means I have to maintain two times the same test sequence for each test.
Is there any way to run the test as MIL and SIL (and PIL) without duplicating the test data?

回答 (1 件)

Nick Sarnie
Nick Sarnie 2018 年 2 月 1 日
Hi Robert,
I was able to accomplish this by creating two test harnesses, one for Normal mode, and then one for SIL. I then copied the SIL block from the SIL Harness into the Normal mode Harness. You can then simply swap out the blocks depending on which test mode you want to use.
  1 件のコメント
Robert
Robert 2018 年 2 月 2 日
Hi Nick,
thanks for your response. If I understand it correct, then you copy the S-function block to the MIL Harness to test in parallel. The Problem with this is that the S-function block does not automatically update if the tested block has changed.
My current solution is that I have two harnesses as you suggest. One for MIL and one for SIL. Then I put the testsequence and other test specific parts in a library and included it in both harnesses. But I'm not sure that this is the intended way.
Regards, Robert

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

カテゴリ

Help Center および File ExchangeTest Model Components についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by