LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

UDP Communications Help

I have a need to get data from another application (EASYCATAP) into my LabVIEW application. The software I am trying to get the data from has the ability to publish it using UDP. However I am have trouble. I am unable to either establish communication or see data. However I am unsure if I am doing it correctly. Here are the steps I have taken so far:

 

1. Searched the forum and read the previous requests.  I found nothing that helped.


2. Opened the Simple UDP example in LabVIEW and ran both  the sender and receiver vi (on the same computer). I can see data in the receiver using the port numbers in the example.


3. Set my LabVIEW computer ethernet setting to be on the same network as the EASYCATAP compute and setup the EASYCATAP software to broadcast using UDP.

-Labview Ethernet settings: 192.168.169.10, 255.255.0.0
-EASYCATAP Ethernet settings: 192.168.169.1, 255.255.0.0
-EASYCATAP UDP settings: See below
-LabVIEW Simple UDP.VI settings: IP 192.168.169.1 Port 61557
-I was unable to establish communications, getting an Error 54

4.  I tried using a UDP terminal application (UDP sender-receiver from Microsoft,
-Started the Simple sender vi
-Started the UDP Sender-Receiver software in receiver only mode on port 61557 (Labview and UDP Sender-Receiver are running on the same computer)
-connection was established but no data being received.

 

5. I have turned off the firewall on both computers and repeated the above steps.  This did not help.

 

I hope with the information that I have provided someone may be able to assist?  Also does some know of a software that I could use to test the communications and data stream on the socket both locally and remotely?

 

Capture.PNG

 

0 Kudos
Message 1 of 4
(2,543 Views)

Can you post your VI that you're using? I know you're using the built-in one, but a screenshot with values filled out?

 

Error 54 usually means that the network address you're passing in to the function isn't formatted correctly, i.e. it's not a machine name or a xxx.xxx.xxx.xxx address, or you're using an illegal port number, or something else like that.

0 Kudos
Message 2 of 4
(2,500 Views)

To be clear, what's the IP address of the NIC on the PC you are trying to receive the packets on? You mention both 192.168.169.1 and 192.168.169.10. If the actual NIC address is the latter that could be an issue.

--------------------------------------
0 Kudos
Message 3 of 4
(2,492 Views)

With the values you mention you should change the IP address in your EASYCATAP software to 192.168.169.10 and run the Simple UDP Receiver in LabVIEW!

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 4
(2,446 Views)