How to call a .dll in the code generation process of C S-Function

2 ビュー (過去 30 日間)
jianshen li
jianshen li 2021 年 2 月 26 日
コメント済み: jianshen li 2021 年 3 月 1 日
When I use Simulink real-time and build model, my C sfunction needs to call a .dll file.
How to call it correctly?

採用された回答

Diego Kuratli
Diego Kuratli 2021 年 3 月 1 日
It is not possible to call DLL libraries with Simulink Real-Time.
R2020a and older releases: dynamic libraries are not supported
R2020b and newer: the new RTOS is POSIX compliant, dynamic libraries can be integrated as .SO files (DLLs are Windows-based files and are not supported). The .SO file has to be on the target computer drive.
  1 件のコメント
jianshen li
jianshen li 2021 年 3 月 1 日
Thank you.
When I run on the target machine after compiling, I have the following problems in the hyperlink.Is this because my model relies on the third-party library FAST_Library_Win32.dll?
Thank you again!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTarget Computer Setup についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by