LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

UDP won't read

I need to read udp data and I know its getting to the card ( I used wireshark to see it) but I need to get it into LabVIEW without using a "packet sniffer".  The UDP read just doesn't seem to work...any suggestions?
 
-D
0 Kudos
Message 1 of 41
(4,526 Views)
^^^
0 Kudos
Message 2 of 41
(4,420 Views)
Were you trying to add more information, or was that an attempt to "bump" the thread? Please give time for people to respond to your thread. Most of the folks here are volunteering their time, and many (like me) have full-time jobs.

With respect to your question: Please be more explicit. What doesn't work? Are you getting an error? Or, are you getting no data? Same port? Can you post your code, or a screenshot?
0 Kudos
Message 3 of 41
(4,408 Views)
UDP read works perfectly, so you are doing something wrong.
 
Have a look at the shipping example "UDP receiver.vi" for correct code.
 
If you cannot figure out the problem, attach your VI and we will have a look. 🙂
0 Kudos
Message 4 of 41
(4,396 Views)
**smercurio_fc....
-Yes I was bumping the thread, I was in a pinch and thought someone might have a quick answer considering most people who use the forum  look at the first page.  I appreciate the help but there is no need to be defensive, we are all here for the same reason.  And if you work in the same industry I am in then you probably realize sometimes you need a problem solved as efficiently as possible.

As for the question intended, the the data is not getting recieved by labview (it is sent fine).   I noticed there is the timeout error but I eliminated that.  It almost seems like a timing issue, although I am an electrical engineer, not a computer engineer, so I don't have a good grasp on networking.

Thanks for the help,
-Dustin
0 Kudos
Message 5 of 41
(4,388 Views)
I wasn't being defensive, and it's irrelevant what industry I'm in. I was merely pointing out that you can't always get "immediate" answers on public forums. Sometimes too many people who post on these boards assume there's somebody at the other end ready to pounce on the keyboard when a new question comes in. If you find yourself needing immediate assistance, then your best bet is to contact NI support directly. Smiley Wink

With respect to your question: Have you looked at the examples that ship with LabVIEW? If you post your code there more specific help may be provided.
0 Kudos
Message 6 of 41
(4,370 Views)
I am reading from port 80, could this be a problem because its the HTTP port?
0 Kudos
Message 7 of 41
(4,361 Views)
HTTP should be using TCP, not UDP. Regardless, any particular reason why you're using 80, when there are so many private ports available?
0 Kudos
Message 8 of 41
(4,356 Views)


Isereau wrote:
I am reading from port 80, could this be a problem because its the HTTP port?

No, this is no problem. Any port that is not already in use as a server port if free to be used.
Message 9 of 41
(4,343 Views)

It's still not working, Here's a screen shot of my two VI's:

0 Kudos
Message 10 of 41
(4,334 Views)