Programming Guide
Safety Guidelines
Printing History
Table of Contents
Language Dictionary
Internally Triggered Measurements
Output Commands
Error Messages
Scpi Conformance Information
Compatibility Language
Example Programs
About this Guide
Documentation Summary
Gpib References
External References
Scpi References
VXIplug&play Power Products Instrument Drivers
Downloading and Installing the Driver
Supported Applications
System Requirements
Accessing Online Help
Gpib Capabilities of the DC Source
RS-232 Capabilities of the DC Source
Gpib Address
RS-232 Programming Example
RS-232 Flow Control
Baud Rate
RS-232 Troubleshooting
Introduction to Scpi
Conventions Used in This Guide
Boldface font
Types of Scpi Commands
Multiple Commands in a Message
Including Common Commands
Using Queries
Types of Scpi Messages
Moving Among Subsystems
Query Indicator
Message Unit
Headers
Message Unit Separator
Scpi Data Formats
Numerical Data Formats
Suffixes and Multipliers
Response Data Types
Scpi Command Completion
Using Device Clear
Page
Power-on Initialization
Introduction
Programming the Output
Enabling the Output
Output Voltage
Output Current
Maximum Voltage
Maximum Current
Setting the Voltage or Current Trigger Levels
Triggering Output Changes
Scpi Triggering Nomenclature
Output Trigger System Model
Initiating the Output Trigger System
Generating Triggers
Voltage and Current Measurements
Making Measurements
DC Measurements
RMS Measurements Agilent 66312A, 66332A Only
Current Ranges
Measurement Trigger System Model
Internally Triggered Measurements
Sequence Form Alias SEQuence2 ACQuire
Generating Measurement Triggers Agilent 66312A, 66332A Only
BUS
Trigger Commands Used to Measure Output Pulses
Current Detector
Measuring Output Pulses Agilent 66312A, 66332A Only
Pulse Measurement Queries
Varying the Voltage or Current Sampling Rate
Controlling Measurement Samples
Multiple Measurements Agilent 66312A, 66332A Only
Pulse Measurement Example Agilent 66312A, 66332A only
Pre-event and Post-event Triggering
Option Base
Power-On Conditions
Programming the Status Registers
Operation Status Group
Standard Event Status Group
Questionable Status Group
Status Byte Register
Determining the Cause of a Service Interrupt
Servicing Operation Status and Questionable Status Events
MSS Bit
RQS Bit
Inhibit/Fault Indicator
Monitoring Both Phases of a Status Transition
Discrete Fault Indicator DFI
Remote Inhibit RI
Using the Inhibit/Fault Port as a Digital I/O
Bit Weight
DFI Programming Example
Pin
Page
Subsystem Commands
Language Dictionary
Subsystem Commands Syntax
DFI
ALC
Subsystem Commands Syntax
Common Commands
Common Commands Syntax
Programming Parameters
Output Programming Parameters
Calibration Commands
CALibrateCURRent
CALibrateCURRentNEGative
CALibrateCURRentMEASureLOWRange
CALibratePASSword
Command Syntax CALibrateSAVE Parameters None Examples
CALibrateDATA
CALibrateLEVel
CALibrateSTATe
CALibrateVOLTage
CALibrateVOLTagePROTection
Query Syntax CALibrateSTATe?
Measurement Commands
MEASureARRayCURRent? FETChARRayCURRent?
MEASureARRayVOLTage? FETChARRayVOLTage?
Query Syntax
MEASureCURRent? FETChCURRent?
MEASureCURRentACDC? FETChCURRentACDC?
MEASureCURRentHIGH? FETChCURRentHIGH?
FETChCURRent? applies to Agilent 66312A, 66332A Only
MEASureCURRentMAXimum? FETChCURRent MAXimum?
MEASureCURRentLOW? FETChCURRentLOW?
MEASureCURRentMINimum? FETChCURRentMINimum?
MEASureVOLTage? FETChVOLTage?
MEASureVOLTageACDC? FETChVOLTageACDC?
MEASureVOLTageHIGH? FETChVOLTageHIGH?
FETChVOLTage? applies to Agilent 66312A, 66332A Only
MEASureVOLTageMAXimum? FETChVOLTageMAXimum?
MEASureVOLTageLOW? FETChVOLTageLOW?
MEASureVOLTageMINimum? FETChVOLTageMINimum?
SENSeCURRentRANGe
SENSeCURRentDETector
Unit a amperes *RST Value MAX high range
Returned Parameters NR3
SENSeFUNCtion
SENSeSWEepOFFSetPOINts
SENSeSWEepPOINts
SENSeSWEepTINTerval
SENSeWINDow
HANNing
RECTangular
Returned Parameters CRD
Output Commands
OUTPut
OUTPutDFI
OUTPutDFISOURce
OUTPutPONSTATe
OUTPutPROTectionDELay
OUTPutPROTectionCLEar
OUTPutRELay
OUTPutRELayPOLarity
OUTPutRIMODE
Query Syntax OUTPputRELayPOLarity?
Default Suffix
SOURceCURRent
SOURceCURRentTRIGger
SOURceCURRentPROTectionSTATe
SOURceDIGitalDATA
SOURceDIGitalFUNCtion
SOURceVOLTage
Query Syntax SOURceDIGitalDATA?
SOURceVOLTageALCBANDwidth? SOURceVOLTageALCBWIDth?
SOURceVOLTageTRIGger
SOURceVOLTagePROTection
Agilent 66332A, 6631B, 6632B, 6633B and 6634B Only
Status Commands
STATusPRESet
STATusOPERation?
STATusOPERationCONDition?
STATusOPERationENABle
Query Syntax STATusOPERationENABle?
Parameters Preset Value
STATusOPERationNTR STATusOPERationPTR
STATusQUEStionable?
STATusQUEStionableENABle
STATusQUEStionableCONDition?
Command Syntax *CLS Parameters None
STATusQUEStionableNTR STATusQUEStionablePTR
CLS
STATQUESNTR?STATQUESPTR?
Bit Configuration of Standard Event Status Enable Register
ESE
ESR?
OPC
PSC
SRE
PSC on
Example
Bit Configuration of Status Byte Register
STB?
WAI
NR1 register binary value
System Commands
DISPlay
DISPlayMODE
DISPlayTEXT
SYSTemERRor?
SYSTemLANGuage
SYSTemVERSion?
Parameters none Returned Parameters NR2
SYSTemLOCal
SYSTemREMote
SYSTemRWLock
IDN?
Command Syntax RCL NRf Parameters Example
OPT?
RCL
RST
RST Settings
Command Syntax SAV NRf Parameters Example
SAV
TST?
Trigger Commands
ABORt
INITiateSEQuence INITiateNAME
INITiateCONTinuousSEQuence1 INITiateCONTinuousNAME
TRIGger
TRIGgerSOURce
TRIGgerSEQuence2 TRIGgerACQuire
Abor Currtrig Init *TRG Volttrig
TRIGgerSEQuence2COUNtCURRent TRIGgerACQuireCOUNtCURRent
TRIGgerSEQuence2COUNtVOLTage TRIGgerACQuireCOUNtVOLTage
Parameters RST Value Examples
TRIGSEQ2COUNCURR 5 Trigacqcouncurr
TRIGSEQ2HYSTVOLT TRIGSEQ2LEVCURR
TRIGSEQ2HYSTCURR TRIGSEQ2LEVVOLT
TRIGgerSEQuence2LEVelCURRent TRIGgerACQuireLEVelCURRent
TRIGgerSEQuence2LEVelVOLTage TRIGgerACQuireLEVelVOLTage
TRIGSEQ2LEVVOLT TRIGSEQ2HYSTCURR
TRIGSEQ2LEVCURR TRIGSEQ2HYSTVOLT
TRIGgerSEQuence2SLOPeVOLTage TRIGgerACQuireSLOPeVOLTage
TRIGgerSEQuence2SLOPeCURRent TRIGgerACQuireSLOPeCURRent
TRIGSEQ2SLOPVOLT
Parameters None Related Commands
TRIGgerSEQuence2SOURce TRIGgerACQuireSOURce
TRIGgerSEQuence1DEFine TRIGgerSEQuence2DEFine
TRG
Page
Non-SCPI Commands
Scpi Confirmed Commands
Scpi Version
Page
Table B-1. COMPatibility Power-on Settings Command
Command Setting
Table B-2. COMPatibility Commands Compatibility
ERR? FAULT? ID? IOUT?
Similar Scpi Command
ASTS? CLR
Compatibility Command
Table B-2. COMPatibility Commands Description Similar Scpi
Table B-2. COMPatibility Commands
Compatibility Description Command
These commands determine the conditions that will set bits
Error
RQS ERR RDY
Norm Fast INH ERR UNR +CC
FAU
Page
Error Number List
Bit Set Error Number Error Code Error Type
Table C-1. Error Numbers
Error Number
Page
Assigning the Gpib Address in Programs
Types of DOS Drivers
Agilent 82335A Driver
National Instruments Gpib Driver
Error Handling
Basic Controllers
Example Programs D
Example 2. IBM Controller Using National Interface
Call IBCLRPS%
CODES$=*CLS
Example 3. Controller Using Basic
Option Base
Index
Index
100
101
Scpi
102
Manual Updates