LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Drop datasocket process

Dear friends
 
I've got a datasocket server and datasocekt reading program runing on machine A and writing datasocket program on machine A. PCs are connected via dianling-up modem. When the datasocet process drops off and the datasocket writing program needs to reestablish the connection, the old process is still exsting on the datasocket server and the data could not be sent to the datasocket server. Does it need a delay for the datasocket writing program to wait for the datasocet to close the old datasocket process?
 
One more question, is it possible to close the writing datasocket process in the datasocket reading program? How can I do that?
 
Thanks and cheers
 
John
 
 
0 Kudos
Message 1 of 4
(2,914 Views)

Hi John,

I don't think I'm totally understanding what's occurring when you lose the DataSocket connection.  Could you please post the exact text of the error message you're receiving?

Thanks!
Megan B.
National Instruments.

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

Thanks for your response.

The problem is that when the datasocket connection is droped for some reasons at the client side and reconnect again,  there're two datasocket connections turning up on the datasocket server and there is no data updated in this case. It seems the old datasocket connection hasn't been disconned on the datasocet server. I was told by NI that it will take 30S (using ethernet conneciton) for the datasocket server to kill the old connection. In this case I'm using a dialing-up modem for the communication. Could you help me to sort it out?

Kind regards

 

John

0 Kudos
Message 3 of 4
(2,875 Views)
 

Hey John,

How is your VI setup?  Maybe you could post it and we could take a look at it to make sure you are doing things correctly.  I don't really understand what you are doing here.  You are reading and writing from machine A?  What is machine B doing?  Do you just have two machines connected with a 56k dialup modem?  Or are they connected via a network?  Are you just sending the stuff out on A and receiving it on A?  You can't close the writing datasocket from the reading datasocket program.  You would have to be controlling that VI.  You can just simply have the writing datasocket close the connection after a long delay or something. 

Here is a great document that overviews datasockets: Integrating the Internet into Your Measurement System – DataSocket Technical Overview

 
jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 4
(2,863 Views)