カスタムコードを呼び​出すS-Functi​onを含むモデルをR​apid Accelerator モードで実行しようと​するとビルドエラーが​発生するのはなぜです​か?

9 views (last 30 days)
C Mex S-Functionを含むモデルをRapid Accelerator モードで実行しようとするとビルドエラーが発生します。S-Functionは、カスタムCコードからの関数呼び出しを含みます。
Acceleratorモードでは、ビルドエラーが発生しません。

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 20 Jan 2017
Rapid Accelerator モードの場合、
[コンフィギュレーションパラメータ]
-> [シミュレーションターゲット]
-> [カスタムコード]
において、S-Functionからコールされるカスタムコード(Cソースファイル、ヘッダファイル、またはライブラリファイル)を登録する必要があります。
ここでカスタムコードを登録することにより、Rapid Accelerator モードでカスタムコードを含めたビルドを行うことが可能となります。

More Answers (0)

Categories

Find more on Block and Blockset Authoring in Help Center and File Exchange

Products


Release

R2010a

Community Treasure Hunt

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

Start Hunting!