Instrument-control toolbox cannot open udp port

Hello
I try to use the udp tollbox from the instrument-control toolbox
I want open a udp port and read data.
The udp function to open the port works, but the udp_read function doesn’t. Here is the code:

>>  REMOTEIP='10.0.0.16'; 
>>  REMOTEPORT=10000;
>>  RECVPORT=10001;
>>  
>>  % ouverture port UDP
>>  udp=udp(REMOTEIP,RECVPORT,'localport',REMOTEPORT,'timeout',1);
>> udp
---- udp =
---- UDP Object UDP-10.0.0.16
----            type: udp
----         status: open
----      remoteport: 10001
----      remotehost: 10.0.0.16
----       localport: 10000

>>  % read data
>>  udp_read (udp, 1024, 1)
---- error: udp_read: Error while reading: 10040 -

I tried several size of “number of bytes to attempt to read of type Integer” but without success. Could you give me a solution for this error?

My system

  • Windows 10
  • Octave Version 6.1.0
  • Downloaded and installed “octave-6.1.0-w64-installer.exe” from Download

A Quick search of of the internet for taht error code:

WSAEMSGSIZE (10040): Message too long → A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself.

So my guess would be that the UDP packets being sent to the socket are bigger than 1024 bytes, so increase your expected size.