3 Programming Demos RIGOL
DS2000E Programming Guide
Visual Basic 6.0 Programming Demo
The program used in this demo: Visual Basic 6.0
The function realized in this demo: control the on/off state of any channel.
1. Build a standard application program project (Standard EXE) and name it as DS2000E_Demo_VB.
2. Click the Existing tab of Projectïƒ Add Module. Search for the visa32.bas file in the include
folder under the NI-VISA installation path and add the file.
3. Add two buttons to represent CH1 and CH2 respectively. Add two Labels (Label1(0) and Label1(1)) to
represent the status of CH1 and CH2 respectively (when the channel is enabled, it dispays the color
of the channel; when the channel is disabled, it displays gray), as shown in the figure below.
4. Open the General tab in Projectïƒ Project1 Properties and select Form1 in the Startup Object
dropdown box.