IVI connection to Rigol DMM

10 vues (au cours des 30 derniers jours)
Tony
Tony le 18 Juin 2023
Modifié(e) : Andrei le 22 Août 2024
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\'

Réponses (3)

Tony
Tony le 26 Juin 2023
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 le 26 Juin 2023
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 le 22 Août 2024
Modifié(e) : Andrei le 22 Août 2024
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 ).

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by