Error with the simulink downsample component

13 views (last 30 days)
Pascal
Pascal on 1 Jun 2023
Answered: Pascal on 2 Jun 2023
Hello,
I am using the downsample component in simulink, but I am getting the error message:
"Nonzero sample time offsets are not supported"
during C++ generation.
My sample offset is set to 0 in the block parameters window. I also tried to use a workspace variable set to 0 to see if it makes a difference. No change.
I have used this block before without any problem. Any recommendation on how to debug this?
Thanks!

Answers (1)

Pascal
Pascal on 2 Jun 2023
It lloks like it is working if the component is used at the top level but fails with the bizarre message if used in a subsystem.

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!