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 中查找有关 Signal Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!