Simulink Test harness inputs have wrong sample time

6 次查看(过去 30 天)

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