User`s guide

Agilent VISA User’s Guide 3
Agilent VISA User’s Guide
1 Introduction
What’s in This Guide? 8
VISA Overview 9
Using VISA, VISA COM, and SICL 9
VISA Support 10
VISA Documentation 10
Contacting Agilent 12
2 Building a VISA Application in Windows
Building a VISA Program (C/C++) 14
Compiling and Linking VISA Programs (C/C++) 14
Sample VISA Program (C/C++) 15
Building a VISA Program (Visual Basic) 19
Visual Basic Programming Considerations 19
Sample VISA Program (Visual Basic) 21
Logging Error Messages 26
Using the Event Viewer 26
Using the Debug Window 26
3Programming with VISA
VISA Resources and Attributes 30
VISA Resources 30
VISA Attributes 31
Using Sessions 33
Including the VISA Declarations File (C/C++) 33
Adding the visa32.bas File (Visual Basic) 33
Opening a Session 34
Addressing a Session 36