サブシステムから生成した S-Function を使用すると、「サン​プル時間が矛盾してい​ます」というエラーが​出力されるのはなぜで​すか?

サブシステムから生成した S-Function を使用すると、「サンプル時間が矛盾しています」というエラーが出力されます。S-Function に入力する信号のサンプル時間はオリジナルのサブシステムとは変更しています。

 Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 1 Apr. 2013

0 Stimmen

これは期待通りのふるまいです。サブシステムが S-Function ターゲットでビルドされる場合、そのサンプル時間はオリジナルのモデルに依存するため、サンプル時間の異なる信号を入力すると、警告メッセージが出力されます。
この問題を回避するには、サブシステム内に明示的にサンプル時間を設定してください。

Weitere Antworten (0)

Kategorien

Mehr zu Code and Tool Customization finden Sie in Hilfe-Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!