Contents
Warnings and Cautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
Chapter 1 Installing the System
Should I Use this Guide or Agilent VIC? . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
Installation Steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
Step 1: Set Up Mainframe for AC Power . . . . . . . . . . . . . . . . . . . . . . . 1-3
Step 2: Select Internal IBASIC or External Controller . . . . . . . . . . . . . . . 1-4
Step 3: Rack Mount the Mainframe (Optional) . . . . . . . . . . . . . . . . . . . 1-5
Step 4: Determine Instrument Configurations . . . . . . . . . . . . . . . . . . . . 1-6
Step 5: Set Plug-In Module Logical Addresses . . . . . . . . . . . . . . . . . . . . 1-9
Step 6: Install Plug-In Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-13
Step 7: Connect Bus Cables (Multiple Module Instruments Only) . . . . . . . . . 1-14
Step 8: Connect Interface Cables . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-16
Step 9: Apply AC Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-18
Step 10: Connect External DC Power (Optional) . . . . . . . . . . . . . . . . . . 1-19
Step 11: Download Device Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-20
Step 12: Verify Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-21
Step 12A: Verify Using The VERF_XXX Program . . . . . . . . . . . . . . . . . 1-21
Step 12B: Verifying Using Other Than The VERF_XXX Program . . . . . . . . . 1-22
Where to go Next . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-24
Chapter 2 Sending SCPI Commands
Verification and Example Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1
Primary and Secondary GPIB Addressing . . . . . . . . . . . . . . . . . . . . . . . . 2-1
Using Visual BASIC and Agilent SICL . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
What’s Needed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
How to Run a Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
Sending SCPI Commands and Receiving Data . . . . . . . . . . . . . . . . . . . . 2-2
Program Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
Using C/C+ + and Agilent SICL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
What’s Needed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
How to Run a Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
Sending SCPI Commands and Receiving Data . . . . . . . . . . . . . . . . . . . . 2-6
Program Example to Send and Read Unformatted Data . . . . . . . . . . . . . . 2-8
Example to Read Formatted Data . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-9
Example to Send and Read Formatted Data . . . . . . . . . . . . . . . . . . . . . 2-9
Using C and the GPIB Command Library . . . . . . . . . . . . . . . . . . . . . . . . 2-10
Supported C Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-10
Executing a Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-10
Compiling a Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-11
Sending SCPI Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-11
Receiving Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-11
Program Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-12
v