Manuale d’uso / di manutenzione del prodotto 132A del fabbricante HP (Hewlett-Packard)
Vai alla pagina of 330
Programming Guide HP 53131A/1 32A 225 MH z Universal Cou nter.
.
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.
Programming Guide iii 1 Before You Start ... Introduction 1-2 Differences Between Prior and Current Revisions of the HP 53131A/132A 1-3 HP 53131A Containing Firmware Revisions (3317, 3335, or 3402) 1-.
Contents iv Programming Guide Calibration Menu to SCPI Command Map 2-18 HP 53131A/132A Command Summary 2-20 SCPI Conformance Information 2-20 IEEE 488.
Contents Programming Guide v Suffixes 3-12 Suffix Elements 3-12 Suffix Multipliers 3-13 Command Terminator 3-13 Using Multiple Commands 3-14 Program Messages 3-14 Program Message Syntax 3-14 Overview .
Contents vi Programming Guide 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.
Contents Programming Guide vii 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.
Contents viii Programming Guide 4 Command Reference Introduction 4-2 :ABORt Command 4-4 :CALCulate Subsystems 4-5 :CALCulate[1] Subsystem 4-7 :CALCulate[1]:MATH Subtree 4-9 :CALCulate2 Subsystem 4-11 .
Contents Programming Guide ix [:SENSe]:EVENt3 Subtree 4-84 [:SENSe]:FREQuency Subtree 4-85 [:SENSe]:FREQuency:ARM Subtree 85 [:SENSe]:PHASe Subtree 4-91 [:SENSe]:PHASe:ARM Subtree 4-91 [:SENSe]:ROSCil.
Contents x Programming Guide *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 Identificat.
1 1 Before You Start ....
Chapter 1 Before You Start ... Introduction 1 - 2 Programming Guide 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.
Chapter 1 Before You Start ... Programming Guide Contents Programming Guide 1 - 3 Differences Between Prior and Current Revisions of the HP 53131A /132A If you have an HP 53131A containing one of the .
Chapter 1 Before You Start ... Differences Between Prior and Current Revisions of the HP 53131A/132A 1 - 4 Programming Guide Measurements If your Counter contains other than the current firmware revis.
Chapter 1 Before You Start ... Programming Guide Contents Programming Guide 1 - 5 :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 avail a ble to disable auto-trigger.
Chapter 1 Before You Start ... Getting Started 1 - 6 Programming Guide Getting Started Before attempting to program the Counter, take some time to familiarize yourself with the content of this guide.
Chapter 1 Before You Start ... Programming Guide Contents Programming Guide 1 - 7 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.
Chapter 1 Before You Start ... How to Use This Guide 1 - 8 Programming 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.
Chapter 1 Before You Start ... Programming Guide Contents Programming Guide 1 - 9 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 1 Before You Start ... Related Documentation 1 - 10 Programming Guide 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.
Chapter 1 Before You Start ... Programming Guide Contents Programming Guide 1 - 11 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.
Chapter 1 Before You Start ... Related Documentation 1 - 12 Programming Guide.
2 2 Command Summary A Quick Reference.
Chapter 2 Command Summary Introduction 2 - 2 Programming Guide Introduction This chapter is a quick reference that summarizes the Counter ’ s programming commands. Chapter Summary • Front Panel to SCPI Command Maps 1 pg. 2- 3 – Some SCPI Syntax Conventions pg.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 3 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.
Chapter 2 Command Summary Front Panel to SCPI Command Maps 2 - 4 Programming Guide 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 Programming Guide 2 - 5 Input Channels Conditioning Keys to SCPI Command Map (Cont .) 1 a. [:SENSe]:EVENt[1|2]:LEVel[:ABSolute]:AUTO ON|OFF b 1 . [:SENSe]:EVENt[1|2]:LEVel[:ABSolute] <numeric_value> [V] b 2 .
Chapter 2 Command Summary Front Panel to SCPI Command Maps 2 - 6 Programming Guide I nstrument Control, Utility, Recall, and Save & Print Keys to SCPI Command Map Figure 2 - 2 .
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 7 Instrument Control, Utility, Recall, and Save & Print Keys to SCPI Command Map (Cont .) 1 a. *IDN? b. No command c 1 . [:SENSe]:ROSCillator:SOURce INTernal c 2 . [ :SENSe]:ROSCillator:SOURce EXTernal c 3 .
Chapter 2 Command Summary Front Panel to SCPI Command Maps 2 - 8 Programming Guide MEASURE Keys to SCPI Command Map Figure 2 - 3 . MEASURE Keys to SCPI Command Map (Part 1 of 2).
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 9 MEASURE Keys to SCPI Command Map (Cont.) 1 a. [:SENSe]:FUNCtion[:ON] “ [:][XNONe:]FREQuency [1 | 2 | 3] ” b. [:SENSe]:FUNCtion[:ON] “ [:][XNONe:]FREQuency:RATio [1,2 | 1,3 | 2,1 | 3,1] ” 2 a.
Chapter 2 Command Summary Front Panel to SCPI Command Maps 2 - 10 Programming Guide Gate & ExtArm Key to SCPI Command Map Freq, Period, Ratio (HP 53131A/132A) Phase (HP 53131A/132A) Totalize ( HP .
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 11 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.
Chapter 2 Command Summary Front Panel to SCPI Command Maps 2 - 12 Programming Guide 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: b 1 .
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 13 Gate & ExtArm Key to SCPI Command Map — For HP 5313 1 A (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.
Chapter 2 Command Summary Front Panel to SCPI Command Maps 2 - 14 Programming Guide 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.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 15 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.
Chapter 2 Command Summary Front Panel to SCPI Command Maps 2 - 16 Programming Guide LIMITS and MATH Keys to SCPI Command Map Figure 2-5. LIMITS and MATH Keys to SCPI Command Ma p (Part 1 of 2).
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 17 LIMITS and MATH Keys to SCPI Command Map (Cont.) 1 a. :CALCulate2:LIMit:UPPer[:DATA] <numeric_value> [HZ | S | DEG] b. :CALCulate2:LIMit:LOWer[:DATA] <numeric_value> [HZ | S | DEG] 2 a.
Chapter 2 Command Summary Front Panel to SCPI Command Maps 2 - 18 Programming Guide Calibration Menu to SCPI Command Map Figure 2-6. Calibration Menu to SCPI Command Map (Part 1 of 2).
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 19 Calibration Menu to SCPI Command Map (Cont.) 1 a. :CALibration:SECurity:STATe? b.
Chapter 2 Command Summary HP 53131A/132A Command Summary 2 - 20 Programming Guide 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.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 21 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 ).
Chapter 2 Command Summary HP 53131A/132A Command Summary 2 - 22 Programming Guide Table 2 - 1 . IEEE 488.2 Common Commands Mnemonic Command Name Function *CAL? *CLS *DDT <arbitrary block> *DMC &.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 23 Table 2-1 . IEEE 488.2 Common Commands (Continued) Mnemonic Command Name Function *OPT? *PMC *RCL <NRf> *RST *.
Chapter 2 Command Summary HP 53131A/132A Command Summary 2 - 24 Programming Guide 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).
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 25 Table 2 - 2 . HP 53131A/132A SCPI Command Summary Keyword/Syntax Parameter Form Std/ New Comments :ABORt Std Event; no query.
Chapter 2 Command Summary HP 53131A/132A Command Summary 2 - 26 Programming Guide Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form Std/ New Comments :CALCulate2 (Cont.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 27 Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form Std/ New Comments :CALCulate3 (Cont.
Chapter 2 Command Summary HP 53131A/132A Command Summary 2 - 28 Programming Guide Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form Std/ New Comments :DIAGnostic (Cont.) :CALibration (Cont.) :ROSCillator :AUTO :STATus? :TINTerval :FINE :QUICk ONCE | OFF [1 | 2 | 3 | 4] New New New New New New Subtree.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 29 Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form Std/ New Comments :INITiate :AUTO :CONTinuous [:IMMediate] <Boolean> <Boolean> Std New Std Std Subsystem.
Chapter 2 Command Summary HP 53131A/132A Command Summary 2 - 30 Programming Guide Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form Std/ New Comments Measurement.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 31 Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) <function> * <parameters> [,<source_list&g.
Chapter 2 Command Summary HP 53131A/132A Command Summary 2 - 32 Programming Guide Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form Std/ New Comments :MEMory :DELete :MACRo :FREE :MACRo? :NSTates? <string> Std Std New Std Std Std Subsystem.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 33 Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form Std/ New Comments [:SENSe] (Cont.
Chapter 2 Command Summary HP 53131A/132A Command Summary 2 - 34 Programming Guide Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form Std/ New Comments [:SENSe] (Cont.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 35 Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form Std/ New Comments [:SENSe] (Cont.
Chapter 2 Command Summary HP 53131A/132A Command Summary 2 - 36 Programming Guide Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form Std/ New Comments [:SENSe] (Cont.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 37 Table 2-2. HP 53131A/132A SCPI Command Summary (Continued) Keyword/Syntax Parameter Form Std/ New Comments :SYSTem :COMMunicate :SERial Std Std Std Subsystem. Collects the functions that are not related to instrument performance.
Chapter 2 Command Summary HP 53131A/132A Command Summary 2 - 38 Programming Guide Table 2-2A. HP 53132A (S/N Prefix 3646 and Above) Time Interval Arming SCPI Command Summary Keyword/Syntax Parameter Form Std/ New Comments [:SENSe] (Cont.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 39 Table 2-2A. HP 53132A (S/N Prefix 3646 and Above) Time Interval Arming SCPI Command Summary (Continued) Keyword/Syntax Parameter Form Std/ New Comments [:SENSe] (Cont.
Chapter 2 Command Summary *RST Response 2 - 40 Programming Guide * 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.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 41 Table 2-3. HP 53131A/132A *RST State (Continued) Command Header Parameter State * EMC <NRf> 0 (i.
Chapter 2 Command Summary *RST Response 2 - 42 Programming Guide Table 2-3A. HP 53131A (and HP 53132A With S/N Prefix Below 3646) Time Interval *RST State Command Header Parameter State [:SENSe]:TINTe.
Chapter 2 Command Summary Front Panel to SCPI Command Maps Programming Guide 2 - 43 Table 2 - 4 . Unaffected by *RST Item * ESE * OPC? * SRE * WAI :CALibration:COUNt? :CALibration:DATA :CALibration:SE.
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 3 - 2 Programming Guide 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 3 • Parameter Separator, Query Parameters, Suffixes pg. 3- 11 • Command Terminator pg. 3- 13 • Program Messages pg. 3- 14 • Response Messages, Response Message Syntax pg.
Chapter 3 Programming Your Universal Counter for Remote Operation Configuring the HP-IB 3 - 4 Programming Guide Configuring the HP-IB This section gives information on connecting and configuring the HP-IB to enable remote operation of the Counter .
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 5 3a To set the addres s to “15”, perform the following: a. Press s key. HP-IB: 0 3 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Configuring the HP-IB 3 - 6 Programming Guide 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 7 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).
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands 3 - 8 Programming Guide 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 .
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 9 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands 3 - 10 Programming Guide 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 Programming Guide 3 - 11 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 .
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands 3 - 12 Programming Guide Parameter Separator If you send more than one parameter with a single command, you must separate adjacent parameters with a comma .
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 13 Suffix Multipliers Table 3-2 lists the suffix multipliers that can be used with suf fix elements (except PCT and DEG).
Chapter 3 Programming Your Universal Counter for Remote Operation Using Multiple Commands 3 - 14 Programming Guide 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 15 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 3 - 16 Programming Guide Overview of Response Message Formats Response Messages Response messages are data sent from the Counter to a computer in response to a query .
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 17 Response Message Data Types Table 3-3 contains explanations of response data types. Table 3 - 3 . Response Message Data Types Type Description <NR1> This numeric representation has an implicit radix point.
Chapter 3 Programming Your Universal Counter for Remote Operation Overview of Response Message Formats 3 - 18 Programming Guide Table 3-3 . Response Message Data Types (Continued) Type Description <Boolean> A single ASCII-encoded byte, 0 or 1, is returned for the query of settings that use <Boolean> parameters.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 19 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Status Reporting 3 - 20 Programming Guide Figure 3 - 6 . HP 53131A/132A SCPI Status Reporting Summary Functional Diagram.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 21 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Status Reporting 3 - 22 Programming Guide Table 3 - 4 . Status Byte Register BIT WEIGH T SYMBOL DESCRIPTION 0 Not used 1 Not used 2 No.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 23 • Bit 5 (ESB) summarizes the Standard Event Status Register.
Chapter 3 Programming Your Universal Counter for Remote Operation Status Reporting 3 - 24 Programming Guide 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 25 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Status Reporting 3 - 26 Programming Guide • 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 .
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 27 Operation Status Register Group and Questionable Data/Signal Status Register Group .
Chapter 3 Programming Your Universal Counter for Remote Operation Status Reporting 3 - 28 Programming Guide 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 29 Transition filters are unaffected by *CLS or queries.
Chapter 3 Programming Your Universal Counter for Remote Operation Status Reporting 3 - 30 Programming Guide 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 31 • 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 3 - 32 Programming Guide 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 33 A detailed description of each bit in the Questionable Data/Signal Status Register Group follows: • Bits 0 – 1 are not used.
Chapter 3 Programming Your Universal Counter for Remote Operation Status Reporting 3 - 34 Programming Guide • 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 35 Command Settings for Optimizing Throughput This section lists the commands which enable the Counter to transfer data at the fastest possible rate.
Chapter 3 Programming Your Universal Counter for Remote Operation Command Settings for Optimizing Throughput 3 - 36 Programming Guide Set reference oscillator to non-auto state (internal or external): [:SENSe]:ROSCillator:SOURce INTernal | EXTernal (See Note below.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 37 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.
Chapter 3 Programming Your Universal Counter for Remote Operation How to Program the Counter for Status Reporting 3 - 38 Programming Guide 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 39 Using the Standard Event Status Register to Trap an Incorrect HP-IB command — Exa.
Chapter 3 Programming Your Universal Counter for Remote Operation How to Program the Counter for Status Reporting 3 - 40 Programming Guide Questionable Data Status Register :STAT:QUES:PTR 100; NTR 0 :STAT:QUES:ENABLE 100 *SRE 8 Detect transition from non-questionable to questionable data.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 41 Figure 3 - 10 . Status Reporting Flowchart (1 of 2).
Chapter 3 Programming Your Universal Counter for Remote Operation How to Program the Counter for Status Reporting 3 - 42 Programming Guide Figure 3-10.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 43 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.
Chapter 3 Programming Your Universal Counter for Remote Operation How to Program the Counter to Display Results 3 - 44 Programming Guide 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 45 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.
Chapter 3 Programming Your Universal Counter for Remote Operation How to Program the Counter to Synchronize Measurements 3 - 46 Programming Guide How to Program the Counter to Synchronize Measurements.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 47 :CALC3:AVERAGE ON :CALC3:AVERAGE:COUNT 50 :TRIG:COUNT:AUTO ON :INIT *WAI :CALC3:AVERAGE:ALL? Enable statistics. Base statistics on 50 measurements.
Chapter 3 Programming Your Universal Counter for Remote Operation How to Program the Counter to Synchronize Measurements 3 - 48 Programming Guide *SRE 32 are used to assert the SRQ line to alert the computer that the Counter has completed a measurement.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 49 How to Program the Counter for Math/Limit Operations Updating Math and Limit Result.
Chapter 3 Programming Your Universal Counter for Remote Operation How to Program the Counter for Math/Limit Operations 3 - 50 Programming Guide 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 51 If you need to query the scale and offset values, you need to know if you are in ASCII or REAL data format.
Chapter 3 Programming Your Universal Counter for Remote Operation How to Program the Counter to Define Macros 3 - 52 Programming Guide 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 53 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.
Chapter 3 Programming Your Universal Counter for Remote Operation How to Program the Counter to Define Macros 3 - 54 Programming Guide *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.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 55 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Writing SCPI Programs 3 - 56 Programming Guide Figure 3 - 11 . SCPI Programming Flowchart (Sheet 1 of 2).
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 57 Figure 3-11. SCPI Programming Flowchart (Sheet 2 of 2).
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 58 Programming Guide 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 Programming Guide 3 - 59 Using QuickBASIC The QuickBASIC examples assume you have an HP 82335A HP-IB Interface card inside your IBM PC or compatible.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 60 Programming Guide 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 61 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 62 Programming Guide To Make a Frequency Measurement (HP BASIC) 10 ! This program sets up the counter to make 10 frequency 20 ! measurements on channel 1, using a 0.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 63 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 64 Programming Guide To Measure the Statistics of 50 Measurements (HP BASIC) 10 ! This program instructs the counter to take 50 period measurements. 20 ! The counter is put into SINGLE measurement mode.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 65 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 3 - 66 Programming Guide To Use Limits to Filter Data Before Measuring Stats (HP BASIC) 10 ! This program instruc.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 67 To Use Limits to Filter Data Before Measuring Stats (HP BASIC) (Continued) 500 OUTP.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 68 Programming Guide To Read and Store Calibration Information (HP BASIC) 10 !This program reads the calibration data for the counter into an array.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 69 To Perform a Time Interval Calibration (HP BASIC) Early versions of the Counter cannot execute this program since they do not support calibration security or “ fine ” time interval calibration.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 70 Programming Guide To Perform a Time Interval Calibration (HP BASIC) (Continued) 440 CLEAR @Count 450 OUTPU.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 71 To Perform a Time Interval Calibration (HP BASIC) (Continued) 910 Cal_quick: ! Calibrates using the QUICK TI calibration.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 72 Programming Guide To Perform a Time Interval Calibration (HP BASIC) (Continued) 1400 Restore_cal:! Restores the calibration data previously saved.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 73 To Optimize Throughput (HP BASIC) 10 ! This program shows how to set up the counter to transfer data at the 20 ! fastest possible rate.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 74 Programming Guide To Optimize Throughput (HP BASIC) (Continued) 500 OUTPUT @Count;":INIT:CONT ON".
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 75 To Use Macros (HP BASIC) 10 USER 1 KEYS 20 ON KEY 1 LABEL " Macro Free ",.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 76 Programming Guide To Use Macros (HP BASIC) (Continued) 520 SUB Define_macro ! Define a macro for the count.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 77 To Make a Frequency Measurement (QuickBASIC) 'This program sets up the counter to make 10 frequency measurements 'on channel 1 using a 0.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 78 Programming Guide To Perform Limit Testing (QuickBASIC) 'This program sets up the counter to make period measurements 'indefinitely until an out of limits measurement occurs.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 79 To Perform Limit Testing (QuickBASIC) (Continued) ON PEN GOSUB limitfail 'When.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 80 Programming Guide 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 81 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 82 Programming Guide To Use Limits to Filter Data Before Measuring Stats (QuickBASIC) 'This program sets.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 83 To Use Limits to Filter Data Before Measuring Stats (QuickBASIC) (Continued) CALL sendhp(":FREQ:ARM:STAR:SOUR IMM") 'These 3 lines enable time CALL sendhp(":FREQ:ARM:STOP:SOUR TIM") 'arming with a 0.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 84 Programming Guide To Use Limits to Filter Data Before Measuring Stats (QuickBASIC) (Continued) PRINT ".
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 85 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 86 Programming Guide 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 87 To Optimize Throughput (QuickBASIC) (Continued) 'The following lines will provide the fastest throughput, regardless of 'the state of the counter before these lines are executed.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 88 Programming Guide 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 89 To Use Macros (QuickBASIC) (Continued) ON KEY(1) GOSUB availablememory ON KEY(2) GO.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 90 Programming Guide To Use Macros (QuickBASIC) (Continued) purgemacro: 'Purge all macros INPUT "Ar.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 91 To Make a Frequency Measurement (Turbo C) /* This program sets up the counter to make 10 freqeuncy measurements on channel 1, using a 0.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 92 Programming Guide To Make a Frequency Measurement (Turbo C) (Continued) for (i=1; i<=samples ;i++) { se.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 93 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 94 Programming Guide To Use Limits to Filter Data Before Measuring Statistics (Turbo C) (Continued) IOEOI(isc.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 95 To Use Limits to Filter Data Before Measuring Statistics (Turbo C) (Continued) IOSP.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 96 Programming Guide 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.
Chapter 3 Programming Your Universal Counter for Remote Operation Elements of SCPI Commands Programming Guide 3 - 97 To Optimize Throughput (Turbo C) (Continued) sendhp(":ROSC:SOURCE INT"); /* Use internal oscillator.
Chapter 3 Programming Your Universal Counter for Remote Operation Programming Examples 3 - 98 Programming Guide To Optimize Throughput (Turbo C) (Continued) /* Function to send command to HP 53131A */.
4 4 Command Reference A Dictionary.
Chapter 4 Command Reference Introduction 4 - 2 Programming Guide 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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 3 • 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).
Chapter 4 Command Reference :ABORt Command 4 - 4 Programming Guide :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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 5 :CALCulate Subsystems Three :CALCulate subsystems (:CALCulate[1], :CALCulate2, and :CALCulate3) perform post-acquisition data processing and data transfer of the corresponding results.
Chapter 4 Command Reference :CALCulate Subsystems 4 - 6 Programming Guide Figure 4 - 1 . The CALCulate Subsystems.
Chapter 4 Command Reference Introduction Programming Guide 4 - 7 :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.
Chapter 4 Command Reference :CALCulate[1] Subsystem 4 - 8 Programming Guide :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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 9 :CALCulate[1]:IMMediate:AUTO <Boolean> Sets or queries whether post-processing (recalculation) will automatically occur whenever any changes are made to the :CALCulate[1|2] subsystems.
Chapter 4 Command Reference :CALCulate[1] Subsystem 4 - 10 Programming Guide :CALCulate[1]:MATH[:EXPRession][:DEFine]? Queries equation used for math operation. A sequence of ASCII-encoded bytes: ( “ SENS ” * SCALE + OFFSET) terminated with a new line and EOI.
Chapter 4 Command Reference Introduction Programming Guide 4 - 11 :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.
Chapter 4 Command Reference :CALCulate2 Subsystem 4 - 12 Programming Guide :CALCulate2:IMMediate:AUTO <Boolean> Sets or queries whether post-processing (recalculation) will automatically occur whenever any changes are made to the :CALCulate[1|2] subsystems.
Chapter 4 Command Reference Introduction Programming Guide 4 - 13 :CALCulate2:LIMit:CLEar:AUTO <Boolean> Sets or queries if the limit test results are to be cleared with each :INITiate[:IMMediate] and :INITiate:CONTinuous ON operation. • Single ASCII-encoded byte, 0 or 1.
Chapter 4 Command Reference :CALCulate2 Subsystem 4 - 14 Programming Guide :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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 15 • 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.
Chapter 4 Command Reference :CALCulate2 Subsystem 4 - 16 Programming Guide Query only. :CALCulate2:LIMit:LOWer[:DATA] <numeric_value> [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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 17 :CALCulate2:LIMit:PCOunt[:TOTal]? Queries the total Pass COunt (that is, the number of measurements that passed the limit test). • Numerical data transferred as ASCII bytes in <NR1> format.
Chapter 4 Command Reference :CALCulate2 Subsystem 4 - 18 Programming Guide :CALCulate2:LIMit:UPPer[:DATA] <numeric_value> [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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 19 :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.
Chapter 4 Command Reference :CALCulate3 Subsystem 4 - 20 Programming Guide • If the current measurement is Totalize or Voltage Peaks, Not a Number 9.91E37 is returned and error -221 is generated. • 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 Programming Guide 4 - 21 Stats :CALCulate3:AVERage:COUNt:CURRent? Queries the current count (that is, the number of data values collected for statistical computation). • Numeric data transferred as ASCII bytes in <NR1> format.
Chapter 4 Command Reference :CALCulate3 Subsystem 4 - 22 Programming Guide 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 ” .
Chapter 4 Command Reference Introduction Programming Guide 4 - 23 • If the current measurement is Totalize or Voltage Peaks, Not a Number 9.91E37 is returned and error -221 is generated. • 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 :CALCulate3 Subsystem 4 - 24 Programming Guide Numeric data transferred as ASCII bytes in <NR3> format with eleven significant digits.
Chapter 4 Command Reference Introduction Programming Guide 4 - 25 -9.9999990000E+12 to -1.0000000000E-13, 0.0000000000, +1.0000000000E- 13 to +9.9999990000E+12. 11 digits Numeric data transferred as ASCII bytes in <NR3> format with eleven significant digits.
Chapter 4 Command Reference :CALibration Subsystem 4 - 26 Programming Guide :CALibration Subsystem :CALibration[:ALL]? This query causes an internal interpolator self-calibration . • Numeric data transferred as ASCII bytes in <NR1> format. • A value of zero indicates the calibration completed without error.
Chapter 4 Command Reference Introduction Programming Guide 4 - 27 • 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.
Chapter 4 Command Reference :CALibration Subsystem 4 - 28 Programming Guide :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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 29 • 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.
Chapter 4 Command Reference :CONFigure Subsystem 4 - 30 Programming Guide :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 Programming Guide 4 - 31 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.
Chapter 4 Command Reference :DIAGnostic Subsystem 4 - 32 Programming Guide :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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 33 :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.
Chapter 4 Command Reference :DIAGnostic Subsystem 4 - 34 Programming Guide :DIAGnostic:CALibration:ROSCillator:AUTO ONCE | OFF Calibrates the reference oscillator when ONCE parameter is used.
Chapter 4 Command Reference Introduction Programming Guide 4 - 35 :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.
Chapter 4 Command Reference :DIAGnostic Subsystem 4 - 36 Programming Guide :DIAGnostic:CALibration:TINTerval:QUICk This event command calibrates out the differences in electrical path length between channels 1 and 2.
Chapter 4 Command Reference Introduction Programming Guide 4 - 37 :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.
Chapter 4 Command Reference :DISPlay Subsystem 4 - 38 Programming Guide :DISPlay[:WINDow]:TEXT:FEED “ [:]CALCulate2 ” | “ [:]CALCulate3 ” Sets or queries what data flow is fed into the display .
Chapter 4 Command Reference Introduction Programming Guide 4 - 39 :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.
Chapter 4 Command Reference :FETCh Subsystem 4 - 40 Programming Guide :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 Programming Guide 4 - 41 :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.
Chapter 4 Command Reference Group Execute Trigger (GET) 4 - 42 Programming Guide 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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 43 :HCOPy Subsystem :HCOPy:CONTinuous <Boolean> Enables or disables printing results.
Chapter 4 Command Reference :INITiate Subsystem 4 - 44 Programming Guide :INITiate Subsystem This subsystem controls the initiation of a measurement. :INITiate:AUTO <Boolean> Sets or queries if the Counter should stop measurements or continue measuring (go on) when a measurement exceeds the user-entered limits.
Chapter 4 Command Reference Introduction Programming Guide 4 - 45 • *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 4 - 46 Programming Guide • 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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 47 • 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].
Chapter 4 Command Reference :INPut[1|2] Subsystem 4 - 48 Programming Guide :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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 49 :INPut[1|2]:FILTer[:LPASs]:FREQuency? Queries the cutoff frequency of the low-pass filter. • Numeric data transferred as ASCII bytes in <NR3> format with six significant digits.
Chapter 4 Command Reference :INPut3 Subsystem 4 - 50 Programming Guide :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 .
Chapter 4 Command Reference Introduction Programming Guide 4 - 51 :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) 4 - 52 Programming Guide Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) The purpose of these commands is to acquire data using a set of high-level instructions.
Chapter 4 Command Reference Introduction Programming Guide 4 - 53 The <source_list> parameter has the same syntax as SCPI <channel_list> syntax.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) 4 - 54 Programming Guide • This command disables math, statistics, and limit-testing.
Chapter 4 Command Reference Introduction Programming Guide 4 - 55 FETCh [[:SCALar]:<function>]? This query returns the measurement taken by the :INITiate (or :MEASure query or :READ?) commands.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) 4 - 56 Programming Guide • Refer to the sub-section in this chapter titled “ Descriptions of the Measurement Functions ” for descriptions of each measurement function.
Chapter 4 Command Reference Introduction Programming Guide 4 - 57 :READ [[:SCALar]:<function>]? This query provides a method of performing a :FETCh? on fresh data.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) 4 - 58 Programming Guide • Result will be formatted according to :FORMat[:DATA] ASCii | REAL setting. • When ASCii format is used, numeric data is transferred as ASCII bytes in <NR3> format.
Chapter 4 Command Reference Introduction Programming Guide 4 - 59 Table 4 - 1 . The <function>, associated <parameters> and <source_list> for the Measure Instruction Commands <fun.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) 4 - 60 Programming Guide Descriptions of the Measurement Functions — <function> This sub-section provides a description of each measurement function (that is, [:VOLTage]:FREQuency, [:VOLTage]:FREQuency:RATio, [:VOLTage]:PERiod, etc.
Chapter 4 Command Reference Introduction Programming Guide 4 - 61 Descriptions of the Measurement Functions — <function> (Cont.) :MEASure[:SCALar][:VOLTage]:DCYCle? [<reference>][,(@1)] Measures Duty Cycle . The measurement arming is coupled to “ auto.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) 4 - 62 Programming Guide Descriptions of the Measurement Functions — <function> (Cont.) :MEASure[:SCALar][:VOLTage]:FALL:TIME? [<lower_reference>[,upper_reference>]][,(@1)] Measures Fall Time .
Chapter 4 Command Reference Introduction Programming Guide 4 - 63 Descriptions of the Measurement Functions — <function> (Cont.) :MEASure[:SCALar][:VOLTage]:FALL:TIME? ( Cont.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) 4 - 64 Programming Guide Descriptions of the Measurement Functions — <function> (Cont.
Chapter 4 Command Reference Introduction Programming Guide 4 - 65 Descriptions of the Measurement Functions — <function> (Cont.) :MEASure[:SCALar][:VOLTage]:FREQuency:RATio? [<expected_value>[,<resolution>]] [, (@1), (@2) | (@1), (@3) | (@2), (@1) | (@3), (@1) ] Measures Frequency Ratio between two inputs.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) 4 - 66 Programming Guide Descriptions of the Measurement Functions — <function> (Cont.) :MEASure[:SCALar][:VOLTage]:FREQuency:RATio? ( Cont.) resolution: <resolution> should use a mantissa of 1.
Chapter 4 Command Reference Introduction Programming Guide 4 - 67 Descriptions of the Measurement Functions — <function> (Cont.) :MEASure[:SCALar][:VOLTage]:NWIDth? [<reference>][,(@1)] Measures Negative Pulse Width . The measurement arming is coupled to “ auto.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) 4 - 68 Programming Guide Descriptions of the Measurement Functions — <function> (Cont.) :MEASure[:SCALar][:VOLTage]:PERiod? [<expected_value>[,<resolution>]][, (@1)|(@2)|(@3)] Measures Period .
Chapter 4 Command Reference Introduction Programming Guide 4 - 69 Descriptions of the Measurement Functions — <function> (Cont.) :MEASure[:SCALar][:VOLTage]:PERiod? ( Cont.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) 4 - 70 Programming Guide Descriptions of the Measurement Functions — <function> (Cont.) :MEASure[:SCALar][:VOLTage]:PHASe? [(@1),(@2)] Measures Phase . The measurement arming is coupled to “ auto.
Chapter 4 Command Reference Introduction Programming Guide 4 - 71 Descriptions of the Measurement Functions — <function> (Cont.) :MEASure[:SCALar][:VOLTage]:PWIDth? [<reference>][,(@1)] ( Cont.) <reference> percent range: 0 to 100 [PCT] percent resolution: 10% voltage range: For volts if X1 Attenuation: -5.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) 4 - 72 Programming Guide Descriptions of the Measurement Functions — <function> (Cont.
Chapter 4 Command Reference Introduction Programming Guide 4 - 73 Descriptions of the Measurement Functions — <function> (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.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) 4 - 74 Programming Guide Descriptions of the Measurement Functions — <function> (Cont.) :MEASure[:SCALar][:VOLTage]:TOTalize:TIMed? [<gate_time>][,(@1)] Measures Totalize during the specified <gate time>.
Chapter 4 Command Reference Introduction Programming Guide 4 - 75 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.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) 4 - 76 Programming Guide 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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 77 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.
Chapter 4 Command Reference Measurement Instructions (:CONFigure, :FETCh, :MEASure, :READ) 4 - 78 Programming Guide The work - around commands which should be substituted are listed below.
Chapter 4 Command Reference Introduction Programming Guide 4 - 79 :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).
Chapter 4 Command Reference [:SENSe] Subsystem 4 - 80 Programming Guide [: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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 81 [: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.
Chapter 4 Command Reference [:SENSe] Subsystem 4 - 82 Programming Guide 0, 50, or 100 PCT Numeric data transferred as ASCII bytes in <NR1> format.
Chapter 4 Command Reference Introduction Programming Guide 4 - 83 [:SENSe]:EVENt[1|2]:LEVel[:ABSolute]:AUTO <Boolean> Sets or queries the “ auto-trigger “ enable.
Chapter 4 Command Reference [:SENSe] Subsystem 4 - 84 Programming Guide • *RST: 50 PCT • Only applies when [:SENS]:EVEN[1|2]:LEV[:ABS]:AUTO is ON. Trigger/Sensitivity [:SENSe]:EVENt[1|2]:SLOPe POS.
Chapter 4 Command Reference Introduction Programming Guide 4 - 85 [:SENSe]:EVENt3:SLOPe? Queries which edge of channel 3 input port will be considered an event. A sequence of ASCII-encoded bytes: POS [:SENSe]:FREQuency Subtree This subtree controls the Frequency, Frequency Ratio, and Period measuring capabilities of the instrument.
Chapter 4 Command Reference [:SENSe] Subsystem 4 - 86 Programming Guide [:SENSe]:FREQuency:ARM[:STARt]:SOURce IMMediate |EXTernal Sets or queries the start arm for Frequency, Frequency Ratio, and Period measurements.
Chapter 4 Command Reference Introduction Programming Guide 4 - 87 [:SENSe]:FREQuency:ARM:STOP:SOURce IMMediate | EXTernal | TIMer | DIGits Sets or queries the stop arm for Frequency, Frequency Ratio, and Period measurements.
Chapter 4 Command Reference [:SENSe] Subsystem 4 - 88 Programming Guide [:SENSe]:FREQuency:EXPected[1|2|3] <numeric_value> [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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 89 • *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).
Chapter 4 Command Reference [:SENSe] Subsystem 4 - 90 Programming Guide • The string “ <function> <channel>[,<channel>] ” 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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 91 • 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).
Chapter 4 Command Reference [:SENSe] Subsystem 4 - 92 Programming Guide [:SENSe]:PHASe:ARM[:STARt]:SOURce IMMediate | EXTernal Sets or queries the start arm for Phase measurements. A sequence of ASCII-encoded bytes: IMM or EXT *RST: IMMediate Gate & ExtArm [:SENSe]:ROSCillator Subtree This subtree controls the Reference Oscillator .
Chapter 4 Command Reference Introduction Programming Guide 4 - 93 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.
Chapter 4 Command Reference [:SENSe] Subsystem 4 - 94 Programming Guide • 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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 95 [:SENSe]:TINTerval Subtree (HP 53131A and HP 5313 2 A 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.
Chapter 4 Command Reference [:SENSe] Subsystem 4 - 96 Programming Guide [: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 Programming Guide 4 - 97 Numeric data transferred as ASCII bytes in <NR3> format with six significant digits.
Chapter 4 Command Reference [:SENSe] Subsystem 4 - 98 Programming Guide [: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 .
Chapter 4 Command Reference Introduction Programming Guide 4 - 99 Front -Panel Arming Settings ESTART:LAY2 :SOURce ESTART:LAY1 :SOURce ESTOP:LAY2 :SOURce ESTOP:LAY1 :SOURce T START T DELAY STOP T DELA.
Chapter 4 Command Reference [:SENSe] Subsystem 4 - 100 Programming Guide [: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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 101 • The [:SENS]:TINT:ARM:EST ART [:LAYer[1]]:ECO command has no affect on the following measurements: Risetime, Falltime, Duty Cycle, and Pulse Width.
Chapter 4 Command Reference [:SENSe] Subsystem 4 - 102 Programming Guide [: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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 103 [:SENSe]:TINTerval:ARM:ESTOP[:LAYer[1]]:SOURce IMMediate | TIMer | INTernal2 Sets or queries the stop arm for Time Interval measurements.
Chapter 4 Command Reference [:SENSe] Subsystem 4 - 104 Programming Guide [: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 Programming Guide 4 - 105 [:SENSe]:TOTalize:ARM[:STARt]:SOURce IMMediate | EXTernal Sets or queries the start arm for Totalize measurements.
Chapter 4 Command Reference [:SENSe] Subsystem 4 - 106 Programming Guide [:SENSe]:TOTalize:ARM:STOP:SOURce IMMediate | EXTernal TIMer Sets or queries the stop arm for Totalize measurements.
Chapter 4 Command Reference Introduction Programming Guide 4 - 107 :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.
Chapter 4 Command Reference :STATus Subsystem 4 - 108 Programming Guide :STATus:OPERation:ENABle <non-decimal numeric> | <NRf> Sets or queries the Operation Event Status Enable Register.
Chapter 4 Command Reference Introduction Programming Guide 4 - 109 :STATus:OPERation:NTRansition <non-decimal numeric> | <NRf> Sets or queries the negative transition filter for the Operation status reporting structure.
Chapter 4 Command Reference :STATus Subsystem 4 - 110 Programming Guide • At power-on and STAT:PRES, the positive transition filter is preset such that each bit is a 1 (TRUE).
Chapter 4 Command Reference Introduction Programming Guide 4 - 111 :STATus:QUEStionable:CONDition? Queries the status of the Questionable Data Condition Status Register. Bits are not cleared when read. • Numeric data transferred as ASCII bytes in <NR1> format.
Chapter 4 Command Reference :STATus Subsystem 4 - 112 Programming Guide :STATus:QUEStionable[:EVENt]? Queries the status of the Questionable Data Event Status Register.
Chapter 4 Command Reference Introduction Programming Guide 4 - 113 :STATus:QUEStionable:PTRansition <non-decimal numeric> | <NRf> Sets or queries the positive transition filter for the Questionable Data status reporting structure.
Chapter 4 Command Reference :SYSTem Subsystem 4 - 114 Programming Guide :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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 115 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.
Chapter 4 Command Reference :SYSTem Subsystem 4 - 116 Programming Guide :SYSTem:COMMunicate:SERial:TRANsmit:PARity[:TYPE] EVEN | ODD | NONE Sets or queries the parity scheme. A sequence of ASCII-encoded bytes: EVEN, ODD, or NONE • This value is stored in non-volatile memory.
Chapter 4 Command Reference Introduction Programming Guide 4 - 117 This command simulates the pressing or a front-panel key. The <numeric_value> is a key code value. This command puts an entry in the Key Queue (just as any front-panel key press does).
Chapter 4 Command Reference :SYSTem Subsystem 4 - 118 Programming Guide • 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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 119 :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.
Chapter 4 Command Reference :TRACe Subsystem 4 - 120 Programming Guide Scale & Offset :TRACe[:DATA] SCALE , <numeric_value> or :TRACe[:DATA] SCALE, <arbitrary block> :TRACe[:DATA]? SCALE Sets or queries the scale value. -9.999999E+12 to -1.
Chapter 4 Command Reference Introduction Programming Guide 4 - 121 :TRIGger Subsystem This subsystem enables synchronization of instrument actions with specified internal or external events. :TRIGger:COUNt:AUTO <Boolean> Sets or queries the control over the number of measurements made when :INITiate[:IMMediate] is performed.
Chapter 4 Command Reference *CAL? (Calibration Query) 4 - 122 Programming Guide *CAL? (Calibration Query) *CAL? This query causes an internal interpolator self-calibration. • Numeric data transferred as ASCII bytes in <NR1> format. • A value of zero indicates the calibration completed without error.
Chapter 4 Command Reference Introduction Programming Guide 4 - 123 *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.
Chapter 4 Command Reference *DDT <arbitrary block> (Define Device Trigger Command) 4 - 124 Programming Guide *DDT <arbitrary block> (Define Device Trigger Command) *DDT <arbitrary block> Sets or queries the command that the device will execute when it receives the IEEE 488.
Chapter 4 Command Reference Introduction Programming Guide 4 - 125 *DMC <string>, <arbitrary block> (Define Macro Command) *DMC <string>, <arbitrary block> This command assigns a sequence of zero or more commands/queries to a macro label.
Chapter 4 Command Reference *EMC <NRf> (Enable Macro Command) 4 - 126 Programming Guide *EMC <NRf> (Enable Macro Command) *EMC? (Enable Macro Query) *EMC <NRf> *EMC? Sets or queries the Enable for defined macros. Macro definitions are not affected by this command.
Chapter 4 Command Reference Introduction Programming Guide 4 - 127 *ESE <NRf> (Standard Event Status Enable Command) *ESE? (Standard Event Status Enable Query) *ESE <NRf> *ESE? Sets or queries the Standard Event Status Enable Register, shown in Figure 4-4.
Chapter 4 Command Reference *ESR? (Event Status Register Query) 4 - 128 Programming Guide *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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 129 *GMC? <string> (Get Macro Contents Query) *GMC? <string> Queries the current definition of a macro. The <string> parameter must be a currently defined macro label. • Definite length block.
Chapter 4 Command Reference *IDN? (Identification Query) 4 - 130 Programming Guide *IDN? (Identification Query) *IDN? Queries the Counter identification. A sequence of ASCII-encoded bytes: HEWLETT-PACKARD, 53131A,0,XXXX or HEWLETT-PACKARD, 53132A,0,XXXX terminated with a new line and EOI.
Chapter 4 Command Reference Introduction Programming Guide 4 - 131 *LMC? (Learn Macro Query) *LMC? Queries the currently defined macro labels. • 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) 4 - 132 Programming Guide *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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 133 *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.
Chapter 4 Command Reference *OPT? (Option Identification Query) 4 - 134 Programming Guide *OPT? (Option Identification Query) *OPT? Queries the instrument to identify any installed options.
Chapter 4 Command Reference Introduction Programming Guide 4 - 135 *PMC (Purge Macro Command) *PMC The Purge MaCros command deletes all macros previously defined using the *DMC command.
Chapter 4 Command Reference *RCL <NRf> (Recall Command) 4 - 136 Programming Guide *RCL <NRf> (Recall Command) *RCL <NRf> This command restores the state of the instrument from a copy stored in local non- volatile memory. Before the recall occurs, the current state of the instrument is automatically saved to register 0.
Chapter 4 Command Reference Introduction Programming Guide 4 - 137 *RST (Reset Command) *RST This event command performs an instrument reset . The reset performs the following: • sets instrument set.
Chapter 4 Command Reference *SAV <NRf> (Save Command) 4 - 138 Programming Guide *SAV <NRf> (Save Command) *SAV <NRf> 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 Programming Guide 4 - 139 *SRE <NRf> (Service Request Enable Command) *SRE? (Service Request Enable Query) *SRE <NRf> *SRE? Sets or queries the Service Request Enable Register , shown in Figure 4-6.
Chapter 4 Command Reference *STB? (Status Byte Query) 4 - 140 Programming Guide *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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 141 *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) 4 - 142 Programming Guide *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.
Chapter 4 Command Reference Introduction Programming Guide 4 - 143 *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.
Chapter 4 Command Reference *WAI (Wait-to-Continue Command) 4 - 144 Programming Guide.
5 5 Errors.
Chapter 5 Errors Introduction 5 - 2 Programming Guide 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.
Chapter 5 Errors Error Queue Programming Guide 5 - 3 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 e.
Chapter 5 Errors Error Types 5 - 4 Programming Guide Error Types Error numbers are categorized by type as shown in Table 5-1. Each and every error is listed in Table 5-2.
Chapter 5 Errors Error Queue Programming Guide 5 - 5 Events that generate command errors do not generate execution errors, device- specific errors, or query errors. Execution Error An <error number> in the range [ − 200 to − 299] indicates that an error has been detected by the Counter ’ s execution control block.
Chapter 5 Errors Error Types 5 - 6 Programming Guide Query Error An <error number> in the range [ − 400 to − 499] indicates that the output queue control of the Counter has detected a problem with the message exchange protocol.
Chapter 5 Errors Error Queue Programming Guide 5 - 7 Table 5 - 2 . Errors Number Error String Cause +0 -100 -101 -102 -103 -104 -105 -108 -109 -112 -113 -120 -121 -123 -124 -128 -131 -134 -138 -141 -1.
Chapter 5 Errors Error Types 5 - 8 Programming Guide Table 5-2. Errors (Continued) Number Error String Cause -151 -158 -160 -161 -168 -170 -171 -178 -181 -183 -200 -210 -211 -213 -220 -221 -222 -223 I.
Chapter 5 Errors Error Queue Programming Guide 5 - 9 Table 5-2. Errors (Continued) Number Error String Cause -224 -230 -240 -241 -272 -273 -276 -277 -278 -300 -310 -321 -330 -350 Illegal parameter val.
Chapter 5 Errors Error Types 5 - 10 Programming Guide Table 5-2. Errors (Continued) Number Error String Cause -400 -410 -420 -430 -440 +2000 +2001 +2002 +2003 +2004 +2005 +2006 +2007 +2008 +2009 +2010.
Programming Guide Index- 1 9.91E37, 3-17 A abort, 4-4 abbreviated commands, 3-9 address, HP-IB, 3-4 Applications, 1-8 arbitrary block, 3-11 ASCII, 4-41 ASCII format, 3-59 Assumptions, 1-9 auto-trigger.
Index Index- 2 Programming Guide conformance IEEE488.1, 3-7 IEEE488.2, 2-20, 2-21, 3-7 SCPI, 2-20, 3-7 connecting the Counter to a computer, 3-6 connector RS-232, 4-114 D data, measurement, 4-80 date .
Index Programming Guide Index- 3 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 Progr.
Index Index- 4 Programming Guide 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 prog.
Index Programming Guide Index- 5 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 sendi.
Index Index- 6 Programming Guide :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:OPERati.
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.
Warranty ( contd) 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.
.
H Manual Part Number 53131-90044 Printed in U.S.A., NOVEMBER 1996.
Un punto importante, dopo l’acquisto del dispositivo (o anche prima di acquisto) è quello di leggere il manuale. Dobbiamo farlo per diversi motivi semplici:
Se non hai ancora comprato il HP (Hewlett-Packard) 132A è un buon momento per familiarizzare con i dati di base del prodotto. Prime consultare le pagine iniziali del manuale d’uso, che si trova al di sopra. Dovresti trovare lì i dati tecnici più importanti del HP (Hewlett-Packard) 132A - in questo modo è possibile verificare se l’apparecchio soddisfa le tue esigenze. Esplorando le pagine segenti del manuali d’uso HP (Hewlett-Packard) 132A imparerai tutte le caratteristiche del prodotto e le informazioni sul suo funzionamento. Le informazioni sul HP (Hewlett-Packard) 132A ti aiuteranno sicuramente a prendere una decisione relativa all’acquisto.
In una situazione in cui hai già il HP (Hewlett-Packard) 132A, ma non hai ancora letto il manuale d’uso, dovresti farlo per le ragioni sopra descritte. Saprai quindi se hai correttamente usato le funzioni disponibili, e se hai commesso errori che possono ridurre la durata di vita del HP (Hewlett-Packard) 132A.
Tuttavia, uno dei ruoli più importanti per l’utente svolti dal manuale d’uso è quello di aiutare a risolvere i problemi con il HP (Hewlett-Packard) 132A. Quasi sempre, ci troverai Troubleshooting, cioè i guasti più frequenti e malfunzionamenti del dispositivo HP (Hewlett-Packard) 132A insieme con le istruzioni su come risolverli. Anche se non si riesci a risolvere il problema, il manuale d’uso ti mostrerà il percorso di ulteriori procedimenti – il contatto con il centro servizio clienti o il servizio più vicino.