フィルターのクリア

Built .dll based s-function

13 ビュー (過去 30 日間)
Furkan Bayrak
Furkan Bayrak 2019 年 7 月 24 日
回答済み: Yogesh Khurana 2019 年 7 月 29 日
I need to generate code from our Simulink model. Our aim to embed this model in real-time hardware for test. The problem is that, when we want to built our model we got following error :
### Build procedure for model: 'TS107' aborted due to an error.
Cannot find S-function module 'function'. S-Function modules must exist as either source files or pre-compiled object files on the MATLAB path.
In the model, i have a s-function. However, i cannot see the source code of this s-function (c code). Instead of source codes there are some .dll files. Since the model has mex file, the simulation runs from there and there is no problem.
My question is, is it possible to embed a .s-function which calls .dll files to hardware?

回答 (1 件)

Yogesh Khurana
Yogesh Khurana 2019 年 7 月 29 日
Yes, it’s possible to call a S-function using library files. You can define the .dll files in header file to call them. You can also refer to this function on MathWorks File Exchange which helps in calling shared libraries from Simulink:
Hope this helps!

カテゴリ

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

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by