LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Checking loss of data connection

I have two vi's on seperate computers which share data via Datasocket over a wireless LAN. I have been trying to create a vi which sends essentially a verifaction signal every set interval from one computer, and if it is not recieved on the second computer, then it assumes the connection has been lost, and sets some variables to zero. I am having trouble implementing this though.

I can send signals peroidically, and recieve them. However, the timing means that it sometimes seems that the connectionis lost when it isn't, as the clocks aren't sycronised exactly. i.e. if the signal from the first computer doesn't arrive via datasocket at the exact instant that the loop on the second computer checks, it appears that no signal
was sent. (example vi's included below)

Is there any way of generating a continuous signal for a period of time from the first computer to send over Datasocket, or alternatively have the vi on the second computer open a 'window' where it would check for the signal to be recieved within a certain time frame? Would this overcome the timing issues, or is there another simpler way of achieving what i want? Any comments or suggestions very gratefully recieved!

Clare
Download All
0 Kudos
Message 1 of 3
(2,630 Views)
The attached isn't terrible elegant, but as long as you keep the receiver time to wait longer that the transmitter time to change it should work.
0 Kudos
Message 2 of 3
(2,630 Views)
Datasocket is great for sending data that you do not mind occasionally loosing. I think in your case you might want to consider TCP/IP instead so that you can be sure that the data you sent went though.
0 Kudos
Message 3 of 3
(2,630 Views)