This example shows how to write a client that works with Dewesoft over NET functionality.
The zip file that is on our website www.dewesoft.com under download section contains three files (DeweNetExample.dxs, dwclient, dwserver). DeweNetExample.dxs is a Dewesoft setup file. Setup file must be loaded in on the remote Dewesoft otherwise python script wont work. File dwclient.py contains code which connects to Dewesoft to get channels and to define which channels will be used for transferring data. After channels are prepared we run code from dwserver.py.
The purpose of dwserver.py is that it makes 2 threads. The purpose of the first thread is to gather data from the remote Dewesoft. The purpose of the second thread is to process the data and then show it on the graph. Until remote Dewesoft sends data python script will show data.
This two scripts show an example how external software/script can gather data from remote Dewesoft over the DewesoftNET functionality.