MATLAB Answers

error to open library networkdevice.dll

14 views (last 30 days)
James
James on 4 May 2015
Answered: Stefanie Schwarz on 23 Apr 2019
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 Comments

Sign in to comment.

Answers (2)

Shogo Ida
Shogo Ida on 3 Apr 2018
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 Comments

Sign in to comment.


Stefanie Schwarz
Stefanie Schwarz on 23 Apr 2019
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 Comments

Sign in to comment.

Sign in to answer this question.