beautypg.com

Program in visual basic 6.0 – RIGOL DS1000B User Manual

Page 140

background image

RIGOL

Programming Examples

Programming Guide for DS1000B Series

3-8

Program in Visual Basic 6.0


Open Visual Basic 6.0, take the following steps:

1. Create a Standard EXE project.

2. Choose ProjectAdd ModuleExisting; find the “visa.bas” file in the

filefolder of include under the path of NI-VISA and add;

3. Add four Command Buttons and Lables to the demo, each button denotes

each channel (CH1~CH4).and each Label denotes different states (yellow, light
blue, pink and dark blue which is the channel’s color indicates opening, while
gray indicates close) of the channels. See the figure below.

4. Choose ProjectProject1 PropertiesGeneral, select “Form1” from the

drop down box of Startup Object.