MATLAB Answers

error to open library networkdevice.dll

12 ビュー (過去 30 日間)
James
James 2015 年 5 月 4 日
回答済み: Stefanie Schwarz 2019 年 4 月 23 日
Hello everybody, i did a simulink model with udp send and udp receive, after i generate the code with the embadded coder in my genertaed folder there are .c and .h files and a makefile. i copy all .c .h files in a project visual c++ i genereate the .exe file and a copied the networkdevice.dll in the same directory. But whene i execute my programe, he didn't find the networdevice.dll the message in terminal is ""Could not open library: networkdevice.dll"
i have matlab r2014a, and visual studio 2013
please helpe :) thanks

  0 件のコメント

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

回答 (2 件)

Shogo Ida
Shogo Ida 2018 年 4 月 3 日
You can use packNGo to include networkdevice.dll in the generated zip folder.
see https://www.mathworks.com/help/dsp/ug/how-to-run-a-generated-executable-outside-matlab.html https://www.mathworks.com/help/rtw/ref/packngo.html https://www.mathworks.com/help/dsp/ref/udpsend.html?s_tid=gn_loc_drop

  0 件のコメント

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


Stefanie Schwarz
Stefanie Schwarz 2019 年 4 月 23 日
Please make sure that not only the "networkdevice.dll" file is copied to the same directory as the EXE file, but all DLLs contained in the packNGo archive.
See below MATLAB Answers post for more information:

  0 件のコメント

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

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by