Chapter 3 Programming Examples RIGOL
MSO7000/DS7000 Programming Guide 3-3
Excel Programming Example
Program used in this instance: Microsoft Excel 2007
Function realized in this example: send the *IDN? command and read the instrument information.
1. Open a new Macro-enabled Excel file and name it "MSO7000_Demo_Excel.xlsm".
2. Run the MSO7000_Demo_Excel.xlsm file. Click Fileïƒ Options at the upper-left corner of the Excel file
to open the interface as shown in the figure below. Click Customize Ribbon at the left, check
Developer and click OK. At this point, the Excel menu bar displays the Developer menu.
3. Enter a device resource descriptor into a cell of the file as shown in the figure below. For example, the
device resource descriptor is USB0::0x1AB1::0x0514::DS7B200112345::INSTR. Input it into
SHEET1.CELLS(1,2) (i.g. the B1 cell in Sheet1). Click the Developer menu and select the Visual
Basic option to open the Microsoft Visual Basic.