3
Contents
1. Introduction
About this Guide..........................................................................................................................................7
Documentation Summary.............................................................................................................................7
External References......................................................................................................................................7
VXIPlug&Play Power Products Instrument Drivers....................................................................................8
2. Introduction to Programming
GPIB Capabilities of the Power Module......................................................................................................9
Module GPIB Address.................................................................................................................................9
Introduction to SCPI.....................................................................................................................................9
Conventions...............................................................................................................................................9
Types of SCPI Messages.........................................................................................................................10
Types of SCPI Commands......................................................................................................................10
Structure of a SCPI Message...................................................................................................................10
The Message Unit.................................................................................................................................10
Combining Message Units....................................................................................................................10
Parts of a SCPI Message.........................................................................................................................11
Headers.................................................................................................................................................11
Query Indicator..........................................................................................................12
Message Unit Separator........................................................................................................................12
Root Specifier.......................................................................................................................................12
Message Terminator.............................................................................................................................12
Traversing the Command Tree................................................................................................................13
Active Header Path...............................................................................................................................13
The Effect of Optional Headers............................................................................................................13
Moving Among Subsystems.................................................................................................................14
Including Common Commands...............................................................................................................14
SCPI Data Formats.....................................................................................................................................14
Numerical Data........................................................................................................................................14
Boolean Data...........................................................................................................................................15
String Data...............................................................................................................................................15
Character Data.........................................................................................................................................15
System Considerations...............................................................................................................................16
Assigning the Address in Programs.........................................................................................................16
DOS Drivers............................................................................................................................................16
Types of Drivers...................................................................................................................................16
Agilent 82335A Driver.........................................................................................................................16
National Instruments GPIB Driver.......................................................................................................16
Error Handling......................................................................................................................................17
Agilent BASIC for Series 300.................................................................................................................17
Translation Among Languages...................................................................................................................17
General Setup Information for GWBASIC.............................................................................................17
Using the Agilent 82335A/82990A/16062B GPIB Command Library................................................17
Using the National Instruments GPIB Interface...................................................................................18
General Setup Information for Microsoft C............................................................................................18
Using the Agilent 82335A/82990A/16062B GPIB Command Library................................................18
Using the National Instruments GPIB Interface...................................................................................18
Sending Commands to and Receiving Data from the Module.................................................................19
3. Language Dictionary
Introduction................................................................................................................................................23
Parameters..................................................................................................................................................23