Programming Guide HP 53131A/132A 225 MHz Universal Counter
Programming Guide This guide describes how to program the HP 53131A/132A 225 MHz Universal Counter. The information in this guide applies to instruments having the number prefix listed below, unless accompanied by a “Manual Updating Changes” package indicating otherwise.
Copyright Hewlett-Packard Company 1996 All Rights Reserved. Reproduction, adaptation, or translations without prior written permission is prohibited, except as allowed under the copyright laws. Printed: November 1996 Printed in USA Manual part number 53131-90044 Certification and Warranty Certification Hewlett-Packard Company certifies that this product met its published specification at the time of shipment from the factory.
Contents 1 Before You Start ...
Contents Calibration Menu to SCPI Command Map HP 53131A/132A Command Summary SCPI Conformance Information 2-18 2-20 2-20 IEEE 488.
Contents Suffixes 3-12 Suffix Elements 3-12 Suffix Multipliers 3-13 Command Terminator 3-13 Using Multiple Commands Program Messages 3-14 3-14 Program Message Syntax 3-14 Overview of Response Message Formats Response Messages 3-16 3-16 Response Message Syntax 3-16 Response Message Data Types 3-17 Status Reporting 3-19 Status Byte Register and Service Request Enable Register 3-21 Status Byte Register 3-21 Service Request Enable Register 3-23 Standard Event Status Register Group 3-24 Standard Eve
Contents Event Status Register 3-39 Using the Questionable Data/Signal Status Register to Alert the Computer When Automatic Interpolator Calibration is Disabled— Example 3 3-39 Questionable Data Status Register 3-40 Using the Operation Status Register to Alert the Computer When Measuring has Completed— Example 4 3-40 Operation Status Register 3-40 How to Program the Counter to Display Results 3-43 Configuring the Counter’s Display 3-43 Commands for Displaying Non-Scaled/Offset Results Commands for Displa
Contents To Perform Limit Testing (HP BASIC) 3-63 To Measure the Statistics of 50 Measurements (HP BASIC) 3-64 To Use Limits to Filter Data Before Measuring Stats (HP BASIC) 3-66 To Read and Store Calibration Information (HP BASIC) 3-68 To Perform a Time Interval Calibration (HP BASIC) To Optimize Throughput (HP BASIC) 3-69 3-73 To Use Macros (HP BASIC) 3-75 To Make a Frequency Measurement (QuickBASIC) To Perform Limit Testing (QuickBASIC) 3-77 3-78 To Measure the Statistics of 50 Measurements (Qui
Contents 4 Command Reference Introduction 4-2 :ABORt Command 4-4 :CALCulate Subsystems 4-5 :CALCulate[1] Subsystem 4-7 :CALCulate[1]:MATH Subtree :CALCulate2 Subsystem 4-11 :CALCulate2:LIMit Subtree :CALCulate3 Subsystem 4-12 4-19 :CALCulate3:AVERage Subtree :CALCulate3:LFILter Subtree :CALibration Subsystem 4-19 4-23 4-26 :CALibration:SECurity Subtree :CONFigure Subsystem Device Clear 4-9 4-28 4-30 4-31 :DIAGnostic Subsystem :DISPlay Subsystem :FETCh Subsystem 4-32 4-37 4-40 :FORM
Contents [:SENSe]:EVENt3 Subtree 4-84 [:SENSe]:FREQuency Subtree 4-85 [:SENSe]:FREQuency:ARM Subtree [:SENSe]:PHASe Subtree 4-91 [:SENSe]:PHASe:ARM Subtree 4-91 [:SENSe]:ROSCillator Subtree 4-92 85 [:SENSe]:TINTerval Subtree (HP 53131A and HP 53132A With S/N Prefix Below 3646) 4-95 [:SENSe]:TINTerval:ARM Subtree (HP 53131A and HP 53132A With S/N Prefix Below 3646) 4-95 [:SENSe]:TINTerval Subtree (HP 53132A With S/N Prefix 3646 and Above) 4-98 [:SENSe]:TINTerval:ARM:ESTART and :ESTOP Subtrees (HP 53132A
Contents *IDN? (Identification Query) 4-130 *LMC? (Learn Macro Query) 4-131 *OPC (Operation Complete Command) 4-132 *OPC? (Operation Complete Query) 4-133 *OPT? (Option Identification Query) 4-134 *PMC (Purge Macro Command) 4-135 *RCL (Recall Command) 4-136 *RST (Reset Command) 4-137 *SAV (Save Command) 4-138 *SRE (Service Request Enable Command) *SRE? (Service Request Enable Query) *STB? (Status Byte Query) 4-140 *TRG (Trigger Command) 4-141 *TST? (Self-Test Query)
1 1 Before You Start ...
Chapter 1 Before You Start ... Introduction Introduction This programming guide contains programming information for the HP 53131A/132A Universal Counter. This guide assumes you are familiar with the front-panel operation of the Counter. See the HP 53131A/132A Operating Guide for detailed information about frontpanel operation. You should use this programming guide together with the operating guide.
Chapter 1 Before You Start ... Programming Guide Contents Differences Between Prior and Current Revisions of the HP 53131A/132A If you have an HP 53131A containing one of the prior firmware revisions (3317, 3335, or 3402), read the subsection below titled “HP 53131A Containing Firmware Revisions (3317, 3335, or 3402) ” to get an overview of the differences between the earlier firmware revisions and current firmware revision.
Chapter 1 Before You Start ... Differences Between Prior and Current Revisions of the HP 53131A/132A Measurements If your Counter contains other than the current firmware revision, the following measurement capabilities are different: • Ratio channel selections Ratio 2 to 1 and Ratio 3 to 1 (for those counters equipped with Channel 3) are not available. • Ratio “AUTO-armed” does not automatically extends gate to capture sufficient edges.
Chapter 1 Before You Start ... Programming Guide Contents :CONFigure:TOTalize:TIMed :CONFigure:TOTalize:CONTinuous :MEASure:TOTalize:TIMed? If your Counter contains firmware revision s 3402 and below, the Totalize Measurement Instruction commands (shown above) are not available to disable auto-trigger. In the firmware revisions 3402 and below, these commands enabled auto-trigger at the 50% level.
Chapter 1 Before You Start ... Getting Started Getting Started Before attempting to program the Counter, take some time to familiarize yourself with the content of this guide. The remainder of this chapter contains the following information: • An explanation of how you should use the programming guide based on your experience programming instruments and your testing requirements. • A description of the guide contents. • A statement of assumptions that are made in the guide.
Chapter 1 Before You Start ... Programming Guide Contents Learning to Program the Counter To learn how to program the Counter, perform the following: • Scan the summary tables in Chapter 2, “Command Summary ,” to get a feeling for the number and structure of commands available to you. • Read and study map drawings in the section titled “Front Panel to SCPI Command Maps” in Chapter 2.
Chapter 1 Before You Start ... How to Use This Guide • Review the remaining information in this guide to determine what is applicable to your programming requirements. If you need more information than is contained in this guide, see the section in this chapter titled “Related Documentation.” Applications After you have read the appropriate information and written some measurement programs, you may want to expand the scope of your applications.
Chapter 1 Before You Start ... Programming Guide Contents Programming Guide Contents The following information is contained in this guide: • Table of Contents • Chapter 1 (this chapter) ,“Before You Start,” is a preface that introduces you to the programming guide. • Chapter 2, “Command Summary ,” is a quick reference that summarizes the Counter’s programming commands. It provides you with front-panel to SCPI command maps, SCPI conformance information, and command summary tables.
Chapter 1 Before You Start ... Related Documentation Related Documentation This section contains a list of documentation related to the use of the Counter. Additional information that you may find useful can be found in the following publications: 1. HP 53131A/132A Operating Guide (HP Part Number 53131-90043) 2. Beginner’s Guide to SCPI (HP Part Number H2325-9000 2, July 1990 Edition). 3. Beginner’s Guide to SCPI, Barry Eppler (Hewlett-Packard Press, Addison-Wesley Publishing Co. 1991). 4.
Chapter 1 Before You Start ... Programming Guide Contents To obtain a copy of this standard, write to: The Institute of Electrical and Electronic Engineers Inc. 345 East 47th Street New York, NY 10017 USA 6. The International Institute of Electrical Engineers and Electronic Engineers, IEEE Standard 488.2-1987, IEEE Standard Codes, Formats, Protocols, and Common Commands for Use with ANSI/IEEE Std 488.11987 Programmable Instrumentation.
Chapter 1 Before You Start ...
2 2 Command Summary A Quick Reference
Chapter 2 Command Summary Introduction Introduction This chapter is a quick reference that summarizes the Counter ’s programming commands. Chapter Summary • Front Panel to SCPI Command Maps 1 – Some SCPI Syntax Conventions pg. 2-3 pg. 2-3 – Input Channels Conditioning Keys to SCPI Command Map pg. 2-4 – Instrument Control, Utility, Recall, and Save & Print Keys to SCPI Command Map pg. 2-6 – MEASURE Keys to SCPI Command Map pg. 2-8 – Gate & ExtArm Key to SCPI Command Map pg.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Front Panel to SCPI Command Maps Figures 2-1 through 2-6 provide maps that show the one-to-one relationship of the front-panel keys and the SCPI commands. These maps should help with identifying commands if you are already familiar with the front panel. Some SCPI Syntax Conventions NOTE [ ] An element inside brackets is optional. Note, the brackets are NOT part of the command and should NOT be sent to the Counter. 1|2 Means use either 1 or 2.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Input Channels Conditioning Keys to SCPI Command Map _____________________________ *For TI 1 TO 2 (Time Interval measurements) only . ** Channel 3 is optional. Figure 2-1.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Input Channels Conditioning Keys to SCPI Command Map (Cont.) 1 a. [:SENSe]:EVENt[1|2]:LEVel[:ABSolute]:AUTO ON|OFF b1. [:SENSe]:EVENt[1|2]:LEVel[:ABSolute] [V] b2. [:SENSe]:EVENt[1|2]:LEVel:RELative [PCT] c. [:SENSe]:EVENt[1|2]:SLOPe POSitive | NEGative d1. [:SENSe]:EVENt[1|2]:HYSTeresis:RELative 100 * d2. [:SENSe]:EVENt[1|2]:HYSTeresis:RELative 50 d3. [:SENSe]:EVENt[1|2]:HYSTeresis:RELative 0 ** e1. e2.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Instrument Control, Utility, Recall, and Save & Print Keys to SCPI Command Map Figure 2-2.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Instrument Control, Utility, Recall, and Save & Print Keys to SCPI Command Map (Cont .) 1 a. *IDN? b. No command c1. c2. c3. [:SENSe]:ROSCillator:SOURce INTernal [:SENSe]:ROSCillator:SOURce EXTernal [:SENSe]:ROSCillator:SOURce:AUTO ON d. No command (see Calibration menu, Figure 2-6) e. f. g. No command No command *TST? h. I. j.
Chapter 2 Command Summary Front Panel to SCPI Command Maps MEASURE Keys to SCPI Command Map Figure 2-3.
Chapter 2 Command Summary Front Panel to SCPI Command Maps MEASURE Keys to SCPI Command Map (Cont.) 1 2 3 a. [:SENSe]:FUNCtion[:ON] “[:][XNONe:]FREQuency [1 | 2 | 3] ” b. [:SENSe]:FUNCtion[:ON] “[:][XNONe:]FREQuency:RATio [1,2 | 1,3 | 2,1 | 3,1] ” a. [:SENSe]:FUNCtion[:ON] “[:][XNONe:]TOTalize [1] ” b. [:SENSe]:FUNCtion[:ON] “[:][XNONe:]PHASe [1,2] ” c. [:SENSe]:FUNCtion[:ON] “[:][XNONe:]DCYCle [1] ” d.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Gate & ExtArm Key to SCPI Command Map Freq, Period, Ratio Phase Totalize Rise Time, Fall Time,+/-Width, Dutycycle Time Interval (HP 53131A/132A) (HP 53131A/132A) (HP 53131A/132A) (HP 53131A/132A) (HP 53131A and HP 53132As with S/N prefix below 3646 ) See page 2-14 for HP 53132A (with S/N prefix 3646 and above). Auto Arming: AUTO Auto Arming: a. ARM: AUTO Auto Arming: a. GATE: AUTO Auto Arming: a. ARM: AUTO Auto Arming: a. ARM: a.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Gate & ExtArm Key to SCPI Command Map (Cont.) 1 Freq, Period, Ratio Auto Arming: a. [:SENSe]:FREQuency:ARM[:STARt]:SOURce IMMediate [:SENSe]:FREQuency:ARM:STOP:SOURce IMMediate Digits Arming: b. [:SENSe]:FREQuency:ARM[:STARt]:SOURce IMMediate [:SENSe]:FREQuency:ARM:STOP:SOURce DIGits c. [:SENSe]:FREQuency:ARM:STOP:DIGits Time Arming: d.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Gate & ExtArm Key to SCPI Command Map (Cont.) Totalize Auto Arming: a. [:SENSe]:TOTalize:ARM[:STARt]:SOURce IMMediate [:SENSe]:TOTalize:ARM:STOP:SOURce IMMediate Time Arming: b1. [:SENSe]:TOTalize:ARM[:STARt]:SOURce IMMediate b2. [:SENSe]:TOTalize:ARM:STOP:SOURce TIMer c. [:SENSe]:TOTalize:ARM:STOP:TIMer [S] External Arming: d. [:SENSe]:TOTalize:ARM[:STARt]:SOURce EXTernal e.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Gate & ExtArm Key to SCPI Command Map — For HP 53131A (and HP 53132A With S/N Prefix Below 3646) Time Interval (HP 53131A and HP 53132A With S/N Prefix Below 3646) Auto Arming: a. [:SENSe]:TINTerval:ARM[:STARt]:SOURce IMMediate b1. [:SENSe]:TINTerval:ARM:STOP:SOURce IMMediate b2. [:SENSe]:TINTerval:ARM:STOP:SOURce TIMer c. [:SENSe]:TINTerval:ARM:STOP:TIMer [S] External Arming: d.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Gate & ExtArm Key to SCPI Command Map (Cont.)— For HP 53132A (With S/N Prefix 3646 and Above) Time Interval (HP 53132A With S/N Prefix 3646 and Above ) Auto Arming: a. TSTART: AUTO b1. DELAYT: NONE b2. DELAYT: TIME b3. DELAYT: EVENT c. TT:
Chapter 2 Command Summary Front Panel to SCPI Command Maps Gate & ExtArm Key to SCPI Command Map (Cont.) — For HP 53132A (With S/N Prefix 3646 and Above) Time Interval (HP 53131A and HP 53132A With S/N Prefix Below 3646) Auto Arming: a. [:SENSe]:TINTerval:ARM:ESTART:LAYer2:SOURce IMMediate [:SENSe]:TINTerval:ARM:ESTOP:LAYer2:SOURce IMMediate b1. [:SENSe]:TINTerval:ARM:ESTOP[:LAYer[1]]:SOURce IMMediate b2. [:SENSe]:TINTerval:ARM:ESTOP[:LAYer[1]]:SOURce TIMer b3.
Chapter 2 Command Summary Front Panel to SCPI Command Maps LIMITS and MATH Keys to SCPI Command Map Figure 2-5.
Chapter 2 Command Summary Front Panel to SCPI Command Maps LIMITS and MATH Keys to SCPI Command Map (Cont.) 1 a. b. :CALCulate2:LIMit:UPPer[:DATA] [HZ | S | DEG] :CALCulate2:LIMit:LOWer[:DATA] [HZ | S | DEG] 2 a. :CALCulate2:LIMit:STATe OFF | ON b1. :INITiate:AUTO OFF b2. :INITiate:AUTO ON 3 4 c. :CALCulate2:LIMit:DISPlay GRAPh | NUMBer a.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Calibration Menu to SCPI Command Map Figure 2-6.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Calibration Menu to SCPI Command Map (Cont.) 1 a. :CALibration:SECurity:STATe? b. :DIAGnostic:CALibration:INPut1:OFFSet:AUTO ONCE :DIAGnostic:CALibration:INPut2:OFFSet:AUTO ONCE :DIAGnostic:CALibration:INPut1:GAIN:AUTO ONCE :DIAGnostic:CALibration:INPut2:GAIN:AUTO ONCE :DIAGnostic:CALibration:TINTerval:QUICk :DIAGnostic:CALibration:TINTerval:FINE[1 | 2 | 3 | 4] :DIAGnostic:CALibration:ROSCillator:AUTO ONCE c1.
Chapter 2 Command Summary HP 53131A/132A Command Summary HP 53131A/132A Command Summary This section summarizes both the IEEE 488.2 Common and HP 53131A/132A Standard Commands for Programmable Instruments (SCPI) commands in tabular format. IEEE 488.2 Common commands are listed first, followed by SCPI commands. SCPI Conformance Information The SCPI commands used in the HP 53131A/132A are in conformance with the SCPI Standard Version 1992.0.
Chapter 2 Command Summary Front Panel to SCPI Command Maps IEEE 488.2 Common Commands The Common Commands are general purpose commands that are common to all instruments (as defined in IEEE 488.2). Common Commands are easy to recognize because they all begin with an “*” (for example, *RST, *IDN?, *OPC ). These commands are generally not related to measurement configuration. They are used for functions like resetting the instrument, identification, or synchronization.
Chapter 2 Command Summary HP 53131A/132A Command Summary Table 2-1. IEEE 488.2 Common Commands Mnemonic Command Name Function *CAL? Calibration Causes the Counter to perform an internal interpolator selfcalibration and returns a response that indicates whether or not the instrument completed the self-calibration without error. *CLS Clear Status Clears Status data structures (Event Registers and Error Queue).
Chapter 2 Command Summary Front Panel to SCPI Command Maps Table 2-1. IEEE 488.2 Common Commands (Continued) Mnemonic Command Name Function *OPT? Option Identification Query Identifies the options installed in the Counter. *PMC Purge Macro Command Deletes all macros previously defined using the *DMC command. *RCL Recall Restores the state of the Counter from a copy stored in local non-volatile memory (0 through 20 are valid memory registers).
Chapter 2 Command Summary HP 53131A/132A Command Summary HP 53131A/132A SCPI Subsystem Commands SCPI Subsystem commands include all measurement functions and some general purpose functions. SCPI Subsystem Commands use a hierarchy relationship between keywords that is indicated by a “:” (colon). For example, in the SYST:ERR? query, the “:” between SYST and ERR? indicates ERR? is subordinate to SYST. Table 2-2 lists the SCPI Subsystem Commands in alphabetical order by the command keyword.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Table 2-2. HP 53131A/132A SCPI Command Summary Keyword/Syntax Std/ New Comments :ABORt Std Event; no query. Aborts measurement in progress. :CALCulate[1] Std Subsystem. Performs post-acquisition math processing (scale and offset) and data transfer on the data acquired by a SENSe function. Query only. Returns scaled/offset measurement result. Sets the data flow to be fed into the CALCulate block.
Chapter 2 Command Summary HP 53131A/132A Command Summary Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Std/ New Comments :CALCulate2 (Cont.) :LIMit (Cont.) :FCOunt :LOWer? Std New :UPPer? New [:TOTal]? New Subtree. An abbreviation for Fail COunt. Query only. Returns the number of limit test failures at the lower limit. Query only. Returns the number of limit test failures at the upper limit. Query only.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Std/ New Comments New New New Subtree. Limit FILter for statistics. Subtree. Sets the statistics filter lower limit. New New New Sets the statistics filter enable. Subtree. Sets the statistics filter upper limit. Std Query only. Returns LFIL, AVER. :CALibration [:ALL]? Std Std :COUNt? New Subsystem. Query only. Causes an internal interpolator self-calibration.
Chapter 2 Command Summary HP 53131A/132A Command Summary Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form Std/ New Comments New Subtree. ROSCillator is an abbreviation for Reference OSCillator. ONCE calibrates the timebase. This command is usable only if the instrument contains the medium or high stability oscillator option. Query only. Returns status of last calibration. 0 = pass; 1 = fail. Subtree. Event; no query.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form :INITiate :AUTO :CONTinuous Std/ New Comments Std New Std Subsystem. Controls the initiation of measurements. AUTO ON enables the Counter to automatically stop measuring on a limit test failure. AUTO OFF disables the automatic stop. Sets the enable for continuously initiated measurements. Event; no query.
Chapter 2 Command Summary HP 53131A/132A Command Summary Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form Std/ New Comments See and in table on the next page. Std Configures instrument to perform specified measurement. Std Returns function configured by the last :CONF or :MEAS command. Std Configures instrument, initiates measurement, and queries for the result (i.e., provides complete measurement sequence).
Chapter 2 Command Summary Front Panel to SCPI Command Maps Table 2-2.
Chapter 2 Command Summary HP 53131A/132A Command Summary Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form :MEMory :DELete :MACRo Std/ New Comments Std Subsystem. Manages instrument memory. Subtree. Event; no query. Deletes the macro with the name specified by the string parameter. Subtree. Query only. Returns memory usage and availability corresponding to macro data. Query only. Returns the number of available *SAV/*RCL states in the instrument.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form [:SENSe] (Cont.) :EVENt3 Std/ New Comments New Subtree. Queries the characteristics of the “trigger event”for channel 3 input. Subtree. Query only. Returns the channel 3 input trigger level. Query only. Returns the edge of the channel 3 input that will be considered an event. Subtree.
Chapter 2 Command Summary HP 53131A/132A Command Summary Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form [:SENSe] (Cont.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form Std/ New Comments [:SENSe] (Cont.) :ROSCillator (Cont.) :SOURce :AUTO INTernal | EXTernal Std Std Sets the selection of a reference timebase. Sets the enable for automatically selecting a reference timebase. Subtree.
Chapter 2 Command Summary HP 53131A/132A Command Summary Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form [:SENSe] (Cont.) :TOTalize (Cont.) :ARM (Cont.) :STOP :SLOPe :SOURce :TIMer Std/ New Comments POSitive | NEGative New New EXTernal | TIMer | IMMediate [S] New New Subtree. Sets the slope of the external stop arm signal used in external arming totalize measurements. Only applies when [:SENS]:TOT:ARM:STOP:SOUR EXT is selected.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form :SYSTem Comments Std Subsystem. Collects the functions that are not related to instrument performance. Subtree. Collects together configuration of control/communication interfaces. Subtree. Controls the physical configuration of the RS- 232C port. Std :COMMunicate Std :SERial :CONTrol :DTR Std/ New IBFull | ON | LIMit :TRANsmit Std Subtree.
Chapter 2 Command Summary HP 53131A/132A Command Summary Table 2-2A. HP 53132A (S/N Prefix 3646 and Above) Time Interval Arming SCPI Command Summary Keyword/Syntax Parameter Form Std/ New Comments New Subtree. Controls the time interval (including Time Interval, Rise Time, Fall Time, Dutycycle, and Pulse Width functions) measuring capabilities of the instrument. Subtree. Synchronizes the time interval start and stop arm with events. [:SENSe] (Cont.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Table 2-2A. HP 53132A (S/N Prefix 3646 and Above) Time Interval Arming SCPI Command Summary (Continued) Keyword/Syntax [:SENSe] (Cont.) :TINTerval (Cont.) :ARM (Cont.) :ESTOP (Cont.) [:LAYer[1]] :SOURce :TIMer Parameter Form Std/ New Comments IMMediate | TIMer | INTernal2 New Sets the stop arm delay for Time Interval measurements. Sets the time used to delay the stop arm for Time Interval measurements.
Chapter 2 Command Summary *RST Response *RST Response The IEEE 488.2 *RST command returns the instrument to a specified state optimized for remote operation. (Use *CLS to clear the status event registers and the SCPI error queue.) The states of commands affected by the *RST command are described in Table 23. Since the HP 53131A and HP 53132A have different arming capabilities for Time Interval measurements , sub-tables (Table 2-3A and Table 2-3B) are provided.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Table 2-3. HP 53131A/132A *RST State (Continued) Command Header Parameter State *EMC 0 (i.e.
Chapter 2 Command Summary *RST Response Table 2-3A. HP 53131A (and HP 53132A With S/N Prefix Below 3646)Time Interval *RST State Command Header Parameter State [:SENSe]:TINTerval:ARM[:STARt]:SLOPe [:SENSe]:TINTerval:ARM[:STARt]:SOURce [:SENSe]:TINTerval:ARM:STOP:SOURce [:SENSe]:TINTerval:ARM:STOP:TIMer POSitive | NEGative IMMediate | EXTernal IMMediate | TIMer [S] POSitive IMMediate IMMediate 10E− 3 S Table 2-3B.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Table 2-4.
Chapter 2 Command Summary *RST Response 2-44 Programming Guide
3 3 Programming Your Universal Counter for Remote Operation
Chapter 3 Programming Your Universal Counter for Remote Operation Introduction Introduction This chapter provides remote operation setup, and programming information that helps you operate the Counter as a remote device. Chapter Summary • Configuring the HP-IB pg. 3-4 • Overview of Command Types and Formats pg. 3-7 • Elements of SCPI Commands pg. 3-8 • Using Multiple Commands pg. 3-13 • Overview of Response Message Formats pg. 3-15 • Status Reporting pg.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands • Parameter Separator, Query Parameters, Suffixes pg. 3-11 • Command Terminator pg. 3-13 • Program Messages pg. 3-14 • Response Messages, Response Message Syntax pg. 3-16 Where to Find HP BASIC Programming Examples • Easiest Way to Make a Measurement pg. 3-59 • To Make a Frequency Measurement pg. 3-62 • To Perform Limit Testing pg. 3-63 • To Measure the Statistics of 50 Measurements pg.
Chapter 3 Programming Your Universal Counter for Remote Operation Configuring the HP-IB Configuring the HP-IB This section gives information on connecting and configuring the HP-IB to enable remote operation of the Counter . The Counter has two HP-IB operating modes : • Addressed (talk/listen)— This mode is for bi-directional communication. The Counter can receive commands and setups from the computer, and can send data and measurement results.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands 3a To set the address to “15”, perform the following: a. Press s key. HP-IB: 03 is displayed. Note that “0” digit appears and is highlighted, indicating that this digit will change when the d or f arrow key is pressed. b. Press d key. HP-IB: 13 is displayed. c. Press g key HP-IB: 13 is displayed, but now the “3” digit is highlighted, indicating that this digit will change when the d or f arrow key is pressed. d.
Chapter 3 Programming Your Universal Counter for Remote Operation Configuring the HP-IB To Connect the Counter to a Computer Connect the Counter to a computer by simply installing an HP-IB cable (such as an HP 10833A cable) between the two units as shown in Figure 3-1. Figure 3-1. HP-IB Interconnection Remote/Local Operation At power-up, the Counter is under front-panel (local) control. Once in remote, the Counter settings cannot be affected by the front-panel controls.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Overview of Command Types and Formats There are two types of HP 53131A/132A programming commands: IEEE 488.2 Common Commands and Standard Commands for Programmable Instruments (SCPI). The IEEE 488.2 Common Commands control and manage communications between the HP 53131A/132A and the controller or personal computer. The SCPI commands control instrument functions.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Elements of SCPI Commands A program command or query is composed of functional elements that include a header (or keywords with colon separators), program data, and terminators . These elements are sent to the Counter over the HP-IB as a sequence of ASCII data messages. Examples of a typical Common Command and Subsystem Command are: OUTPUT 712;"*CLS" OUTPUT 712;":INP1:COUP AC;IMP 1.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands NOTE: sp = space. ASCII character decimal 32 Figure 3-3. Simplified Common Command Syntax Diagram Abbreviated Commands The command syntax shows most keywords as a mixture of upper and lower case letters. Upper case letters indicate the abbreviated spelling for the command. For better program readability, you may send the entire keyword. The HP 53131A/132A accepts either command form and is not case sensitive.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Examine the portion of the [:SENSe] subsystem shown below: [:SENSe] :FREQuency :ARM :STOP :SOURce EXTernal The root-level keyword [:SENSe] is an optional keyword.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Parameter Types Table 3-1 contains explanations and examples of parameter types. Parameter types may be numeric value, Boolean , literal, NRf, string, non-decimal numeric , or arbitrary block. Table 3-1.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Parameter Separator If you send more than one parameter with a single command, you must separate adjacent parameters with a comma. Query Parameters All selectable parameters can be queried to return the minimum or maximum values they are capable of being set to by sending a MINimum or MAXimum parameter after the “?.” For example, consider the INPut:IMPedance? query.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Suffix Multipliers Table 3-2 lists the suffix multipliers that can be used with suffix elements (except PCT and DEG). Table 3-2.
Chapter 3 Programming Your Universal Counter for Remote Operation Using Multiple Commands Using Multiple Commands Program Messages Program Messages are a combination of one or more properly formatted SCPI Commands. Program messages always go from a computer to the Counter. They are sent to the Counter over the Counter’s HP-IB as a sequence of ASCII data messages. Program Message Syntax Figure 3-4 shows the simplified syntax of a program message.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands For example, sending :INP:COUP AC;IMP 50 is equivalent to sending: :INP:COUP AC :INP:IMP 50 or :INP:COUP AC;:INP:IMP 50 The “:” must be present to distinguish another root level command.
Chapter 3 Programming Your Universal Counter for Remote Operation Overview of Response Message Formats Overview of Response Message Formats Response Messages Response messages are data sent from the Counter to a computer in response to a query. (A query is a command followed by a question mark. Queries are used to find out how the Counter is currently configured and to transfer data from the Counter to the computer.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Response Message Data Types Table 3-3 contains explanations of response data types. Table 3-3. Response Message Data Types Type Description This numeric representation has an implicit radix point. The maximum number of characters in response data is 17 (maximum 16 digits, 1 sign). This numeric representation has an explicit radix point.
Chapter 3 Programming Your Universal Counter for Remote Operation Overview of Response Message Formats Table 3-3. Response Message Data Types (Continued) Type Description A single ASCII-encoded byte, 0 or 1, is returned for the query of settings that use parameters. ASCII-encoded bytes corresponding to the short form of the literal used as the command parameter.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Status Reporting The HP 53131A/132A status registers conform to the SCPI and IEEE 488.2 standards. Figure 3-6 shows all the status system register groups and queues in the Counter. This is a high level drawing that does not show all the registers that are contained in each group. It is intended as a guide to the bits used in each of these register groups to monitor the Counter ’s status.
Chapter 3 Programming Your Universal Counter for Remote Operation Status Reporting Figure 3-6.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Status Byte Register and Service Request Enable Register Figure 3-7. Status Byte and Service Request Enable Status Byte Register The Status Byte Register is the summary-level register in the status reporting structure. It contains summary bits that monitor activity in the other status registers and queues as shown in Figure 3-7.
Chapter 3 Programming Your Universal Counter for Remote Operation Status Reporting Table 3-4.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands • Bit 5 (ESB) summarizes the Standard Event Status Register. This bit indicates whether or not one of the enabled Standard Event Status Register events have occurred since the last reading or clearing of the Standard Event Status Register. This bit is set TRUE (one) when an enabled event in the Standard Event Status Register is set TRUE. Conversely, this bit is set FALSE (zero) when no enabled events are set TRUE.
Chapter 3 Programming Your Universal Counter for Remote Operation Status Reporting Standard Event Status Register Group Figure 3-8. Standard Event Status Reporting Standard Event Status Register The Standard Event Status Register contains bits that monitor specific IEEE 488.2-defined events as shown in Figure 3-8. Use *ESR? to read this register. Use *ESR? or *CLS to clear this register. Table 3-5 lists the Standard Event Status Register bits and briefly describes each bit. Table 3-5.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands A detailed description of each bit in the Standard Event Status Register follows: • Bit 0 (Operation Complete) is an event bit which is generated in response to the *OPC command. This bit indicates that the Counter has completed all pending operations. If there are no pending operations at the time *OPC executes, this bit sets immediately.
Chapter 3 Programming Your Universal Counter for Remote Operation Status Reporting • Bit 3 (Device-Specific Error) is an event bit which indicates an operation did not properly complete due to some condition of the Counter. Errors -300 through -399 and all those with positive error numbers (+2000 through ...) are device-specific errors.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Operation Status Register Group and Questionable Data/Signal Status Register Group The Operation Status Register Group and the Questionable Data/Signal Status Register Group each have a complete set of registers that consists of the following: • a condition register • a positive transition filter register • a negative transition filter register • an event register • an event enable register Figure 3-9 shows the mode
Chapter 3 Programming Your Universal Counter for Remote Operation Status Reporting Condition Register A condition register continuously monitors the hardware and firmware status of the Counter. There is no latching or buffering for this register; it is updated in real time. Reading a condition register does not change its contents.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Transition filters are unaffected by *CLS or queries. Transition filters are set to default values by :STATus:PRESet and power-on.
Chapter 3 Programming Your Universal Counter for Remote Operation Status Reporting Operation Status Register Group The Operation Status Register Group monitors conditions which are part of the Counter’s normal operation. Table 3-7 lists the Operation Status Register bits and briefly describes each bit. Table 3-7.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands • Bits 1–3 are not used. • Bit 4 (Measuring) is a condition bit which indicates the Counter is actively measuring. The condition bit is TRUE (one) during a measurement and FALSE (zero) otherwise.
Chapter 3 Programming Your Universal Counter for Remote Operation Status Reporting Note that this is the only bit in the Operation Status Register which is not representing a condition. Therefore, the transition filters have no effect on this bit. The Counter does not monitor the condition indicating whether the last measurement was in or out of limit. Hence, the In Limit Event bit does NOT represent the transition from an “out of limit measurement” to “in limit measurement.” • Bits 11–15 are not used.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands A detailed description of each bit in the Questionable Data/Signal Status Register Group follows: • Bits 0–1 are not used. • Bit 2 (Time) is a condition bit which indicates that the Time measurements (Period, Time Interval, Rise/Fall Time, Pulse Width, and Duty Cycle) may be affected by the disabling of automatic interpolator calibration. The condition bit is TRUE when automatic interpolator calibration is disabled.
Chapter 3 Programming Your Universal Counter for Remote Operation Status Reporting • Bit 10 (Out of Limit Event) is an event bit indicating the last measurement limit tested was “out of limit.” Each and every time a measurement is limit tested and found to be out of limit, this event will be reported. Note that this bit is not representing a condition. Therefore, the transition filters have no effect on this bit.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Command Settings for Optimizing Throughput This section lists the commands which enable the Counter to transfer data at the fastest possible rate. See the “To Optimize Throughput” sample programs on pages 3-73 , 3-86, and 3-96 Commands to Set Counter for Optimal Throughput Unless otherwise noted, these settings are stored on Save (*SAV). All of these settings are reset by *RST or a power cycle.
Chapter 3 Programming Your Universal Counter for Remote Operation Command Settings for Optimizing Throughput Set reference oscillator to non-auto state (internal or external): [:SENSe]:ROSCillator:SOURce INTernal | EXTernal (See Note below.) Disable checking of external source if using external reference oscillator: [:SENSe]:ROSCillator:EXTernal:CHECk OFF (See Note below.) Disable automatic interpolator calibration: :DIAGnostic:CALibration:INTerpolator:AUTO OFF (See Note below.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Table 3-9 lists the typical performance for three different computers. The “To Optimize Throughput” sample programs on pages 3- 73 , 3-86, and 3-96 were used to generate the numbers in the table. The actual examples listed in this guide show the Frequency Auto Arming function, but the technique is the same for the other two functions (Frequency Time Arming .001 and Time Interval 1 to 2).
Chapter 3 Programming Your Universal Counter for Remote Operation How to Program the Counter for Status Reporting How to Program the Counter for Status Reporting Determining the Condition of the Counter The Counter has status registers that are used to indicate its condition. There are four register groups that can be examined individually, or used to alert a computer.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Using the Standard Event Status Register to Trap an Incorrect HP-IB command— Example 2 The following command grouping shows how to use the Standard Event Status Register and the Status Byte Register to alert the computer when an incorrect command is sent to the Counter. The command *ESE 32 tells the Counter to summarize the command error bit ( bit 5 of the Event Status Register) in the Status Byte Register.
Chapter 3 Programming Your Universal Counter for Remote Operation How to Program the Counter for Status Reporting Questionable Data Status Register :STAT:QUES:PTR 100; NTR 0 :STAT:QUES:ENABLE 100 Detect transition from non-questionable to questionable data. Enable to detect for auto cal off. *SRE 8 Assert SRQ on Questionable Summary bit.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Figure 3-10.
Chapter 3 Programming Your Universal Counter for Remote Operation How to Program the Counter for Status Reporting Figure 3-10.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands How to Program the Counter to Display Results Configuring the Counter ’s Display The Counter has five different display modes: 1. Non-scaled/offset results — frequency, period, time interval, etc. This display mode is used on power-up. 2. Scaled/offset results— results modified by scale and offset values 3. Limit graph — a graphical look that shows if a measurement is within limits 4.
Chapter 3 Programming Your Universal Counter for Remote Operation How to Program the Counter to Display Results Commands for Displaying Scaled/Offset Results The following lines will enable Math (scale/offset). It is assumed that the values for scale and offset are already set. If not, the default value for scale is 1 and for offset is 0. :DISP:MENU OFF :DISP:TEXT:FEED ‘CALC2’ :CALC2:LIM:DISP NUMBER :CALC:MATH:STATE ON :CALC:IMM Clear any menu items that may be on display. Show the non-statistical result.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Commands for Enabling and Disabling the Display The Counter display can be turned on or off. The normal condition is for the display to be on. To achieve maximum HP-IB throughput, the display must be disabled. :DISP:ENABLE OFF :DISP:ENABLE ON Programming Guide Disable the display, all segments off. Normal display mode.
Chapter 3 Programming Your Universal Counter for Remote Operation How to Program the Counter to Synchronize Measurements How to Program the Counter to Synchronize Measurements Synchronizing Measurement Completion The Counter has three different methods for synchronizing the end of a measurement and computer transfer of data. The three methods are: 1. Using the *WAI command 2. Using the *OPC? command 3. Using the *OPC command to assert SRQ The following discussion shows how to use all three methods.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands :CALC3:AVERAGE ON Enable statistics. :CALC3:AVERAGE:COUNT 50 Base statistics on 50 measurements. :TRIG:COUNT:AUTO ON On INIT, take 50 measurements. :INIT Start 50 measurements. *WAI Wait until 50 measurements are complete before Counter executes another command. At this point, commands could be issued to other instruments. Asks for the statistics.
Chapter 3 Programming Your Universal Counter for Remote Operation How to Program the Counter to Synchronize Measurements *SRE 32 are used to assert the SRQ line to alert the computer that the Counter has completed a measurement. It is up to the computer to use the serial poll command to determine which of the instruments on the bus requested service. Of the three procedures discussed here, this is the most flexible, but also the most complex. :CALC3:AVERAGE ON Enable statistics.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands How to Program the Counter for Math/Limit Operations Updating Math and Limit Results Over HP-IB When using the Limits or Math capabilities from the front panel, the default (power-up) operation is for results to be automatically updated whenever a value is updated in either the Limit or Scale&Offset menu.
Chapter 3 Programming Your Universal Counter for Remote Operation How to Program the Counter for Math/Limit Operations results are calculated. The only drawback with this command is that you must always send it when you change the limits or scale/offset values. The section in this chapter titled “How to Program the Counter to Display Results” uses the :CALC:IMM technique to make sure the results are properly displayed.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands If you need to query the scale and offset values, you need to know if you are in ASCII or REAL data format. The values returned from the following query will be sent using the format that is currently defined (:FORMat[:DATA]) in the box. To query the scale, use the following command: :TRACE? SCALE Then, enter the data, keeping in mind how it will be formatted (ASCII or REAL).
Chapter 3 Programming Your Universal Counter for Remote Operation How to Program the Counter to Define Macros How to Program the Counter to Define Macros A macro is a user defined command that can be used to replace one or many Counter commands. There are two good reasons to use macros in place of other commands: 1. They provide a mnemonic for long or complex commands. 2. They reduce the overhead associated with sending long commands.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands A macro also lets you send variable parameters along with the name. For example, you could have a macro that sets up a measurement channel. One of the variables may be the input impedance, either 50 Ohms or 1 Megaohm. To program this, you would send the macro name along with the impedance value.
Chapter 3 Programming Your Universal Counter for Remote Operation How to Program the Counter to Define Macros *DMC ‘limitdisplay ’,#268 :DISP:MENU 0;TEXT:FEED ‘CALC2’;:CALC2:LIM:STAT 1;DISP GRAP; :CALC:IMM Programming examples using macros are provided in the following section titled “Programming Examples.” The first macro program listing (starting on page 3- 75) uses HP BASIC for an HP 9000 series 300 computer.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Writing SCPI Programs Figure 3-11 is a general summation of how to write SCPI programs . It shows a typical sequence you might go through in the process of writing a program. You do not have to follow this exact sequence, but it will help you to become familiar with the Counter ’s capabilities and to direct you to sections of the guide which will be useful while writing programs.
Chapter 3 Programming Your Universal Counter for Remote Operation Writing SCPI Programs Figure 3-11.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Figure 3-11.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples Programming Examples In this section, you will see how to program the HP 53131A/132A to make many common measurements. Examples are provided in the following programming languages: • HP BASIC • Microsoft QuickBASIC (version 4.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Using QuickBASIC The QuickBASIC examples assume you have an HP 82335A HP-IB Interface card inside your IBM PC or compatible. Using Turbo C The Turbo C examples assume you have an HP 82335A HP-IB Interface card inside your IBM PC or compatible. List of the Programming Examples The following examples are provided: 1. Easiest Way to Make a Measurement (HP BASIC only) 2. To Make a Frequency Measurement 3.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples Easiest Way to Make a Measurement (HP BASIC) 10 ! This program shows how to use the MEASure group of instructions to 20 ! quickly and easily make any of the counter's measurements. 30 ! In this program, time interval, frequency and period will be measured. 40 ! However, the MEASure group can make measurements using any of the other 50 ! counter functions. 60 ! The program is composed of three subroutines.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Easiest Way to Make a Measurement (HP BASIC) (Continued) 540 ! The following commands will measure the frequency on channel 1. 550 ! The MEAS? query can be broken down into CONF and READ? commands. 560 ! The CONF and READ? allow more flexibility than the MEAS? query. 570 ! CONF can be used to configure a measurement. Additional commands 580 ! can then be issued to fine tune the measurement setup.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples To Make a Frequency Measurement (HP BASIC) 10 ! 20 ! 30 ! 40 ! 50 ! 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 This program sets up the counter measurements on channel 1, using The results are displayed on the ASCII format is used to preserve INTEGER I DIM Freq$(10)[22] Samples=10 ! ASSIGN @Count TO 703 CLEAR 703 OUTPUT @Count;"*RST" OUTPUT @C
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands To Perform Limit Testing (HP BASIC) 10 ! This program sets up the counter to make period measurements 20 ! indefinitely until an out of limits measurement occurs. 30 ! The upper limit is 1 usec and the lower limit is 500 nsec. 40 ! If a measurement falls outside of these limits, the counter will 50 ! stop measuring and report the out of limits value to the computer 60 ! ASCII format is used to preserve resolution.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples To Measure the Statistics of 50 Measurements (HP BASIC) 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 ! This program instructs the counter to take 50 period measurements. ! The counter is put into SINGLE measurement mode.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands To Measure the Statistics of 50 Measurements (HP BASIC) (Continued) 520 OUTPUT @Count;":INIT;*OPC" ! Enable OPC bit and starts measurement 530 Loop_here:GOTO Loop_here ! Wait here until measurement complete.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples To Use Limits to Filter Data Before Measuring Stats (HP BASIC) 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 ! This program instructs the counter to determine the statistics of ! 50 Period measurements that are within the limits defined by the ! variables "Upper" and "Lower".
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands To Use Limits to Filter Data Before Measuring Stats (HP BASIC) (Continued) 500 OUTPUT @Count;":CALC3:LFIL:STATE ON" ! Enable statistics filter 510 OUTPUT @Count;":CALC3:LFIL:LOWER ";Lower ! Set the lower limit 520 OUTPUT @Count;":CALC3:LFIL:UPPER ";Upper ! Set the upper limit 530 OUTPUT @Count;":CALC3:AVER ON" ! Enable statistics 540 OUTPUT @Count;":CALC3:AVER:COUNT ";Num_meas! Set number of 550 ! measurements for s
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples To Read and Store Calibration Information (HP BASIC) 10 !This program reads the calibration data for the counter into an array. 20 !Before calibrating the counter, it is a good idea to read 30 !and store the current values in case something goes wrong with the 40 !calibration. 50 !In this program, the calibration values are stored in the array cal_data.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands To Perform a Time Interval Calibration (HP BASIC) NOTE Early versions of the Counter cannot execute this program since they do not support calibration security or “fine” time interval calibration. 10 ! This program shows you how to perform a TIME INTERVAL calibration 20 ! using HP-IB.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples To Perform a Time Interval Calibration (HP BASIC) (Continued) 440 CLEAR @Count 450 OUTPUT @Count;"*RST" ! Reset the HP 53131A 460 OUTPUT @Count;"*CLS" ! Clear event registers and error queue 470 OUTPUT @Count;"*SRE 0" ! Clear service request enable register 480 OUTPUT @Count;"*ESE 0" ! Clear event status enable register 490 OUTPUT @Count;":STAT:PRES" ! Preset enable registers and 500 ! transition filters for operation an
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands To Perform a Time Interval Calibration (HP BASIC) (Continued) 910 Cal_quick: ! Calibrates using the QUICK TI calibration. 920 PRINT "Connect square wave signal to Channel 1" 930 GOSUB Wait_for_input 940 PRINT "Recalibrating" 950 OUTPUT @Count;"DIAG:CAL:TINT:QUICK" 960 OUTPUT @Count;"DIAG:CAL:STATUS?" 970 ENTER @Count;Status 980 IF Status<>0 THEN 990 PRINT "Quick TI calibration failed.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples To Perform a Time Interval Calibration (HP BASIC) (Continued) 1400 1410 1420 1430 1440 1450 1460 1470 1480 1490 1500 1510 1520 1530 1540 1550 1560 1570 1580 1590 1600 1610 1620 1630 1640 1650 1660 1670 1680 1690 1700 Restore_cal:! Restores the calibration data previously saved.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands To Optimize Throughput (HP BASIC) 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 ! This program shows how to set up the counter to transfer data at the ! fastest possible rate. Note that the arming mode is AUTO. This mode ! provides the least resolution of all arming modes.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples To Optimize Throughput (HP BASIC) (Continued) 500 510 520 530 540 550 560 570 580 590 600 610 620 630 640 650 660 670 680 OUTPUT @Count;":INIT:CONT ON" ! Put counter in Run mode OUTPUT @Count;"FETCH:FREQ?" ! Fetch the frequency to be used ENTER @Count USING "#,K";Dummy$ ! for the expected frequency. OUTPUT @Count;":FREQ:EXP1 ";VAL(Dummy$)!Tell the counter what frequency ! to expect on Ch 1.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands To Use Macros (HP BASIC) 10 USER 1 KEYS 20 ON KEY 1 LABEL " Macro Free ",1 CALL Macro_free 30 ON KEY 2 LABEL " Enable Macros",1 CALL Macro_enable 40 ON KEY 3 LABEL " Display Macros",1 CALL Display_macros 50 ON KEY 4 LABEL " Macro Query",1 CALL Macro_query 60 ON KEY 5 LABEL " Define Macro",1 CALL Define_macro 70 ON KEY 6 LABEL " Delete Macro",1 CALL Delete_macro 80 ON KEY 7 LABEL " Send Macro",1 CALL Send_macros 90 O
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples To Use Macros (HP BASIC) (Continued) 520 530 540 550 560 570 580 590 600 610 620 630 640 650 660 670 680 690 700 710 720 730 740 750 760 770 780 790 800 810 820 SUB Define_macro ! Define a macro for the counter DIM Name$[25],Macro$[200],Send$[255],Header$[2] CLEAR SCREEN LINPUT "Enter the name of the macro",Name$ LINPUT "Enter the counter commands",Macro$ Length=LEN(Macro$) Num_char=INT(LGT(Length))+1 ! Determine # of c
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands To Make a Frequency Measurement (QuickBASIC) 'This program sets up the counter to make 10 frequency measurements 'on channel 1 using a 0.1 second gate time. 'The results are printed on the computer CRT. 'Data is sent in ASCII format to preseve resolution. ' 'The SUB sendhp sends commands to the counter DECLARE SUB sendhp (code$) REM $INCLUDE: 'QBSETUP.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples To Perform Limit Testing (QuickBASIC) 'This program sets up the counter to make period measurements 'indefinitely until an out of limits measurement occurs. The upper 'limit is set to 1 us and the lower limit is set to 500 ns. 'If a measurement falls outside of these limits, the counter will 'stop measuring and send the out of limits period to the computer.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands To Perform Limit Testing (QuickBASIC) (Continued) ON PEN GOSUB limitfail PEN ON CALL IOPEN(isc&, priority%) 'When SRQ happens, go get out of 'limit result CALL sendhp(":INIT:CONT ON") 'Set counter to run PRINT "Making Period measurements" Loophere: IF complete THEN GOTO endprogram GOTO Loophere limitfail: complete = 1 CALL IOSPOLL(source&, statusbyte) PRINT "Status byte = ", statusbyte CALL sendhp("FETCH:PERIOD?
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples To Measure the Statistics of 50 Measurements (QuickBASIC) 'This program instructs the counter to take 50 period measurements 'and return the mean, minimum, maximum and standard deviation. 'The counter is put into SINGLE measurement mode. 'The number of measurements is programmed using ":CALC3:AVER:COUNT 50" 'The counter is set up to take 50 measurements and then stop 'using the ":TRIG:COUNT:AUTO ON" command.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands To Measure the Statistics of 50 Measurements (QuickBASIC) (Continued) CALL sendhp(":FUNC " + CHR$(34) + "PER 1" + CHR$(34)) 'Measure Period 'The function must be a quoted string. The actual string sent to the 'counter is "PER 1" CALL sendhp(":FREQ:ARM:STAR:SOUR IMM") CALL sendhp(":FREQ:ARM:STOP:SOUR TIM") CALL sendhp(":FREQ:ARM:STOP:TIM .01") 'These 3 lines enable using 'time arming with a 0.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples To Use Limits to Filter Data Before Measuring Stats (QuickBASIC) 'This program sets up the counter to determine the statistics of '50 period measurements that are within limits defined by the variables ''UPPER' and 'LOWER'. Periods that are outside of the limits are not 'included in the statistics. The Limit graph is displayed so you can see if 'measurements are in limit.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands To Use Limits to Filter Data Before Measuring Stats (QuickBASIC) (Continued) CALL sendhp(":FREQ:ARM:STAR:SOUR IMM") CALL sendhp(":FREQ:ARM:STOP:SOUR TIM") CALL sendhp(":FREQ:ARM:STOP:TIM .01") 'These 3 lines enable time 'arming with a 0.01 second 'gate time. CALL sendhp(":STAT:OPER:ENABLE 256") 'Computing statistics bit in 'Operation Status Register.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples To Use Limits to Filter Data Before Measuring Stats (QuickBASIC) (Continued) PRINT "Status byte = ", statusbyte CALL sendhp(":CALC3:AVERAGE:TYPE MIN;:CALC3:DATA?") 'Ask for all the stats CALL IOENTERS(source&, minimum, maxelem%, actual%) CALL sendhp(":CALC3:AVERAGE:TYPE MAX;:CALC3:DATA?") CALL IOENTERS(source&, maximum, maxelem%, actual%) CALL sendhp(":CALC3:AVERAGE:TYPE MEAN;:CALC3:DATA?") CALL IOENTERS(source&, mean, m
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands To Read and Store Calibration Data (QuickBASIC) 'Before calibrating the counter, it is a good idea to read 'and store the current calibration values in case something goes wrong with 'the calibration. 'This program reads the cal values, and stores them in a file on the computer 'hard drive. It then reads the data from the file and sends it back to 'the counter.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples To Optimize Throughput (QuickBASIC) 'This program sets up the counter make 1000 frequency as fast as possible. 'Note that the arming is set to AUTO. This allows measurements to be taken 'quickly, but at the least resolution the counter can provide. 'See the program comments for details. 'Requires an HP 82335A/B HPIB interface card to a PC. 'The data is sent in ASCII format to preserve resolution.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands To Optimize Throughput (QuickBASIC) (Continued) 'The 'the CALL CALL CALL following lines will provide the fastest throughput, regardless of state of the counter before these lines are executed. sendhp(":FREQ:ARM:STAR:SOUR IMM") 'These 3 lines enable using sendhp(":FREQ:ARM:STOP:SOUR IMM") 'time arming with a 0.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples To Use Macros (QuickBASIC) 'This program is useful for writing macros for the counter. Softkeys 'are available at the bottom of the computer screen to help determine 'the status of the macros. 'The SUB sendhp sends commands to the HP 53131A DECLARE SUB sendhp (code$) REM $INCLUDE: 'QBSETUP.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands To Use Macros (QuickBASIC) (Continued) ON KEY(1) GOSUB availablememory ON KEY(2) GOSUB enablemacro ON KEY(3) GOSUB displaymacro ON KEY(4) GOSUB querymacro ON KEY(5) GOSUB definemacro ON KEY(6) GOSUB deletemacro ON KEY(7) GOSUB purgemacro ON KEY(8) GOSUB disablemacro ON KEY(9) GOSUB sendmacro ON KEY(10) GOSUB quit loophere: GOTO loophere 'Wait for function key to be pressed availablememory: 'Display available macro
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples To Use Macros (QuickBASIC) (Continued) purgemacro: 'Purge all macros INPUT "Are you sure you want to purge all macros? ", answer$ answer$ = UCASE$(answer$) IF answer$ = "Y" THEN sendhp ("*PMC") PRINT "All macros purged" END IF RETURN disablemacro: sendhp ("*EMC 0") PRINT ("Macros Disabled") RETURN 'Disable macros, but do not purge sendmacro: CLS GOSUB displaymacro INPUT "Enter the name of the macro to send ", namemacro
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands To Make a Frequency Measurement (Turbo C) /* This program sets up the counter to make 10 freqeuncy measurements on channel 1, using a 0.1 second gate time. The results are displayed on the computer CRT The program comments discuss the meaning of each command. ASCII result format is used to preserve resolution. */ #include #include #include #include "CHPIB.H" "CFUNC.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples To Make a Frequency Measurement (Turbo C) (Continued) for (i=1; i<=samples ;i++) { sendhp("INIT"); /* Start a measurement */ sendhp("FETCH:FREQUENCY?"); IOENTERS(ctr,freq,&length); /* fetch the data */ length=strlen(freq); /* Get length of result so */ freq[length-1]='\0'; /* the linefeed can be removed */ printf ("Frequency %d = %s Hz\n",i,freq); } printf("Press a key to continue\n"); getch(); } /* Function to send comm
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands To Use Limits to Filter Data Before Measuring Statistics (Turbo C) /* This program instructs the counter to determine the statistics of 50 Period measurements that are within programmed test limit values. Periods that are outside of the limits are not included in the statistics. The Limit graph is displayed so you can see if measurements are in limit.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples To Use Limits to Filter Data Before Measuring Statistics (Turbo C) (Continued) IOEOI(isc,state); sendhp(":FUNC 'FREQ 1'"); sendhp(":FREQ:ARM:STAR:SOUR IMM"); sendhp(":FREQ:ARM:STOP:SOUR TIM"); sendhp(":FREQ:ARM:STOP:TIM .
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands To Use Limits to Filter Data Before Measuring Statistics (Turbo C) (Continued) IOSPOLL(ctr,&status); /* Serial poll counter for status */ puts("Transferring and processing data"); sendhp(":INIT:CONT OFF"); /* Set counter to Run */ sendhp(":CALC3:AVERAGE:TYPE MIN;:CALC3:DATA?"); IOENTERS(ctr,minimum,&length); /* Get the data from the counter sendhp(":CALC3:AVERAGE:TYPE MAX;:CALC3:DATA?"); IOENTERS(ctr,maximum,&length
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples To Optimize Throughput (Turbo C) /* This program sets up the counter to transfer data at the fastest possible rate. Note that the arming mode is AUTO. This mode provides the least resolution of all the arming modes. The program comments discuss the meaning of each command. ASCII result format is used to preserve resolution. For optimal performance, compile for best speed. */ #include #include #include #include
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands To Optimize Throughput (Turbo C) (Continued) sendhp(":ROSC:SOURCE INT"); sendhp(":DIAG:CAL:INT:AUTO OFF"); sendhp(":DISP:ENABLE OFF"); sendhp(":HCOPY:CONT OFF"); sendhp(":CALC:MATH:STATE OFF"); sendhp(":CALC2:LIM:STATE OFF"); sendhp(":CALC3:AVER:STATE OFF"); sendhp("*DDT #15FETC?"); /* Use internal oscillator.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples To Optimize Throughput (Turbo C) (Continued) /* Function to send command to HP 53131A */ void sendhp(hpib_cmd) char *hpib_cmd; { char hpcmd[80]; /* Variables used by function */ int length; strcpy(hpcmd,hpib_cmd); length=strlen(hpcmd); error=IOOUTPUTS(ctr,hpcmd,length); /* Send command to HP 53131A */ if (error!=0) printf("Error during HP-IB: %d Command %s\n",error,hpcmd); } 3-98 Programming Guide
4 4 Command Reference A Dictionary
Chapter 4 Command Reference Introduction Introduction This chapter describes the SCPI Subsystem commands and the IEEE 488.2 Common commands for the HP 53131A/132A 225 MHz Universal Counter. The information in this chapter will help you program the Counter over the HP-IB. The commands are presented in alphabetical order. • SCPI Subsystem commands are described on pages 4- 4 thru 4-121. • IEEE 488.2 Common command descriptions start on page 4-122.
Chapter 4 Command Reference Introduction • the short form of keywords is shown in uppercase. • quotation marks may be part of the command’s parameter; the quotation marks shown must be sent to the Counter. • unless otherwise noted, the command is sequential (not overlapped). See Chapter 3 in this guide for details regarding command syntax, parameter types, and query response types. See the HP 531331A/132A Operating Guide, Table 2-6, for power-up values.
Chapter 4 Command Reference :ABORt Command :ABORt Command :ABORt This command is an event that causes the Counter to abort , as quickly as possible, any measurement in progress. The :ABORt command is not complete until the current measurement is stopped. The execution of an ABORt command sets false any Pending Operation Flags that were set true by initiation of measuring.
Chapter 4 Command Reference Introduction :CALCulate Subsystems Three :CALCulate subsystems (:CALCulate[1], :CALCulate2, and :CALCulate3) perform post-acquisition data processing and data transfer of the corresponding results. Functions in the SENSe subsystem are related to data acquisition, while the :CALCulate systems operate on the data acquired by a SENSe function as shown in Figure 4-1.
Chapter 4 Command Reference :CALCulate Subsystems Figure 4-1.
Chapter 4 Command Reference Introduction :CALCulate[1] Subsystem Performs post-acquisition math (scale/offset) processing (on the data acquired by a SENSe function) and data transfer of the scaled/offset result. See the :TRACe subsystem for commands used to set the scale and offset. Not until :CALCulate[1]:MATH:STATe is set to ON will any of the :CALCulate[1] settings or :TRACe[:DATA] settings be used. NOTE :CALCulate[1]:DATA? Queries the current scaled and offset measurement result .
Chapter 4 Command Reference :CALCulate[1] Subsystem :CALCulate[1]:FEED “[:]SENSe[1]” Sets or queries the data flow to be fed into the CALCulate[1] block. Since the Counter can only sense one function at a time, there is only one valid parameter. Query Response Comments The string “SENS” is returned. *RST: “SENSe[1]” :CALCulate[1]:IMMediate This command is an event that causes the Counter to recalculate existing data without re-acquiring data.
Chapter 4 Command Reference Introduction :CALCulate[1]:IMMediate:AUTO Sets or queries whether post-processing (recalculation) will automatically occur whenever any changes are made to the :CALCulate[1|2] subsystems. With :CALC:IMM:AUTO set to OFF, :CALCulate[1|2] only produces new results when new SENSe data is acquired or when the :CALCulate:IMMediate command is received.
Chapter 4 Command Reference :CALCulate[1] Subsystem :CALCulate[1]:MATH[:EXPRession][:DEFine]? Queries equation used for math operation. Query Response A sequence of ASCII-encoded bytes: (“SENS” * SCALE + OFFSET) terminated with a new line and EOI. Comments • Query only. • This query should be the last query in a terminated program message; otherwise, error -440 is generated.
Chapter 4 Command Reference Introduction :CALCulate2 Subsystem This subsystem performs post-acquisition limit testing and data transfer. Not until :CALCulate2:LIMit:STATe is set to ON will any of the :CALCulate2 settings be used. NOTE :CALCulate2:FEED “[:]CALCulate[1]” Sets or queries the data flow to be fed into the CALCulate2 block. Query Response Comments The string “CALC” is returned.
Chapter 4 Command Reference :CALCulate2 Subsystem :CALCulate2:IMMediate:AUTO Sets or queries whether post-processing (recalculation) will automatically occur whenever any changes are made to the :CALCulate[1|2] subsystems. With :CALC2:IMM:AUTO set to OFF, CALCulate[1|2] only produces new results when new SENSe data is acquired or when the CALCulate2:IMMediate command is received.
Chapter 4 Command Reference Introduction :CALCulate2:LIMit:CLEar:AUTO Sets or queries if the limit test results are to be cleared with each :INITiate[:IMMediate] and :INITiate:CONTinuous ON operation. Query Response • Single ASCII-encoded byte, 0 or 1. • A value of 0 indicates OFF; a value of 1 indicates ON. Comments • *RST: ON • When AUTO is ON, the Counter will perform the following whenever :INIT[:IMM] or :INIT:CONT ON is executed: – Invalidate the limit data.
Chapter 4 Command Reference :CALCulate2 Subsystem :CALCulate2:LIMit:DISPlay GRAPh | NUMBer Sets or queries whether the measurement display is numeric or symbolic (on a graph). When :CALC2:LIM:DISP is NUMBer, the measurement results are displayed numerically. When :CALC2:LIM:DISP is GRAPh, the measurement results are displayed symbolically on a graph; the measurement result is represented by an asterisk (*), while the upper and lower limits are each represented by a colon (:).
Chapter 4 Command Reference Introduction • If the current measurement is Totalize or Voltage Peaks, 0 is returned and error -221 is generated. :CALCulate2:LIMit:FCOunt:LOWer? Queries the number of limit test failures (that is, the Fail COunt) at the lower limit. Query Response • Numeric data transferred as ASCII bytes in format. • If CALC2:LIM:STATe is OFF, 0 is returned and error -221 is generated. • If no valid result exists, 0 is returned and error -230 is generated.
Chapter 4 Command Reference :CALCulate2 Subsystem Comments Query only. :CALCulate2:LIMit:LOWer[:DATA] [HZ | S |DEG] Sets or queries the lower limit used for limit testing. When the result is less than the lower limit, a fail is reported; when the result is equal to the lower limit, a fail is not reported. If math is enabled (:CALC:MATH:STATe ON), the limit value specified should take into account that the limit testing is on measurements that have been scaled and offset.
Chapter 4 Command Reference Introduction :CALCulate2:LIMit:PCOunt[:TOTal]? Queries the total Pass COunt (that is, the number of measurements that passed the limit test). Query Response • Numerical data transferred as ASCII bytes in format. • If CALC2:LIM:STATe is OFF, 0 is returned and error -221 is generated. • If no valid result exists, 0 is returned and error -230 is generated. • If the current measurement is Totalize or Voltage Peaks, 0 is returned and error -221 is generated.
Chapter 4 Command Reference :CALCulate2 Subsystem :CALCulate2:LIMit:UPPer[:DATA] [HZ | S | DEG] Sets or queries the upper limit used for limit testing. When the result is greater than the upper limit, a fail is reported; when the result is equal to the upper limit, a fail is not reported. If math is enabled (:CALC:MATH:STATe ON), the limit value specified should take into account that the limit testing is on measurements that have been scaled and offset. Range -9.
Chapter 4 Command Reference Introduction :CALCulate3 Subsystem This subsystem performs post-acquisition statistics computation and data transfer. Not until :CALCulate3:LFILter:STATe is set to ON will any of the :CALCulate3:LFILter settings be used. NOTE Not until :CALCulate3:AVERage[:STATe] is set to ON will any of the :CALCulate3:AVERage settings be used. The statistics results are unaffected by post-processing invoked with :CALC[1|2]:IMM.
Chapter 4 Command Reference :CALCulate3 Subsystem • If the current measurement is Totalize or Voltage Peaks, Not a Number 9.91E37 is returned and error -221 is generated. Comments • Query only. • The last calculated result remains valid until a new computation is made or a relevant instrument state is modified.
Chapter 4 Command Reference Introduction Related Front-Panel keys Stats :CALCulate3:AVERage:COUNt:CURRent? Queries the current count (that is, the number of data values collected for statistical computation). Query Response • Numeric data transferred as ASCII bytes in format. • Range is 0 to 1,000,000. • If :CALC3:AVER[:STATe] is OFF, error -221 is generated. • If the current measurement is Totalize or Voltage Peaks, 0 is returned and error -221 is generated. Comments • Query only.
Chapter 4 Command Reference :CALCulate3 Subsystem Related Front-Panel keys Stats :CALCulate3:AVERage:TYPE MAXimum | MINimum | SDEViation | SCALar or MEAN Selects which statistical result will appear: • in the :CALC3:DATA? response, and • on the front-panel display when :DISP[:WIND]:TEXT:FEED is set to “CALC3”. Query Response Comments A sequence of ASCII-encoded bytes: MAX, MIN, SDEV, or MEAN • *RST: MEAN • If :DISP[:WIND]:TEXT:FEED is “CALC3”, then this command updates the display immediately.
Chapter 4 Command Reference Introduction • If the current measurement is Totalize or Voltage Peaks, Not a Number 9.91E37 is returned and error -221 is generated. Comments • Query only. • The last calculated result remains valid until a new computation is made or a relevant instrument state is modified. :CALCulate3:FEED “[:]CALCulate[1]” Sets or queries the data flow to be fed into the CALCulate3 block. Query Response Comments The string “CALC” is returned.
Chapter 4 Command Reference :CALCulate3 Subsystem Query Response Comments Numeric data transferred as ASCII bytes in format with eleven significant digits. • *RST: 0.0000000000 • This command couples :CALC2:LIM:LOW to the same value. • Updating the lower limit value causes the limit counts (:CALC2:LIM:FCO, :CALC2:LIM:PCO) to be cleared. • The front panel menu item is not always able to display all of the significant digits of this value.
Chapter 4 Command Reference Introduction Range -9.9999990000E+12 to -1.0000000000E-13, 0.0000000000, +1.0000000000E13 to +9.9999990000E+12. Resolution 11 digits Query Response Numeric data transferred as ASCII bytes in format with eleven significant digits. Comments • *RST: 0.0000000000 • This command couples :CALC2:LIM:UPP to the same value. • Updating the upper limit value causes the limit counts (:CALC2:LIM:FCO, :CALC2:LIM:PCO) to be cleared.
Chapter 4 Command Reference :CALibration Subsystem :CALibration Subsystem :CALibration[:ALL]? This query causes an internal interpolator self-calibration . Query Response • Numeric data transferred as ASCII bytes in format. • A value of zero indicates the calibration completed without error. A value of one indicates the calibration completed with error. Comments Query only. :CALibration:COUNt? Queries the number of times the Counter has been calibrated.
Chapter 4 Command Reference Introduction • Your Counter was calibrated before it left the factory. When you receive your Counter, read the calibration count to determine its initial value. • Early versions of the Counter do not support this query. Related Front-Panel Key Scale & Offset / POWER (Calibration Menu) :CALibration:DATA Sets or queries the calibration data (input gain, input offset, reference oscillator, and time interval).
Chapter 4 Command Reference :CALibration Subsystem :CALibration:SECurity Subtree This subtree provides capabilities related to the security of the Counter’s calibration factors. Note, early versions of the Counter do not support any of the :CALibration:SECurity commands. :CALibration:SECurity:CODE Sets the calibration security code . To change the security code, the Counter must first be unsecured. To unsecure the Counter, use the :CALibration:SECurity:STATe command.
Chapter 4 Command Reference Introduction Comments • The calibration state is stored in non-volatile memory, and is unaffected by power-on, save/recall, and *RST. • The security code is set to 53131 or 53132 (depending on which model you have) when the Counter is shipped from the factory. If you forget your security code, you can reset the security code to the modelnumber default by resetting all of the non-volatile memory to a default state. See the Assembly-Level Service Guide for more information.
Chapter 4 Command Reference :CONFigure Subsystem :CONFigure Subsystem Refer to the Measurement Instructions section on page 4-52 in this chapter for a description of :CONFigure.
Chapter 4 Command Reference Introduction Device Clear Device Clear The full capability of the Device Clear IEEE 488.1 interface function is implemented in the Counter. This function allows a device to be initialized to a cleared state. The device-dependent effect is described below.
Chapter 4 Command Reference :DIAGnostic Subsystem :DIAGnostic Subsystem This subsystem controls the remote calibration of the Counter. All of the calibration values, with the exception of the interpolator values, are stored in non-volatile memory and are unaffected by power-on, save/recall, and *RST. Any of the commands which perform a calibration, with the exception of the interpolator calibration, will generate error -221 if the user tries to execute a calibration while the Counter is secured.
Chapter 4 Command Reference Introduction :DIAGnostic:CALibration:INPut[1|2]:OFFSet: AUTO ONCE | OFF Calibrates the channel 1 or 2 input trigger OFFSet when the ONCE parameter is used. Before sending this command, BE SURE to disconnect any input signal from the appropriate input. Query Response Comments A sequence of ASCII-encoded bytes: OFF • The calibration values are stored in non-volatile memory, and are unaffected by power-on, save/recall, and *RST.
Chapter 4 Command Reference :DIAGnostic Subsystem :DIAGnostic:CALibration:ROSCillator:AUTO ONCE | OFF Calibrates the reference oscillator when ONCE parameter is used. Before sending this command, connect 10 MHz to channel 1. Query Response Comments A sequence of ASCII-encoded bytes: OFF • This command is available only if the instrument contains the medium or high stability oscillator option; otherwise, error -241 is generated.
Chapter 4 Command Reference Introduction :DIAGnostic:CALibration:TINTerval:FINE[1|2|3|4] These event commands, when performed in the appropriate order and with the appropriate calibration signals supplied to both channels, calibrate out the differences in electrical path length between Channel 1 and Channel 2. Before sending any of these commands, the appropriate calibration signal must be supplied to both channels.
Chapter 4 Command Reference :DIAGnostic Subsystem :DIAGnostic:CALibration:TINTerval:QUICk This event command calibrates out the differences in electrical path length between channels 1 and 2. Before sending this command, connect to channel 1 a square wave of approximate frequency 10 MHz, but more importantly with a rapid rise time. Comments • No query. • The calibration values are stored in non-volatile memory, and are unaffected by power-on, save/recall, and *RST.
Chapter 4 Command Reference Introduction :DISPlay Subsystem This subsystem controls the selection and presentation of textual information on the Counter’s display. This information includes measurement results. :DISPlay is independent of, and does not modify, how data is returned to the controller. See the section titled “How to Program the Counter to Display Results” in Chapter 3 of this guide.
Chapter 4 Command Reference :DISPlay Subsystem :DISPlay[:WINDow]:TEXT:FEED “[:]CALCulate2” | “[:]CALCulate3” Sets or queries what data flow is fed into the display.
Chapter 4 Command Reference Introduction :DISPlay[:WINDow]:TEXT:RADix COMMa | DPOint Sets or queries the character used to separate integral and fractional portions of a displayed number. To conform to the numerical convention used in the USA, specify decimal point with DPOint. To conform to the numerical convention used in many other countries, specify COMMa. For example: With DPOint, one thousand is displayed as 1,000.0 With COMMa, one thousand is displayed as 1.
Chapter 4 Command Reference :FETCh Subsystem :FETCh Subsystem Refer to the Measurement Instructions section on page 4-52 in this chapter for a description of :FETCh.
Chapter 4 Command Reference Introduction :FORMat Subsystem This subsystem sets the data format for transferring numeric information. This data format is used for response data by those commands that are specifically designated to be affected by the :FORMat subsystem. :FORMat[:DATA] ASCii | REAL Sets or queries the data format type. Valid types are ASCii and REAL. When ASCii type is selected, numeric response data is transferred as ASCII bytes in format.
Chapter 4 Command Reference Group Execute Trigger (GET) Group Execute Trigger (GET) The full capability of the Group Execute Trigger IEEE 488.1 interface function is implemented in the Counter. This function permits the Counter to have its operation initiated over the Bus. The device-dependent result of this triggering is described in the following paragraph. In response to the IEEE 488.
Chapter 4 Command Reference Introduction :HCOPy Subsystem :HCOPy:CONTinuous Enables or disables printing results. When :HCOPy:CONTinuous is enabled (:HCOP:CONT ON), the Counter prints each measurement. If statistics is enabled (:CALC3:AVER[:STAT] ON), all statistics (standard deviation, mean, minimum, and maximum ) will be printed in addition to the individual measurements.
Chapter 4 Command Reference :INITiate Subsystem :INITiate Subsystem This subsystem controls the initiation of a measurement. :INITiate:AUTO Sets or queries if the Counter should stop measurements or continue measuring (go on) when a measurement exceeds the user-entered limits. AUTO ON configures the Counter to automatically stop measuring (set :INIT:CONT to OFF) on a limit test failure (that is, out-of-limit results are detected).
Chapter 4 Command Reference Introduction Comments • *RST: OFF • When the :INIT:CONT ON command is sent, the Counter: – invalidates the statistics results, – clears the statistics current count to 0, – reports the negative status condition (NOT Computing Statistics) to bit 8 of Operation Status Register.
Chapter 4 Command Reference :INITiate Subsystem • When a single measurement is in progress (:INIT:CONT is OFF): – Error -213 (Init ignored) is generated and the state of INIT:CONT is unaffected by :INIT:CONT ON. – Error -210 (Trigger error) is generated by INIT:CONT OFF. • Note that the Counter powers up with :INIT:CONT set to ON, but *RST sets :INIT:CONT to OFF.
Chapter 4 Command Reference Introduction Comments • When :TRIG:COUN:AUTO is ON and :CAL3:AVER[:STAT] is ON, the Counter clears the statistics results and the statistics current count on :INIT[:IMM]. • If the instrument is already in the process of making a measurement or if INITiate:CONTinuous is set to ON, an :IMMediate command has no affect, and an error -213 (Init ignored) is generated.
Chapter 4 Command Reference :INPut[1|2] Subsystem :INPut[1|2] Subsystem This subsystem controls the characteristics of the Counter’s input ports. :INPut1 corresponds to channel 1 input port and :INPut2 corresponds to channel 2 input port. :INPut[1|2]:ATTenuation 1 | 10 Sets or queries the input attenuation . Query Response Comments Related Front-Panel Keys Numeric data transferred as ASCII bytes in format. *RST: 1 X10 Attenuate :INPut[1|2]:COUPling AC | DC Sets or queries the input coupling .
Chapter 4 Command Reference Introduction :INPut[1|2]:FILTer[:LPASs]:FREQuency? Queries the cutoff frequency of the low-pass filter. Query Response • Numeric data transferred as ASCII bytes in format with six significant digits. • A value of 100E+3 is returned. Comments Units are Hertz. :INPut[1|2]:IMPedance [OHM] Sets or queries the input impedance (50Ω or 1MΩ ).
Chapter 4 Command Reference :INPut3 Subsystem :INPut3 Subsystem This subsystem queries the characteristics of the Counter’s channel 3 input port. These commands are only available if Option 030/050 is installed. :INPut3:COUPling? Queries the channel 3 input coupling . Query Response Comments A sequence of ASCII-encoded bytes: AC This command is only available if Option 030/050 is installed. :INPut3:IMPedance? Queries the channel 3 input impedance .
Chapter 4 Command Reference Introduction :MEASure Subsystem Refer to the Measurement Instructions section on page 4-52 in this chapter for a description of :MEASure.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) The purpose of these commands is to acquire data using a set of high-level instructions. These commands are structured to allow you to trade off interchangeability with fine control of the measurement process.
Chapter 4 Command Reference Introduction The parameter has the same syntax as SCPI syntax. For example, a one-channel function (such as Frequency, Period, etc.) would use (@1) to specify channel 1, whereas a two-channel function (such as Time Interval, Phase, and Ratio) would use (@1), (@2) to specify a measurement between channel 1 and channel 2.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) • This command disables math, statistics, and limit-testing. • If an absolute trigger level is not specified in the , then when this command executes, for functions other than Voltage Peaks (maximum, minimum, peak-to-peak) or Totalize, – auto-trigger is enabled, – auto-trigger level(s) are set, – auto-trigger is invoked on measurement channel(s).
Chapter 4 Command Reference Introduction FETCh[[:SCALar]:]? This query returns the measurement taken by the :INITiate (or :MEASure query or :READ?) commands. When [:SCALar]: is specified, the instrument will retrieve the specified result if it matches the current measurement type or can be derived from the current measurement type.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) Comments • Refer to the sub-section in this chapter titled “Descriptions of the Measurement Functions ” for descriptions of each measurement function. • Refer to Table 4-1 in this section for a summary of the , , and for each of the measurement functions.
Chapter 4 Command Reference Introduction :READ[[:SCALar]:]? This query provides a method of performing a :FETCh? on fresh data. A common application is to use this command in conjunction with a :CONFigure to provide a capability like :MEASure? in which the application programmer is allowed to provide fine adjustments to the instrument state by issuing the corresponding commands between the :CONFigure and :READ?.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) Query Response • Result will be formatted according to :FORMat[:DATA] ASCii | REAL setting. • When ASCii format is used, numeric data is transferred as ASCII bytes in format. The number of significant digits will range from 1 to 15, depending on the measurement resolution.
Chapter 4 Command Reference Introduction Table 4-1.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) Descriptions of the Measurement Functions— This sub-section provides a description of each measurement function (that is, [:VOLTage]:FREQuency, [:VOLTage]:FREQuency:RATio, [:VOLTage]:PERiod, etc.) that can be used with either the :MEASure query or :CONFigure command.
Chapter 4 Command Reference Introduction Descriptions of the Measurement Functions— (Cont.) :MEASure[:SCALar][:VOLTage]:DCYCle? [][,(@1)] Measures Duty Cycle. The measurement arming is coupled to “auto.” The specifies the point on the pulse where the duty cycle is determined. This point can be specified as either a percentage or an absolute voltage. The default units are percent. The parameter is used to configure the trigger settings.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) Descriptions of the Measurement Functions— (Cont.) :MEASure[:SCALar][:VOLTage]:FALL:TIME? [[,upper_reference>]][,(@1)] Measures Fall Time. The measurement arming is coupled to “auto.” The Counter uses the and to select the lower and upper points on the falling edge of an input signal applied to channel 1.
Chapter 4 Command Reference Introduction Descriptions of the Measurement Functions— (Cont.) :MEASure[:SCALar][:VOLTage]:FALL:TIME? (Cont.) range: (@1) default: (@1) :MEASure[:SCALar][:VOLTage]:FREQuency? [[,]][, (@1)|(@2)|(@3)] Measures Frequency. The measurement arming mode is set to “digits.” The Counter uses the and parameters to configure the number of digits of resolution arming setting.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) Descriptions of the Measurement Functions— (Cont.) :MEASure[:SCALar][:VOLTage]:FREQuency? (Cont.) default: value which indicates 4 digits of resolution for the specified Ch3 range: 100 MHz to 3.
Chapter 4 Command Reference Introduction Descriptions of the Measurement Functions— (Cont.) :MEASure[:SCALar][:VOLTage]:FREQuency:RATio? [[,]] [, (@1), (@2) | (@1), (@3) | (@2), (@1) | (@3), (@1) ] Measures Frequency Ratio between two inputs. The measurement arming mode is set to “digits.” The Counter uses the and parameters to configure the number of digits of resolution arming setting.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) Descriptions of the Measurement Functions— (Cont.) :MEASure[:SCALar][:VOLTage]:FREQuency:RATio? (Cont.) resolution: should use a mantissa of 1.
Chapter 4 Command Reference Introduction Descriptions of the Measurement Functions— (Cont.) :MEASure[:SCALar][:VOLTage]:NWIDth? [][,(@1)] Measures Negative Pulse Width. The measurement arming is coupled to “auto.” The specifies the point on the pulse where the negative pulse width is determined. This point can be specified as either a percentage or an absolute voltage. The default units are percent. The parameter is used to configure the trigger settings.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) Descriptions of the Measurement Functions— (Cont.) :MEASure[:SCALar][:VOLTage]:PERiod? [[,]][, (@1)|(@2)|(@3)] Measures Period. The measurement arming mode is set to “digits.” The Counter uses the and parameters to configure the number of digits of resolution arming setting.
Chapter 4 Command Reference Introduction Descriptions of the Measurement Functions— (Cont.) :MEASure[:SCALar][:VOLTage]:PERiod? (Cont.) Ch3 range: 0.33 ns to 10.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) Descriptions of the Measurement Functions— (Cont.) :MEASure[:SCALar][:VOLTage]:PHASe? [(@1),(@2)] Measures Phase. The measurement arming is coupled to “auto.” The trigger settings are coupled so that both channels 1 and 2 have auto-trigger enabled at 50% with a positive slope.
Chapter 4 Command Reference Introduction Descriptions of the Measurement Functions— (Cont.) :MEASure[:SCALar][:VOLTage]:PWIDth? [][,(@1)] (Cont.) percent range: 0 to 100 [PCT] percent resolution: 10% voltage range: For volts if X1 Attenuation: -5.125V to +5.125V For volts if X10 Attenuation: -51.25V to +51.25V voltage resolution: For volts if X1 Attenuation: .005V For volts if X10 Attenuation: .
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) Descriptions of the Measurement Functions— (Cont.) :MEASure[:SCALar][:VOLTage]:RISE:TIME? (Cont.) percent range: 0 to 100 [PCT] percent resolution: 10% voltage range: For volts if X1 Attenuation: -5.125V to +5.125V For volts if X10 Attenuation: -51.25V to +51.25V voltage resolution: For volts if X1 Attenuation: .005V For volts if X10 Attenuation: .
Chapter 4 Command Reference Introduction Descriptions of the Measurement Functions— (Cont.) :MEASure[:SCALar][:VOLTage]:TINTerval? [(@1),(@2)] Measures Time Interval. The first channel in the channel list is the start channel and the second is the stop channel. The trigger settings are coupled so that both channels 1 and 2 have auto-trigger enabled at 50% with a positive slope. The measurement arming is coupled to “auto” with no delay. The input routing is coupled to separate inputs.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) Descriptions of the Measurement Functions— (Cont.) :MEASure[:SCALar][:VOLTage]:TOTalize:TIMed? [][,(@1)] Measures Totalize during the specified . The totalize gate mode is set to “time,” and the totalize gate time is defaulted or set to the specified value. The trigger settings are coupled so that the measurement channel has auto-trigger disabled with a positive slope.
Chapter 4 Command Reference Introduction How to Use the Measurement Instruction Commands The Measure Instruction commands have a different level of compatibility and flexibility than other commands. The parameters used with commands from the Measure Instruction describe the signal you are going to measure. This means that the Measure Instructions give compatibility between instruments since you do not need to know anything about the instrument you are using.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) How to Use the Measurement Instruction Commands (Cont.) Using :CONFigure with :READ? The :CONFigure command causes the instrument to choose default settings for the specified measurement. :READ? starts the measurement and queries the result. This sequence operates in the same way as the :MEASure query, but now it is possible to insert commands between :CONFigure and :READ? to specify a particular setting.
Chapter 4 Command Reference Introduction How to Use the Measurement Instruction Commands (Cont.) Use :SENS:EVEN:LEV 0V to set the trigger level to 0 Volts. Use :INITIATE to start the measurement. Use :FETCH? to query for result. Firmware Revision Work-Around Commands The following applies to HP 53131A instruments with Firmware Revision 3413: The three commands listed below should NOT be used.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) The work-around commands which should be substituted are listed below. :INIT; *WAI :FETCh:MAXimum? :INIT; *WAI :FETCh:MINimum? :INIT; *WAI :FETCh:PTPeak? The command listed below should NOT be used when the function choice is Voltage Peaks. :READ? The work-around command sequence which should be substituted is listed below.
Chapter 4 Command Reference Introduction :MEMory Subsystem This subsystem manages the instrument’s memory . The MEMory capabilities of an instrument are not part of the instrument state, and are not affected by reset (*RST) or recall (*RCL). In this instrument, the macro capabilities will not survive a power cycle, but the *SAV/*RCL states will. :MEMory:DELete:MACRo Deletes the macro with the name specified by the string parameter. The new IEEE 488.
Chapter 4 Command Reference [:SENSe] Subsystem [:SENSe] Subsystem The [:SENSe] subsystem commands are divided into several sections. Each section or subtree deals with controls that directly affect instrument-specific settings and not those related to the signal-oriented characteristics. [:SENSe]:DATA? [“[:]SENSe[1]”] Queries the current measurement result data of the :SENSe subsystem (no scale or offset applied).
Chapter 4 Command Reference Introduction [:SENSe]:EVENt2:FEED “[:]INPut[1] | [:]INPut2” Sets or queries the common/separate enable. Feeding the :INPut2 subsystem to the [:SENSe]:EVENt2 subsystem corresponds to separate; feeding the :INPut1 subsystem to the [:SENSe]:EVENt2 subsystem corresponds to common. Query Response Comments The string “INP” or “INP2” is returned. • *RST: “INPut2” • Only the Time Interval function allows either the separate or common setting.
Chapter 4 Command Reference [:SENSe] Subsystem Range 0, 50, or 100 PCT Query Response Numeric data transferred as ASCII bytes in format. Comments Related Front-Panel Keys Current firmware revision— *RST: 0 PCT (least noise immunity) Prior firmware revisions— *RST: 100 PCT (maximum sensitivity) (3317, 3335, and 3402) Trigger/Sensitivity [:SENSe]:EVENt[1|2]:LEVel[:ABSolute] [V] Sets or queries the level at the center of the hysteresis window.
Chapter 4 Command Reference Introduction [:SENSe]:EVENt[1|2]:LEVel[:ABSolute]:AUTO Sets or queries the “auto-trigger “ enable. When AUTO is set to ON, the Counter automatically measures and computes a trigger level which corresponds to the auto-trigger percentage (specified with [:SENS]:EVEN[1|2]:LEV:REL) of the specified channel. While the enable is set to ON, the Counter will measure and compute the measurement channel(s) trigger level(s) each time :INIT or :INIT:CONT ON is executed.
Chapter 4 Command Reference [:SENSe] Subsystem Comments • *RST: 50 PCT • Only applies when [:SENS]:EVEN[1|2]:LEV[:ABS]:AUTO is ON. Related Front-Panel Keys Trigger/Sensitivity [:SENSe]:EVENt[1|2]:SLOPe POSitive | NEGative Sets or queries which edge of the input signal will be considered an event for Frequency, Period, Frequency Ratio, Time Interval, Totalize, and Phase measurements.
Chapter 4 Command Reference Introduction [:SENSe]:EVENt3:SLOPe? Queries which edge of channel 3 input port will be considered an event. Query Response A sequence of ASCII-encoded bytes: POS [:SENSe]:FREQuency Subtree This subtree controls the Frequency, Frequency Ratio, and Period measuring capabilities of the instrument. [:SENSe]:FREQuency:ARM Subtree This subtree is used to synchronize the Frequency, Frequency Ratio, and Period start and stop arm with events.
Chapter 4 Command Reference [:SENSe] Subsystem [:SENSe]:FREQuency:ARM[:STARt]:SOURce IMMediate |EXTernal Sets or queries the start arm for Frequency, Frequency Ratio, and Period measurements. Query Response Comments Related Front-Panel Keys A sequence of ASCII-encoded bytes: IMM or EXT *RST: IMMediate Gate & ExtArm [:SENSe]:FREQuency:ARM:STOP:DIGits Sets or queries the resolution in terms of digits used in arming Frequency, Period, and Ratio measurements.
Chapter 4 Command Reference Introduction [:SENSe]:FREQuency:ARM:STOP:SOURce IMMediate | EXTernal | TIMer | DIGits Sets or queries the stop arm for Frequency, Frequency Ratio, and Period measurements. Query Response Comments Related Front-Panel Keys A sequence of ASCII-encoded bytes: IMM, EXT, TIM, or DIG *RST: TIMer Gate & ExtArm [:SENSe]:FREQuency:ARM:STOP:TIMer [S] Sets or queries the gate time used in arming Frequency, Frequency Ratio, and Period measurements.
Chapter 4 Command Reference [:SENSe] Subsystem [:SENSe]:FREQuency:EXPected[1|2|3] [HZ] Sets or queries the approximate frequency of a signal you expect to measure. Providing this value enables the Counter to eliminate a pre-measurement step, saving measurement time and enabling more accurate arming. This applies to the following measurement functions: Frequency, Period, Ratio, Phase, and Duty Cycle.
Chapter 4 Command Reference Introduction Comments • *RST: ON • This value is unaffected by save/recall. • While the Counter is configured to ON, representative CW signal(s) must be present at the measurements input(s). • The ON setting causes the Counter to disregard any previously set “expected frequency” ([:SENS]:FREQ:EXP[1|2|3]). • The only mechanism for disabling the above described pre-measurement step is to specify an expected frequency with [:SENS]:FREQ:EXP[1|2|3].
Chapter 4 Command Reference [:SENSe] Subsystem Query Response • The string “ [,] ” is returned. • The string omits default nodes (XNONe) and uses short form mnemonics. If the channel specifier(s) are set to default value(s), no channel specifier is returned in response. If the channel specifier(s) are not set to default value(s), they will be returned in the response with a single space separating the first channel specifier from the function name.
Chapter 4 Command Reference Introduction • When the sensor function is changed resulting in auto-trigger being enabled, the Counter will wait until a measurement is initiated before performing the first “auto-trigger ” and updating the absolute level(s). • This command has no direct effect on :FETCh?, :READ?, or :CONFigure?. • When the sensor function is Totalize, Voltage Minimum, Voltage Maximum, or Voltage Peak-to-Peak, then [:INIT]:IMM always initiates a single measurement.
Chapter 4 Command Reference [:SENSe] Subsystem [:SENSe]:PHASe:ARM[:STARt]:SOURce IMMediate | EXTernal Sets or queries the start arm for Phase measurements. Query Response Comments Related Front-Panel Keys A sequence of ASCII-encoded bytes: IMM or EXT *RST: IMMediate Gate & ExtArm [:SENSe]:ROSCillator Subtree This subtree controls the Reference Oscillator . [:SENSe]:ROSCillator:EXTernal:CHECk ON | OFF | ONCE Sets or queries the enable for “checking” the validity and presence of the external reference.
Chapter 4 Command Reference Introduction Query Response Comments A sequence of ASCII-encoded bytes: ON or OFF • *RST: ON • Use this command when [:SENS]:ROSC:SOUR EXT has been sent. • This value is unaffected by save/recall. [:SENSe]:ROSCillator:EXTernal:FREQuency? Queries the frequency value of the external reference oscillator. Query Response • Numeric data transferred as ASCII bytes in format with six significant digits. • Range is 1E6 to 10E6. • Units are Hertz.
Chapter 4 Command Reference [:SENSe] Subsystem Comments • Execution of the command (that is, explicitly selecting internal or external timebase) sets [:SENS]:ROSC:SOUR:AUTO to OFF. • The query can be used to determine the current reference timebase when [:SENS]:ROSC:SOUR:AUTO is ON. That is, the query response will indicate which timebase (internal or external) has automatically been selected. • This value is unaffected by save/recall.
Chapter 4 Command Reference Introduction [:SENSe]:TINTerval Subtree (HP 53131A and HP 53132A With S/N Prefix Below 3646) This subtree controls the time interval (including Time Interval, Risetime, Falltime, Duty Cycle, and Pulse Width functions) measuring capabilities of the instrument. Refer to page 4-98, for Time Interval arming capabilities of the HP 53132A with a serial number prefix 3646 and above.
Chapter 4 Command Reference [:SENSe] Subsystem [:SENSe]:TINTerval:ARM[:STARt]:SOURce IMMediate | EXTernal Sets or queries the start arm for time interval (including Time Interval, Risetime , Falltime, Duty Cycle, and Pulse Width functions) measurements.
Chapter 4 Command Reference Introduction Query Response Comments Numeric data transferred as ASCII bytes in format with six significant digits. • *RST: 10E-3 S • Only applies when [:SENS]:TINT:ARM:STOP:SOUR TIM is selected. • This [:SENS]:TINT:ARM:STOP:TIM command has no affect on the following measurements: Risetime, Falltime, Duty Cycle, and Pulse Width.
Chapter 4 Command Reference [:SENSe] Subsystem [:SENSe]:TINTerval Subtree (HP 53132A With S/N Prefix 3646 and Above) This subtree controls the time interval (including Time Interval, Risetime, Falltime, Duty Cycle, and Pulse Width functions) measuring capabilities of the instrument . Refer to page 4-95, for Time Interval arming capabilities of the HP 53131A (and the HP 53132A with a serial number prefix below 3646).
Chapter 4 Command Reference Introduction Front-Panel Arming Settings ESTART:LAY2 :SOURce ESTART:LAY1 :SOURce ESTOP:LAY2 :SOURce ESTOP:LAY1 :SOURce TSTART TDELAY STOPT DELAYT IMMediate IMMediate IMMediate IMMediate AUTO _______ AUTO NONE IMMediate IMMediate IMMediate TIMer AUTO _______ AUTO TIME IMMediate IMMediate IMMediate INTernal2 AUTO _______ AUTO EVENT EXTernal IMMediate IMMediate IMMediate EXT NONE AUTO NONE EXTernal IMMediate IMMediate TIMer EXT NONE AUT
Chapter 4 Command Reference [:SENSe] Subsystem [:SENSe]:TINTerval:ARM:ESTART:LAYer2:SLOPe POSitive | NEGative Sets or queries the slope of the external start arm signal used in external arming time interval (including Time Interval, Risetime, Falltime, Duty Cycle, and Pulse Width functions) measurements. Query Response Comments A sequence of ASCII-encoded bytes: POS or NEG • *RST: POSitive • Only applies when [:SENS]:TINT:ARM:ESTART:LAY2:SOUR EXT is selected.
Chapter 4 Command Reference Introduction • The [:SENS]:TINT:ARM:EST ART[:LAYer[1]]:ECO command has no affect on the following measurements: Risetime, Falltime, Duty Cycle, and Pulse Width. [:SENSe]:TINTerval:ARM:ESTART[:LAYer[1]]:SOURce IMMediate | TIMer | INTernal[1] Sets or queries the start arm delay for Time Interval measurements.
Chapter 4 Command Reference [:SENSe] Subsystem [:SENSe]:TINTerval:ARM:ESTOP:LAYer2:SLOPe POSitive | NEGative Sets or queries the slope of the external stop arm signal used in external arming time interval (including Time Interval, Risetime, Falltime, Duty Cycle, and Pulse Width functions) measurements. Query Response Comments A sequence of ASCII-encoded bytes: POS or NEG • *RST: POSitive • Only applies when [:SENS]:TINT:ARM:EST OP:LAY2:SOUR EXT is selected.
Chapter 4 Command Reference Introduction [:SENSe]:TINTerval:ARM:ESTOP[:LAYer[1]]:SOURce IMMediate | TIMer | INTernal2 Sets or queries the stop arm for Time Interval measurements. Query Response Comments A sequence of ASCII-encoded bytes: IMM or TIM or INT2 • *RST: IMMediate • The [:SENS]:TINT:ARM:ESTOP[:LAYer[1]]:SOUR command has no affect on the following measurements: Risetime, Falltime, Duty Cycle, and Pulse Width.
Chapter 4 Command Reference [:SENSe] Subsystem [:SENSe]:TOTalize Subtree This subtree controls the Totalize measuring capabilities of the instrument. [:SENSe]:TOTalize:ARM Subtree This subtree is used to synchronize the Totalize start and stop arm with events.
Chapter 4 Command Reference Introduction [:SENSe]:TOTalize:ARM[:STARt]:SOURce IMMediate | EXTernal Sets or queries the start arm for Totalize measurements. Query Response Comments A sequence of ASCII-encoded bytes: IMM or EXT • *RST: IMMediate • When both start and stop arm are set to IMMediate, use :INIT[:IMM] to begin totalizing and :ABORt to terminate. No valid totalize result will exist until the “auto” totalize measurement is terminated.
Chapter 4 Command Reference [:SENSe] Subsystem [:SENSe]:TOTalize:ARM:STOP:SOURce IMMediate | EXTernal TIMer Sets or queries the stop arm for Totalize measurements. Query Response Comments A sequence of ASCII-encoded bytes: IMM, EXT or TIM • *RST: TIMer • When both start and stop arm are set to IMMediate, use :INIT[:IMM] to begin totalizing and :ABORt to terminate. No valid totalize result will exist until the “auto” totalize measurement is terminated.
Chapter 4 Command Reference Introduction :STATus Subsystem The :STATus subsystem commands allow you to specify or examine the status of the Operation Status Register group and the Questionable Data/Signal Register group. :STATus:OPERation Subtree The :STATus:OPERation subtree commands allow you to examine the status of the Counter monitored by the Operation Status Register group, shown in Figure 42.
Chapter 4 Command Reference :STATus Subsystem :STATus:OPERation:ENABle | Sets or queries the Operation Event Status Enable Register. The parameter and query response value, when rounded to an integer value and expressed in base 2 (binary), represents the bit values of the Operation Event Status Enable Register. The value of unused bits is zero when queried and ignored when set.
Chapter 4 Command Reference Introduction :STATus:OPERation:NTRansition | Sets or queries the negative transition filter for the Operation status reporting structure. The parameter and query response value, when rounded to an integer value and expressed in base 2 (binary), represents the bit values of the negative transition filter. The value of unused bits is zero when queried and ignored when set.
Chapter 4 Command Reference :STATus Subsystem Comments • At power-on and STAT:PRES, the positive transition filter is preset such that each bit is a 1 (TRUE). • This value is unaffected by *RST and save/recall. :STATus:PRESet This event command presets the enable registers and transition filters associated with the Operation and Questionable status reporting structures. The enable registers and negative transition filters are preset such that each bit is a 0 (FALSE).
Chapter 4 Command Reference Introduction :STATus:QUEStionable:CONDition? Queries the status of the Questionable Data Condition Status Register. Bits are not cleared when read. Query Response • Numeric data transferred as ASCII bytes in format. • Range is 0 to 65,535. • The query response value is an integer formed by the binary-weighting of the bits. The value of unused bits is zero. Comments The Questionable Data Condition Status Register is cleared at power-on.
Chapter 4 Command Reference :STATus Subsystem :STATus:QUEStionable[:EVENt]? Queries the status of the Questionable Data Event Status Register. The Questionable Data Event Status Register captures changes in conditions by having each event bit correspond to a specific condition bit in the Questionable Data Condition Status Register. An event becomes TRUE when the associated condition makes the transition specified by the transition filters. The event bits, once set, are “sticky.
Chapter 4 Command Reference Introduction :STATus:QUEStionable:PTRansition | Sets or queries the positive transition filter for the Questionable Data status reporting structure. The parameter and query response value, when rounded to an integer value and expressed in base 2 (binary), represents the bit values of the positive transition filter. The value of unused bits is zero when queried and ignored when set.
Chapter 4 Command Reference :SYSTem Subsystem :SYSTem Subsystem This subsystem collects together the capabilities that are not related to instrument performance. :SYSTem:COMMunicate Subtree The :SYSTem:COMMunicate subtree collects together the configuration of the control/communication interfaces. The :SYSTem:COMMunicate:SERial subtree controls the physical configuration of the RS-232C port. Any command to change the settings takes effect immediately upon receipt of the “program message termination.
Chapter 4 Command Reference Introduction Query Response Comments A sequence of ASCII-encoded bytes: IBF, ON, or LIM • This value is stored in non-volatile memory. It is unaffected by power-on, save/recall, and *RST. • The start and stop thresholds are not user configurable. Related Front-Panel Keys Utility/POWER :SYSTem:COMMunicate:SERial:TRANsmit:BAUD Sets or queries the baud rate.
Chapter 4 Command Reference :SYSTem Subsystem :SYSTem:COMMunicate:SERial:TRANsmit:PARity[:TYPE] EVEN | ODD | NONE Sets or queries the parity scheme. Query Response Comments A sequence of ASCII-encoded bytes: EVEN, ODD, or NONE • This value is stored in non-volatile memory. It is unaffected by power-on, save/recall, and *RST. • If parity is enabled, the Counter sends/receives 7 data bits plus 1 parity bit. If parity is disabled, the Counter sends/receives 8 data bits.
Chapter 4 Command Reference Introduction This command simulates the pressing or a front-panel key. The is a key code value. This command puts an entry in the Key Queue (just as any front-panel key press does). The length of the Key Queue is 500. The keys and their corresponding key codes are listed in the following table.
Chapter 4 Command Reference :SYSTem Subsystem Comments • At*RST and power-on, the Key Queue is cleared (emptied). • The Key Queue is unaffected by save/recall. • Key commands are sequential, but only in terms of processing other key commands or getting into the Key Queue. The operation performed by the key command is not guaranteed to be complete before processing of the next nonkey command. Be aware of this when intermixing key commands and non-key commands.
Chapter 4 Command Reference Introduction :TRACe Subsystem This subsystem provides access to the scale and offset values. The :TRACe subsystem used in conjunction with the :CALCulate[1] subsystem, scales and offsets measurement results. :TRACe:CATalog? Queries list of intrinsic constants. The Counter has two constants, scale and offset.
Chapter 4 Command Reference :TRACe Subsystem Related Front-Panel Keys Scale & Offset :TRACe[:DATA] SCALE, or :TRACe[:DATA] SCALE, :TRACe[:DATA]? SCALE Sets or queries the scale value. Range -9.999999E+12 to -1.000000E-13, 0.000000, +1.000000E-13 to +9.999999E+12. Resolution 7 digits Query Response • Response will be formatted according to :FORMat[:DATA] ASCii | REAL setting.
Chapter 4 Command Reference Introduction :TRIGger Subsystem This subsystem enables synchronization of instrument actions with specified internal or external events. :TRIGger:COUNt:AUTO Sets or queries the control over the number of measurements made when :INITiate[:IMMediate] is performed. When :TRIG:COUN:AUTO is OFF, then :INIT[:IMM] initiates a single measurement.
Chapter 4 Command Reference *CAL? (Calibration Query) *CAL? (Calibration Query) *CAL? This query causes an internal interpolator self-calibration. Query Response • Numeric data transferred as ASCII bytes in format. • A value of zero indicates the calibration completed without error. A value of one indicates the calibration completed with error.
Chapter 4 Command Reference Introduction *CLS (Clear Status Command) *CLS Clears all event registers summarized in the status byte (Standard Event Status Register, Operation Event Status Register, and Questionable Data Event Status Register) and clears the Error Queue. The *CLS command will not clear data memories or any other settings. It also places the instrument in “Operation Complete Idle State” and “Operation Complete Query Idle State” (IEEE 488.2).
Chapter 4 Command Reference *DDT (Define Device Trigger Command) *DDT (Define Device Trigger Command) *DDT Sets or queries the command that the device will execute when it receives the IEEE 488.1 Group Execute Trigger (GET) interface message (page 4- 42) or a *TRG common command. There are only three valid commands that the Counter will accept: :INITiate[:IMMediate], :READ?, or :FETCh?; otherwise, error -224 is generated.
Chapter 4 Command Reference Introduction *DMC , (Define Macro Command) *DMC , This command assigns a sequence of zero or more commands/queries to a macro label. The sequence is executed when the label is received as a command or query. The parameter specifies the macro label. The macro label may not be a common command/query header.
Chapter 4 Command Reference *EMC (Enable Macro Command) *EMC (Enable Macro Command) *EMC? (Enable Macro Query) *EMC *EMC? Sets or queries the Enable for defined macros. Macro definitions are not affected by this command. One use of this command is to turn off macro expansion in order to execute an instrument-specific command with the same name as a macro. The value of the numeric parameter determines whether the defined macros are enabled or disabled.
Chapter 4 Command Reference Introduction *ESE (Standard Event Status Enable Command) *ESE? (Standard Event Status Enable Query) *ESE *ESE? Sets or queries the Standard Event Status Enable Register, shown in Figure 4-4. The parameter and query response value, when rounded to an integer value and expressed in base 2 (binary), represents the bit values of the Standard Event Status Enable Register. The value of unused bits is zero when queried and ignored when set.
Chapter 4 Command Reference *ESR? (Event Status Register Query) *ESR? (Event Status Register Query) *ESR? Queries the Standard Event Status Register, shown in Figure 4-5. This event register captures changes in conditions, by having each event bit correspond to a specific condition in the instrument. An event becomes TRUE when the associated condition makes the defined transition. The event bits, once set, are “sticky.
Chapter 4 Command Reference Introduction *GMC? (Get Macro Contents Query) *GMC? Queries the current definition of a macro. The parameter must be a currently defined macro label. Query Response • Definite length block. • The query response is a containing the command/query sequence which is executed when the macro label is received. • A zero-length block response indicates that no command sequence is stored by the specified label.
Chapter 4 Command Reference *IDN? (Identification Query) *IDN? (Identification Query) *IDN? Queries the Counter identification. Query Response A sequence of ASCII-encoded bytes: HEWLETT-PACKARD, 53131A,0,XXXX or HEWLETT-PACKARD, 53132A,0,XXXX terminated with a new line and EOI. XXXX represents the firmware date code. Comments This query should be the last query in a terminated program message; otherwise, error -440 is generated.
Chapter 4 Command Reference Introduction *LMC? (Learn Macro Query) *LMC? Queries the currently defined macro labels. Query Response • A sequence of one or more strings separated by commas. • If no macros are defined, the response is a null string (two consecutive double quote marks).
Chapter 4 Command Reference *OPC (Operation Complete Command) *OPC (Operation Complete Command) *OPC This event command enables the OPC bit (bit 0) in the Standard Event Status Register to be set upon the transition of the measurement cycle from measuring to idle. (Note — For HP 53131A/132A with serial number prefix 3646 and above — If the measurement cycle is already idle, this command will immediately set the OPC bit.
Chapter 4 Command Reference Introduction *OPC? (Operation Complete Query) *OPC? This query produces a response upon the transition of the measurement cycle from measuring to idle. This allows synchronization between a controller and the instrument using the MAV bit in the Status Byte Register or a read of the Output Queue. (Note that this query does not actually “read” a state, as most queries do.
Chapter 4 Command Reference *OPT? (Option Identification Query) *OPT? (Option Identification Query) *OPT? Queries the instrument to identify any installed options. The following options can be installed in the instrument: • Option 001, Medium Stability Oven Timebase • Option 010, High Stability Oven Timebase • Option 012, Ultra High Stability Oven Timebase • Option 030, 3.0 GHz RF Input Channel (Channel 3) • Option 050, 5.
Chapter 4 Command Reference Introduction *PMC (Purge Macro Command) *PMC The Purge MaCros command deletes all macros previously defined using the *DMC command.
Chapter 4 Command Reference *RCL (Recall Command) *RCL (Recall Command) *RCL This command restores the state of the instrument from a copy stored in local nonvolatile memory. Before the recall occurs, the current state of the instrument is automatically saved to register 0.
Chapter 4 Command Reference Introduction *RST (Reset Command) *RST This event command performs an instrument reset .
Chapter 4 Command Reference *SAV (Save Command) *SAV (Save Command) *SAV This command stores the current state of the instrument in local non-volatile memory . The current instrument state is saved in register 0 when *RCL or front-panel recall is executed.
Chapter 4 Command Reference Introduction *SRE (Service Request Enable Command) *SRE? (Service Request Enable Query) *SRE *SRE? Sets or queries the Service Request Enable Register, shown in Figure 4-6. The parameter and query response value, when rounded to an integer value and expressed in base 2 (binary), represents the bit values of the Service Request Enable Register. This register is used to enable a single or inclusive OR group of Status Byte Register events to generate an SRQ.
Chapter 4 Command Reference *STB? (Status Byte Query) *STB? (Status Byte Query) *STB? Queries the Status Byte Register, shown in Figure 4-7. This register is cleared at power-on. This query does not directly alter the Status Byte Register (including the MSS/RQS bit) or anything related to the generation of SRQ. Figure 4-7.
Chapter 4 Command Reference Introduction *TRG (Trigger Command) *TRG This command is the device-specific analog of the IEEE 488.1 Group Execute Trigger (GET) interface message (page 4- 42), and has exactly the same effect. The *TRG command will perform the action defined by the *DDT command (page 4-124).
Chapter 4 Command Reference *TST? (Self-Test Query) *TST? (Self-Test Query) *TST? This query causes an internal self-test and the response indicates whether any errors were detected. Error -330 is generated when the self-test fails. Query Response • Numeric data transferred as ACSII bytes in format. • A response value of zero indicates the self-test has completed without errors detected, while a non-zero value indicates the self-test was not completed or was completed with errors detected.
Chapter 4 Command Reference Introduction *WAI (Wait-to-Continue Command) *WAI This command prevents the instrument from executing any further commands or queries until the measurement cycle transitions from measuring to idle. The only way to cancel this “holdoff” is by device clear or power-on. (*RST and *CLS have no affect on *WAI operation.) See the section titled “Using the *WAI Command,” page 3-4 6, in Chapter 3 for an example using this command.
Chapter 4 Command Reference *WAI (Wait-to-Continue Command) 4-144 Programming Guide
5 5 Errors
Chapter 5 Errors Introduction Introduction This chapter explains how to read any errors from the Counter, discusses the types of errors, and provides a table of all of the Counter ’s errors and their probable causes. Displaying Errors When an HP-IB error is detected, the HP-IB XXX message will appear on the front-panel display, where XXX indicates the error number found in Table 5-2.
Chapter 5 Errors Error Queue 10 ASSIGN @Cntr TO 703 20 !Assign path name 30 DIM Err_string$[255] 40 !Creates array for error string 50 REPEAT 60 !Repeats until error queue is empty 70 OUTPUT @Cntr;“SYST:ERR?” 80 !Read error number and string 90 ENTER @Cntr;Err_num,Err_string$ 100 !Enter error number and string 110 PRINT Err_num,Err_string$ 120 !Print error number and string 130 UNTIL Err_num = 0 140 END Error Queue As errors are detected, they are placed in an error queue.
Chapter 5 Errors Error Types Error Types Error numbers are categorized by type as shown in Table 5-1. Each and every error is listed in Table 5-2. Table 5-1. Error Types Error Number Error Type +0 No Error − 100 to − 199 Command Errors − 200 to − 299 Execution Errors − 300 to − 350 Device-Specific Errors − 400 to − 499 Query Errors +2000 to +2013 Counter-Specific Errors The first error described in each class (for example, -100, -200, -300, -400) is a “generic” error.
Chapter 5 Errors Error Queue Events that generate command errors do not generate execution errors, devicespecific errors, or query errors. Execution Error An in the range [ − 200 to − 299] indicates that an error has been detected by the Counter’s execution control block. The occurrence of any error in this class causes the execution error bit (bit 4) in the Event Status Register to be set.
Chapter 5 Errors Error Types Query Error An in the range [ − 400 to − 499] indicates that the output queue control of the Counter has detected a problem with the message exchange protocol. The occurrence of any error in this class should cause the query error bit (bit 2) in the Event Status Register to be set. One of the following is true: • An attempt is being made to read data from the output queue when no output is either present or pending. • Data in the output queue has been lost.
Chapter 5 Errors Error Queue Table 5-2. Errors Number +0 Error String Cause No error The error queue is empty. Every error in the queue has been read (:SYSTem:ERRor? query) or the queue was cleared by power-on or *CLS. This is the generic syntax error used if the Counter cannot detect more specific errors. A syntactic element contains a character that is invalid for that type. For example, a header containing an ampersand, :INP:COUP& AC. An unrecognized command or data type was encountered.
Chapter 5 Errors Error Types Table 5-2.
Chapter 5 Errors Error Queue Table 5-2.
Chapter 5 Errors Error Types Table 5-2. Errors (Continued) Number Error String Cause -400 -410 Query error Query INTERRUPTED -420 Query UNTERMINATED -430 Query DEADLOCKED -440 Query UNTERMINATED after indefinite response This is the generic query error. Indicates that a condition causing an INTERRUPTED Query error occurred. For example, a query followed by DAB or GET before a response was completely sent. Indicates that a condition causing an UNTERMINATED Query error occurred.
Index 9.
Index conformance IEEE488.1, 3-7 IEEE488.
Index low-pass filter, 4-48 interpolator automatic calibration, 4-32 calibration, 4-26, 4-33 K key queue, 4-117 keyword, 3-9 optional, 3-9 separator, 3-9 L Learning to Program the Counter, 1-7 level, 4-83 limit fail, 4-14 fail count, 4-15 graph, 4-14 lower, 4-16 pass count, 4-17 test, 4-11 enable, 4-17 upper, 4-18 limit testing, 4-11 list of errors, 5-7 literal, 3-11, 3-18 local, 3-6 M macros, 3-52 define, 3-52, 4-125 get contents, 4-129 labels, 4-131 memory, 4-79 purge, 4-135 math, 4-7 enable, 4-10 off
Index power on status bit, 3-24, 3-26 power-on, 3-23, 3-26, 3-30 preset, 4-110 print, 4-43 prior firmware revisions 3317, 3335, and 3402, 2-32 3317, 3335,and 3402, 4-81 program messages definition, 3-14 syntax, 3-14 program the Counter for math/limit operations, 3-49 program the Counter for status reporting, 338 program the Counter to define macros, 3-52 program the Counter to display results, 3-43 Program the Counter to Synchronize Measurements, 3-46 programming examples, 3-58 programming for display resu
Index separator keyword, 3-9 parameter, 3-12 serial control, 4-114 serial port, 4-43 service request enable register, 3-23, 4-139 short form, 3-53 single-quoted string sending a single-quoted string, 3-58 slope, 4-84 standard deviation, 4-19 standard event status enable register, 3-26, 4-127 standard event status register, 3-24, 4-128 statistics, 4-19 enable, 4-21 filter, 4-23 maximum, 4-22 mean, 4-22 minimum, 4-22 N, 4-20 results, 4-19 standard deviation, 4-22 stats, 4-19 status operation, 4-107 preset, 4
Index :INPut3:IMPedance?, 4-50 :MEASure, 4-51 :MEMory, 4-79 :MEMory:DELete:MACRo, 4-79 :MEMory:FREE:MACRo?, 4-79 :MEMory:NSTates?, 4-79 :STATus, 4-107 :STATus:OPERation, 4-107 :STATus:PRESet, 4-110 :STATus:QUEStionable, 4-110 :SYSTem, 4-114 :SYSTem:COMMunicate, 4-114 :SYSTem:ERRor?, 4-116 :SYSTem:KEY, 4-117 :SYSTem:KEY:LOG?, 4-118 :SYSTem:VERSion?, 4-118 :TRACe, 4-119 :TRACe:CATalog?, 4-119 :TRACe[:DATA] OFFSET, 4-119 :TRACe[\:DATA] SCALE, 4-120 :TRIGger, 4-121 :TRIGger:TRIGger:COUNt:AUTO, 4121 [:SENSe] [:
H Technical Support: If you need technical assistance with a Hewlett-Packard test and measurement product or application, please contact the Hewlett-Packard office or distributor in your country. Asia Pacific: Hewlett-Packard Asia Pacific Ltd. 17-21/F Shell Tower, Times Square, 1 Matheson Street, Causeway Bay, Hong Kong (852) 2599 7070 Australia/New Zealand: Hewlett-Packard Australia Ltd. 31-41 Joseph Street Blackburn, Victoria 3130 Australia 131 347 ext. 2902 Canada: Hewlett-Packard Canada Ltd.
Continued from front matter . . . Warranty (contd) Exclusive Remedies For warranty service or repair, this product must be returned to a service facility designated by HP. Buyer shall prepay shipping charges to HP and HP shall pay shipping charges to return the product to Buyer. However, Buyer shall pay all shipping charges, duties, and taxes for products returned to HP from another country. THE REMEDIES PROVIDED HEREIN ARE BUYER'S SOLE AND EXCLUSIVE REMEDIES.
H Manual Part Number 53131-90044 Printed in U.S.A.