Why do I get the error "Could not open library: networkdevice.dll" when running a generated executable using UDP functionality outside MATLAB?
이전 댓글 표시
I've written a MATLAB function that uses "dsp.UDPSender" or "dsp.UDPReceiver" objects to send or receive UDP packets over a network. When I deploy this function to a standalone executable using MATLAB Coder, and try to run the EXE file outside the MATLAB environment, I get the error below:
Could not open library: networkdevice.dll.
To run the generated code outside the MATLAB environment, use the packNGo function.
The same thing happens if I have a Simulink model with "UDP Send" or "UDP Receive" blocks from DSP System Toolbox or Embedded Coder's "Host Communication" library, and I generate an executable using Simulink Coder or Embedded Coder. Upon running the EXE file, the application silently exits, and no UDP data is sent or received.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Code Generation and Deployment에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!