User`s guide

Agilent VISA User’s Guide 3
Agilent VISA Users 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) 18
Visual Basic Programming Considerations 18
Sample VISA Program (Visual Basic) 20
Logging Error Messages 25
Using the Event Viewer 25
Using the Debug Window 25
3 Programming with VISA
VISA Resources and Attributes 28
VISA Resources 28
VISA Attributes 29
Using Sessions 30
Including the VISA Declarations File (C/C++) 30
Adding the visa32.bas File (Visual Basic) 30
Opening a Session 31
Addressing a Session 33