Why do I get the error "Could not open library: networkdevice.dll" when running a generated executable using UDP functionality outside MATLAB?
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Code Generation and Deployment en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!