Why does my generated S-function have incorrect sample times when generated from a subsystem using the Real-Time Workshop?
显示 更早的评论
Why does my generated S-function have incorrect sample times when generated from a subsystem using the Real-Time Workshop?
I have a subsystem which has signals with multiple sample rates for its input. I generate an S-function from the subsystem. I then replace the subsystem with my generate S-function. When I simulate, I receive the following warning:
Warning: Inconsistent sample times. Sample time of signal ([0, 0]) driving input port 5 of block
'untitled1/BusSystem1/BusSystem1_sfcn' differs from the expected sample time at this input port
([1, 0]).
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!