Why do I get an 'inconsistent sample time' error when using an S-function generated from a subsystem in Simulink?
12 次查看(过去 30 天)
显示 更早的评论
I receive an 'inconsistent sample time' error when using an S-function from a subsystem. I changed input signal sample time of original Subsystem.
采纳的回答
MathWorks Support Team
2013-3-28
This is the expected behavior in Real-Time Workshop. When a subsystem with a This is the expected behavior in Real-Time Workshop. When a subsystem is built using S-Function target, its sample time is hardcoded, based on the final time of the model and number of steps.
To work around this issue, you can either explicitly set the sample time, or place in a subsystem.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!