10-06-2008 01:56 PM
Solved! Go to Solution.
10-07-2008 09:27 AM - edited 10-07-2008 09:29 AM
Hi,
Would you like to take a look at this example Transferring an ASCII Text File Using DataSocket and see if it helps?
10-09-2008 02:54 PM
Thanks for the answer Mark, but I have already looked at this one. The problem I have is that even this example uses out of date API calls. For example DS_Open() where this has been replaced by DS_OpenEx(). Also I am unsure if I need to have calls to the Data Socket Server. What I am trying to do is use Data Socket to implement a background monitor system that can provide text messages and data values for the client software to read and display. The test set is a PXI based solution running TestStand. This uses WiFi to establish a Remote Desktop connection to a TabletPC. I would like to piggy back onto this connection to display the debug data and other information to let me know what is going on inside the box. So is there any more information or help you can provide?
10-10-2008 05:46 AM
Hi Pete,
Sorry you have already found that one. I have written a simple example for you using DS_OpenEX() that you may find in the attachment. I wrote some comments in the code but if you have any questions please feel free to ask!
The example is based on a simple Reader and Writer model:
For your application, I suggest that the DataSocket Writer program can be running on your PXI which sends the data to a DS Server. This depends on your resources, you can either have a dedicated machine running as a DataSocket Server somewhere in your network (recommended for security reasons), or you can run the Server with the Writer on the same PXI. You can create as many Readers as you like running on different client machines such as your TabletPC or desktop PC as long as it can access the same network to poll the data back from the DS Server.
The Writer program can maintain a dedicated connection to the DS server to keep the data up to date all the time, and this does require establishing the connection using DS_Open() or DS_OpenEx(). But as for your client machines, connections should be closed as soon as the required data are acquired in order to minimise the traffic on your network.
Hope this helps,
07-25-2019 01:51 AM
Hello.
Does the writer code works for Kepserver to update the value
Regards,
Akshay
07-25-2019 02:02 AM - edited 07-25-2019 02:02 AM
Hello,
I'm getting an error after running the writer code which says
error: Undefined symbol '_DS_DiscardObjHandle@4' referenced in "e:\Writer\cvibuild.dsWriter\Debug\dsWriter.obj".
04-27-2021 06:39 PM
Need to Load Instruments with the DataSocket library, ...\toolslib\datasock\dataskt.fp