HP 53131A/132A 225 MHz Universal Counter
Page
Programming Guide
Certification Warranty
Contents
Remote
Status Reporting
How to Program the Counter to Display Results
Programming Guide Vii
Command Reference
STATus Subsystem
Errors
Before You Start
Introduction
Introduction
Calibrations
Programming Guide Contents
HP 53131A Containing Firmware Revisions 3317, 3335, or
Statistics
HP-IB Commands
Measurements
HP 53132A Time Interval De lay Arming
How to Use This Guide
Getting Started
New Users
What You Should Understand
Experienced Programmers
Learning to Program the Counter
How to Use This Guide
Applications
Programming Guide Contents
Assumptions
Related Documentation
Related Documentation
Programming Guide Contents
Related Documentation
Command Summary
Chapter Summary
Some Scpi Syntax Conventions
Front Panel to Scpi Command Maps
Front Panel to Scpi Command Maps
Input Channels Conditioning Keys to Scpi Command Map
Input Channels Conditioning Keys to Scpi Command Map Part 1
Input Channels Conditioning Keys to Scpi Command Map Part 2
Front Panel to Scpi Command Maps
RCL Nrf
Measure Keys to Scpi Command Map
Measure Keys to Scpi Command Map Part 1
Measure Keys to Scpi Command Map Part 2
Gate & ExtArm Key to Scpi Command Map
Gate & ExtArm Key to Scpi Command Map Part 1
Phase
Freq, Period, Ratio
Totalize
Rise Time, Fall Time, +/- Pulse Width, Dutycycle
Gate & ExtArm Key to Scpi Command Map Part 4
Gate & ExtArm Key to Scpi Command Map Part 5
Gate & ExtArm Key to Scpi Command Map Part 6
Limits and Math Keys to Scpi Command Map
Limits and Math Keys to Scpi Command Map Part 1
Limits and Math Keys to Scpi Command Map Part 2
Calibration Menu to Scpi Command Map
Calibration Menu to Scpi Command Map Part 1
Calibration Menu to Scpi Command Map Part 2
Scpi Conformance Information
HP 53131A/132A Command Summary
HP 53131A/132A Command Summary
Ieee 488.2 Common Commands
HP 53131A/132A Command Summary Ieee 488.2 Common Commands
Mnemonic Command Name Function
Front Panel to Scpi Command Maps Ieee 488.2 Common Commands
RCL
Parameter Form Column
HP 53131A/132A Scpi Subsystem Commands
Std/New Column
CALCulate2
Keyword/Syntax Parameter Form Std Comments New ABORt
CALCulate1
Keyword/Syntax Parameter Form Std Comments New CALCulate2
CALCulate3
CONFigure
DIAGnostic
Keyword/Syntax Parameter Form Std Comments New CALCulate3
CALibration
Keyword/Syntax Parameter Form Std Comments New DIAGnostic
DISPlay
FETCh
FORMat
Keyword/Syntax Parameter Form Std Comments New INITiate
INPut12
INPut3
MEASure
CONFigure?
Function Parameters Sourcelist Std New
Keyword/Syntax Parameter Form Std Comments New MEMory
SENSe
Keyword/Syntax Parameter Form Std Comments New SENSe
ARM
On OFF Once
ARM commands
ARM HP 53131A See -2A on
HP 53132A with 2-38 for HP
Prefix below 53132A with S/N
STATus
TRIGger
Keyword/Syntax Parameter Form Std Comments New SYSTem
TRACe
Estart
Stop
Command Header Parameter State
RST Response
RST Response
HP 53131A /132A *RST State
Front Panel to Scpi Command Maps HP 53131A/132A *RST State
1E6 OHM
3B. HP 53132A S/N 3646 and above Time Interval *RST State
Front Panel to Scpi Command Maps Unaffected by *RST
ESE OPC? SRE
RST Response
Programming Your Universal Counter for Remote Operation
Where to Find Some Specific Information
Where to Find HP Basic Programming Examples
Where to Find QuickBASIC Programming Examples
Where to Find Turbo C Programming Examples
Elements of Scpi Commands
Configuring the HP-IB
Configuring the HP-IB
To Set the HP-IB Mode and Address
HP-IB
To Connect the Counter to a Computer
Remote/Local Operation
Scpi Command and Query Format
Overview of Command Types and Formats
Common Command Format
Common Command Syntax
Elements of Scpi Commands
Subsystem Command Syntax
Optional Keyword
Abbreviated Commands
Keyword Separator
Implied Channel Optional Numeric Keyword Suffix
ARM Stop
Command and Query Parameter Types
Parameter Types
Parameter Separator
Query Parameters
Suffixes
Suffix Elements
Suffix Multipliers
Command Terminator
Suffix Multipliers
Using Multiple Commands
Using Multiple Commands
Program Messages
Program Message Syntax
Inpcoup AC Inpimp Inpcoup Acinpimp
Overview of Response Message Formats
Response Messages
Response Message Syntax
Overview of Response Message Formats
Type Description
Response Message Data Types
Response Message Data Types
Overview of Response Message Formats
Status Reporting
Status Reporting
Status Byte Register and Service Request Enable Register
Status Byte Register
BIT Weigh Symbol Description
Status Reporting Status Byte Register
Service Request Enable Register
Standard Event Status Register
Standard Event Status Register Group
Standard Event Status Register
Elements of Scpi Commands
Standard Event Status Enable Register
Operation and Questionable Status Reporting Model
Transition Filter Definition
Condition Register
Transition Filter
Event Enable Register
Event Register
Operation Status Register Group
Operation Status Register
Elements of Scpi Commands
Questionable Data/Signal Status Register Group
Questionable Data/Signal Status Register
Elements of Scpi Commands
Status Reporting
Command Settings for Optimizing Throughput
Commands to Set Counter for Optimal Throughput
Command Settings for Optimizing Throughput
SENSeROSCillatorEXTernalCHECk OFF See Note below
Elements of Scpi Commands
Determining the Condition of the Counter
How to Program the Counter for Status Reporting
How to Program the Counter for Status Reporting
Event Status Register
Questionable Data Status Register
Operation Status Register
10. Status Reporting Flowchart 1
10. Status Reporting Flowchart 2
Commands for Displaying Non-Scaled/Offset Results
How to Program the Counter to Display Results
Configuring the Counter ’s Display
Commands for Displaying Scaled/Offset Results
Commands for Displaying the Limit Graph
Commands for Displaying Statistics Results
How to Program the Counter to Display Results
Commands for Enabling and Disabling the Display
Dispenable
How to Program the Counter to Synchronize Measurements
Resetting the Counter and Clearing the HP-IB Interface
Using the *WAI Command
How to Program the Counter to Synchronize Measurements
Using the *OPC? Command
Using the *OPC Command to Assert SRQ
Trigcountauto on *ESE
How to Program the Counter for Math/Limit Operations
Updating Math and Limit Results Over HP-IB
Using the Scale and Offset Over HP-IB
How to Program the Counter for Math/Limit Operations
TRACE? Scale
How to Program the Counter to Define Macros
How to Program the Counter to Define Macros
DMC ‘setimp’,#212INP1IMP $1
Dispmenu 0TEXTFEED ‘CALC2’CALC2LIMSTAT 1DISP Grap Calcimm
Writing Scpi Programs
11. Scpi Programming Flowchart Sheet 1
Writing Scpi Programs
11. Scpi Programming Flowchart Sheet 2
Using HP Basic
Programming Examples
To Send a Double-Quoted String
To Send a Single-Quoted String
List of the Programming Examples
Using QuickBASIC
Using Turbo C
Easiest Way to Make a Measurement HP Basic
Integer
Enter @CountFreq$
To Make a Frequency Measurement HP Basic
Clear Screen
To Perform Limit Testing HP Basic
Enable Intr
To Measure the Statistics of 50 Measurements HP Basic
50 ! Trigcountauto on
Output @CountINIT*OPC
To Use Limits to Filter Data Before Measuring Stats HP
Basic
To Use Limits to Filter Data Before Measuring Stats HP Basic
To Read and Store Calibration Information HP Basic
To Perform a Time Interval Calibration HP Basic
120 ! Program Shows
END While Return
Output
Else
To Optimize Throughput HP Basic
Roscextcheck OFF
Output @CountINITCONT on Put counter in Run mode
To Use Macros HP Basic
User Keys On KEY
SUB Definemacro
REM $INCLUDE QBSETUP.BAS
To Make a Frequency Measurement QuickBASIC
To Perform Limit Testing QuickBASIC
PEN on
To Measure the Statistics of 50 Measurements QuickBASIC
On PEN Gosub statsready Wait for interrupt
Programming Examples
Statistics
Print Minimum Period
To Read and Store Calibration Data QuickBASIC
PUT #1, 1, Caldata Close #1
To Optimize Throughput QuickBASIC
See the program comments for details
Send the expected frequency
To Use Macros QuickBASIC
Displaymacro
END if Return
To Make a Frequency Measurement Turbo C
Linefeed can be removed
HP-IB library constant declarations
This is the bit from the Operation
SendhpCALC3AVERAGETYPE MAXCALC3DATA?
To Optimize Throughput Turbo C
Need to be sent for every
Variables used by function
Command Reference
Command Reference
Programming Guide
ABORt Command
ABORt Command
ABORt
Comments Related Front-Panel Keys
CALCulate Subsystems
CALCulate Subsystems
CALCulate1 Subsystem
CALCulate1DATA?
CALCulate1FEED SENSe1
CALCulate1IMMediate
CALCulate1 Subsystem
Query Response Comments
CALCulate1MATHEXPRessionCATalog?
CALCulate1IMMediateAUTO Boolean
CALCulate1MATH Subtree
Front-Panel Keys
CALCulate1MATHEXPRessionDEFine?
CALCulate1MATHSTATe Boolean
CALCulate2IMMediate
CALCulate2 Subsystem
CALCulate2FEED CALCulate1
CALCulate2 Subsystem
CALCulate2IMMediateAUTO Boolean
CALCulate2LIMit Subtree
CALCulate2LIMitCLEarAUTO Boolean
CALCulate2LIMitCLEarIMMediate
CALCulate2LIMitDISPlay GRAPh NUMBer
CALCulate2LIMitFAIL?
CALCulate2LIMitFCOuntUPPer?
CALCulate2LIMitFCOuntLOWer?
CALCulate2LIMitFCOuntTOTal?
CALCulate2LIMitLOWerDATA numericvalue HZ S DEG
Query Response Comments Related Front-Panel Keys
CALCulate2LIMitPCOuntTOTal?
CALCulate2LIMitSTATe Boolean
CALCulate2LIMitUPPerDATA numericvalue HZ S DEG
CALCulate3AVERageALL?
CALCulate3 Subsystem
CALCulate3AVERage Subtree
CALCulate3 Subsystem
CALCulate3AVERageCLEar
CALCulate3AVERageCOUNt numericvalue
CALCulate3AVERageCOUNtCURRent?
CALCulate3AVERageSTATe Boolean
CALCulate3DATA?
∙ *RST Mean
CALCulate3LFILterLOWerDATA numericvalue HZ S DEG
CALCulate3FEED CALCulate1
CALCulate3LFILter Subtree
CALCulate3LFILterSTATe Boolean
CALCulate3LFILterUPPerDATA numericvalue HZ S DEG
CALCulate3PATH?
CALibration Subsystem
CALibrationALL?
CALibrationCOUNt?
CALibration Subsystem
CALibrationDATA arbitrary block
Front-Panel Key
NRf Range NRf Resolution Comments
NRf Range NRf Resolution Query Response
CALibrationSECurity Subtree
CALibrationSECurityCODE NRf
Comments Related Front-Panel Keys
CONFigure Subsystem
CONFigure Subsystem
Device Clear
Device Clear
DIAGnostic Subsystem
DIAGnosticCALibrationINPut12GAIN
DIAGnostic Subsystem
Auto Once OFF
DIAGnosticCALibrationINPut12OFFSet
DIAGnosticCALibrationINTerpolatorAUTO Once OFF on
DIAGnosticCALibrationROSCillatorAUTO Once OFF
DIAGnosticCALibrationSTATus?
DIAGnosticCALibrationTINTervalFINE1234
DIAGnosticCALibrationTINTervalQUICk
DISPlayMENUSTATe OFF
DISPlayENABle Boolean
DISPlay Subsystem
DISPlayWINDowTEXTFEED CALCulate2 CALCulate3
DISPlay Subsystem
DISPlayWINDowTEXTRADix COMMa DPOint
FETCh Subsystem
FETCh Subsystem
FORMat Subsystem
FORMatDATA ASCii Real
Group Execute Trigger GET
Group Execute Trigger
HCOPy Subsystem
HCOPyCONTinuous Boolean
INITiate Subsystem
INITiateAUTO Boolean
INITiateCONTinuous Boolean
INITiate Subsystem
Introduction
INITiateIMMediate
Related Run Front-Panel Keys
Stop/Single
INPut12 Subsystem
INPut12ATTenuation 1
INPut12COUPling AC DC
INPut12FILTerLPASsSTATe Boolean
Related 50Ω /1MΩ Front-Panel Keys
INPut12IMPedance numericvalue OHM
Numericvalue Range Query Response Comments
INPut3 Subsystem
INPut3COUPling?
INPut3IMPedance?
INPut3 Subsystem
MEASure Subsystem
FETCh, MEASure, Read
Measurement Instructions CONFigure
Measurement Instructions CONFigure, FETCh, MEASure, Read
CONFigureSCALarfunction parameters ,sourcelist
CONFigure?
FETChSCALarfunction?
MEASureSCALarfunction? parameters ,sourcelist
READSCALarfunction?
Measurement Instructions CONFigure, FETCh, MEASure, Read
Function Parameters Sourcelist
Commands that required work-around commands are
Descriptions of the Measurement Functions- function
MEASureSCALarVOLTageDCYCle? reference,@1
Lowerreference
Range@1 Default@1
MEASureSCALarVOLTageFALLTIME?
MEASureSCALarVOLTageFREQuency?
Resolution Default
Range for Ch1 , Ch1
Range for Ch2 , Ch3
Description Range for Ch1 , Ch1
MEASureSCALarVOLTageMINimum? @1@2
MEASureSCALarVOLTageFREQuencyRATio?
MEASureSCALarVOLTageMAXimum? @1@2
MEASureSCALarVOLTageNWIDth? reference,@1
MEASureSCALarVOLTagePERiod? expectedvalue,resolution, @1@2@3
MEASureSCALarVOLTagePERiod?
MEASureSCALarVOLTagePWIDth? reference,@1
MEASureSCALarVOLTagePHASe? @1,@2
MEASureSCALarVOLTagePTPeak? @1@2
Percent range
MEASureSCALarVOLTageRISETIME?
CONFigureSCALarVOLTageTOTalizeCONTinuous @1
MEASureSCALarVOLTageTINTerval? @1,@2
MEASureSCALarVOLTageTOTalizeTIMed? gatetime,@1
How to Use the Measurement Instruction Commands
Using MEAsure
Using CONFigure with INITiate and FETCh?
Conffreq 5 MHZ, 1HZ
Firmware Revision Work-Around Commands
Init *WAI
MEMory Subsystem
MEMoryDELeteMACRostring
MEMoryFREEMACRo?
MEMoryNSTates?
SENSe Subsystem
SENSeDATA? SENSe1
SENSeEVENt12 Subtree
SENSe Subsystem
SENSeEVENt2FEED INPut1 INPut2
SENSeEVENt12HYSTeresisRELative numericvalue PCT
Current Firmware Revision
Prior Firmware Revisions 3317, 3335,
Numericvalue Range Resolution Query Response Comments
SENSeEVENt12LEVelABSolute numericvalue
SENSeEVENt12LEVelRELative numericvalue PCT
Range Resolution
SENSeEVENt12LEVelABSoluteAUTO Boolean
SENSeEVENt3LEVelABSolute?
SENSeEVENt12SLOPe POSitive NEGative
SENSeEVENt3 Subtree
SENSeEVENt3SLOPe?
SENSeFREQuency Subtree
SENSeFREQuencyARMSTARtSLOPe POSitive NEGative
SENSeFREQuencyARM Subtree
SENSeFREQuencyARMSTOPSLOPe POSitive NEGative
SENSeFREQuencyARMSTARtSOURce IMMediate EXTernal
SENSeFREQuencyARMSTOPDIGits numericvalue
SENSeFREQuencyARMSTOPSOURce IMMediate EXTernal TIMer DIGits
SENSeFREQuencyARMSTOPTIMer numericvalue S
SENSeFREQuencyEXPected123 numericvalue HZ
SENSeFREQuencyEXPected123AUTO on
SENSeFUNCtionON sensorfunction
Comments ∙ *RST on
Query Response Comments
SENSePHASeARM Subtree
SENSePHASe Subtree
SENSePHASeARMSTARtSLOPe POSitive NEGative
SENSeROSCillatorEXTernalCHECk on OFF Once
SENSePHASeARMSTARtSOURce IMMediate EXTernal
SENSeROSCillator Subtree
SENSeROSCillatorEXTernalFREQuency?
SENSeROSCillatorSOURce INTernal EXTernal
SENSeROSCillatorSOURceAUTO Boolean
SENSeTINTervalARMSTARtSLOPe POSitive NEGative
SENSeTINTervalARM Subtree HP 53131A and HP 53132A
SENSeTINTervalARMSTARtSOURce IMMediate EXTernal
SENSeTINTervalARMSTOPSOURce IMMediate TIMer
SENSeTINTervalARMSTOPTIMer numericvalue S
Numeric-value
Query Response Comments Related Front-Panel Keys
SENSeTINTervalARMESTART and Estop Subtrees
HP 53132A With S/N Prefix 3646 and Above
Front-Panel Arming Setting
SENSeTINTervalARMESTARTLAYer2SLOPe POSitive NEGative
SENSeTINTervalARMESTARTLAYer2SOURce IMMediate EXTernal
SENSeTINTervalARMESTARTLAYer1ECOunt numericvalue
Resolution Query Response
SENSeTINTervalARMESTARTLAYer1TIMer numericvalue S
Related Front-Panel Keys
SENSeTINTervalARMESTOPLAYer1ECOunt numericvalue
SENSeTINTervalARMESTOPLAYer2SLOPe POSitive NEGative
SENSeTINTervalARMESTOPLAYer2SOURce IMMediate EXTernal
SENSeTINTervalARMESTOPLAYer1SOURce IMMediate TIMer INTernal2
SENSeTINTervalARMESTOPLAYer1TIMer numericvalue S
SENSeTOTalizeARM Subtree
SENSeTOTalize Subtree
SENSeTOTalizeARMSTARtSLOPe POSitive NEGative
SENSeTOTalizeARMSTARtSOURce IMMediate EXTernal
SENSeTOTalizeARMSTOPSLOPe POSitive NEGative
SENSeTOTalizeARMSTOPSOURce IMMediate EXTernal TIMer
SENSeTOTalizeARMSTOPTIMer numericvalue S
STATusOPERationCONDition?
STATus Subsystem
STATusOPERation Subtree
STATusOPERationENABle non-decimal numeric NRf
STATusOPERationEVENt?
STATus Subsystem
Range Query Response Comments
STATusOPERationNTRansition non-decimal numeric NRf
STATusOPERationPTRansition non-decimal numeric NRf
STATusPRESet
STATusQUEStionable Subtree
STATusQUEStionableENABle non-decimal numeric NRf
STATusQUEStionableCONDition?
STATusQUEStionableEVENt?
STATusQUEStionableNTRansition non-decimal numeric NRf
STATusQUEStionablePTRansition non-decimal numeric NRf
SYSTem Subsystem
SYSTemCOMMunicate Subtree
SYSTemCOMMunicateSERialCONTrolDTR IBFull on LIMit
SYSTem Subsystem
SYSTemCOMMunicateSERialTRANsmitBAUD numericvalue
SYSTemCOMMunicateSERialTRANsmitPACE XON None
SYSTemERRor?
SYSTemCOMMunicateSERialTRANsmitPARityTYPE Even
ODD None
SYSTemKEY numericvalue
Numericvalue Range Query Response
Key Key Code
SYSTemKEYLOG?
SYSTemVERSion?
TRACe Subsystem
Offset
Scale
TRACe Subsystem
TRIGger Subsystem
TRIGgerCOUNtAUTO Boolean
Calibration Query
CAL? Calibration Query
CAL?
Clear Status Command
CLS
DDT arbitrary block
DDT arbitrary block Define Device Trigger Command
DDT arbitrary block Define Device Trigger Command
DMC string, arbitrary block Define Macro Command
DMC string, arbitrary block
EMC NRf Enable Macro Command
Enable Macro Query
EMC NRf Enable Macro Command
EMC NRf
ESE NRf Standard Event Status Enable Command
Standard Event Status Enable Query
NRf Range NRf Resolution Query Response Comments
ESE NRf
Event Status Register Query
Event Status Register Query
ESR?
GMC? string Get Macro Contents Query
Identification Query
IDN? Identification Query
IDN?
Learn Macro Query
LMC?
OPC
Operation Complete Command
Operation Complete Command
Operation Complete Query
OPC?
Option Identification Query
Option Identification Query
OPT?
Purge Macro Command
PMC
RCL NRf
RCL NRf Recall Command
RCL NRf Recall Command
Reset Command
RST
SAV NRf
SAV NRf Save Command
SAV NRf Save Command
SRE NRf Service Request Enable Command
Service Request Enable Query
SRE NRf
SRE?
Status Byte Query
Status Byte Query
STB?
Trigger Command
TRG
Self-Test Query
TST? Self-Test Query
TST?
WAI Wait-to-Continue Command
WAI
Wait-to-Continue Command
Errors
113, Undefined header
Displaying Errors
Reading an Error
Error Queue
Error Queue
Error Types
No Error
Command Error
Error Types
Execution Error
Device- or Counter-Specific Error
Query Error
Error Queue Errors
Number Error String Cause
Error Types Errors
Error Queue Errors
During
Index
Index
Index
Scpi
INPut12OFFSetAUTO
TRACe\DATA Scale 120
Asia Pacific
From front matter
Page
Manual Part Number