The executables generated from dsp.UDPSender objects, dsp.UDPReceiver objects and UDP Send/Receive blocks rely on prebuilt DLL files included with MATLAB. As suggested by the error message, the "packNGo" function packages all the relevant files including the prebuilt DLL files in a compressed ZIP file so that you can relocate, unpack, and rebuild your project in another development environment.
In this packNGo archive, you will find the required "networkdevice.dll" file. However, please make sure to copy* *all DLL files from the packNGo archive into the directory that contains the EXE file, not only "networkdevice.dll". For example, the archive may contain other required DLLs such as:
mwboost_chrono-vc140-mt-1_65_1.DLL mwboost_date_time-vc140-mt-1_65_1.DLL mwboost_system-vc140-mt-1_65_1.DLL
Once all DLLs from the packNGo archive are present in the same folder as the EXE file, you should be able run the generated executable successfully.
In case MATLAB or MATLAB Runtime is installed on the machine you are running the executable, you may also set the environment variables to the respective installation folder instead of manually copying the DLLs from the packNGo archive. For more details regarding this workflow, and general information on how to run a generated executable outside MATLAB, please refer to the documentation page below: