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

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

 Accepted Answer

MathWorks Support Team
MathWorks Support Team on 1 Apr 2013

0 votes

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

More Answers (0)

Categories

Find more on Code and Tool Customization in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!