フィルターのクリア

How to import DLL files (*.dll ) into Simulink?

32 ビュー (過去 30 日間)
Linda
Linda 2023 年 11 月 15 日
回答済み: Tushar Sharma 2023 年 11 月 27 日
I got several DLL files from Vendor, I wanna import these files into my Simulink model and generate some function blocks. I am using Matlab R2023a/Simulink. I tried add S-Function blocks for each dll file, and entered DLL filename into 'S-function modules', then I ran the Simulink model but got the following error:
How to correctly import DLL files into Matlab R2023a/Simulink? Please advise. Thanks!
  2 件のコメント
madhan ravi
madhan ravi 2023 年 11 月 15 日
編集済み: Walter Roberson 2023 年 11 月 15 日
Linda
Linda 2023 年 11 月 15 日
Hi Madhan,
I created the S-function block into Simulink based on the link you shared. However as you can see, I got the error shown in my question description. Can you please tell if my settings for the S-function has anything wrong? Or is there any other steps missing besides setting up the S-function block? Can you please provide instructions with more details. Thank you!

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

回答 (1 件)

Tushar Sharma
Tushar Sharma 2023 年 11 月 27 日
Hi Linda,
I understand that you created S-function block to acheive importing DLL files into Simulink, but you are facing an error.
It looks like you're encountering an error related to an S-function called "system1" within the "DLLtest1/S-Function". To resolve this issue, you may want to check the following:
  1. Check S-Function Configuration: Ensure that the S-function "system1" is available within your project or environment.
  2. Library or Path: Verify that the necessary library or path containing the "system1" S-function is correctly referenced and accessible to the project.
  3. S-Function Name: Double-check that the S-function name "system1" is spelled correctly and matches the actual name of the S-function you intend to use.
By addressing these points, you may be able to resolve the error related to the non-existent S-function.
Hope it helps!
Best regards,
Tushar

カテゴリ

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

タグ

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by