How to import DLL files (*.dll ) into Simulink?
33 次查看(过去 30 天)
显示 更早的评论
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1540582/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1540587/image.jpeg)
How to correctly import DLL files into Matlab R2023a/Simulink? Please advise. Thanks!
回答(1 个)
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:
- Check S-Function Configuration: Ensure that the S-function "system1" is available within your project or environment.
- Library or Path: Verify that the necessary library or path containing the "system1" S-function is correctly referenced and accessible to the project.
- 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
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!