When using instrument toolbox "udp" connection inside Matlab script-based GUI environment, I got successful two-way UDP comm links. But after using Matlab compiler to generate a standalone application, I cannot get UDP return datagrams. Outbound packets from PC to TUT is OK but returns from TUT back to PC always time out. I am using Matlab 2016a fread and fscanf to wait for return datagrams in synchronous mode.
Is there any bug in Matlab compiler that closes IP ports prematurely or preventing callbacks?