IVI connection to Rigol DMM

10 次查看(过去 30 天)
Tony
Tony 2023-6-18
编辑: Andrei 2024-8-22
Hi All... I have been attempting to connect a Rigol DM3068 DMM to Matlab. The driver from the manufacturer has been installed. I have spent many hours going down a rabbit hole of pages that links to more links, along with processes that leads to depreciated functions and errors. Below shows the current state of my attempts.
I'm now rather confused on the actual process. It would be ideal to find an example of how to generate the wrapper and link the driver to Matlab with current functions.
>> instrhwinfo
ans =
HardwareInfo with properties:
MATLABVersion: '9.14 (R2023a)'
SupportedInterfaces: {'gpib' 'serial' 'serialport' 'tcpip' 'udp' 'visa' 'Bluetooth' 'i2c' 'spi'}
SupportedDrivers: {'matlab' 'ivi' 'vxipnp'}
ToolboxName: 'Instrument Control Toolbox'
ToolboxVersion: '4.8 (R2023a)'
>> ividriverlist
ans =
1×4 table
VendorDriver MATLABDriver IVIClass SupportedModels
____________ ____________ ________ _______________
1 "rgdm3068" "" "IVIDmm" {["DM3068"]}
>> configStore = iviconfigurationstore;
>> add(configStore,"HardwareAsset","myDMMHWAsset2","TCPIP0::192.168.1.120::INSTR");
>> add(configStore,"DriverSession","myDMMSession2","rgdm3068","myDMMHWAsset2");
>> add(configStore,"LogicalName","myDMM2","myDMMSession2");
>> commit(configStore);
>> dev = ividev("IviDMM2","myDMM2");
No ividev MATLAB drivers found for your hardware.
>> instrhwinfo('ivi')
ans =
HardwareInfo with properties:
LogicalNames: {'myDMM' 'myDMM2'}
Modules: {1×13 cell}
ConfigurationServerVersion: '1.7.0.12115'
ConfigurationStoreLocation: 'C:\ProgramData\IVI Foundation\IVI\IviConfigurationStore.xml'
IVIRootPath: 'C:\Program Files\IVI Foundation\IVI\'

回答(3 个)

Tony
Tony 2023-6-26
For those interested, I sought technical support from Mathworks. I was advised that even though I have the IVI driver for the instrument, the Matlab driver does not support it. This contradicts what I've read Mathworks website. See below. I received no response with respect to creating the needed Matlab driver.
Rigol Instruments and MATLAB
Instrument drivers let you communicate with an instrument using higher-level commands. You can communicate with any instrument that supports the instrument standards IVI, LXI, or VXIplug&play.

Tony
Tony 2023-6-26
https://au.mathworks.com/products/instrument/supported/tcp-ip.html
Working with LXI Instruments
Instruments that conform to the LXI standard are delivered with IVI drivers and are automatically supported by MATLAB through Instrument Control Toolbox.

Andrei
Andrei 2024-8-22
编辑:Andrei 2024-8-22
The "rgdm3068" IVI-C vendor driver (provided by the manufacturer) is 32-bit only and will not work with ividev since MATLAB is a 64-bit application.
Instead, you can use visadev and the specific SCPI commands that the instrument supports, as described in the vendor-provided programming manual for the DM3068 model ( https://beyondmeasure.rigoltech.com/acton/attachment/1579/f-003f/0/-/-/-/-/file.pdf ).

产品


版本

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by