@
marmad: Hope you don't mind me posting this here; I thought it was the most relevant thread.
Update on
DS2000 series IVI drivers:
I heard similarly as
marmad from Rigol NA regarding availability of IVI driver; i.e. it hasn't been released yet. But, Rigol suggested to me to try DS6000 series IVI driver, and that "I should be able to use most of the basic commands" from that driver.
I have tried a few things in MATLAB R2012a 64-bit, namely:
1.
http://www.mathworks.com/help/instrument/examples/reading-waveforms-from-an-oscilloscope-using-ivi-c-class-compliant-interface.html2.
http://www.mathworks.com/help/instrument/examples/reading-waveforms-from-an-oscilloscope-using-a-quick-control-oscilloscope-object.htmlBut have not been successful, and errors from MATLAB were not particularly helpful.
I am running Windows 64-bit and initial problems seem to be that Rigol's IVI driver installs its software modules in:
C:\Program Files\IVI Foundation\IVI\Bin\rgds6k_32.dll
Which appears inappropriate for a 32-bit DLL on a 64-bit operating system. Instead, it should have installed to:
C:\Program Files (x86)\IVI Foundation\IVI\Bin\rgds6k_32.dll
with a 64-bit version in: C:\Program Files\IVI Foundation\IVI\Bin\
but the Rigol package does not contain 64-bit versions of the DLL files.
I found MATLAB's "Test & Measurement Tool" (tmtool) not that helpful in checking/modifying the IVI driver configuration (e.g. hard to know if 32 or 64-bit DLL versions are being loaded, and from what directories etc.).
I did notice MATLAB lists: IVIRootPath = 'C:\Program Files\IVI Foundation\IVI\' which seems fine for 64-bit system, except that is where Rigol put the 32-bit DLL...
I tried copying (what I deemed appropriate) files from C:\Program Files\IVI Foundation\IVI\ to C:\Program Files (x86)\IVI Foundation\IVI\
but found no way to configure MATLAB to look for 32-bit IVI drivers in this directory, in fact, I'm not sure if 64-bit MATLAB will work with the 32-bit IVI drivers provided by Rigol.
The National Instruments "Measurement & Automation Explorer" (MAX) seems a more helpful; it seems to read and write the same IVI configuration file (an XML file) as MATLAB does, and it points out two different paths for 32-bit and 64-bit DLL files. (see attachment) So, NIs MAX seems a better way to do the IVI configuration than MATLABs tmtool.
I haven't tried setting things up the IVI configuration entirely within MAX, and then seeing how MATLAB works, but that would be a next step.
Most of my problems seem to be because of 32-bit and 64-bit differences between Windows/MATLAB and the Rigol IVI driver package.
If someone has a 32-bit only setup, they may have more luck. I'm interested to hear how that turns out.If you wish to try the IVI driver stuff, you also need to install the NI IVI Complicance Package:
http://joule.ni.com/nidu/cds/view/p/id/3065/lang/enAnd, IVI Shared Components:
http://www.ivifoundation.org/shared_components/Default.aspx