EasyManuals Logo
Home>Rigol>Test Equipment>DS7000 Series

Rigol DS7000 Series User Programming Manual

Rigol DS7000 Series
259 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 #254 background imageLoading...
Page #254 background image
RIGOL Chapter 3 Programming Examples
3-10 MSO7000/DS7000 Programming Guide
Visual Basic Programming Example
Program used in this example: Visual Basic 6.0
Function realized in this example: control the on/off state of any channel.
Enter the Visual Basic 6.0 programming environment, and perform the following procedures.
1. Build a standard application program project (Standard EXE), and name it "Demo".
2. Click Project  Add Module to open the Add Module dialog box. In the dialog box, click the
Existing tab to search for the visa32.bas file in the "include" folder under the NI-VISA installation path
and add the file.
3. In the Demo dialog box, add four buttons to represent CH1 to CH4 respectively. Add four Labels
(Label1(0), Label1(1), Label1(2) and Label1(3)) to represent the statuses of CH1 to CH4 respectively
(when the channel is enabled, it displays the color of the channel; when the channel is disabled, it
displays gray), as shown in the figure below.
4. Click Project  Project1 Properties to open the Project1 – Project Properties dialog box. In
the dialog box, click on the General tab and select Form1 from the drop-down list under Startup
Object.
5. Double-click CH1 to enter the programming environment. Add the following codes to control CH1-CH4.
The codes of CH1 are as shown below; the codes of the other channels are similar.

Table of Contents

Other manuals for Rigol DS7000 Series

Questions and Answers:

Question and Answer IconNeed help?

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

Rigol DS7000 Series Specifications

General IconGeneral
BrandRigol
ModelDS7000 Series
CategoryTest Equipment
LanguageEnglish

Related product manuals