Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

MATLAB UDPPORT can't read data

Status
Not open for further replies.

barry

Advanced Member level 7
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:
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:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top