Great reply, 'tst'!
Here are a few more tips.
Remember that a DataSocket network is consisting of one DataSocket Server and one or several DataSocket Clients (applications using DataSocket Read or Write functions). The Server stores the data items and controls read and write access to the different data items, the Clients read from and write to the different data items. Therefore it is NOT ALWAYS necessary to launch the Server on the same machine as the Client.
Running the executable does not automatically launch the DataSocket Server. If you need to have the DataSocket Server running on the same machine as the executable, you can do as described by 'tst' to manually launch the Server.
What I prefer is to automatically launch the DataSocket Server when the executable is launched. Use the VI described in
this KnowledgeBase to launch the Server.
If you are using the DataSocket functions, and NOT the Front Panel DataSocket connections, to connect to your DataSocket items, you will get an error 56 or 63 if the DataSocket Server is closed prematurely and you are trying to read or write to it. By using a Case Structure to check for these errors, you can restart the DataSocket Server again in the case it was accidentally closed.
Good luck!
- Philip Courtois, Thinkbot Solutions