LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to close the datasocket connection properly?

I'm using old datasocket function (such as datasocket updated data, datasocket write, etc.) for a realtime control program in Labview 7.0. When the dataconnection is lost, the program will use datasocket close connection fucntion to destory the datasocket connection, then reestablish the connection. The problem is it costs more than 50 ms to close the datasocket connection. Is there any other better way to do so because it's a realtime system and cannot spend more time on closing datasocket connection.

Thanks a lot

Charlie
0 Kudos
Message 1 of 2
(2,486 Views)
When you say realtime, do you mean that you are using the LabVIEW Realtime Module? If so, what controller are you running on? You can use datasocket on RT, but the datasocket server has to be running on a Windows machine. What are the specs of this Windows machine. How are you measuring how long the datasocket close vi takes?

Regards,
Joe D.
National Instruments
0 Kudos
Message 2 of 2
(2,486 Views)