Why does my generated S-function have incorrect sample times when generated from a subsystem using the Real-Time Workshop?
Show older comments
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]).
Accepted Answer
More Answers (0)
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!