LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Time delay between labview and cvi via tcp/ip ?

Hi,
I am using NI daq to read 3 sensors by a custom VI module in Labview and I am receiving the data in realtime using tcp/ip network in another pc running CVI for windows. I am using the data in a c++ module which uses Openinventor. I am getting a time delay between the labview and the end application in Openinventor. How can I reduce the time delay?  I am unable to figure out where the time delay is exactly occuring.  Any suggestions ? Since I am running out of time, any help would be appreciated.

Thanks in advance..
Venkat
0 Kudos
Message 1 of 2
(3,324 Views)

Where are the computers physically located?

Are they on the same Ethernet network or different ones?

It could be network latency if the machines are not directly connected together. It could also be network congestion if you are sending data across a busy network.

If you run both applications on the same machine, you will get the minimum latency possible as the TCP/IP stack will do the data transfer inside the machine without ever going to the physical network. The next fastest configuration is directly connecting the two PCs together with a cross-over Ethernet cable. As soon as you start adding switches, hubs, routers and external WAN links to the equation, latency will increase at every step in the chain. Latency is also dependent on the data traffic on the network as well as the NIC card architecture, the drivers in use and a lot of other factors.

Unfortunately, you may have little control over these factors so you may need to account for latency. A good way to do this is to time-stamp each message sent from one machine to the other.

Martin Fredrickson
Test Engineer

Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128
0 Kudos
Message 2 of 2
(3,322 Views)