Excel programming demo, Excel programming demo -3 – RIGOL DSG3000 Series User Manual

Page 159

Advertising
background image

Chapter 4 Programming Demos

RIGOL

DSG3000 Programming Guide

4-3

Excel Programming Demo

The program used in this demo: Microsoft Excel 2010

The functions realized in this demo: send the *IDN? Command to read the device information.

1. Create a new Excel file that enables the Macro. In this example, the file is named as

DSG3000_Demo_Excel.xlsm.

2. Run DSG3000_Demo_Excel.xlsm. 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. Input the VISA descriptor into a cell of the file as shown in the figure below. Click the Developer

menu and select the Visual Basic option to open the Microsoft Visual Basic.

Advertising