필터 지우기
필터 지우기

Create test harness automatically for SIL testing of a model (Embedded Coder)

조회 수: 1 (최근 30일)
giga
giga 2017년 2월 17일
답변: Mark McBroom 2017년 3월 19일
I've a Simulink model for which I'd like to test code generation errors for Embedded Coder target. I want to follow the SIL testing approach as described here. The approach first creates a test harness for a model. The harness uses a Model Reference block to refer the model under test and then simulates it's twice. Is there an automated way to create such a test harness for a model (preferably using command line)?
I searched for a while but could not filter out the solution I'm asking for from the results.

답변 (1개)

Mark McBroom
Mark McBroom 2017년 3월 19일
Yes, test harnesses can be created from referenced models. If you have an SL V&V or SLDV license, you can use slvnvmakeharness() or sldvmakeharness(). If you have a Simulink Test license, you can use sltest.harness.create().

카테고리

Help CenterFile Exchange에서 Test Model Components에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by