barry
Advanced Member level 7
- Joined
- Mar 31, 2005
- Messages
- 6,554
- Helped
- 1,206
- Reputation
- 2,424
- Reaction score
- 1,434
- Trophy points
- 1,393
- Location
- California, USA
- Activity points
- 35,651
I'm using Matlab 20216 under windows. Here's the part of my code giving me problems:
I know there's data coming into the port (I can see it with Wireshark). And I know the socket is being opened, because I can look at the structure "u". But when I run this, I get the error 'unable to read any data'.
I have modified Windows firewall to allow Matlab and localport through UDP.
What am I doing wrong?
Code:
u=udpport('LocalHost',"1.2.3.9",'LocalPort',55056,'Timeout',3);
data_length=40000; % so we get at least one frame of all three packet types
data = read(u,data_length);
I know there's data coming into the port (I can see it with Wireshark). And I know the socket is being opened, because I can look at the structure "u". But when I run this, I get the error 'unable to read any data'.
I have modified Windows firewall to allow Matlab and localport through UDP.
What am I doing wrong?
Last edited: