Author Topic: Rigol DM3058E data logging to PC?  (Read 6991 times)

0 Members and 1 Guest are viewing this topic.

Dave92F1

  • Guest
Rigol DM3058E data logging to PC?
« 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?
 

Offline Pinkus

  • Frequent Contributor
  • **
  • Posts: 768
Re: Rigol DM3058E data logging to PC?
« Reply #1 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.
 

Offline stuartk

  • Regular Contributor
  • *
  • Posts: 102
  • Country: ca
Re: Rigol DM3058E data logging to PC?
« Reply #2 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.
 

Dave92F1

  • Guest
Re: Rigol DM3058E data logging to PC?
« Reply #3 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: http://www.ni.com/download/ni-visa-run-time-engine-15.0/5379/en/)

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 https://pyvisa.readthedocs.io/en/stable/index.html). 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()
print(rm.list_resources())

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:

     dmm.query('*IDN?')

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

And measure voltage like so:

    dmm.query(":MEASure:VOLTage:DC?")

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

That's 12.30074 volts.

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

http://www.batronix.com/pdf/Rigol/ProgrammingGuide/DM3058_ProgrammingGuide_EN.pdf


« Last Edit: October 14, 2016, 05:58:57 pm by Dave92F1 »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf