Page 3 - Table of Contents; - GENERAL INFORMATION
3 Table of Contents Safety Guidelines 2 Printing History 2 Table of Contents 3 1 - GENERAL INFORMATION 7 About this Guide 7 Documentation Summary 7 External References 8 GPIB References 8 SCPI References 8 2 - INTRODUCTION TO PROGRAMMING 9 VXIplug&play Power Products Instrument Drivers 9 Support...
Page 4 - - LANGUAGE DICTIONARY
4 Output Trigger System Model 21 Setting the Voltage or Current Trigger Levels 21 Initiating the Output Trigger System 22 Generating Triggers 22 Making Measurements 23 Voltage and Current Measurements 23 Internally Triggered Measurements 25 SCPI Triggering Nomenclature 25 Measurement Trigger System ...
Page 7 - General Information; About this Guide
7 1 General Information About this Guide This guide provides remote programming information for the following series of GPIB programmable dcpower supplies: • Agilent 66312A • Agilent 66332A • Agilent 6631B/6632B/6633B/6634B • Agilent 6611C/6612C/6613C/6614C You will find the following information in...
Page 8 - External References; GPIB References
1 - General Information 8 External References GPIB References The most important GPIB documents are your controller programming manuals - BASIC, GPIB CommandLibrary for MS DOS, etc. Refer to these for all non-SCPI commands (for example: Local Lockout). The following are two formal documents concerni...
Page 9 - Introduction to Programming; VXI; Supported Applications; Microsoft Windows 95; Downloading and Installing the Driver
9 2 Introduction to Programming VXI plug&play Power Products Instrument Drivers VXI plug&play instrument drivers for Microsoft Windows 95 and Windows NT are now available on the Web at http://www.agilent.com/find/drivers. These instrument drivers provide a high-level programminginterface to ...
Page 10 - Accessing Online Help; GPIB Capabilities of the DC Source; GPIB Address; RS-232 Capabilities of the DC Source
2 - Introduction to Programming 10 6. To use the VXI plug&play instrument driver, follow the directions in the VXI plug&play online help under “Introduction to Programming”. Accessing Online Help A comprehensive online programming reference is provided with the driver. It describes how to ge...
Page 11 - RS-232 Programming Example
Introduction to Programming - 2 11 Baud Rate The front panel Address key lets you select one of the following baud rates, which is stored in non-volatilememory:300 600 1200 2400 4800 9600 RS-232 Flow Control The RS-232 interface supports several flow control options that are selected using the front...
Page 12 - RS-232 Troubleshooting; Introduction to SCPI; Conventions Used in This Guide
2 - Introduction to Programming 12 FUNCTION gets$ ‘ Get a new line feed terminated string from device #1 C$ = “” ‘ Set C$ to null WHILE c$ <> CHR$ (10) ‘ Set loop to stop at Line Feed C$ = INPUT$ (1, #1) ‘ Read 1 bit into file #1 Resp$ = resp$ + c$ ‘ Concantenate bit with previous bits WEND ‘ ...
Page 13 - Types of SCPI Commands; Multiple Commands in a Message
Introduction to Programming - 2 13 Types of SCPI Commands SCPI has two types of commands, common and subsystem. ♦ Common commands generally are not related to specfic operation but to controlling overall dcsource functions, such as reset, status, and synchronization. All common commands consist of a...
Page 14 - Using Queries; Types of SCPI Messages
2 - Introduction to Programming 14 Moving Among Subsystems In order to combine commands from different subsystems, you need to be able to reset the header path toa null string within a message. You do this by beginning the command with a colon (:), which discards anyprevious header path. For example...
Page 15 - The Message Unit
Introduction to Programming - 2 15 Data Keywords Keyword Separator Message Unit Separators Message Unit Query Indicator Message Terminator Root Specifier VOLT <NL> : LEV 20 PROT 21 ; ; : CURR? Figure 2-2. Command Message Structure The Message Unit The simplest SCPI command is a single message ...
Page 16 - SCPI Data Formats; Numerical Data Formats
2 - Introduction to Programming 16 NOTE: All RS-232 response data sent by the dc source is terminated by the ASCII character pair<carriage return><newline>. This differs from GPIB response data which is terminated bythe single character <newline> with EOI asserted. SCPI Data Format...
Page 19 - Programming the DC Source; Introduction; Programming the Output; Power-on Initialization
19 3 Programming the DC Source Introduction This chapter contains examples on how to program your dc source. Simple examples show you how toprogram: u output functions such as voltage and current u internal and external triggers u measurement functions u the status and protection functions NOTE: The...
Page 20 - Output Voltage; Output Current
3 - Programming the DC Source 20 Output Voltage The output voltage is controlled with the VOLTage command. For example, to set the output voltage to 25volts, use: VOLTage 125 The dc source can be programmed to turn off its output if the output voltage exceeds a preset peakvoltage limit. This protect...
Page 21 - Triggering Output Changes; SCPI Triggering Nomenclature; Output Trigger System Model
Programming the DC Source - 3 21 Triggering Output Changes The dc source has two independent trigger systems. One is used for generating output changes, and theother is used for triggering measurements. This section describes the output trigger system. Themeasurement trigger system is described unde...
Page 22 - Initiating the Output Trigger System; Generating Triggers
3 - Programming the DC Source 22 Initiating the Output Trigger System When the dc source is turned on, the trigger subsystem is in the idle state. In this state, the triggersubsystem ignores all triggers. Sending the following commands at any time returns the trigger system tothe Idle state: ABORt *...
Page 23 - Making Measurements; Voltage and Current Measurements
Programming the DC Source - 3 23 Making Measurements The dc source has the ability to make several types of voltage or current measurements. Themeasurement capabilities of the Agilent 66312A and Agilent 66332A models are particulary useful forloads that draw current in pulses. NOTE: You cannot measu...
Page 25 - Internally Triggered Measurements; Measurement Trigger System Model
Programming the DC Source - 3 25 Internally Triggered Measurements You can use the data acquisition trigger system to synchronize the timing of the voltage and current dataacquisition with a BUS or internal trigger source. Then use the FETCh commands to return differentcalculations from the data acq...
Page 28 - Current Detector
3 - Programming the DC Source 28 Measuring Output Pulses (Agilent 66312A, 66332A Only) Current Detector Check that the current detector is set to ACDC when measuring current pulses or other waveforms with afrequency content greater than a few kilohertz. SENSe:CURRent:DETect ACDC Only select DC as th...
Page 29 - Controlling Measurement Samples; Varying the Voltage or Current Sampling Rate
Programming the DC Source - 3 29 Controlling Measurement Samples Varying the Voltage or Current Sampling Rate You can vary both the number of data points in a measurement sample, as well as the time betweensamples. This is illustrated in Figure 3-5. SENS:SWE:POIN <# of points> SENS:SWE:TINT &l...
Page 32 - Programming the Status Registers
3 - Programming the DC Source 32 Programming the Status Registers You can use status register programming to determine the operating condition of the dc source at anytime. For example, you may program the dc source to generate an interrupt (assert SRQ) when an eventsuch as a current limit occurs. Wh...
Page 33 - Operation Status Group
Programming the DC Source - 3 33 Table 3-1. Bit Configurations of Status Registers Bit Signal Meaning 0 5 8 10 11 CAL WTG CV CC+ CC- Operation Status Group The dc source is computing new calibration constants The dc source is waiting for a trigger The dc source is in constant voltage mode The dc sou...
Page 35 - Determining the Cause of a Service Interrupt; Servicing Operation Status and Questionable Status Events
Programming the DC Source - 3 35 The MSS Bit This is a real-time (unlatched) summary of all Status Byte register bits that are enabled by the ServiceRequest Enable register. MSS is set whenever the dc source has one or more reasons for requestingservice. *STB? reads the MSS in bit position 6 of the ...
Page 36 - Monitoring Both Phases of a Status Transition; Inhibit/Fault Indicator
3 - Programming the DC Source 36 event to be summed into the Questionable summary bit. Use: STATus:QUEStionable:PTR 19;ENABle 19 (1 + 2 + 16 = 19) Step 3 Program the Service Request Enable register to allow both the Operation and theQuestionable summary bits from the Status Byte register to generate...
Page 37 - Using the Inhibit/Fault Port as a Digital I/O; DFI Programming Example
Programming the DC Source - 3 37 Using the Inhibit/Fault Port as a Digital I/O You can configure the inhibit/fault port to provide a digital input/output to be used with custom digitalinterface circuits or relay circuits. As shipped from the factory, the port is shipped for inhibit/fault operation.Y...
Page 39 - Language Dictionary; Subsystem Commands
39 4 Language Dictionary Introduction This section gives the syntax and parameters for all the IEEE 488.2 SCPI commands and the Commoncommands used by the dc source. It is assumed that you are familiar with the material in “Chapter 2 -"Remote Programming". That chapter explains the terms, sy...
Page 44 - Calibration Commands
4 - Language Dictionary 44 Calibration Commands Calibration commands let you: u Enable and disable the calibration mode u Change the calibration password u Calibrate the current and voltage programming and measurement, and store new calibrationconstants in nonvolatile memory. NOTE: If calibration mo...
Page 47 - Measurement Commands
Language Dictionary - 4 47 Measurement Commands Measurement commands consist of measure and sense commands. Measure commands measure the output voltage or current. Measurements are performed by digitizingthe instantaneous output voltage or current for a defined number of samples and sample interval,...
Page 68 - System Commands; DISPlay
4 - Language Dictionary 68 System Commands System commands consist of system, display, and common commands. System commands commands control system functions that are not directly related to output control ormeasurement functions. Display commands control the front panel display of the . Common comm...
Page 73 - Trigger Commands
Language Dictionary - 4 73 Trigger Commands Trigger commands consist of trigger and initiate commands. Trigger commands control the remote triggering of the dc source . Trigger commands (and Initatecommands) are referenced either by name or by number. The correspondence between names andnumbers is:S...
Page 74 - TRIGger
4 - Language Dictionary 74 TRIGger When the transient trigger subsystem is initiated, this command generates a trigger signal. The trigger willthen: 1. Initiate a pending level change as specified by CURRent:TRIGger or VOLTage;TRIGger.2. Clear the WTG bit in the Status Operation Condition register a...
Page 81 - SCPI Conformance Information; SCPI Version; SCPI Confirmed Commands
81 A SCPI Conformance Information SCPI Version The Agilent Dynamic Measurement DC Source conforms to SCPI Version 1995.0. SCPI Confirmed Commands ABOR SENS:SWE:POIN CAL:DATA SENS:SWE:TINT CAL:STAT STAT:OPER[:EVEN]? DISP[:WIND][:STAT] STAT:OPER:COND? DISP[:WIND]:TEXT[:DATA] STAT:OPER:ENAB INIT[:IMM]:...
Page 83 - Compatibility Language
83 B Compatibility Language Introduction The Agilent power supplies covered by this manual are programmatically compatible with the HP/Agilent6632A, 6633A, and 6634A dc power supplies. This means that by using COMPatibility language mode youcan program these newer dc sources over the GPIB using COMP...
Page 89 - Error Messages; Error Number List
89 C Error Messages Error Number List This appendix gives the error numbers and descriptions that are returned by the dc source. Errornumbers are returned in two ways: ♦ Error numbers are displayed on the front panel ♦ Error numbers and messages are read back with the SYSTem:ERRor? query. SYSTem:ERR...
Page 93 - Example Programs; Assigning the GPIB Address in Programs
93 D Example Programs Introduction The example programs in this section are intended to show how some of the same dc sourcefunctions can be programmed to each of the following GPIB interfaces: 1. HP Vectra PC controller with Agilent 82335A GPIB Interface Command Library2. IBM PC controller with Nati...
Page 96 - Example 2. IBM Controller Using National Interface
D - Example Programs 96 Example 2. IBM Controller Using National Interface 990 ’---------------------- Merge DECL.BAS here ------------------------1000 ’DC Source Variable = PS% ; Stand-Alone Address = 7061005 CODES$=SPACE$(50):MODE$=SPACE$(5):OEVENT$=SPACE$(20)1010 D$=SPACE$(60):OUTPUT$=SPACE$(40):...
Page 98 - Example 3. Controller Using BASIC
D - Example Programs 98 Example 3. Controller Using BASIC 1000 !Dc source at stand-alone address = 7061005 OPTION BASE 11010 DIM Codes$[80],Response$[80],Mode$[32]1015 !1020 !Program dc source to CV mode with following voltage and current1025 OUTPUT 706;"VOLTAGE MAX;CURRENT MAX"1030 !1035 !Q...
Page 99 - INDEX
99 INDEX —A— AARD, 16ABORT, 73ACDC, 52 —B— bus, 79 —C— calibration commands, 44 CAL CURR, 44CAL CURR MEAS AC, 44CAL CURR NEG, 44CAL DATA, 45CAL LEV, 45CAL PASS, 45CAL SAVE, 45CAL STAT, 46CAL VOLT, 46CAL VOLT PROT, 46 calibration commands:CAL CURR MEAS LOWR ", 44 character strings, 16combine comm...
Page 103 - Manual Updates
Manual Updates The following updates have been made to this manual since the December 1998 printingindicated on the Printing History page. 11/9/99 Information about installing VXI plug&play Power Products Instrument Drivers has been included in the beginning of chapter 2. 1/4/00 All references t...