03-21-2019 08:23 AM
Hi there
Im trying to establish a simple UDP connection to transfer data between a LabVIEW Real-time desktop and the host computer. For some reason this won't work, and i really can't seem to find the problem.
- The VI's can send data, if i move the read/write to the same computer.
- The computers are connected by ethernet TCP/IPv4.
- Pinging works fine, so there is an established connection.
Hope someone can help me out and thank you for your time
03-21-2019 08:44 AM
Are the machines connected directly, or over a simple switch/hub, or a corporate network?
Does the machine have a firewall that could be blocking the port?
0xDEAD
03-21-2019 09:03 AM
The machines are connected over a switch and the domain networks firewall has been turned off.
03-21-2019 09:34 AM
Is there any firewall/antivirus package on the host PC?
03-21-2019 09:55 AM
03-21-2019 10:14 AM
Did you check for any error output from the UDP functions?
03-21-2019 04:52 PM
@pincpanter wrote:
Did you check for any error output from the UDP functions?
The read VI returns Error 56 after 25 seconds, which is the standard timeout time.
03-21-2019 06:08 PM
Don't forget Windows ships with Windows Firewall built in. It may be getting blocked there.
03-22-2019 02:39 AM
Hello Rahca!
So, 192.168.220.3 is your host PC? Which IP does the RT one have? UDPWrite2.vi is executed on the RT, the other vi on the Receiver?
Please verify that UDP port 4100 is allowed on your receiver PC for incoming connections (Windows Firewall).
I noticed that your UDP code is inside a timed loop in both VIs. I have no idea if the UDP code could work like this, at least it's not intended. You set them to execute 100x per second, however have a timeout of 25s; network traffic is unlikely to be deterministic, don't place the UDP nodes in a deterministic loop.
03-22-2019 03:24 AM
So, 192.168.220.3 is your host PC? Which IP does the RT one have? UDPWrite2.vi is executed on the RT, the other vi on the Receiver?
Yes UDPwrite is executed on RT and UDPread is on host. RT has the IP 192.168.220.2.
I noticed that your UDP code is inside a timed loop in both VIs. I have no idea if the UDP code could work like this, at least it's not intended. You set them to execute 100x per second, however have a timeout of 25s; network traffic is unlikely to be deterministic, don't place the UDP nodes in a deterministic loop.
I just tried the ''Simple UDP'' sender/receiver VI from the examples menu, and they won't send data aswell.