Simulink Test: How to run the same test for MIL and SIL?
10 views (last 30 days)
Show older comments
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?
0 Comments
Answers (1)
Nick Sarnie
on 1 Feb 2018
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.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!