Visual Basic Programming Example - Rigol DG800 Pro Series Programming Manual

Function/arbitrary waveform generator
Hide thumbs Also See for DG800 Pro Series:
Table of Contents

Advertisement

5.3

Visual Basic Programming Example

Program used in this example: Visual Basic 6.0
Function realized in this example: control the on/off state of either 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 two buttons to represent CH1~CH2. Add two Labels
(Label1(0) and Label1(1)) to represent the status of CH1~CH2 respectively (when
the channel is enabled, it displays the color of the channel; when the channel is
disabled, it displays gray). See 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.
Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
Programming Examples
DG800 Pro/DG900 Pro Programming
Guide
201

Advertisement

Table of Contents
loading

Table of Contents