Description of the problem

How to read live data from Dewesoft with DCOM and Python?


Description of the solution

In the attachment is an example python script that uses DCOM, pywin32 module needs to be installed. The script creates a DCOM object and initializes Dewesoft. After the initialization the windows dimensions are set. In the next step a setup file is loaded, line 33, please change the path to the setup file accordingly. To read the data from the channels we need to build the channel list and create a list of channels from which we would like to read the data. In the example the data is read from all the channels set to used, line 45.


To read the newest data from a buffer we implemented the example from DCOM manual ( Example For Buffer Index, p. 15). To read the data from all the channels we constantly loop over the channel list and read the latest data from the buffer. To break the loop please press CTRL-C. The reading of data is stopped and after pressing "any" key the measurement is stopped and the DCOM object is deleted and Dewesoft is closed.



Additional information

DCOM Manual, Automate measurements with DCOM by using Python, Setting the bridge/shunt parameters with DCOM