Page 39
4
Language Dictionary
Introduction
This section gives the syntax and parameters for all the IEEE 488.2 SCPI commands and the Common commands 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, symbols, and syntactical structures used here and gives an introduction to programming. You should also be familiar with “Chapter 4 - Front Panel Operation” (in the Operating Guide) in order to understand how the dc source functions.
The programming examples are simple applications of SCPI commands. Because the SCPI syntax remains the same for all programming languages, the examples given for each command are generic.
Syntax Forms | Syntax definitions use the long form, but only short form headers (or "keywords") |
| appear in the examples. Use the long form to help make your program self- |
| documenting. |
Parameters | Most commands require a parameter and all queries will return a parameter.The range |
| for a parameter may vary according to the model of dc source. When this is the case, |
| refer to the Specifications table in the Operating Guide. |
Models | If a command only applies to specific models, those models are listed in the <Model> |
| Only entry. If there is no <Model> Only entry, the command applies to all models. |
Related | Where appropriate, related commands or queries are included. These are listed |
Commands | because they are either directly related by function, or because reading about them will |
| clarify or enhance your understanding of the original command or query. |
Order of | The dictionary is organized according to the following functions: calibration, |
Presentation | measurement, output, status, system, and trigger. Both the subsystem commands and |
| the common commands that follow are arranged in alphabetical order under each |
| function. |
Subsystem Commands
Subsystem commands are specific to functions. They can be a single command or a group of commands. The groups are comprised of commands that extend one or more levels below the root.
The subsystem command groups are grouped according to function: Calibration, Measurement, Output, Status, System, and Trigger. Commands under each function are grouped alphabetically. Commands followed by a question mark (?) take only the query form. When commands take both the command and query form, this is noted in the syntax descriptions. Table 4-1 lists all of the subsystem commands inalphabetical order.
39
Contents
Programming Guide
Printing History
Safety Guidelines
Table of Contents
Internally Triggered Measurements
Language Dictionary
Output Commands
Example Programs
Error Messages
Scpi Conformance Information
Compatibility Language
Documentation Summary
About this Guide
External References
Gpib References
Scpi References
System Requirements
VXIplug&play Power Products Instrument Drivers
Downloading and Installing the Driver
Supported Applications
Gpib Address
Accessing Online Help
Gpib Capabilities of the DC Source
RS-232 Capabilities of the DC Source
RS-232 Flow Control
RS-232 Programming Example
Baud Rate
Boldface font
RS-232 Troubleshooting
Introduction to Scpi
Conventions Used in This Guide
Multiple Commands in a Message
Types of Scpi Commands
Moving Among Subsystems
Including Common Commands
Using Queries
Types of Scpi Messages
Message Unit Separator
Query Indicator
Message Unit
Headers
Response Data Types
Scpi Data Formats
Numerical Data Formats
Suffixes and Multipliers
Using Device Clear
Scpi Command Completion
Page
Enabling the Output
Power-on Initialization
Introduction
Programming the Output
Maximum Current
Output Voltage
Output Current
Maximum Voltage
Output Trigger System Model
Setting the Voltage or Current Trigger Levels
Triggering Output Changes
Scpi Triggering Nomenclature
Generating Triggers
Initiating the Output Trigger System
Making Measurements
Voltage and Current Measurements
DC Measurements
Current Ranges
RMS Measurements Agilent 66312A, 66332A Only
Internally Triggered Measurements
Measurement Trigger System Model
Sequence Form Alias SEQuence2 ACQuire
BUS
Generating Measurement Triggers Agilent 66312A, 66332A Only
Trigger Commands Used to Measure Output Pulses
Measuring Output Pulses Agilent 66312A, 66332A Only
Current Detector
Pulse Measurement Queries
Controlling Measurement Samples
Varying the Voltage or Current Sampling Rate
Multiple Measurements Agilent 66312A, 66332A Only
Pre-event and Post-event Triggering
Pulse Measurement Example Agilent 66312A, 66332A only
Option Base
Programming the Status Registers
Power-On Conditions
Operation Status Group
Questionable Status Group
Standard Event Status Group
Status Byte Register
RQS Bit
Determining the Cause of a Service Interrupt
Servicing Operation Status and Questionable Status Events
MSS Bit
Remote Inhibit RI
Inhibit/Fault Indicator
Monitoring Both Phases of a Status Transition
Discrete Fault Indicator DFI
Pin
Using the Inhibit/Fault Port as a Digital I/O
Bit Weight
DFI Programming Example
Page
Language Dictionary
Subsystem Commands
Subsystem Commands Syntax
ALC
DFI
Subsystem Commands Syntax
Output Programming Parameters
Common Commands
Common Commands Syntax
Programming Parameters
CALibrateCURRentMEASureLOWRange
Calibration Commands
CALibrateCURRent
CALibrateCURRentNEGative
CALibrateLEVel
CALibratePASSword
Command Syntax CALibrateSAVE Parameters None Examples
CALibrateDATA
Query Syntax CALibrateSTATe?
CALibrateSTATe
CALibrateVOLTage
CALibrateVOLTagePROTection
Query Syntax
Measurement Commands
MEASureARRayCURRent? FETChARRayCURRent?
MEASureARRayVOLTage? FETChARRayVOLTage?
FETChCURRent? applies to Agilent 66312A, 66332A Only
MEASureCURRent? FETChCURRent?
MEASureCURRentACDC? FETChCURRentACDC?
MEASureCURRentHIGH? FETChCURRentHIGH?
MEASureCURRentLOW? FETChCURRentLOW?
MEASureCURRentMAXimum? FETChCURRent MAXimum?
MEASureCURRentMINimum? FETChCURRentMINimum?
FETChVOLTage? applies to Agilent 66312A, 66332A Only
MEASureVOLTage? FETChVOLTage?
MEASureVOLTageACDC? FETChVOLTageACDC?
MEASureVOLTageHIGH? FETChVOLTageHIGH?
MEASureVOLTageLOW? FETChVOLTageLOW?
MEASureVOLTageMAXimum? FETChVOLTageMAXimum?
MEASureVOLTageMINimum? FETChVOLTageMINimum?
Returned Parameters NR3
SENSeCURRentRANGe
SENSeCURRentDETector
Unit a amperes *RST Value MAX high range
SENSeSWEepTINTerval
SENSeFUNCtion
SENSeSWEepOFFSetPOINts
SENSeSWEepPOINts
Returned Parameters CRD
SENSeWINDow
HANNing
RECTangular
OUTPutDFISOURce
Output Commands
OUTPut
OUTPutDFI
OUTPutPROTectionDELay
OUTPutPONSTATe
OUTPutPROTectionCLEar
Query Syntax OUTPputRELayPOLarity?
OUTPutRELay
OUTPutRELayPOLarity
OUTPutRIMODE
SOURceCURRentPROTectionSTATe
Default Suffix
SOURceCURRent
SOURceCURRentTRIGger
Query Syntax SOURceDIGitalDATA?
SOURceDIGitalDATA
SOURceDIGitalFUNCtion
SOURceVOLTage
Agilent 66332A, 6631B, 6632B, 6633B and 6634B Only
SOURceVOLTageALCBANDwidth? SOURceVOLTageALCBWIDth?
SOURceVOLTageTRIGger
SOURceVOLTagePROTection
STATusOPERationCONDition?
Status Commands
STATusPRESet
STATusOPERation?
STATusOPERationNTR STATusOPERationPTR
STATusOPERationENABle
Query Syntax STATusOPERationENABle?
Parameters Preset Value
STATusQUEStionableENABle
STATusQUEStionable?
STATusQUEStionableCONDition?
STATQUESNTR?STATQUESPTR?
Command Syntax *CLS Parameters None
STATusQUEStionableNTR STATusQUEStionablePTR
CLS
OPC
Bit Configuration of Standard Event Status Enable Register
ESE
ESR?
Example
PSC
SRE
PSC on
NR1 register binary value
Bit Configuration of Status Byte Register
STB?
WAI
DISPlayTEXT
System Commands
DISPlay
DISPlayMODE
Parameters none Returned Parameters NR2
SYSTemERRor?
SYSTemLANGuage
SYSTemVERSion?
IDN?
SYSTemLOCal
SYSTemREMote
SYSTemRWLock
RST
Command Syntax RCL NRf Parameters Example
OPT?
RCL
TST?
RST Settings
Command Syntax SAV NRf Parameters Example
SAV
INITiateCONTinuousSEQuence1 INITiateCONTinuousNAME
Trigger Commands
ABORt
INITiateSEQuence INITiateNAME
Abor Currtrig Init *TRG Volttrig
TRIGger
TRIGgerSOURce
TRIGgerSEQuence2 TRIGgerACQuire
TRIGSEQ2COUNCURR 5 Trigacqcouncurr
TRIGgerSEQuence2COUNtCURRent TRIGgerACQuireCOUNtCURRent
TRIGgerSEQuence2COUNtVOLTage TRIGgerACQuireCOUNtVOLTage
Parameters RST Value Examples
TRIGSEQ2HYSTCURR TRIGSEQ2LEVVOLT
TRIGSEQ2HYSTVOLT TRIGSEQ2LEVCURR
TRIGSEQ2LEVCURR TRIGSEQ2HYSTVOLT
TRIGgerSEQuence2LEVelCURRent TRIGgerACQuireLEVelCURRent
TRIGgerSEQuence2LEVelVOLTage TRIGgerACQuireLEVelVOLTage
TRIGSEQ2LEVVOLT TRIGSEQ2HYSTCURR
TRIGgerSEQuence2SLOPeCURRent TRIGgerACQuireSLOPeCURRent
TRIGgerSEQuence2SLOPeVOLTage TRIGgerACQuireSLOPeVOLTage
TRIGSEQ2SLOPVOLT
TRG
Parameters None Related Commands
TRIGgerSEQuence2SOURce TRIGgerACQuireSOURce
TRIGgerSEQuence1DEFine TRIGgerSEQuence2DEFine
Page
Scpi Confirmed Commands
Non-SCPI Commands
Scpi Version
Page
Command Setting
Table B-1. COMPatibility Power-on Settings Command
ASTS? CLR
Table B-2. COMPatibility Commands Compatibility
ERR? FAULT? ID? IOUT?
Similar Scpi Command
Table B-2. COMPatibility Commands Description Similar Scpi
Compatibility Command
Error
Table B-2. COMPatibility Commands
Compatibility Description Command
These commands determine the conditions that will set bits
Norm Fast INH ERR UNR +CC
RQS ERR RDY
FAU
Page
Bit Set Error Number Error Code Error Type
Error Number List
Table C-1. Error Numbers
Error Number
Page
National Instruments Gpib Driver
Assigning the Gpib Address in Programs
Types of DOS Drivers
Agilent 82335A Driver
Basic Controllers
Error Handling
Example Programs D
Call IBCLRPS%
Example 2. IBM Controller Using National Interface
CODES$=*CLS
Option Base
Example 3. Controller Using Basic
Index
100
Index
Scpi
101
102
Manual Updates