Simulink Test harness inputs have wrong sample time

조회 수: 6 (최근 30일)
JamieFish
JamieFish 2025년 7월 10일
댓글: JamieFish 2025년 7월 10일

I'm trying to create a test harness for a Simulink model using Simulink Test. This model is discrete and sample time independent, so doesn't set any sample times. The config parameter sample time is set to auto. When I create a harness, the signal spec blocks and inports are set to a sample time of 5. There doesn't seem to be any way to specify this. Any ideas?

  댓글 수: 1
JamieFish
JamieFish 2025년 7월 10일

I've "solved" this problem by setting the model step size explicitly before generating the harness. Not sure why this is necessary.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Outputs에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by