EasyManuals Logo

Rigol DP832 Programming Guide

Rigol DP832
134 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #109 background imageLoading...
Page #109 background image
Chapter 4 Programming Demos RIGOL
DP800 Programming Guide 4-5
5 Click View Code in the Developer menu to enter the Microsoft Visual Basic interface. Add the
following codes and save the file.
Note: If the Excel file created at step 2 does not enable the Macros, at this point, the prompt message
“The following features cannot be saved in macro-free workbooks”will be displayed. In this situation,
please save the Excel file as a file using the Macros.
Sub QueryIdn()
Dim viDefRm As Long
Dim viDevice As Long
Dim viErr As Long
Dim cmdStr As String
Dim idnStr As String * 128
Dim ret As Long
Turn on the device, the device resource descriptor is in CELLS(1,2) of SHEET1’
viErr = visa.viOpenDefaultRM(viDefRm)
viErr = visa.viOpen(viDefRm, Sheet1.Cells(1, 2), 0, 5000, viDevice)
Send request, read the data, the return value is in CELLS(2,2) of SHEET1
cmdStr = "*IDN?"
viErr = visa.viWrite(viDevice, cmdStr, Len(cmdStr), ret)
viErr = visa.viRead(viDevice, idnStr, 128, ret)
Sheet1.Cells(2, 2) = idnStr
Turn off the device
visa.viClose (viDevice)
visa.viClose (viDefRm)
End Sub
6 Add button control: click Insert in the Developer menu, select the desired button in Form Controls
and put it into the cell of the Excel. At this point, the Assign Macro interface is displayed, select
Sheet1.QueryIdnand click “OK”.
By default, the button mane is Button 1. Right-click the button and select Edit Text in the pop-up
menu to change the button name to “*IDN?.

Table of Contents

Other manuals for Rigol DP832

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Rigol DP832 and is the answer not in the manual?

Rigol DP832 Specifications

General IconGeneral
Number of Outputs3
Output Voltage Range CH1/CH20-30V
Output Voltage Range CH30-5V
Output Current Range CH1/CH20-3A
Output Current Range CH30-3A
Total Power195 W
Power per Channel CH1/CH290 W
Power per Channel CH315 W
Voltage Resolution1 mV
Current Resolution1 mA
InterfacesUSB, RS232
Display3.5 inch TFT LCD

Related product manuals