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
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 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by