EEVblog Electronics Community Forum

Products => Test Equipment => Topic started by: Dave92F1 on November 23, 2015, 08:35:27 pm

Title: Rigol DM3058E data logging to PC?
Post by: Dave92F1 on November 23, 2015, 08:35:27 pm
Has anybody got data logging working on the Rigol DM3058E?

I'd like to log readings twice a second or so to my PC, preferably via Ethernet, but USB would be OK too.

I'm told Ultraview doesn't do that (and is $$$ anyway), and I was advised to try the Excel macro from Rigol's website.

But the Excel macro (a) doesn't work on my old 2003 version of Excel, and (b) demands I enable macros not just for this one Excel file, but for everything - a really bad idea security-wise.

Surely this shouldn't be so hard - has anybody else got this working?
Title: Re: Rigol DM3058E data logging to PC?
Post by: Pinkus on March 02, 2016, 08:27:48 am
Alfons gave us an information in another thread which might be the solution:

For those who had to contend with this problem: I just did not get to run the Labview VI's right. Now Rigol said that you should change the decimal separator in the Windows Control Panel from "," to ".". Now, the driver actually work and at least I know what I must change because in the VI's. On the software side, the DM3058 a disaster, even if the device is not bad.
This error is also noticeable in the UltraView software and the Exel program.
I did not test it yet but it sounds very plausible.
Title: Re: Rigol DM3058E data logging to PC?
Post by: stuartk on March 02, 2016, 02:02:51 pm
You should try the Rigol software. I've heard that "Run as Date" allows you to run it in trial mode indefinitely.
Title: Re: Rigol DM3058E data logging to PC?
Post by: Dave92F1 on October 14, 2016, 05:55:50 pm
For what it's worth, I found a solution. I can read measurements from the DM3058E over USB using Python.

Here's how I did it on Windows 10:

1 - Install the NI Visa runtime (It's free. I used the version here: (

2 - Install Python if you don't already have it. I used Python 3.4, x64. (That's free too.)

3 - Install the PyVisa module (home page is ( All you have to do is this:

c:\Users\Dave> python -m pip install -U pyvisa

Python will download the package and install it by itself.

4 - Now start Python and you can do this:

import visa
rm = visa.ResourceManager()

That prints:

     ('USB0::0x1AB1::0x09C4::DM3R171400532::INSTR', 'ASRL1::INSTR', 'ASRL3::INSTR')

Then open the DMM like this:

     dmm = rm.open_resource('USB0::0x1AB1::0x09C4::DM3R171400532::INSTR')

You can query the instrument's ID:


Out[6]: 'Rigol Technologies,DM3058E,DM3R171400532,\n'

And measure voltage like so:


Out[7]: '1.230074E+01\n'

That's 12.30074 volts.

See the DM3058 Programming Guide for more commands you can send it: (