Page 2 - II
II All rights reserved. Reproduction in whole or in part is prohibited without written consent of the copyright owner. TimeView is a trademark of Pendulum Instruments AB. FLUKE is a trademark of Fluke Corporation. TimeView uses the SPAWNO routines by Ralf Brown to minimize memory use while shelling ...
Page 3 - Table of Contents; GW-Basic for National Instruments; III
Table of Contents 1 Getting Started Finding Your Way Through This Manual . . 1-2Manual Conventions . . . . . . . . . . . . . . . . . 1-3Setting Up the Instrument . . . . . . . . . . . . . 1-4Interface Functions . . . . . . . . . . . . . . . . . . 1-5 2 Bus Commands for the Benchtop User Default sett...
Page 4 - EXPLANATIONS OF THE MEASURING; IV
General Speed Improvements. . . . . . . . . . 7-840000 measure- ments/second . . . . . . . . 7-11Supervising a Process . . . . . . . . . . . . . . . 7-12Speed Summary . . . . . . . . . . . . . . . . . . . 7-17 8 Error Messages9 Command Reference Abort . . . . . . . . . . . . . . . . . . . . . . . . ...
Page 7 - Chapter 1; Getting Started
Page 8 - Finding Your Way Through This Manual; Sections
Finding Your Way Through This Manual You should use this Programming Manual together with the PM6680B/1/5 Operators Manual. That manual contains specifications for the counter and explanations of the possibilities and limitations of the different measuring functions. Sections The chapters in this ma...
Page 9 - Syntax Specification Form; Printable Characters:; indicates the space character; Alternative Expressions Giving; Mnemonic Conventions; Truncation Rules
Manual Conventions Syntax Specification Form This manual uses the EBNF (Extended Backus-Naur Form) notation for describ- ing syntax. This notation uses the follow- ing types of symbols: n Printable Characters: Printable characters such as Command headers, etc., are printed just as they are, e.g. per...
Page 10 - Example Language; Setting Up the; Setting the GPIB Address; -4 Setting Up the Instrument
used if the command is only four charac- ters. – If the last character in the command is a digit, then this digit is appended to the shortform. Examples: Longform Shortform :MEASURE :MEAS :NEGATIVE :NEG :DREGISTER0 :DREG0 :EXTERNAL4 :EXT4 The shortform is always printed in CAPI- TALS in this manual:...
Page 11 - Standby; Testing the Bus; Interface Functions; What can I do with the Bus?; Summary; Code
The address can also be set via a GPIB command or from the AUX MENU on the PM6680B/1/5. The set address is stored in nonvolatile memory and re- mains until you change it. Power-on When turned on, the counter starts with the setting it had when turned off. n Standby When the counter is in REMOTE mode...
Page 12 - Listener Function, L4; -6 Interface Functions
n Listener Function, L4 The counter can receive programming in- structions from the controller. L4 means that it has the following functions:– Basic listener. – No listen only. – Automatic un-addressing as listener when addressed as a talker. n Service Request, SR1 The counter can call for attention...
Page 13 - Chapter 2; Bus Commands for
Page 14 - Bus Commands for the Benchtop User; SWAP A
Bus Commands for the Benchtop User 2-2 Error Code :INP:LEV 8 <level> Level can be set to between –5.1 to + 5.1 V when at- tenuator is set to 1X, and –51 to + 51 V when attenu- ator is set to 10X :INP2:COM 8 MON|OFF :INP2:IMP 8 50|1E6 :INP:FILT 8 ON|OFF Switches on or off the 100kHz LP-filter :...
Page 15 - RST; Presets the counter to default
Bus Commands for the Benchtop User Error Code 2-3 :SYST:PRES or * RST Presets the counter to default :ROSC:SOUR 8 INT|EXT* :ACQ:HOFF 8 ON|OFF* :TOT:GAT 8 ON|OFF* :ACQ:HOFF:TIME 8 <time> Time can be set between 200E–9 and 1.6 * :DISPL:ENAB 8 ON|OFF :TEST:CHEC 8 ON|OFF * These commands are from ...
Page 16 - IMM
Bus Commands for the Benchtop User 2-4 Error Code :READ? Starts a measure- ment and requests re- sult :ACQ:APER 8 <time> Time can be set to: 0.8E–6, 1.6E–6, 3.2 E–6, 6.4E–6 12.8E–6 and 50E–6 to 400 * :AVER:STAT 8 OFF|ON OFF gives SINGLE ON gives AVER- The functions in the auxiliary menu tree a...
Page 17 - SAV; RCL; in a mathematical ex-
Bus Commands for the Benchtop User Error Code 2-5 T R I G T R I G A D C - 3 0 0 M H z B S I N G L E G A T E M E N U F U N C T I O N R E S T A R T H O L D M E A S U R E M E N T S A V E R E C A L L P R O C E S S D A T A E N T R Y O F F M A X 1 2 V r m s 3 5 0 V p . 1 M . 5 0 M = L = C L E A R 0 + / - ...
Page 18 - SRQ
Bus Commands for the Benchtop User 2-6 Error Code :FUNC 8 "TOT 8 1,2" :FUNC 8 "VOLT:MIN 8 1" :FUNC 8 "VOLT:PTP 8 1" All commands on this page are from the SENSE subsystem :FUNC 8 "VOLT:MAX 8 1" SRQ This segment is on when the instrument has sent a Service Request via ...
Page 19 - Input 4
Bus Commands for the Benchtop User Error Code 2-7 * This command is from the SENSE subsystem :ROSC:SOUR 8 INT|EXT * Input 4 :OUTP 8 ON|OFF OUTP:SCAL 8 <scaling factor> :SYST:COMM:GPIB:ADDR 8 <Address> <Address> can be between 1 and 30 I N P U T A I N P U T B I N P U T C RE AR P A N...
Page 20 - Default settings; PARAMETER
Default settings (after *RST) PARAMETER VALUE/ SETTING Input A: Trigger level AUTO Impedance 1 M Ω Manual Trigger level (Controlled by autotrigger) 0V Manual Attenuator (Controlled by autotrigger) 1X Coupling AC Trigger slope Pos Filter OFF Input B: Trigger level AUTO Impedance 1 M Ω Manual Trigger ...
Page 21 - Chapter 3; Introduction to SCPI
Page 24 - Message Exchange Control; -4 How does SCPI Work in the Instrument?
How does SCPI Work in the Instrument? The functions inside an instrument that control the operation provide SCPI com- patibility. Figure 3-3 shows a simplified logical model of the message flow inside a SCPI instrument.When the controller sends a message to a SCPI instrument, roughly the following h...
Page 25 - Protocol Requirements; Order of Execution; Deferred Commands; Sequential and Overlapped
State Purpose IDLE Wait for messages READ Read and execute mes- sages QUERY Store responses to be sent SEND Send responses RE- SPONSE Complete sending re- sponses DONE Finished sending re- sponses DEADLOCK The device cannot buffer more data Action, Reason Untermin- ated, The controller attempts to r...
Page 26 - Remote Local Protocol; Definitions
Remote Local Protocol n Definitions Remote Operation When an instrument operates in remote, all local controls, except the local key, are disabled. Local Operation An instrument operates in local when it is not in remote mode as defined above. Local Lockout In addition to the remote state, an instru...
Page 27 - Syntax and Style; Syntax of Program Messages; Program and Response Messages
The communication between the system controller and the SCPI instruments con- nected to the GPIB takes place through Program and Response Messages. A Pro- gram Message is a sequence of one or more commands sent from the controller to an instrument. Conversely, a Response Message is the data from the...
Page 28 - -8 Program and Response Messages
Most controller programming languages send these terminators automatically, but allow changing it. So make sure that the terminator is as above.Example of a terminated program mes- sage: program message unit terminator program message unit This program message consists of two message units. The unit...
Page 29 - Notation Habit in Command Syntax; Syntax of Response Messages
Notation Habit in Command Syntax To clarify the difference between short and longform, the shortform in a syntax specification is shown in upper case let- ters and the remaining part of the longform in lower case letters.Notice however, that this does not specify the use of upper and lower case char...
Page 30 - Command Tree; Moving down the Command; P a r a m e t e r s
Command Tree Command Trees like the one below are used to document the SCPI command set in this manual. The keyword (mnemonic) on the root level of the command tree is the name of the subsystem. The follow- ing example illustrates the Command Tree of the INPut1 subsystem. + The keywords placed in sq...
Page 31 - Parameters; Numeric Data; Keywords; MINimum; Suffixes; Boolean Data
This is the command where: INPut:EVENt is the header path and :HYSTeresis is the first leaf-node and LEVel is the second leaf node because LEVel is also a leaf-node under the header path INPut:EVENt. + There is no colon before LEVel! Parameters Numeric Data Decimal data are printed as numerical valu...
Page 32 - Example; This switches timeout monitoring on.; Expression Data; You must enclose expression program; Other Data Types; Other data types that can be used for pa-
n Example SEND → :SYST:TOUT 8 ON or :SYST:TOUT 8 1 This switches timeout monitoring on. A query, for instance :SYSTem:TOUT? , will return 1 or 0; never ON or OFF. Expression Data You must enclose expression program data in parenthesis (). Three possibilities of expression data are as follows:– <n...
Page 33 - Macros; Macro Names; Define Macro Command; Simple Macros
Macros A macro is a single command, that repre- sents one or several other commands, de- pending on your definition. You can define 25 macros of 40 characters in the counter. One macro can address other macros, but you cannot call a macro from within itself (recursion). You can use variable paramete...
Page 34 - Macros with Arguments; Deleting Macros; Enabling and Disabling; EMC Enable Macro Command; How to Execute a Macro
n Macros with Arguments You can pass arguments (variable param- eters) with the macro. Insert a dollar sign ($) followed by a single digit in the range 1 to 9 where you want to insert the pa- rameter. See the example below.When a macro with defined arguments is used, the first argument sent will rep...
Page 35 - Retrieve a Macro; GMC? Get Macro Contents; Example using the above defined; LMC? Learn Macro Query; MYINPSETTING
Retrieve a Macro n * GMC? Get Macro Contents Query This query gives a response containing the definition of the macro you specified when sending the query. Example using the above defined macro: SEND → * GMC? 8 ‘LIMITMON’ READ ← #292:CALC:STAT ON;:CALC:LIM:STAT ON; :CALC:LIM:LOW:DATA $1;STAT 8 ON; :...
Page 36 - Introduction; -16 Status Reporting System
Status Reporting System Introduction Status reporting is a method to let the controller know what the counter is do- ing. You can ask the counter what status it is in whenever you want to know. You can select some conditions in the counter that should be reported in the Sta- tus Byte Register. You c...
Page 37 - Error Reporting; Detecting Errors in the Queue; Standardized Error Numbers
Error Reporting The counter will place a detected error in its Error Queue. This queue is a FIFO (First-In First-Out) buffer. When you read the queue, the first error will come out first, the last error last.If the queue overflows, an overflow mes- sage is placed last in the queue, and fur- ther err...
Page 39 - Reset Strategy; Bus Initialization; all; When to use a Device-clear Command; Device Initialization
Initialization and Resetting Reset Strategy There are three levels of initialization:– Bus initialization – Message exchange initialization – Device initialization n Bus Initialization This is the first level of initialization. The controller program should start with this which initializes the IEEE...
Page 41 - Chapter 4; Programming
Page 42 - Programming Examples
Introduction Each program example in this chapter is written for IBM-PC compatible comput- ers equipped with the National Instru- ments PC-IIA. In addition to that, many of the examples are written in both ‘GW-BASIC’ and ‘C’.Even if you do not have these interface board or use these computer languag...
Page 43 - GW-Basic for National; Setting up the interface
GW-Basic for National Instruments PC-IIA Setting up the interface All these programs start with a declaration containing three lines of setup information for the interface. This declaration must be merged with the programs prior to running them. The declaration is printed below, but it is also avail...
Page 45 - Frequency Profiling; gives an output file called:
3. Frequency Profiling Frequency profiling visualizes frequency variations for a certain time. This program gives an output file called: PROFILE.DAT. If this file is imported to a spreadsheet program, for instance Excel, you can create a graph like the one in the figure below. 50 ‘ 60 OPEN “O”, 1, “...
Page 51 - sent to the controller.
6. Statistics (Only for PM6680B and PM6681)In this example, the counter makes 10000 measurements and uses the statistical func- tions to determine MAX, MIN, MEAN, and Standard Deviation. All four results are sent to the controller. 50 CNTNAME$ = “DEV10" 60 CALL IBFIND (CNTNAME$, CNT%) 70 ‘ 80 ‘ ...
Page 53 - ‘C’ for National Instruments
‘C’ for National Instruments PC-IIA Programming Examples ‘C’ for National Instruments PC-IIA
Page 55 - order of the incoming block when running on a PC (Intel processor).
2. REAL Data Format This program uses the REAL data format to speed up the measurement./* IEEE 488.2 binary real format follows the ‘little-endian’ format with the most-significant byte first and the least-significant byte last. Intel processors use the ‘big-endian’ format, with the least-significan...
Page 63 - Chapter 5; Instrument Model
Page 64 - Function Instrument; Inputs
Introduction The figure below shows how the instru- ment functions are categorized. This in- strument model is fully compatible with the SCPI generalized instrument model.The generalized SCPI instrument model, contains three major instrument catego- ries as shown in the following table: Function Ins...
Page 65 - INPut
Measurement Function Block The measurement function block converts the input signals into an internal data for- mat that is available for formatting into GPIB bus data. The measurement func- tion is divided into three different blocks: INPut, SENSe and CALCulate. See Figure 5-3. n INPut The INPut bl...
Page 66 - Other Subsystems; The different blocks have the following
Other Subsystems In addition to the major functions (sub- systems), there are several other subsys- tems in the instrument model. The different blocks have the following functions. n CALibration This subsystem controls the calibration of the interpolators used to increase the res- olution of the CNT...
Page 67 - CONFigure
MEASurement Function In addition to the subsystems of the in- strument model, which controls the in- strument functions, SCPI has signal-oriented functions to obtain mea- surement results. This group of MEASure functions has a different level of compati- bility and flexibility. The parameters used w...
Page 68 - Versatility of Measurement Com-; -6 MEASurement Function
READ? starts the acquisition and returns the result.This sequence does the same as the MEA- Sure command, but now it is possible to insert commands between CONFigure and READ? to adjust the setting of a par- ticular function (called fine tuning). For instance, you can set an input attenuator at a re...
Page 69 - Chapter 6; Using the
Page 70 - Using the Subsystems
Introduction Although SCPI is intended to be self ex- planatory, we feel that some hints and tips on how to use the different subsys- tems may be useful. This chapter does not explain each and every command, but only those for which we believe extra explanations are necessary. 6-2 Using the Subsyste...
Page 71 - Calculate Subsystem; Mathematics
Calculate Subsystem The calculate subsystem processes the measuring results. Here you can recalcu- late the result using mathematics, make statistics (not PM6685) and set upper and lower limits for the measuing result that the counter itself monitors and alerts you when the limits are exceeded. n Ma...
Page 72 - Calibration Subsystem; -4 Calibration Subsystem
Calibration Subsystem The interpolators used to increase the res- olution of the measurement result in the counter must be calibrated to maintain the highest possible accuracy of the counter.The calibration method of the PM6681 differs from the method used in PM6680B and PM6685. n PM6680B, PM6685 Th...
Page 73 - Configure Function; The CONFigure command sets up the
Configure Function The CONFigure command sets up the counter to make the same measurements as the MEASure query, but without initi- ating the measurement and fetching the result. Use configure when you want to change any parameters before making the measurement.Read more about Configure under MEA- S...
Page 74 - Format Subsystem; Time Stamp
Format Subsystem Time Stamp Readout Format It is not trivial to decide how time stamped measurements are to be pre- sented on the bus. If the ‘ADIF’ format defined by SCPI is adopted, it should be adopted for all data readout, and switched on and off by the already standardized :FORMat:DINTerchange ...
Page 75 - Input Subsystems
Input Subsystems PM6685 Using the Subsystems Input Subsystems 6-7 INP:IMP 1E6 INP:SLOP POS INP:SLOP NEG INP:FILT OFF INP:FILT ON A 1 INP:IMP 50 0V Trigger points Reset points INP:HYST <value in Volt> t INP:LEV <value in Volt> Comparator Figure 6-1 Summary of PM6685 input amplifier settin...
Page 77 - Measurement Function
Measurement Function The Measure function group has a differ- ent level of compatibility and flexibility than other commands. The parameters used with commands from the Measure group describe the signal you are going to measure. This means that the Measure functions give compatibility between in- st...
Page 78 - Versatility of measurement com-; -10 Measurement Function
n Example: SEND → CONFigure:FREQ 8 2E6,1 2E6 is the expected value 1 is the required resolution (1Hz) SEND → INPut:IMPedance50 8 OHM Sets input impedance to 50 Ω SEND → READ? Starts the measurement and returns the result. CONFigure;INITiate;FETCh? The READ? command can be divided into the INITiate c...
Page 79 - Output Subsystem; Scaling Factor; Scaling factor
Output Subsystem The analog output is turned off as a de- fault. You turn it on/off and set the scal- ing factor under ANALOG OUT in the aux menu. Scaling Factor The scaling factor has two functions:– Its exponent selects which digits to output on the analog output. – Its value sets what reading sho...
Page 80 - Resolution; -12 Output Subsystem
– This is the value that will determine the output voltage; .00 will give 0 V and .99 will give 5 V. This means that the reading will give: .67890*5=3.3945 V. This is ouput as 3.38 V due to the 0.02 V resolution of the analog output. n Resolution The analog output range is 0 to 5 V in 250 steps, so ...
Page 81 - Switchbox
Sense Command Subsystems Depending on application, you can select different input channels and input charac- teristics. n Switchbox In automatic test systems, it is difficult to swap BNC cables when you need to mea- sure on several measuring points. With PM6680B/1 you can select from three different...
Page 82 - Status Subsystem; The Status Structure; Using the Registers
Status Subsystem Introduction Status reporting is a method to let the controller know what the counter is do- ing. You can ask the counter what status it is in whenever you want to know.You can select some conditions in the counter that should be reported in the Sta- tus Byte Register. You can also ...
Page 84 - Clearing/Setting all bits; Using the Queues; Status of the Error Message Queue; Using the Status Byte; -16 Status Subsystem
Example: The counter answers 40 when you ask for the contents of the Standard Event Status Register. – Convert this to binary form. It will give you 101000. – Bit 5 is true showing that a command error has occurred. – Bit 3 is also true, showing that a device de- pendent error has occurred. Use the ...
Page 85 - L o g i c a l O R; S t a t u s B y t e; S R Q; S e r v i c e R e q u e s t E n a b l e
request, it may regularly test the SRQ-line, it may regularly make serial poll or *STB?, or the controller may not react at all. The preferred method is to use SRQ because it presents a minimum of disturbance to the measurement pro- cess. Selecting Summary Message to Gen- erate SRQ The counter does ...
Page 86 - Status Byte; -18 Status Subsystem
as long as there is unfetched data in any of the status event registers.– The Requested Service bit, RQS, is set true when a service request has been signalled. If you read the status byte via a Serial Poll, bit 6 represents RQS. Reading the status byte with a serial poll will set the RQS bit false,...
Page 87 - Status Condition Registers; Why Two Types of Registers?
– *ESR? Reads the Standard Event Status register – :STATus:OPERation? Reads the Operation Status Event register – :STATus:QUEStionable? Reads the Questionable Status Event register – :STATus:DREGister0? Reads Device Event register When you read these registers, you will clear the register you read a...
Page 88 - Standard Status Registers; standard
– When you find it, check which bits in the Status Byte Register are true. – Let’s say that bit 7, OPR, is true. Then read the contents of the Opera- tion Status Register. In this register you can see what caused the SRQ. – Take appropriate actions depending on the reason for the SRQ. Standard Statu...
Page 90 - Registers; -22 Status Subsystem
ESR? Reading and clearing the event register of the Standard Event structure. SCPI-defined Status Registers CNT-8X has two 16-bit SCPI-defined status structures: The operation status and the questionable data structure. These group is 16-bits wide while the status byte and the standard status groups...
Page 92 - Summary, Questionable; -24 Status Subsystem
Questionable Data/Signal Status Group This group reports when the output data from the CNT-8X may not be trusted. Bit 14 (weight 16384) — Unexpected Parameter (UEP) This bit shows that CNT-8X has received a parameter that it cannot execute, al- though the parameter is valid according to SCPI. This m...
Page 93 - Device-defined Status Structure; structure called the Device Register 0. It
Device-defined Status Structure CNT-8X has one device-defined status structure called the Device Register 0. It summarizes this structure in bit 0 of the status byte. Its purpose is to report when the measuring result has exceeded pre- programmed limits. Using the Subsystems Status Subsystem 6-25 Lo...
Page 94 - Bit Definition; Status Reporting; Power-on Status Clear; PSC; Preset the Status Reporting; -26 Status Subsystem; Device Status Register0
You set the limits with the following commands in the calculate subsystem. :CALCulate:LIMit:UPPer and :CALCulate:LIMit:LOWer An example on how to use limit monitor- ing is available in Chapter 4, ‘Program Examples.’ Bit Definition Bit 2 (weight 4) — Monitor of Low Limit This bit is set when the low ...
Page 95 - Trigger/Arming Subsystem; Instrument Action
Trigger/Arming Subsystem The SCPI TRIGger subsystem enables syn- chronization of instrument actions with specified internal or external events. The following list gives some examples. Instrument Action Some examples of events to synchronize with are as follows:– measurement – bus trigger – external ...
Page 96 - uous; Structure of an Event-detection
This trigger configuration is sufficient for most instruments. More complex instru- ments, such as the CNT-8X, have more ARM layers.The ‘Wait for TRIG’ event-detection layer is always the last to be crossed be- fore instrument actions can take place. Structure of the IDLE and INITIATED States When y...
Page 97 - Triggering; TRG Trigger Command; When to use
layer). This delay can be programmed by using the <layer>:DELay command. n Backward Traversing an Event-detection Layer The number of times a layer event has to initiate a device action can be pro- grammed by using the <layer>:COUNt command. For example: :TRIGger:COUNt 3 causes the in- s...
Page 98 - E v e n t d e t e c t i o n l a y e r
Using the Subsystems 6-30 Trigger/Arming Subsystem E v e n t d e t e c t i o n < l a y e r > : S O U R c e I M M e d i a t e B U S S e l e c t S o u r c e E v e n t d e t e c t i o n l a y e r L a y e r l o o p c o u n t e r = 0 E v e n t d e t e c t i o n : S L O P e < l a y e r > : S O...
Page 99 - Chapter 7; How to Measure Fast
Page 100 - Controller Synchronization; Start; Timeout; Stop
Introduction The CNT-8X counters can complete a measurement cycle in many different ways, each with its own advantage. This means that your first step is to select a ba- sic “measurement scenario” based on the requirements of the measurement. This chapter contains some measurement sce- narios that y...
Page 101 - IDLE State
*OPC reports when operation is com- plete, via the Status Subsystem described on page 6-14. Rough Trigger Subsystem Description The trigger subsystem is the functional part of the CNT-8X that controls the start and stop of measurements. This is the function that the controller interacts with when it...
Page 102 - INITiate; -4 Some Basic Commands
Some Basic Commands Here follows a description of some basic CNT-8X commands that control the mea- surement sequence. CONFigure The CONFigure command sets up the counter to do the measurement specified by the parameters of the command. The command gives a limited number of pa- rameter options such a...
Page 103 - rameters fast; Command
Examples: – Get one measurement: FETCh? – Get 100 measurements: FETCh:ARRay? 8 100 + The number of measurements is defined by the setting of the ARM and TRIG counters. The ARM counter can be set directly by the :CONF and :MEAS commands. The :FETCh:ARRay? query pa- rameter only decides how many measu...
Page 104 - Individually Synchronized; ure
Basic Measurement Method A basic measurement method for a sys- tem composed of signal sources, measur- ing object, and measuring devices will be a simple step-by-step procedure. This procedure goes as follows:Step 1: Set up signal sourcesStep 2: Set up measurement devicesStep 3: Trigger measurement ...
Page 105 - General Speed; decrease the average
the counter by yourself. This is primarily why we recommend the READ? query. Block Synchronized Measurements In the block synchronized mode, the con- troller only starts a sequence of measure- ments. The counter then measures, without any controller intervention, at the highest possible speed. It “d...
Page 107 - Note: If you want a very high speed
interpolators by using the CAL:INT:AUTO ONCE command. Block Measurements When dumping measurement results into the internal memory, it is important to program the arming and triggering coun- ters in the best way. For maximum mea- surement rate use the block armed mode. To do this set: :ARM:STARt:LAY...
Page 108 - Obvious Method; -10 Supervising a Process
Supervising a Process One typical use of a counter in the indus- try is to measure a parameter and alert the adjusting machinery when the parameter gets close to the correct value. The ma- chinery now slows down for an accurate final adjustment of the parameter, and stops the adjustment procedure wh...
Page 109 - Speed Summary; The following table summarizes the time; U U
Speed Summary The following table summarizes the time that can be gained when fine tuning the measurement process.The normal dead time between frequency measurements is approximately as fol- lows: 48.8 ms for the PM6680B. 85 ms for the PM6681. 75 ms for the PM6685. If you should read out the measuri...
Page 111 - Block Synchronized Measurements
How to Measure Fast Speed Summary 7-13 Block Synchronized Measurements (:ARM:STARt:LAYer:COUNt 1 and TRIG:COUNt <N>) Speed Improvement Actions Dead Time Between Measurements CAL:INT :AUT O OFF Display OFF Realtime calculations OFF ([SENS]:INT:FORM PACK) Low resolution ([SENS]:ACQ:RES LOW) PM66...
Page 112 - When opimizing your program for speed,
Calculating the Measurement Speed When opimizing your program for speed, add the measuring time you use to the dead time, and subtract the time gain for the timesaving commands you intend to use; all times should be expressed in sec- onds: 1 Meas time DeadTime TimeGain . + - = å = number of measurem...
Page 113 - mands
How to Measure Fast Speed Summary 7-15 Timesaving Com- mands Time Gain in ms Sacrifice PM6680B PM6681 PM6685 Freq Freq Freq FREQ:RANG:LOW 8 MAX (23) (23) 10kHz lower freq. limit for AUTO. ThisTimesaving is only possible whenAUTO is on. (55) 50kHz lower freq. limit for AUTO. ThisTimesaving is only po...
Page 114 - Single “Speed Switch”
Single “Speed Switch” Command for PM6680B/85 Since many parameters must be set to get the highest measuring speed, it is simpler if you use the macro function:Send the following lines to turn on mac- ros; define one macro called FASTFREQ and one macro called SLOWFREQ . SEND → *EMC 8 1 SEND → *DMC 8 ...
Page 115 - Chapter 8; Error Messages
Page 116 - Read the Error/Event Queue
Command Errors Error Number Error Description Description/Explanation/Examples 0 No error –100 Command error This is the generic syntax error for devices that can- not detect more specific errors. This code indicates only that a Command Error defined in IEEE-488.2, 11.5.1.1.4 has occurred. –101 Inva...
Page 129 - See also Error Messages in Appendix 1 of the Operators Manual.
CNT-8X Device specific errors (leading 1 only for PM6681) Error Number Error Description description/explanation/examples (1)214 Hash table overflow The hash table was too small to hold all mnemon- ics. Ordinarily indicates a failure to read (RAM or ROM) correctly. Contact your local service center....
Page 131 - Chapter 9; Command Reference
Page 132 - -2 Command Reference
9-2 Command Reference This page is intentionally left blank.
Page 133 - Command Reference 9-3; Abort
Page 134 - -4 Command Reference; Abort Measurement
9-4 Command Reference :ABORt PM6680B/81/85 Abort Measurement The ABORt command terminates a measurement. The trigger subsystem state is set to “idle-state”. Type of command: Aborts all previous measurements if * WAI is not used. Complies to standards: SCPI 1991.0, confirmed.
Page 135 - Command Reference 9-5; Arming Subsystem
Command Reference 9-5 [ :LAYer [ 1 ] ]:DELay 8 <Numeric value> | MIN | MAX (Only PM6680B / PM6681) :ECOunt 8 <Numeric value> | MIN | MAX (Only PM6680B / PM6681) :SLOPe 8 POSitive | NEGative :SOURce 8 EXTernal2 | EXTernal4 | IMMediate | TIMerf Arming Subsystem :ARM[ :STARt / :SEQuence [ 1...
Page 136 - -6 Command Reference; No. of Measurements on each Bus arm
9-6 Command Reference :ARM :COUNt PM6680B/81/85 8 «<Numeric value>|MIN|MAX» No. of Measurements on each Bus arm This count variable controls the upward exit of the “wait-for-bus-arm” state ( :ARM:STARt:LAY1 ). The counter loops the trigger subsystem downwards COUNt number of times before it ex...
Page 137 - Command Reference 9-7; Delay after External Start Arming; External Events before Start Arming
Command Reference 9-7 :ARM :DELay PM6680B/81/85 8 «<Numeric value> | MIN | MAX» Delay after External Start Arming This command sets a delay between the pulse on the arm input and the time when the counter starts measuring. The delay is only active when the following is se- lected: :ARM:STARt:S...
Page 138 - -8 Command Reference; Bus Arming Override
9-8 Command Reference :ARM :LAYer2 PM6680B/81/85 Bus Arming Override This command overrides the waiting for bus arm, provided the source is set to bus. When this command is issued, the counter will immediately exit the “wait-for-bus- arm” state.The counter generates an error if it receives this comm...
Page 139 - Command Reference 9-9; External Arming Start Slope; External Arming Start Source
Command Reference 9-9 :ARM :SLOPe PM6680B/81/85 8 «POSitive|NEGative» External Arming Start Slope Sets the slope for the start arming condition. Returned format: POS|NEG ¿ Example: SEND ® :ARM:SLOP 8 NEG ¿ *RST condition: POS Complies to standards: SCPI 1991.0, confirmed. :ARM :SOURce PM6680B/81/85 ...
Page 140 - -10 Command Reference; Delay after External Stop Arming; External Events before Stop Arming
9-10 Command Reference :ARM :STOP :DELay PM6680B PM6681 8 «<Numeric value> | MIN | MAX» Delay after External Stop Arming This command sets a delay between stop slope of the pulse on the arm input and the time when the counter stops measuring. The delay is only active when the fol- lowing is se...
Page 141 - Command Reference 9-11; External Stop Arming Slope; External Stop Arming Source
Command Reference 9-11 :ARM :STOP :SLOPe PM6680B/81/85 8 «POSitive | NEGative» External Stop Arming Slope Sets the slope for the stop arming condition. Returned format: POS|NEG ¿ Example: SEND ® :ARM:STOP:SLOP 8 NEG ¿ *RST condition: POS Complies to standards: SCPI 1991.0, confirmed. :ARM :STOP :SOU...
Page 142 - -12 Command Reference
9-12 Command Reference This page is intentionally left blank.
Page 143 - Command Reference 9-13
Command Reference 9-13 Calculate Subsystem :CALCulate :STATe 8 ON|OFF :DATA?:IMMediate:MATH [:EXPRession] 8 <Numeric expression> :STATe 8 ON|OFF :AVERage [:STATe] 8 ON|OFF :TYPE 8 MIN|MAX|SDEViation|MEAN :COUNt 8 <Numeric value>|MIN|MAX :LIMit [:STATe] 8 ON|OFF :UPPer [:DATA] 8 <Numer...
Page 144 - -14 Command Reference; Sample Size for Statistics; Enable Statistics
9-14 Command Reference :CALCulate :AVERage :COUNt PM6680B PM6681 8 < No. of samples> Sample Size for Statistics Sets the number of samples to use in statistics sampling. Parameters: <No. of samples> is a number in the range of 1 to 65535. Returned format: < No. of samples> ¿ *RST c...
Page 145 - Command Reference 9-15; Statistical Type; Fetch calculated data
Command Reference 9-15 :CALCulate :AVERage :TYPE PM6680B PM6681 8 «MAX|MIN|MEAN|SDEViation» Statistical Type Selects the statistical function to be performed. + You must use :CALC:DATA? t o read the result of statistical operations. :READ?, :FETC? will only send the results that the statistical oper...
Page 146 - -16 Command Reference; Recalculate Data; Enable Monitoring of Parameter Limits
9-16 Command Reference :CALCulate :IMMediate PM6680B/81/85 Recalculate Data This event causes the calculate subsystem to reprocess the statistical function on the sense data without reacquiring the data. Query returns this reprocessed data. + This command is not very useful in PM6685, but is accepte...
Page 147 - Command Reference 9-17; Limit Fail; Set Low Limit
Command Reference 9-17 :CALCulate :LIMit :FAIL? PM6680B/81/85 Limit Fail Returns a 1 if the limit testing has failed (the measurement result has passed the limit), and a 0 if the limit testing has passed.The following events reset the fail flag: – Power-on – * RST – A :CALC:LIM:STAT OFF ® :CALC:LIM:...
Page 148 - -18 Command Reference; Check Against Lower Limit; Set Upper Limit
9-18 Command Reference Calculate :CALCulate :LIMit :LOWer :STATe PM6680B/81/85 8 <Boolean> Check Against Lower Limit Selects if the measured value should be checked against the lower limit. Parameters <Boolean> = ( 1/ON | 0/OFF ) Returned format: 1| 0 ¿ *RST condition: 0 Complies to stan...
Page 149 - Command Reference 9-19; Check Against Upper Limit
Command Reference 9-19 :CALCulate :LIMit :UPPer :STATe PM6680B/81/85 8 <Boolean> Check Against Upper Limit Selects if the measured value should be checked against the upper limit. Parameters <Boolean> = ( 1/ON | 0/OFF ) Returned format: 1| 0 ¿ *RST condition: 0 Complies to standards: SCP...
Page 150 - -20 Command Reference; Select Mathematical Expression
9-20 Command Reference :CALCulate :MATH PM6685 8 (<expression>) Select Mathematical Expression Defines the mathematical expression used for mathematical operations. This func- tion equals the nulling function from the front panel. + The data type <expression data> must be typed within pa...
Page 151 - Command Reference 9-21; Enable Mathematics
Command Reference 9-21 :CALCulate :MATH PM6680B PM6681 8 (<expression>) Select Mathematical Expression Defines the mathematical expression used for mathematical operations. This func- tion equals the nulling function from the front panel. + The data type <expression data> must be typed w...
Page 152 - -22 Command Reference; Enable Calculation
9-22 Command Reference Calculate :CALCulate :STATe PM6680B/81/85 8 <Boolean> Enable Calculation Switches on/off the complete post-processing block. If disabled, neither mathemat- ics or limit-monitoring can be done. Parameter <Boolean> = ( 1/ON | 0/OFF ) SEND ® :CALC:STAT 8 1 Switches on...
Page 153 - Command Reference 9-23
Command Reference 9-23 Calibration Subsystem :CALibration :INTerpolator :AUTO 8 <Boolean>|ONCE (Only PM6680B, PM6685) + PM6681 has factory calibrated interpolators, and calibration cannot be changed by the operator. Calibration of the PM6681 input hysteresis is done in the Diagnostis subsystem...
Page 154 - -24 Command Reference; Calibration of Interpolator
9-24 Command Reference :CALibration :INTerpolator :AUTO PM6680B/85 8 <Boolean>| ONCE Calibration of Interpolator The PM6680B/85 are reciprocal counters that uses an interpolating technique to increase the resolution. In time measurements, for example, interpolation in- creases the resolution f...
Page 155 - Command Reference 9-25; Set up Instrument for Measurement
Command Reference 9-25 Configure Function Set up Instrument for Measurement :CONFigure [:SCALar]<Measuring Function> 8 <Parameters>,(<Channels>)] :ARRay<Measuring Function> 8 (<Array Size>)[,<Parameters>,(<Channels>)] + The array size for :MEASure and :CONFi...
Page 156 - -26 Command Reference; Configure the counter for a single measurement
9-26 Command Reference :CONFigure :<Measuring Function> PM6680B/81/85 [ 8 <parameters>[,(<channels>)]] Configure the counter for a single measurement Use the configure command instead of the measure query when you want to change other settings, for instance, the input settings befo...
Page 157 - Command Reference 9-27; Configure the counter for an array of measurements
Command Reference 9-27 :CONFigure :ARRay :<Measuring Function> 80B/81/85 8 (<array size>)[,<parameters> [,(<channels>)]] Configure the counter for an array of measurements The :CONFigure:ARRay command differs from the :CONFigure command in that it sets up the counter to perfo...
Page 158 - -28 Command Reference
9-28 Command Reference This page is intentionally left blank.
Page 159 - Command Reference 9-29; Diagnostics Subsystem
Command Reference 9-29 Diagnostics Subsystem :DIAGnostic :CALibration :INPut[1] :HYSTeresis 8 OFF | ONCE :INPut2 :HYSTeresis 8 OFF | ONCE
Page 160 - -30 Command Reference; Input comparator hysteresis calibration
9-30 Command Reference Fetch :DIAGnostic:CALibration:INPut[1|2]:HYSTeresis 81 8 «OFF | ONCE» Input comparator hysteresis calibration These two commands measure and save the hysteresis levels of the input com- parator. This makes it possible to achieve a trig level accuracy of 2.5 mV, which is import...
Page 161 - Command Reference 9-31; Display Subsystem
Command Reference 9-31 Display Subsystem :DISPlay :ENABle 8 ON OFF
Page 162 - -32 Command Reference; Display State
9-32 Command Reference :DISPlay :ENABle PM6680B/81/85 8 < Boolean > Display State Turns On/Off the updating of the entire display section. This can be used for secu- rity reasons or to improve the GPIB speed, since the display does not need to be updated. Turning off the display reduces the de...
Page 163 - Command Reference 9-33; Fetch Function
Command Reference 9-33 Fetch Function :FETCh [:SCALar]?:ARRay? 8 <Array Size>|MAX
Page 164 - -34 Command Reference; Fetch One Result
9-34 Command Reference :FETCh? PM6680B/81/85 Fetch One Result The fetch query retrieves one measuring result from the measurement result buffer of the counter without making new measurements. Fetch does not work unless a measurement has been made by the :INITiate , :MEASure? , or :READ? com- mands.I...
Page 165 - Command Reference 9-35; Fetch an Array of Results; Format
Command Reference 9-35 :FETCh :ARRay? PM6680B/81/85 8 «<fetch array size>|MAX» Fetch an Array of Results :FETCh:ARRay? query differs from the :FETCh? query by fetching several mea- suring results at once.An array of measurements must first be made by the commands. :INITiate, :MEASure:ARRay? or...
Page 166 - -36 Command Reference
9-36 Command Reference Returned format: <data>[,<data>] ¿ The format of the returned data is determined by the format commands :FORMat and :FORMat:FIXed . Example: If :MEAS:ARR:FREQ? 8 (4) gives the results 1.1000,1.2000,1.3000,1.4000 :FETC:ARR 8 2 fetches the results 1.1000,1.2000 :FETC...
Page 167 - Command Reference 9-37
Command Reference 9-37 Format Subsystem :FORMat [:DATA] 8 ASCii REAL[, <Numeric value> | AUTO] :FIXed 8 ON OFF :SREGister 8 ASCii | BINary | HEXadecimal | OCTal :TINFormation[:STATe] 8 <Boolean>
Page 168 - -38 Command Reference; Response Data Type
9-38 Command Reference :FORMat PM6680B/85 8 «ASCii|REAL» Response Data Type Sets the format in which the result will be sent on the bus. Parameters ASCii will send the measurement result in ASCii form.<sign><mantissa value>E<sign><expo- nent value> <sign> = + or – <m...
Page 169 - Command Reference 9-39; Response Data Format; Data Type for Status Messages; HEXadecimal
Command Reference 9-39 :FORMat :FIXed PM6680B/81/85 8 <Boolean> Response Data Format Sets the ASCii format to fixed. This results in the following response format: <sign><mantissa value>E<sign><exponent value> Where: <sign> = +|– <mantissa value> = 12 digits...
Page 170 - -40 Command Reference
9-40 Command Reference :FORMat :TINFormation PM6681 8 Boolean Timestamping On/Off Timestamping;On/Off This command turns on/off the time stamping of measurements. Time stamping is always done at the start of a measurement with a resolution of 125 ns, and is saved in the measurement buffer together w...
Page 171 - Command Reference 9-41; Initiate Subsystem
Command Reference 9-41 Initiate Subsystem :INITiate [:IMMediate ]:CONTinuous 8 ON | OFF
Page 172 - -42 Command Reference; Initiate Measurement; Continuously Initiated
9-42 Command Reference :INITiate PM6680B/81/85 Initiate Measurement The :INITiate command initiates a measurement. Executing an :INITiate com- mand changes the counter’s trigger subsystem state from “idle-state” to “wait-for-bus-arm-state” (see Figure 6-15). The trigger subsystem will continue to th...
Page 173 - Command Reference 9-43; INPUT E; INPUT A
Command Reference 9-43 n INPUT B (Not PM6685) :INPut2 :ATTenuation 8 <Numeric value>|MIN|MAX (1|10) :COUPling 8 AC|DC :IMPedance 8 <Numeric value>|MIN|MAX [:EVENt] :LEVel 8 <Numeric value>|MIN|MAX :AUTO 8 ON|OFF|ONCE :SLOPe 8 POS|NEG :COMMon 8 ON|OFF n INPUT E :INPut4 [:EVENt] :SLO...
Page 174 - -44 Command Reference
9-44 Command Reference :INPut«[1]|2» :ATTenuation PM6680B PM6681 8 «<Numeric value>|MAX|MIN» Attenuation Attenuates the input signal with 1 or 10. The attenuation is automatically set if the input level is set to AUTO. Parameters: <Numeric values> â 5, and MIN gives attenuation 1. <Nu...
Page 175 - Command Reference 9-45; Sensitivity; Low Pass Filter
Command Reference 9-45 :INPut :HYSTeresis PM6685 8 «<Decimal data>|MAX |MIN» Sensitivity The sensitivity setting on the front panel is called HYSTeresis from the bus. The range is 27.12 mV to 75.4 V. This setting has no effect unless autosensitivity is turned off, see the following page.Note t...
Page 176 - -46 Command Reference; Auto Sensitivity
9-46 Command Reference :INPut :HYSTeresis :AUTO PM6685 8 «<Boolean>|ONCE» Auto Sensitivity AUTO from the front panel turns on both auto sensitivity (hysteresis) and auto waveform compensation(trigger level). From the bus there are two commands, one for auto hysteresis and one for auto trigger ...
Page 177 - Command Reference 9-47; Input Impedance; Fixed Trigger Level
Command Reference 9-47 :INPut«[1]|2» :IMPedance PM6680B/81/85 8 «<Decimal data>|MAX|MIN» Input Impedance The impedance can be set to 50 W or 1 M W . Parameters MIN or <Decimal data> that rounds off to 50 or less, sets the input impedance to 50 MAX or <Decimal data> that rounds off ...
Page 178 - -48 Command Reference; Waveform compensation
9-48 Command Reference :INPut :LEVel PM6685 8 «<Decimal data>|MAX|MIN» Waveform compensation The three-position waveform compensation on the front panel is not available from the bus. Instead, you can set the trigger level, that is, the level on which the hysteresis band is centered. How to se...
Page 179 - Command Reference 9-49; Autotrigger
Command Reference 9-49 :INPut :LEVel :AUTO PM6680B PM6681 8 «<Boolean>|ONCE» Autotrigger If set to AUTO, the counter automatically controls both the trigger level and the at- tenuation 1 . If you have a stable amplitude, use the :AUTO 8 ONCE , and the autotrigger will determine the trigger lev...
Page 180 - -50 Command Reference
9-50 Command Reference :INPut :LEVel :AUTO PM6685 8 «<Boolean>|ONCE» Autotrigger:INPut:AUTO? If auto is on, the counter automatically controls the trigger level 1 and the hyster- esis. If you have a stable amplitude, use the :AUTO ONCE , and auto will determine the trigger level once, and then...
Page 181 - Command Reference 9-51; Trigger Slope
Command Reference 9-51 :INPut«[1]|2|4» :SLOPe PM6680B/81/85 8 «POS|NEG» Trigger Slope Selects if the counter should trigger on a positive or a negative transition. Selecting negative slope is useful when measuring negative pulse width and negative duty cycle.When you select negative slope, the count...
Page 182 - -52 Command Reference
9-52 Command Reference This page is intentionally left blank.
Page 183 - Command Reference 9-53; Set up the Instrument, Perform Measurement, and Read Data
Command Reference 9-53 Measurement Function Set up the Instrument, Perform Measurement, and Read Data :MEASure [:SCALar]<Measuring Function>? [<Parameters>][,(<Channels>)] :ARRay<Measuring Function>? 8 (<Array Size>)[,<Parameters>][,(<Channels>)] :MEMory? [&...
Page 184 - -54 Command Reference
9-54 Command Reference PM6680B PM6681 :MEASure|:CONFigure [:VOLTage] [:SCALar] :FREQuency [:CW]? [ _ [<expected value>[,<resolu- tion>],][( @1 |@2|@3|@4|@5|@6|@7)]] :RATio? [ _ [<exp. value>[,<resol.>],][( @1 |@2|@3|@4),(@1| @2 |@3|@4)]] :BURSt? [ _ [<exp. value>[,<r...
Page 185 - Command Reference 9-55
Command Reference 9-55 PM6685 :MEASure|:CONFigure [:VOLTage] [:SCALar] :FREQuency [:CW]? [ 8 [<expected value>[,<resolu- tion>]][,( @1 |@3|@4|@5|@6)]] :RATio? [ 8 [<exp. value>[,<resol.>]][,( @1 |@3|@4|@5|@6), (@1|@3| @4|@5|@6 )]] :BURSt? [ 8 [<expected value>[,<reso...
Page 186 - -56 Command Reference; Make one measurement
9-56 Command Reference :MEASure :<Measuring Function>? PM6680B/81/85 [ 8 [<parameters>][ ,(<channels>)]] Make one measurement The measure query makes a complete measurement, including configuration and readout of data. Use measure when you can accept the generic measurement without...
Page 187 - Command Reference 9-57; Make an array of measurements
Command Reference 9-57 :MEASure :ARRay :<Measuring Function>? 80B/81/85 [ 8 (<array size>)[,[<parameters>] [,(<channels>)]] Make an array of measurements The :MEASure:ARRay query differs from the :MEASure query in that it performs the number of measurements you decide in the ...
Page 188 - -58 Command Reference; TIMING; Memory Recall, Measure and Fetch Result
9-58 Command Reference :MEASure:MEMory<N>? PM6681 Memory Recall, Measure and Fetch Result Use this command when you want to measure several parameters fast . :MEAS:MEM1? recalls the contents of memory 1 and reads out the result, :MEAS:MEM2? recalls the contents of memory two and reads out the ...
Page 189 - Command Reference 9-59; Positive Duty Cycle; This sub-chapter explains the various measurements that can be
Command Reference 9-59 :MEASure_«:DCYCle/:PDUTycycle» PM6680B/81/85 [ 8 [<threshold>] [,(@«1|2|4|6»)]] Positive Duty Cycle Traditional duty cycle measurement is performed. That is, the ratio between the on time and the off time of the input pulse is measured. Parameters <threshold> param...
Page 190 - -60 Command Reference; Frequency
9-60 Command Reference (@5) means input A prescaled by 2 (@6) means the internal reference @7) means input A with the variable hysteresis mode (Only PM6680B and PM6681) If you omit the channel, the instrument measures on input A (@1). 1 The A input is always prescaled by 2 when measuring Frequency A...
Page 191 - Command Reference 9-61; Burst Carrier Frequency
Command Reference 9-61 :MEASure :FREQuency :BURSt? PM6680B/81/85 [ 8 [<expected value>[,<resolution>]] [,<(@«1|2|3|4|5|6|7»)>]] Burst Carrier Frequency Measures the carrier frequency of a burst. The burst duration must be less than 50% of the pulse repetition frequency (PRF).How to...
Page 192 - -62 Command Reference; Pulse Repetition Frequency
9-62 Command Reference :MEASure :FREQuency :PRF? PM6680B/81/85 [ 8 [<exp. val.>[,<res.>]][,<(@«1|2|3|4|5|6|7»)>]] Pulse Repetition Frequency Measures the PRF (Pulse Repetition Frequency) of a burst signal.The burst dura- tion must be less than 50% of the pulse repetition frequency ...
Page 193 - Command Reference 9-63; Frequency Ratio
Command Reference 9-63 :MEASure :FALL :TIME? PM6680B PM6681 [ 8 [<lower threshold> [,<upper threshold>[,<expected value>[,<resolution>]]]] [,(@1)]] Fall-time The transition time from 90% to 10% of the signal amplitude is measured.The measurement is always a single measurement...
Page 194 - -64 Command Reference; Positive Peak Voltage; Negative Peak Voltage
9-64 Command Reference :MEASure [:VOLT] :MAXimum? PM6680B PM6681 [ 8 («@1|@2»)] Positive Peak Voltage This command measures the positive peak voltage with the input DC coupled. Parameters: («@1|@2») is the channel to measure on (@1) means input A (@2) means input B Complies to standards: SCPI 1991.0...
Page 195 - Command Reference 9-65; Negative Pulse Width; Positive Pulse Width
Command Reference 9-65 :MEASure :NWIDth? PM6680B/81/85 [ 8 [<threshold>] [,<(@«1|2|4|6»)>]] Negative Pulse Width A negative pulse width measurement is performed.This is always a single measurement. If you need an average pulse width mea- surement, use the :SENSe subsystem instead. Parame...
Page 196 - -66 Command Reference; Positive duty cycle: Duty Factor; Negative duty cycle: Duty Factor
9-66 Command Reference :MEASure_«:PDUTycycle/ :DCYCle»? PM6680B/81/85 [ 8 [<threshold>] [,(@«1|2|4|6»)]] Positive duty cycle: Duty Factor Traditional duty cycle measurement is performed. That is, the ratio between the on time and the off time of the input pulse is measured. Parameters <thre...
Page 197 - Command Reference 9-67; Period; Phase
Command Reference 9-67 :MEASure :PERiod? PM6680B/81/85 [ 8 [<expected value> [,<resolution>]][,<(@«1|2|3|4|5|6|7»)>]] Period A traditional period measurement is performed.The <expected value> and <resolution> are used to calculate the Measurement Time ( [:SENSe]:ACQuisi...
Page 198 - -68 Command Reference
9-68 Command Reference :MEASure [:VOLT] :PTPeak? PM6680B PM6681 [ 8 (@«1|2»)]. Peak-to-Peak Voltage This command make measures the peak-to-peak voltage with the input DC cou- pled. Parameters: (@«1|2») is the channel to measure on (@1) means input A (@2) means input B Complies to standards: SCPI 199...
Page 199 - Command Reference 9-69
Command Reference 9-69 :MEASure :TINTerval? PM6680B PM6681 8 (@«1|2|4»),(@«1|2|4»)] Time-Interval Traditional time-interval measurements are performed. The trigger levels are set automatically, and positive slope is used. The first channel in the channel list is the start channel, and the second is ...
Page 200 - -70 Command Reference; Totalize X gated by Y, accumulated
9-70 Command Reference :MEASure :TOTalize :ACCumulated? PM6680B PM6681 [ 8 <time for gate open>][,(@«1|2|4|5|6») [,(@«1|2|4|5|6»)]] Totalize X gated by Y, accumulated The counter totalizes the pulses on the primary channel. The totalizing starts when the gate signal on the secondary channel go...
Page 201 - Command Reference 9-71; Totalize Manually; Normal Program Sequence for Totalizing on A
Command Reference 9-71 :CONFigure :TOTalize :CONTinuous PM6680B/81/85 [ 8 (@«1|2|4|6»)][,(@«1|2|4|6»)] Totalize Manually This is a count/totalize function controlled from the GPIB interface using the com- mand SENS:TOT:GATE 8 ON|OFF. The counter counts up for each event on the primary input channel....
Page 202 - -72 Command Reference; Totalize X gated by Y; Totalize X start/stop by Y
9-72 Command Reference :MEASure :TOTalize :GATed? PM6680B PM6681 [ 8 (@«1|2|4|5|6») [,(@«1|2|4|5|6»)]] Totalize X gated by Y The counter totalizes the pulses on the primary channel. The totalizing starts when the gate signal on the secondary channel goes on and stops when the gate signal goes to off...
Page 203 - Command Reference 9-73; Totalize X-Y During a Preset Time
Command Reference 9-73 :MEASure :TOTalize :TIMed? PM6680B PM6681 [ 8 [<time for gate open> [,(@«1|2|4»)][,(@«1|2|4»)]]] Totalize X-Y During a Preset Time This is a count/totalize function during a predefined time. The start/stop signal is generated by the counter and set by <time for gate o...
Page 204 - -74 Command Reference
9-74 Command Reference This page is intentionally left blank.
Page 205 - Command Reference 9-75; Memory Subsystem
Command Reference 9-75 Memory Subsystem :MEMory :DELete :MACRo 8 ‘<Macro name>’ :FREE:SENSe?:NSTates?:MACRo? Related Common Commands: *DMC*EMC*GMC?*LMC?*LRN?*PMC*RCL*RMC*SAV
Page 206 - -76 Command Reference; Delete one Macro; Memory Free for results
9-76 Command Reference :MEMory :DELete :MACRo PM6680B/81/85 8 ‘<Macro name>’ Delete one Macro This command removes an individual MACRo 1 . Parameters ‘<Macro name>’ is the name of the macro you want to delete. + <Macro name> is String data that must be surrounded by quotation marks...
Page 207 - Command Reference 9-77; Memory Free for Macros; Memory States
Command Reference 9-77 :MEMory :FREE :MACRo? PM6680B/81/85 Memory Free for Macros This command gives information of the free memory available for MACRos in the counter. If no macros are specified, 1160 bytes are available. Returned format: <Bytes available>, <Bytes used> ¿ Complies to st...
Page 208 - -78 Command Reference
9-78 Command Reference This page is intentionally left blank.
Page 209 - Command Reference 9-79
Command Reference 9-79 Output Subsystem :OUTPut [:STATe] 8 ON | OFF :SCALe 8 <Numeric value>
Page 210 - -80 Command Reference; Enable Analog Out; Scaling Factor, Analog Output
9-80 Command Reference :OUTPut PM6680B/81/85 8 <Boolean> Enable Analog Out This command switches on/off the analog output. See also :OUTput:SCALe com- mand on the next page. Parameters <Boolean> = ( 1/ON | 0/OFF ) Returned format: <1|0> ¿ Example: Send ® :OUTP 8 1 Switches on the a...
Page 211 - Command Reference 9-81; Read Function; Perform Measurement and Read Data
Command Reference 9-81 Read Function Perform Measurement and Read Data :READ [:SCALar]?:ARRay? 8 <Array Size>|MAX
Page 212 - -82 Command Reference; Read one Result
9-82 Command Reference Complies to standards: SCPI 1991.0, confirmed. :READ? PM6680B/81/85 Read one Result The read function performs new measurements and reads out a measuring result without reprogramming the counter. Using the :READ? query in conjunction with the :CONFigure command gives you a mea...
Page 213 - Command Reference 9-83; Read an array of results
Command Reference 9-83 This example configures the counter to make an array of 10 standard measure- ments. The counter is triggered and data from the first five measurements are read out with the :READ? query. Type of command: Aborts all previous measurement commands if * WAI is not used. Complies t...
Page 214 - -84 Command Reference
9-84 Command Reference This page is intentionally left blank.
Page 215 - Command Reference 9-85; Sense Command Subsystem
Command Reference 9-85 8 TIME | COUNts :STATe 8 ON|OFF :FREQuency :RANGe :LOWer 8 <Minimum frequency for autotrigger> | MIN | MAX :FUNCtion 8 ‘Measuring function [ Primary channel [ , Secondary channel ] ] ‘ :INTernal :FORMat 8 REAL | PACKed :ROSCillator :SOURce 8 INTernal | EXTernal :TOTalize...
Page 216 - -86 Command Reference; Sense Subsystem command tree for PM6685
9-86 Command Reference 2 Alias commands fot the: SDELay command for compatibility with the PM6680B. n Sense Subsystem command tree for PM6685 [:SENSe] :FUNCtion 8 ‘Measuring function [_ Primary channel [ , Secondary channel ] ] ‘ :EVENt 1 :LEVel 8 <Trigger level in Volts> | MIN | MAX :AUTO 8 O...
Page 217 - Command Reference 9-87
Command Reference 9-87 :ACQuisition :APERture PM6681 8 «<Decimal value > | MIN | MAX» Set the Measurement Time Sets the gate time for one measurement.Measurement Times of 80 to 1280 ns work in :FREQ:CW , FREQ:BURST, :FREQ:PRF, 8 :FREQ:RAT and :PERiod . If one of these short times is selected w...
Page 218 - -88 Command Reference; Hold Off, set event counter
9-88 Command Reference :ACQuisition :HOFF PM6680B PM6681 8 <boolean> Hold Off On/Off Switches the Hold Off function On/Off. Parameters: <Boolean> = 1 / ON | 0 / OFF Returned format: 1 | 0 ¿ *RST condition: OFF :ACQuisition :HOFF: ECOunt PM6680B PM6681 8 «<Decimal value>|MIN|MAX» Ho...
Page 219 - Command Reference 9-89; Hold Off Time; Hold Off Mode
Command Reference 9-89 :ACQuisition :HOFF :TIME PM6680B PM6681 8 «<Decimal value> |MIN|MAX» Hold Off Time Sets the Hold Off time value. Parameters: <Decimal data> = a number between 200E–9 and 1.6777215 for PM6680B, and between 40E–9 and 1.34217727 for PM6681. Returned format: <Decima...
Page 220 - -90 Command Reference
9-90 Command Reference :ACQuisition :RESolution PM6680B 8 «HIGH|LOW» Resolution Selects basic measurement mode for all time-related measurements.Parameters:HIGH: The resolution is the full 0.25 nsLOW: The resolution is limited to a 100-ns clock. You can use this to increase the bus speed. Saves abou...
Page 221 - Command Reference 9-91; Average Samples
Command Reference 9-91 <Decimal data> is a number between 1and 65535. Returned format: <Decimal data> ¿ *RST condition: 100 :AVERage :COUNt PM6680B PM6681 8 «<Decimal data>|MIN| MAX» Average Samples Sets the number of samples to use when doing time-interval averaging measure- ments...
Page 222 - -92 Command Reference; High Speed Voltage Measurements; Time to determine trigger levels
9-92 Command Reference :AVERage :STATe PM6680B/81/85 8 <Boolean> Average or Single? Switch on/off the average function. Parameters: <Boolean> = 1 | ON / 0 | OFF ON means multiple period measurements for period related measurements and time-interval av- erage for Time-Interval measurement...
Page 223 - Command Reference 9-93; Functions and channels in PM6685
Command Reference 9-93 n Functions and channels in PM6685 :FREQuency [ :CW ] [ 8 ‘ 1 | 3 | 4 | 5 | 6 ‘ ] :FREQuency [ :CW ] :RATio [ 8 ‘ 1 | 3 | 4 , 1 | 3 | 4 ‘ ] :FREQuency :BURSt [ 8 ‘ 1 | 3 | 4 ‘ ] :FREQuency :PRFrequency [ 8 ‘ 1 | 3 | 4 ‘ ] :PERiod [ 8 ‘ 1 | 3 | 4 ‘ ] :NWIDth [ 8 ‘ 1 | 4 ‘ ] :PW...
Page 224 - -94 Command Reference
9-94 Command Reference n Input channels PM6680B and PM6681 1 means input A 2 means input B 3 means input C (HF-input option) 4 means input E (Rear panel arming input) 5 means input A prescaled by 2 6 means the internal reference 7 means input A with the variable hysteresis mode n Functions and chann...
Page 225 - Command Reference 9-95; Internal Format
Command Reference 9-95 :INTernal :FORMat PM6680B/81/85 «REAL|PACKed» Internal Format This command selects the internal data format of the measurement result from the SENSe block. The purpose of the command is to increase the measurement speed. Parameters: REAL means that the result is calculated in ...
Page 226 - -96 Command Reference; Select Reference Oscillator; BURST/PRF Synchronization Delay
9-96 Command Reference :ROSCillator :SOURce PM6680B/81/85 8 «INT|EXT» Select Reference Oscillator Selects the signal from the external reference input as timebase instead of the in- ternal timebase oscillator. Returned format: <INT|EXT> ¿ *RST condition: INT Complies to standards: SCPI 1991.0,...
Page 227 - Command Reference 9-97; Gated Voltage Measurement
Command Reference 9-97 :TOTalize :GATE PM6680B/81/85 8 <Boolean> Gate On/Off Open/closes the gate for :TOTalize[:CONTinuous] . + Before opening the gate with this command, the counter must be in the ‘contin- uously initiated’ state , ( :INIT:CONT 8 ON ) or else the totalizing will not start. P...
Page 228 - -98 Command Reference
9-98 Command Reference This page is intentionally left blank.
Page 229 - Command Reference 9-99
Command Reference 9-99 Status Subsystem :STATus :DREGister0 :ENABle 8 <bit mask> [:EVENt]? :OPERation :CONDition?:ENABle 8 <bit mask> [:EVENt]? :QUEStionable :CONDition?:ENABle 8 <bit mask> [:EVENt]? :PRESet n Related Common Commands: *CLS *ESE 8 <bit mask> *ESR?*PSC 8 <bi...
Page 230 - Read Device Status Event Register; Enable Device Status Reporting; Weight
9-100 Command Reference :STATus :DREGister0? 80B/81/85 Read Device Status Event Register This query reads out the contents of the Device Event Register. Reading the De- vice Event Register clears the register. See Figure 6-14. Returned format: <dec.data> = the sum (between 0 and 6) of all bits...
Page 231 - Read Operation Status Condition Register
Command Reference 9-101 :STATus :OPERation :CONDition? 80B/81/85 Read Operation Status Condition Register Reads out the contents of the operation status condition register. This register re- flects the state of the measurement process. See figure below. Note that bits 0 to 3, 7, and 9 to 15 are not ...
Page 232 - Enable Operation Status Reporting
9-102 Command Reference :STATus :OPERation :ENABle 80B/81/85 8 <Decimal data> Enable Operation Status Reporting Sets the enable bits of the operation status enable register. This enable register contains a mask value for the bits to be enabled in the operation status event reg- ister. A bit th...
Page 233 - Read Operation Status, Event
Command Reference 9-103 :STATus:OPERation? 80B/81/85 Read Operation Status, Event Reads out the contents of the operation event status register. Reading the Opera- tion Event Register clears the register. See figure on page 9-101. Returned Format: <Decimal data> ¿ <dec.data> = the sum (b...
Page 234 - Read Questionable Data/Signal Condition Register
9-104 Command Reference :STATus :QUEStionable :CONDition? PM6680B/81/85 Read Questionable Data/Signal Condition Register Reads out the contents of the status questionable condition register. Returned Format: <dec.data> = the sum (between 0 and 17920) of all bits that are true. See table below:...
Page 235 - Read Questionable Data/Signal Event Register; Enable Questionable Data/Signal Status Reporting
Command Reference 9-105 :STATus :QUEStionable? PM6680B/81/85 Read Questionable Data/Signal Event Register Reads out the contents of the status questionable event register. Reading the Status Questionable Event Register clears the register. See figure on page 9-104. Returned Format: <dec.data> ...
Page 237 - Related common command:; System Subsystem
Command Reference 9-107 :TIME 8 <timeout value> :UNPRotect:VERSion? n Related common command: *IDN?*OPT?*PUD 8 <arbitrary block program data> *RST System Subsystem :SYSTem :COMMunicate :GPIB :ADDRess 8 <Numeric value> | MIN | MAX :ERRor?:PRESet:SYSTem:SDETect[:ENABle] 8 ON | OFF (O...
Page 238 - Set GPIB Address
9-108 Command Reference :SYSTem :COMMunicate: GPIB: ADDRess 80B/81/85 8 «<Numeric value>|MAX|MIN» [,«<Numeric value>|MAX|MIN»] Set GPIB Address This command sets the GPIB address. This selection overrides the switches on the rear panel of the counter. The set address is valid until a new...
Page 239 - Preset; Signal Detection
Command Reference 9-109 :SYSTem :PRESet PM6680B/81/85 Preset This command sets the counter to the same default settings as when the front panel key LOCAL/PRESET is pressed in local mode. + These are not exactly the same settings as after *RST , SYST:PRES gives 200 ms Measurement Time and signal dete...
Page 240 - Read or Send Settings
9-110 Command Reference :SYSTem :SET PM6680B/81/85 8 <Block data> Read or Send Settings Transmits in binary form the complete current state of the instrument. This data can be sent to the instrument to later restore this setting. This command has the same function as the * LRN? c ommon command...
Page 242 - Unprotect; System Version
9-112 Command Reference :SYSTem :UNPRotect PM6680B/81/85 Unprotect This command will unprotect the user data (set/read by * PUD ) and front setting memories 10-19 until the next PMT (Program message terminator) or Device clear or Reset (* RST) . This makes it necessary to send an unprotect command i...
Page 243 - Test Subsystem
Command Reference 9-113 Test Subsystem :TEST :CHECk 8 ON | OFF :SELect 8 RAM | ROM | LOGic | DISPlay | ALL n Related common command: *TST
Page 244 - Select Check signal
9-114 Command Reference :TEST:CHECk PM6680B/81/85 8 <Boolean> Select Check signal This command connects the internal reference signal to the measuring logic, in- stead of an external measuring signal. This makes it possible to test all functions.The frequency of the reference is 10 MHz for PM6...
Page 245 - Trigger Subsystem
Command Reference 9-115 Trigger Subsystem :TRIGger [ STARt / :SEQuence [ 1 ] ] [ :LAYer [ 1 ] ] :COUNt 8 <Numeric value> | MIN | MAX n Related common command: *TRG
Page 246 - No. of Triggerings on each Ext Arm start
9-116 Command Reference :TRIGger:COUNt PM6680B/81/85 8 «<Numeric value> | MIN | MAX» No. of Triggerings on each Ext Arm start Sets how many measurements the instrument should make for each ARM:STARt condition, (block arming).These measurements are done without any additional arming conditions ...
Page 247 - Common Commands
Command Reference 9-117 Common Commands *CLS*DMC 8 <Macro label> , <Program messages> *EMC 8 <Decimal data> *ESE 8 <Decimal data> *ESR?*GMC? 8 <Macro label> *IDN?*LMC?*LRN?*OPC*OPC?*OPT? *PMC*PSC 8 <Decimal data> *PUD 8 <Arbitrary block program data> *RCL 8 ...
Page 248 - Clear Status Command
9-118 Command Reference *CLS PM6680B/81/85 Clear Status Command The * CLS common command clears the status data structures by clearing all event registers and the error queue. It does not clear enable registers and transition fil- ters. It clears any pending * WAI , * OPC , and * OPC? . Example: Sen...
Page 249 - Define Macro
Command Reference 9-119 * DMC PM6680B/81/85 8 <Macro label> , <Program messages> Define Macro Allows you to assign a sequence of one or more program message units to a macro label. The sequence is executed when the macro label is received as a command or query. Twenty five macros can be ...
Page 250 - Enable Macros
9-120 Command Reference *EMC PM6680B/81/85 8 <Decimal data> Enable Macros This command enables and disables expansion and execution of macros. If mac- ros are disabled, the instrument will not recognize a macro although it is defined in the instrument. (The Enable Macro command takes a long ti...
Page 251 - Standard Event Status Enable
Command Reference 9-121 *ESE PM6680B/81/85 8 <Decimal data> Standard Event Status Enable Sets the enable bits of the standard event enable register. This enable register contains a mask value for the bits to be enabled in the standard event status regis- ter. A bit that is set true in the enab...
Page 252 - Event Status Register; Get Macro Definition
9-122 Command Reference ∗ ESR? PM6680B/81/85 Event Status Register Reads out the contents of the standard event status register. Reading the Stan- dard Event Status Register clears the register. Returned Format: <dec.data> = the sum (between 0 and 255) of all bits that are true. See table on p...
Page 253 - Identification query; Learn Macro
Command Reference 9-123 *IDN? PM6680B/81/85 Identification query Reads out the manufacturer, model, serial number, Firmware level for main and GPIB program in an ASCii response data element. The query must be the last query in a program message.Response is <Manufacturer> , <Model> , <...
Page 254 - Learn Device Setup; Operation Complete
9-124 Command Reference *LRN? PM6680B/81/85 Learn Device Setup Learn Device Setup Query. Causes a response message that can be sent to the instrument to return it to the state it was in when the * LRN? query was made. Returned Format: :SYST:SET_<Block data> ¿ Where: <Block data> is #292&...
Page 255 - Operation Complete Query; Option Identification
Command Reference 9-125 *OPC? PM6680B/81/85 Operation Complete Query Operation Complete query. The Operation Complete query places an ASCii char- acter 1 into the device’s Output Queue when all pending selected device opera- tions have been finished. Returned Format: 1 ¿ See also: Example 6 is Chapt...
Page 256 - Purge Macros
9-126 Command Reference *PMC PM6680B/81/85 Purge Macros Removes all macro definitions. Example: *PMC See also: :MEMory:DELete:MACRo 8 ‘<Macro-name>’ if you want to remove a single macro. Complies to standards: IEEE 488.2 1987. *PSC PM6680B/81/85 8 <Decimal data> Power-on Status Clear Ena...
Page 257 - Protected User Data; Recall
Command Reference 9-127 *PUD PM6680B/81/85 8 <Arbitrary block program data> Protected User Data Protected user data. This is a data area in which the user may write any data up to 64 characters. The data can always be read, but you can only write data after un- protecting the data area. A typi...
Page 258 - RMC; Reset
9-128 Command Reference ∗ RMC PM6680B/81/85 8 ‘<Macro name>’ Delete one Macro This command removes an individual MACRo. Parameters: ‘<Macro name>’ is the name of the macro you want to delete. + <Macro name> is String data that must be surrounded by quotation marks. See also: * PMC ...
Page 259 - Save
Command Reference 9-129 *SAV PM6680B/81/85 _ <Decimal data> Save Saves the current settings of the instrument in an internal nonvolatile memory. Nineteen memory locations are available. Switching the power off and on does not change the settings stored in the registers.Note that memory positio...
Page 260 - Service Request Enable
9-130 Command Reference *SRE PM6680B/81/85 8 <Decimal data> Service Request Enable The Service Request Enable command sets the service request enable register bits. This enable register contains a mask value for the bits to be enabled in the status byte register. A bit that is set true in the ...
Page 261 - Status Byte Query; Trigger
Command Reference 9-131 *STB? PM6680B/81/85 Status Byte Query Reads out the value of the Status Byte. Bit 6 reports the Master Summary Status bit (MSS), not the Request Service (RQS). The MSS is set if the instrument has one or more reasons for requesting service. Returned Format: <Integer> = ...
Page 262 - Self Test; ror
9-132 Command Reference *TST? PM6680B/81/85 Self Test The self-test query causes an internal self-test and generates a response indicat- ing whether or not the device completed the self-test without any detected errors. Returned Format: <Integer> ¿ Where: <Integer> = a number indicating ...
Page 263 - Index
Page 269 - VII
Clearing queue · · · · · · · · · · · · · 9-118Command · · · · · · · · · · · · · · · · · · · 8-2Device specific, code list · · · · · · · 8-13Escape from condition· · · · · · · · · 3-19Execution · · · · · · · · · · · · · · · · · · · · 8-7In self test · · · · · · · · · · · · · · · · · 9-132Message avai...
Page 270 - VIII
Totalize X · · · · · · · · · · · · · · · · · · · 9-72 Gated Voltage Measurement · · · · · 9-97GET · · · · · · · · · · · · · 6-29,7-6,9-8,9-131Get Macro · · · · · · · · · · · · · · · · · · · 9-122GPIB Address · · · · · · · · · · · · · 1-4,9-108Group Execute Trigger · · · · · · · · · 9-131 H Header pa...
Page 271 - IX
Passed· · · · · · · · · · · · · · · · · · · · 9-100Set lower · · · · · · · · · · · · · · · · · · · 9-17Set upper · · · · · · · · · · · · · · · · · · · 9-18 Listener function · · · · · · · · · · · · · · · · 1-6Local · · · · · · · · · · · · · · · · · · · · · · · · · 1-5 Control · · · · · · · · · · · ·...
Page 273 - XI
Pmt · · · · · · · · · · · · · · · · · · · · · · 3-7,3-10PON-bit · · · · · · · · · · · · · · · · · 6-21,9-121Positive slope · · · · · · · · · · · · · · · · · 9-51Power On · · · · · · · · · · · · · · · 6-21,9-121 Status Clear · · · · · · · · · · · · · · · · 9-126 Preset · · · · · · · · · · · · · · · ·...
Page 274 - XII
S Sample Size for Average · · · · · · · · 9-91Sample Size for Statistics · · · · · · · · 9-14Save · · · · · · · · · · · · · · · · · · · · 2-5,9-129Scaling Factor Analog Output · · · · · · · · · · · 6-11,9-80 SCPI · · · · · · · · · · · · · · · · · · · · · · · · · 3-2 Compliance of instrument · · · · ...
Page 275 - XIII
Measurement stopped · · · · · · · 9-102Operation event · · · · · · · · · · · · · 9-103Overflow · · · · · · · · · · · · · · · · · · 9-104Preset · · · · · · · · · · · · · · · · · · · · 9-103Questionable Data/signal · · · · · 9-104Questionable Data/signal, Event · · · · · · · · · · · · · · · · · · · · ...
Page 276 - XIV
Start/stop · · · · · · · · · · · · · · · · · · · · 2-3X gated by Y · · · · · · · · · · · · · · · · 9-72X gated by Y, accumulated · · · · · 9-70X start/stop by Y · · · · · · · · · · · · · 9-72 Transition time · · · · · · · · · · · · · · · · 9-91Trigger · · · · · · · · · · · · · · · · · · · · · · · 6-...