Summary of the content on the page No. 1
Programming
Guide
HP 53131A/132A 225 MHz
Universal Counter
Summary of the content on the page No. 2
Summary of the content on the page No. 3
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. SERIAL NUMBER PREFIX: 3546 to 3622 (HP 53131A) 3546 to 3646 (HP 53132A) HP 53131A/132A 225 MHz Universal Counter
Summary of the content on the page No. 4
Copyright Hewlett-Packard Certification Safety Considerations Safety Considerations Company 1996 and Warranty (contd) General Certification All Rights Reserved. This product and related Reproduction, adaptation, or Hewlett-Packard Company documentation must be translations without prior certifies that this product met reviewed for familiarization Indicates earth (ground) written permission is its published specification at with this safety markings and terminal. prohibited, except as allowed t
Summary of the content on the page No. 5
Contents 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-3 HP 53132A Time Interval Delay Arming 1-5 Getting Started 1-6 How to Use This Guide 1-6 New Users 1-6 What You Should Understand 1-6 Learning to Program the Counter 1-7 Experienced Programmers 1-7 Applications 1-8 Programming Guide Contents 1-9 Assumptions 1-9 Related Documen
Summary of the content on the page No. 6
Contents Calibration Menu to SCPI Command Map 2-18 HP 53131A/132A Command Summary 2-20 SCPI Conformance Information 2-20 IEEE 488.2 Common Commands 2-21 HP 53131A/132A SCPI Subsystem Commands 2-24 Std/New Column 2-24 Parameter Form Column 2-24 *RST Response 2-40 3 Programming Your Universal Counter for Remote Operation Introduction 3-2 Chapter Summary 3-2 Where to Find Some Specific Information 3-2 Where to Find HP BASIC Programming Examples 3-3 Where to Find
Summary of the content on the page No. 7
Contents 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 of Response Message Formats 3-16 Response Messages 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 Eve
Summary of the content on the page No. 8
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/Offs
Summary of the content on the page No. 9
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) 3-69 To Optimize Throughput (HP BASIC) 3-73 To Use Macros (HP BASIC) 3-75 To Make a Frequency Measurement (QuickBASIC) 3-77 To Perform Limit Testing (QuickBASIC) 3-78 To Measure the Stati
Summary of the content on the page No. 10
Contents 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 :CALCulate2:LIMit Subtree 4-12 :CALCulate3 Subsystem 4-19 :CALCulate3:AVERage Subtree 4-19 :CALCulate3:LFILter Subtree 4-23 :CALibration Subsystem 4-26 :CALibration:SECurity Subtree 4-28 :CONFigure Subsystem 4-30 Device Clear 4-31 :DIAGnostic Subsystem 4-32 :DISPlay Subsystem
Summary of the content on the page No. 11
Contents [: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]:ROSCillator Subtree 4-92 [: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
Summary of the content on the page No. 12
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) 4-139 *SRE? (Service Request Enable Query) 4-139 *STB? (Status Byte Query) 4-140 *TRG (Trigger Co
Summary of the content on the page No. 13
1 1 Before You Start ...
Summary of the content on the page No. 14
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 front- panel operation. You should use this programming guide together with the operating guide. Knowing how to control the Counter from the front panel and understanding the measurements you
Summary of the content on the page No. 15
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. If you have an HP 53132A with a serial number prefix below 3646, read
Summary of the content on the page No. 16
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. If Channel 1 input frequency is less than approximately 1
Summary of the content on the page No. 17
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. HP 53132A Time Interval Delay Arming HP 53131A and HP 53132A Counters with a serial number prefix b
Summary of the content on the page No. 18
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. • A list of related
Summary of the content on the page No. 19
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. • Read Chapter 3, “Programming Your Universal Counter for Remote Operation,” for an overview of the SCPI concept
Summary of the content on the page No. 20
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. The following two techniques are explained in deta