EasyManuals Logo

Rigol DSA832E Programming Guide

Rigol DSA832E
243 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 #227 background imageLoading...
Page #227 background image
Chapter 3 Programming Demos RIGOL
DSA800E Programming Guide 3-13
Visual Basic 6.0 Programming Demo
Enter the Visual Basic 6.0 programming environment and follow the steps below.
1. Build a standard application program project (Standard EXE) and name it as DemoForDSA.
2. Open Project  Add File… . Search for the visa32.bas file under the include folder under the
installation path of NI-VISA and add the file which contains all VISA functions and constant statements
to the project.
Then add the Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) statement
into the visa32.bas, or create a new module to declare the Sleep function.
3. Add the Label, Text and Button controls as shown in the figure below.
4. Encapsulate the write and read operations of VISA.
1) Encapsulate the write operation of VISA for easier operation.
'-----------------------------------------------------------
'Function Name:InstrWrite
'Function:Send command to the instrument
'Input:rsrcName,instrument(resource) name
strCmd,Command
'-----------------------------------------------------------
Public Sub InstrWrite(rsrcName As String, strCmd As String)
Dim status As Long

Table of Contents

Other manuals for Rigol DSA832E

Questions and Answers:

Question and Answer IconNeed help?

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

Rigol DSA832E Specifications

General IconGeneral
BrandRigol
ModelDSA832E
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals