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 Center および File ExchangeOutputs についてさらに検索

タグ

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by