Hello,
When writing data to a datasocket, if there is no connection and you try to do a write, you should receive an error. Have you tried checking the connection status to be sure that you are connected before you send data? As far as doing the write in a separate thread, be sure that if you put that in a different thread that dataSocket is setup to work in AutoUpdate mode and that none of the datasocket communication relies on User Interface manipulation. Be sure as well that you open the DataSocket in the new thread. I also wanted to note that when you run datasockets in a different thread, it still wouldn't effect the fact that the datasocket thread would stop responding for a few seconds, it would just allow the User Interface to still be updated during that t
ime. Hope this helps!
Regards,
Steven B.
Applications Engineering
National Instruments