Specifications

3 Programming Demos RIGOL
DS2000 Programming Guide
3-9
4. Turn on the device and the device descriptor is in CELLS(1,2) of SHEET1.
viErr = visa.viOpenDefaultRM(viDefRm)
viErr = visa.viOpen(viDefRm, Sheet1.Cells(1, 2), 0, 5000, viDevice)
5. Send request and read data.
cmdStr = "*IDN?"
viErr = visa.viWrite(viDevice, cmdStr, Len(cmdStr), ret)
viErr = visa.viRead(viDevice, idnStr, 128, ret)
Sheet1.Cells(2, 2) = idnStr
6. Turn off the device.
visa.viClose (viDevice)
visa.viClose (viDefRm)