Visual Basic Programming Example - Rigol DS7034 User Programming Manual

Mso7000 series; ds7000 series; digital oscilloscope
Hide thumbs Also See for DS7034:
Table of Contents

Advertisement

RIGOL

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.
3-10
Chapter 3 Programming Examples
MSO7000/DS7000 Programming Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ds7054Ds7024Ds7014Mso7034Mso7024Mso7014 ... Show all

Table of Contents