All rights reserved. Reproduction, adaptation, or translation without prior written
permission is prohibited, except as allowed under the copyright laws.
Printed in Malaysia.
iiAgilent E4418B/E4419B Programming Guide
Legal Information
Legal Information
Notice
Information contained in this document is subject to change without notice. Agilent
Technologies makes no warranty of any kind with regard to this material, including,
but not limited to, the implied warranties of merchantability and fitness for a
particular purpose. Agilent Technologies shall not be liable for errors contained
herein or for incidental or consequential damages in connection with the furnishings,
performance, or use of this material. No part of this document may be photocopied,
reproduced, or translated to another language without the prior written consent of
Agilent Technologies.
Certification
Agilent Technologies certifies that this product met its published specifications at the
time of shipment from the factory. Agilent Technologies further certifies that its
calibration measurements are traceable to the United States National Institute of
Standards and Technology, to the extent allowed by the Institute’s calibration facility,
and to the calibration facilities of other International Standards Organization
members.
Warranty
This Agilent Technologies instrument product is warranted against defects in material
and workmanship for a period of 3 years from date of shipment. During the warranty
period, Agilent Technologies will at its option, either repair or replace products which
prove to be defective. For warranty service or repair, this product must be returned to
a service facility designated by Agilent Technologies. Buyer shall prepay shipping
charges to Agilent Technologies and Agilent Technologies shall pay shipping charges,
duties, and taxes for products returned to Agilent Technologies from another country.
Agilent Technologies warrants that its software and firmware designated by Agilent
Technologies for use with an instrument will execute its programming instructions
when properly installed on that instrument. Agilent Technologies does not warrant
that the operation of the instrument, or firmware will be uninterrupted or error free.
Agilent E4418B/E4419B Programming Guideiii
Legal Information
Limitation of Warranty
The foregoing warranty shall not apply to defects resulting from improper or
inadequate maintenance by Buyer, Buyer-supplied software or interfacing,
unauthorized modification or misuse, operation outside of the environmental
specifications for the product, or improper site preparation or maintenance. NO
OTHER WARRANTY IS EXPRESSED OR IMPLIED. AGILENT
TECHNOLOGIES SPECIFICALLY DISCLAIMS THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Exclusive Remedies
THE REMEDIES PROVIDED HEREIN ARE BUYER’S SOLE AND EXCLUSIVE
REMEDIES. AGILENT SHALL NOT BE LIABLE FOR ANY DIRECT,
INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
WHETHER BASED ON CONTRACT, TORT, OR ANY OTHER LEGAL THEORY.
ivAgilent E4418B/E4419B Programming Guide
Equipment Operation
Equipment Operation
Warnings and Cautions
This guide uses warnings and cautions to denote hazards.
WARNING A warning calls attention to a procedure, practice or the like, which, if
not correctly performed or adhered to, could result in injury or the loss
of life. Do not proceed beyond a warning until the indicated conditions
are fully understood and met.
Caution A caution calls attention to a procedure, practice or the like which, if not
correctly performed or adhered to, could result in damage to or the
destruction of part or all of the equipment. Do not proceed beyond a caution
until the indicated conditions are fully understood and met.
Personal Safety Considerations
WARNING This is a Safety Class I product (provided with a protective earthing
ground incorporated in the power cord). The mains plug shall only be
inserted in a socket outlet provided with a protective earth contact. Any
interruption of the protective conductor, inside or outside the
instrument, is likely to make the instrument dangerous. Intentional
interruption is prohibited.
If this instrument is not used as specified, the protection provided by the
equipment could be impaired. This instrument must be used in a normal
condition (in which all means of protection are intact) only.
No operator serviceable parts inside. Refer servicing to qualified
personnel. To prevent electrical shock, do not remove covers.
For continued protection against fire hazard, replace the line fuse(s)
only with fuses of the same type and rating (for example, normal blow,
time delay, etc.). The use of other fuses or material is prohibited.
Agilent E4418B/E4419B Programming Guidev
General Safety Considerations
ICES/NMB-001
ISM
GROUP 1
CLASS A
General Safety Considerations
WARNING Before this instrument is switched on, make sure it has been properly
grounded through the protective conductor of the ac power cable to a
socket outlet provided with protective earth contact.
Any interruption of the protective (grounding) conductor, inside or
outside the instrument, or disconnection of the protective earth terminal
can result in personal injury.
Caution Any adjustments or service procedures that require operation of the
instrument with protective covers removed should be performed only by
trained service personnel.
Markings
The CE mark shows that the product complies with all the
relevant European legal Directives (if accompanied by a
year, it signifies when the design was proven.
This ISM device complies with Canadian ICES-001.
Cet appareil ISM est conforme à la norme NMB-001 du
Canada.
This is the symbol of an Industrial Scientific and Medical
Group 1 Class A product.
The CSA mark is a registered trademark of the Canadian
Standards Association.
External Protective Earth Terminal.
While this is a Class I product, provided with a protective
earthing conductor in a power cord, an external protective
earthing terminal has also been provided. This terminal is for
use where the earthing cannot be assured. At least an 18AWG
earthing conductor should be used in such an instance, to
ground the instrument to an assured earth terminal.
viAgilent E4418B/E4419B Programming Guide
General Safety Considerations
IEC 1010-1 Compliance
This instrument has been designed and tested in accordance with IEC Publication
1010-1 +A1:1992 Safety Requirements for Electrical Equipment for Measurement,
Control and Laboratory Use and has been supplied in a safe condition. The instruction
documentation contains information and warnings which must be followed by the
user to ensure safe operation and to maintain the instrument in a safe condition.
Statement of Compliance
This product has been designed and tested for compliance with IEC 60529 (1989)
Degrees of Protection Provided by Enclosures (IP Code). Level IPx4 is attained if,
and only if, the carry case(Agilent part number 34141A) is fitted.
User Environment
This product is designed for use in a sheltered environment (avoiding extreme
weather conditions) in accordance with Pollution Degree 3 defined in IEC 60664-1,
with the carry case (Agilent part number 34141A) fitted over the instrument.
The product is suitable for indoor use only, when this carry case is not fitted.
Installation Instructions
To avoid unnecessary over-temperature conditions, while this carry case is fitted do
not apply an ac mains supply voltage, only operate your power meter from the battery
pack.
Agilent E4418B/E4419B Programming Guidevii
About this Guide
About this Guide
Chapter 1: Power Meter Remote Operation
This chapter describes the parameters which configure the power meter and helps you
determine settings to optimize performance.
Chapter 2: MEASurement Instructions
This chapter explains how to use the MEASure group of instructions to acquire data
using a set of high level instructions.
Chapter 3: CALCulate Subsystem
This chapter explains how to use the CALCulate subsystem to perform post
acquisition data processing.
Chapter 4: CALibration Subsystem
This chapter explains how to use the CALibration command subsystem to zero
and calibrate the power meter.
Chapter 5: DISPlay Subsystem
This chapter explains how the DISPlay subsystem is used to control the the
selection and presentation of the windows used on the power meter’s display.
Chapter 6: FORMat Subsystem
This chapter explains how the FORMat subsystem is used to set a data format for
transferring numeric information.
Chapter 7: MEMory Subsystem
This chapter explains how the MEMory command subsystem is used to create, edit
and review sensor calibration tables.
Chapter 8: OUTput Subsystem
This chapter explains how the OUTput command subsystem is used to switch the
POWER REF output on and off.
viiiAgilent E4418B/E4419B Programming Guide
About this Guide
Chapter 9: SENSe Subsystem
This chapter explains how the SENSe command subsystem directly affects device
specific settings used to make measurements.
Chapter 10: STATus Subsystem
This chapter explains how the STATus command subsystem enables you to examine
the status of the power meter by monitoring the “Device Status Register”, “Operation
Status Register” and the “Questionable Status Register”.
Chapter 11: SYSTem Subsystem
This chapter explains how to use the SYSTem command subsystem to return error
numbers and messages from the power meter, preset the power meter, set the GPIB
address, set the command language and query the SCPI version.
Chapter 12: TRIGger Subsystem
This chapter explains how the TRIGger command subsystem is used synchronize
device actions with events.
Chapter 13: UNIT Subsystem
This chapter explains how to use the UNIT command subsystem to set the power
meter measurement units to Watts and % (linear) , or dBm and dB (logarithmic).
Chapter 14: SERVice Subsystem
This chapter explains how to use the SERVice command subsystem to obtain and set
information useful for servicing the power meter.
Chapter 15: IEEE488.2 Command Reference
This chapter contains information about the IEEE488.2 Common Commands that the
power meter supports.
Agilent E4418B/E4419B Programming Guideix
List of Related Publications
List of Related Publications
The Agilent E4418B User’s Guide and the Agilent E4419B User’s Guide are available
in the following languages:
•English Language User’s Guide - Standard
•German Language User’s Guide - Option ABD
•Spanish Language User’s Guide - Option ABE
•French Language User’s Guide - Option ABF
•Italian Language User’s Guide - Option ABZ
•Japanese Language User’s Guide - Option ABJ
Agilent E4418B/E4419B Service Guide is available by ordering Option 915.
Agilent E4418B/E4419B CLIPs (Component Location and Information Pack) is
available by ordering E4418-90031.
Useful information on SCPI (Standard Commands for Programmable Instruments)
can be found in:
•A Beginner’s Guide to SCPI, which is available by ordering Agilent Part
Number 5010-7166.
•The SCPI reference manuals which are available from:
SCPI Consortium,
8380 Hercules Drive, Suite P3,
La Mesa, CA 91942, USA.
Telephone: 619-697-4301
Fax: 619-697-5955
This chapter describes the parameters which configure the power meter and help you
determine settings to optimize performance. It contains the following sections:
“Configuring the Remote Interface”, on page 1-3.
“Zeroing and Calibrating the Power Meter”, on page 1-11.
“Making Measurements”, on page 1-14.
“Using Sensor Calibration Tables”, on page 1-30.
“Using Frequency Dependent Offset Tables”, on page 1-40
“Setting the Range, Resolution and Averaging”, on page 1-47.
“Setting Offsets”, on page 1-51.
“Setting Measurement Limits”, on page 1-53.
“Measuring Pulsed Signals”, on page 1-58.
“Triggering the Power Meter”, on page 1-61.
“Getting the Best Speed Performance”, on page 1-66.
“How Measurements are Calculated”, on page 1-70.
“Status Reporting”, on page 1-71.
“Saving and Recalling Power Meter Configurations”, on page 1-91.
“Using Device Clear to Halt Measurements”, on page 1-92.
“An Introduction to the SCPI Language”, on page 1-93.
“Quick Reference”, on page 1-102.
“SCPI Compliance Information”, on page 1-111.
1-2Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Configuring the Remote Interface
Configuring the Remote Interface
This section describes how to configure the GP-IB, RS232 and RS422 remote
interfaces.
Interface Selection
You can choose to control the power meter remotely using either the GP-IB, RS232
or RS422 standard interfaces.
For information on selecting the remote interface manually from the front panel, refer
to the Agilent Technologies E4418B/E4419B User’s Guides.
To select the interface remotely use the :
•SYSTem:RINTerface command
To query the current remote interface selection use the:
•SYSTem:RINTerface? command
GP-IB Address
Each device on the GP-IB (IEEE-488) interface must have a unique address. You can
set the power meter’s address to any value between 0 and 30. The address is set to 13
when the power meter is shipped from the factory.
The address is stored in non-volatile memory, and does not change when the power
meter is switched off, or after a remote interface reset.
Your GP-IB bus controller has its own address. Avoid using the bus controller’s
address for any instrument on the interface bus. Agilent controllers generally use
address 21.
For information on setting the GP-IB address manually from the front panel, refer to
the Agilent Technologies E4418B/E4419B User’s Guides.
To set the GP-IB address from the remote interface use the:
•SYSTem:COMMunicate:GPIB:ADDRess command.
To query the GP-IB address from the remote interface use the;
•SYSTem:COMMunicate:GPIB:ADDRess? query.
Agilent E4418B/E4419B Programming Guide1-3
Power Meter Remote Operation
Configuring the Remote Interface
RS232/RS422 Configuration
The RS232/RS422 serial port on the rear panel is a nine pin D-type connector
configured as a DTE (Data Terminal Equipment). For pin-out information and cable
length restrictions refer to the Agilent Technologies E4418A/E4419B User’s Guides.
You can set the baud rate, word length, parity, number of stop bits, software and
hardware pacing, either remotely or from the front panel. For front panel operation
refer to the Agilent Technologies E4418A/E4419B User’s Guides. For remote
operation use the following commands:
You can select one of two languages to program the power meter from the remote
interface. The language is SCPI when the power meter is shipped from the factory.
The other language depends on the model number of your power meter:
•For E4418B the language is 437B programming language.
•For E4419B the language is 438A programming language.
The language selection is stored in non-volatile memory, and does not change when
power has been off, or after either a remote interface reset, or a front panel preset.
For information on selecting the interface language manually from the front panel,
refer to the Agilent Technologies E4418B/E4419B User’s Guides.
To select the interface language from the remote interface use the:
•SYSTem:LANGuage command.
To query the interface language from the remote interface use the:
1-4Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Configuring the Remote Interface
•SYSTem:LANGuage? query.
Table 1-1 details all the HP 437B commands that the Agilent E4418B supports and
their function, and Table 1-2 details all the HP 438A commands that the Agilent
E4419B supports and their function. For a detailed description of these commands
refer to the HP
HP
438A Operating and Service Manual (E4419B users). In addition, the
437B Power Meter Operating Manual (E4418B users), or the
SYST:LANG SCPI command allows you to return to using the SCPI programming
language when in the HP
437B or HP 438A mode. Note that the 437B commands
only operate on the upper window of the E4418B.
437B/438A Error Codes
If an overrun error, parity error, or framing error occurs, then the status message will
return the following additional error codes to those outlined in the 437B and 438A
Operating Manuals.:
Error CodeDescription
94Receiver overrun error
95Parity error
96Framing error
Agilent E4418B/E4419B Programming Guide1-5
Power Meter Remote Operation
Configuring the Remote Interface
Table 1-1: HP 437B Command Summary
CommandDescription
CL
*CLS
CS
CT
1
DA
DC0
DC1
Calibrate
Clear all status registers
Clear the status byte
Clear sensor table
All display segments on
Duty Cycle off
Duty Cycle on
DD Display disable
DE Display enable
DF
1
DN
1
DU
DY
EN
ERR?
*ESR?
*ESE
*ESE?
ET
EX
FA
FH
FM
FR
GT0
GT1
GT2
GZ
HZ
ID
IDN?
KB
Display enable
Down arrow key
Display user message
Enter duty cycle
Enter
Device error query
Event status register query
Set event status register mask
Event status register mask query
Edit sensor table
Exit
Automatic filter selection
Filter hold
Manual filter selection
Enter measurement frequency
Ignore GET bus command
Trigger immediate response to GET
Trigger with delay response to GET
Gigahertz
Hertz
Identification query
Identification query
Enter measurement cal factor
1-6Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Configuring the Remote Interface
CommandDescription
KZ
LG
LH
LL
LM0
LM1
LN
LP2
LT
MZ
OC0
OC1
OD
OF0
OF1
OS
PCT
PR
RA
RC
RE
RF
RH
RL0
RL1
RL2
RM
*RST
RT
RV
SE
SM
SN
1
1
Kilohertz
Log units (dBm/dB)
Enter high (upper) limit
Enter low (lower) limit
Disable limits checking
Enable limits checking
Linear units (watts/%)
Learn mode
Left arrow key
Megahertz
Reference oscillator off
Reference oscillator on
Output display
Offset off
Offset on
Enter offset value
Percent
Preset
Auto range
Recall instrument configuration
Set display resolution
Enter sensor table reference calibration factor
Range hold
Exit from relative mode
Enter relative mode (take new reference)
Enter relative mode (use last reference)
Set measurement range
Reset
Right arrow key
Read service request mask
Select sensor calibration table
Status message
Enter sensor identification/serial number
Agilent E4418B/E4419B Programming Guide1-7
Power Meter Remote Operation
Configuring the Remote Interface
CommandDescription
1
SP
SPD 20|40
2
*SRE
*SRE?
ST
*STB?
SYST:LANG SCPI
4
TK?
TR0
TR1
TR2
TR3
*TST?5
1
UP
ZE
@1
@2
%
Special
20 or 40 readings/sec
Set the service request mask
Service request mask query
Store (save) power meter configuration
Read status byte
3
Selects SCPI language
Last measurement result transmitted
Trigger hold
Trigger immediate
Trigger with delay
Trigger free run
Self test query
Up arrow key
Zero
Prefix for status mask
Learn mode prefix
Percent
1. This command is accepted but has no active function.
2. This command is not an original HP 437B command. However, it can be used to set the
measurement speed to 20 or 40 readings/sec in HP
details.
3. This command is not an original HP 437B command. However, it can be used to terminate
437B language and select the SCPI language. Note that it is recommended that the
the HP
instrument is Preset following a language switch.
4. This command is not an original HP 437B command. However, it can be used to allow the
last measurement result to be transmitted. This is equivalent to sending the power meter talk
address in GP-IB mode to fetch the last reading (provided no query is pending).
5. Always returns 0000 in HP 437B language.
437B mode. See SENSE:SPEED for more
1-8Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Configuring the Remote Interface
Table 1-2: HP 438A Command Summary
CommandDescription
AD
AE
AP
AR
BD
BE
BP
BR
CL
CS
DA
DD
DE
DO
EN
FA
FH
FM
FR
GT0
GT1
GT2
KB
LG
LH
LL
LM0
LM1
LN
LP1
LP2
OC0
1
Sensor A minus Sensor B measurement
SET A
Sensor A measurement
A/B ratio measurement
Sensor B minus Sensor A measurement
SET B
Sensor B measurement
B/A ratio measurement
Calibrate
Clear the status byte
All display segments on
Display disable
Display enable
Display offset
Enter
Automatic filter selection
Filter hold
Manual filter selection
Enter measurement frequency
Ignore GET bus command
Trigger immediate response to GET
Trigger with delay response to GET
Enter measurement cal factor
Log units (dBm/dB)
Enter high (upper) limit
Enter low (lower) limit
Disable limits checking
Enable limits checking
Linear units (watts/%)
Learn mode #1
Learn mode #2
Reference oscillator off
Agilent E4418B/E4419B Programming Guide1-9
Power Meter Remote Operation
Configuring the Remote Interface
CommandDescription
OC1
OS
PR
RA
RC
RH
RL0
RL1
RM
RV
SM
SPD 20|40
2
ST
SYST:LANG SCPI
4
TK?
TR0
TR1
TR2
TR3
ZE
@1
?ID
Reference oscillator on
Enter offset value
Preset
Auto range
Recall instrument configuration
Range hold
Exit from relative mode
Enter relative mode (take new reference)
Set measurement range
Read service request mask
Status message
20 or 40 readings/sec
Store (save) power meter configuration
3
Selects SCPI language
Last measurement result transmitted
Trigger hold
Trigger immediate
Trigger with delay
Trigger free run
Zero
Prefix for status mask
Identification query
1. This command is accepted but has no active function.
2. This command is not an original HP 438A command. However, it can be used to set the
measurement speed to 20 or 40 readings/sec in HP
more details.
3. This command is not an original HP 438A command. However, it can be used to terminate
the HP
438A language and select the SCPI language. Note that it is recommended that the
instrument is Preset following a language switch.
4. This command is not an original HP 437B command. However, it can be used to allow the
last measurement result to be transmitted. This is equivalent to sending the power meter talk
address in GP-IB mode to fetch the last reading (provided no query is pending).
438A mode. See SENSE:SPEED for
1-10Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Zeroing and Calibrating the Power Meter
Zeroing and Calibrating the Power Meter
This section describes how to zero and calibrate the power meter.
The calibration and zeroing commands are overlapped commands refer to “Using the
Operation Complete Commands”, on page 1-89 to determine when the commands are
complete.
Zeroing
Zeroing adjusts the power meter’s specified channel for a zero power reading with no
power applied to the power sensor.
The command used to zero the power meter is:
CALibration[1|2]:ZERO:AUTO ONCE
The command assumes that there is no power being applied to the sensor. It turns the
power reference oscillator off, then after zeroing, returns the power reference
oscillator to the same state it was in prior to the command being received. Zeroing
takes approximately 10 seconds depending on the type of power sensor being used.
When to Zero?
Zeroing of the power meter is recommended:
•when a 50C change in temperature occurs.
•when you change the power sensor.
•every 24 hours.
•prior to measuring low level signals. For example, 10 dB above the lowest
specified power for your power sensor.
Calibration
Calibration sets the gain of the power meter using a 50 MHz 1 mW calibrator as a
traceable power reference. The power meter’s POWER REF output or a suitable
external reference is used as the signal source for calibration. An essential part of
calibrating is setting the correct reference calibration factor for the power sensor you
are using. The Agilent
with Option CFT require you to set the reference calibration factor. The
Agilent
E-Series power sensors and N8480 Series power sensors (excluding Option
CFT) set the reference calibration factor automatically. Offset, relative and duty cycle
settings are ignored during calibration.
Agilent E4418B/E4419B Programming Guide1-11
8480 Series power sensors and N8480 Series power sensors
Power Meter Remote Operation
Zeroing and Calibrating the Power Meter
The command used to calibrate the power meter is:
CALibration[1|2]:AUTO ONCE
The command assumes that the power sensor is connected to a 1 mW reference
signal. It turns the power reference oscillator on, then after calibrating, returns the
power reference oscillator to the same state it was in prior to the command being
received. It is recommended that you zero the power meter before calibrating.
Calibration Sequence
This feature allows you to perform a complete calibration sequence with a single
query. The query is:
CALibration[1|2][:ALL]?
The query assumes that the power sensor is connected to the power reference
oscillator. It turns the power reference oscillator on, then after calibrating, returns the
power reference oscillator to the same state it was in prior to the command being
received. The calibration sequence consists of:
•Zeroing the power meter (CALibration[1|2]:ZERO:AUTO ONCE),
and
•calibrating the power meter (CALibration[1|2]:AUTO ONCE).
The query enters a number into the output buffer when the sequence is complete. If
the result is 0 the sequence was successful. If the result is 1 the sequence failed. Refer
to
“CALibration[1|2][:ALL]?”, on page 4-5 for further information.
Note The CALibration[1|2][:ALL] command is identical to the
CALibration[1|2][:ALL]? query except that no number is returned
to indicate the outcome of the sequence. You can examine the Questionable
Status Register or the error queue to discover if the sequence has passed or
failed. Refer to “Status Reporting”, on page 1-71 for further information.
Setting the Reference Calibration Factor
All the Agilent 8480 Series power sensors and N8480 Series power sensors with
Option CFT require you to set the reference calibration factor. The reference
calibration factor can be set by:
•entering the value into the power meter using the
CALibrate[1|2]:RCFactor command.
1-12Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Zeroing and Calibrating the Power Meter
•selecting and enabling the sensor calibration table. The reference calibration
factor is automatically set by the power meter using the reference calibration
factor stored in the sensor calibration table. See
“Using Sensor Calibration
Tables”, on page 1-30 for further information.
Examples
a)To enter a reference calibration factor of 98.7% for channel A, you should
use the following command :
CAL:RCF 98.7PCT
This overides any RCF previously set by selecting a sensor calibration table.
b)To automatically set the reference calibration factor, you have to use a sensor
calibration table as described in
“Using Sensor Calibration Tables”, on
page 1-30. To select and enable the table use the following commands:
[SENSe[1]]|SENSe2:CORRection:CSET1:SELect <string>
[SENSe[1]]|SENSe2:CORRection:CSET1:STATe ON
When the sensor calibration table is selected the RCF from the table overides
any value previously set.
Querying the Reference Calibration Factor
To determine the current reference calibration factor, use the following command:
CALibration[1|2]:RCFactor?
Agilent E4418B/E4419B Programming Guide1-13
Power Meter Remote Operation
Making Measurements
Making Measurements
The MEASure? and CONFigure commands provide the most straight-forward
method to program the power meter for measurements. You can select the
measurement’s expected power level, resolution and with the Agilent
measurement type (that is single channel, difference or ratio measurements) all in one
command. The power meter automatically presets other measurement parameters to
default values as shown in
Table 1-3: MEASure? and CONFigure Preset States
CommandMEASure? and CONFigure Setting
Trigger source (TRIGger:SOURce)Immediate
Table 1-3.
E4419B the
Filter
(SENSe:AVERage:COUNt:AUTO)
Filter state
(SENSe:AVERage:STATe)
Trigger cycle
(INITiate:CONTinuous)
Trigger Delay
(TRIGger:DELay:AUTO)
An alternative method to program the power meter is to use the lower level
commands. The advantage of using the lower level commands over the CONFigure
command is that they give you more precise control of the power meter. As shown in
Table 1-3 the CONFigure command presets various states in the power meter. It
may be likely that you do not want to preset these states. Refer to “Using the Lower
Level Commands”, on page 1-29 for further information.
On
On
Off
On
1-14Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
MEAS1?
specifies window
MEAS2?
Making Measurements
Using MEASure?
The simplest way to program the power meter for measurements is by using the
MEASure? query. However, this command does not offer much flexibility. When
you execute the command, the power meter selects the best settings for the requested
configuration and immediately performs the measurement. You cannot change any
settings (other than the expected power value, resolution and with the
Agilent
E4419B the measurement type) before the measurement is taken. This means
you cannot fine tune the measurement, for example, you cannot change the filter
length. To make more flexible and accurate measurements use the CONFIGure
command. The measurement results are sent to the output buffer. MEASure? is a
compound command which is equivalent to an ABORT, followed by a CONFigure,
followed by a READ?.
MEASure? Examples
The following commands show a few examples of how to use the MEASure? query
to make a measurement. It is advisable to read through these examples in order as
they become increasingly more detailed. These examples configure the power meter
for a measurement (as described in each individual example), automatically place the
power meter in the “wait-for-trigger” state, internally trigger the power meter to take
one reading, and then sends the reading to the output buffer.
These examples give an overview of the MEASure? query. For further information
on the MEASure? commands refer to the section
starting on page 2-49 .
Example 1 - The Simplest Method
The following commands show the simplest method of making single channel (for
example A or B) measurements. Using MEAS1? will result in an upper window
measurement, and MEAS2? in a lower window measurement. The channel associated
with the window can be set using the source list parameter (see example 2), or will
default as in this example (
Agilent E4418B/E4419B Programming Guide1-15
See “Agilent E4419B only” on page 18.).
“MEASure[1|2] Commands”
Power Meter Remote Operation
MEAS1? DEF,DEF,(@1)
specifies windowspecifies channel
MEAS2? -50,DEF,(@2)
specifies windowspecifies channel
specifies expected power value
Making Measurements
Example 2 - Specifying the Source List Parameter
The MEASure command has three optional parameters, an expected power value, a
resolution and a source list. These parameters must be entered in the specified order.
If parameters are omitted, they will default from the right. The parameter DEFault
is used as a place holder.
The following example uses the source list parameter to specify the measurement
channel as channel A. The expected power and resolution parameters are defaulted,
leaving them at their current settings. The measurement is carried out on the upper
window.
The operation of the MEAS1? command when the source list parameter is defaulted is
described in the note on
page 1-18.
Note For the Agilent E4418B it is not necessary to specify a channel as only one
channel is available.
Example 3 - Specifying the Expected Power Parameter
The previous example details the three optional parameters which can be used with
the MEASure? command. The first optional parameter is used to enter an expected
power value. Entering this parameter is only relevant if you are using an
Agilent
E-Series power sensors and N8480 Series power sensors (excluding Option
CFT). The value entered determines which of the power sensor’s two ranges is used
for the measurement. If the current setting of the power sensor’s range is no longer
valid for the new measurement, specifying the expected power value decreases the
time taken to obtain a result.
The following example uses the expected value parameter to specify a value of -50
dBm. This selects the power sensor’s lower range (refer to
details of the range breaks). The resolution parameter is defaulted, leaving it at its
current setting. The source list parameter specifies a channel B measurement. The
measurement is displayed on the lower window.
1-16Agilent E4418B/E4419B Programming Guide
“Range”, on page 1-47 for
Power Meter Remote Operation
MEAS1? DEF,3
specifies window
specifies resolution setting
MEAS2:POW:AC:DIFF? DEF,DEF,(@2),(@1)
specifies window
specifies between which channels
the difference is calculated
Channel B - A
Making Measurements
Example 4 - Specifying the Resolution Parameter
The previous examples detailed the use of the expected value and source list
parameters. The resolution parameter is used to set the resolution of the specified
window. This parameter does not affect the resolution of the GP-IB data, however it
does affect the auto averaging setting (refer to
Figure 1-3 on page 1-49).
Since the filter length used for a channel with auto-averaging enabled is dependent on
the window resolution setting, a conflict arises when a given channel is set up in both
windows and the resolution settings are different. In this case, the higher resolution
setting is used to determine the filter length.
The following example uses the resolution parameter to specify a resolution setting of
3. This setting represents 3 significant digits if the measurement suffix is W or %, and
0.01 dB if the suffix is dB or dBm (for further details on the resolution parameter refer
to the commands in
Chapter 2, “MEASurement Instructions”.). Also, in this example
the expected power and source list parameters are defaulted. The expected power
value will be left unchanged at its current setting. The source list parameter will be
defaulted as described in the note on
page 1-18. Note that as the source list parameter
is the last specified parameter you do not have to specify DEF. The measurement is
carried out on the upper window.
Example 5 - Making a Difference Measurement
The following command can only be carried out on the Agilent E4419B. It queries the
lower window to make a difference measurement of channel
B - channel A . The
expected power and resolution parameters are defaulted, leaving them at their current
settings.
Agilent E4418B/E4419B Programming Guide1-17
Power Meter Remote Operation
MEAS1:POW:AC:RAT? DEF,DEF,(@1),(@2)
specifies window
specifies the relationship of the
channels in the ratio
Channel A / B
Making Measurements
Example 6 - Making a Ratio Measurement
The following command can only be carried out on the Agilent E4419B. It queries the
upper window to make a ratio measurement of channel
resolution parameters are defaulted, leaving them at their current settings.
Note Agilent E4419B only
The operation of the MEASure? command when the source list parameter is
defaulted depends on the current setup of the window concerned (for example, A,
B, A/B, A-B etc.) and on the particular command used (for example,
MEAS[:POW][:AC]? and MEAS:POW:AC:RAT? etc).
A/B . The expected power and
MEAS1[:POW][AC]?Upper Window:AA
MEAS2[:POW][AC]?Lower Window:AA
MEAS1:POW:AC:RATUpper Window:A/BA/B
MEAS2:POW:AC:RATLower Window:A/B
This means that when the source list parameter is defaulted, there are a number of
possibilities.
CommandCurrent Window SetupMeasurement
BB
Any OtherA
BB
Any OtherB
B/AB/A
Any OtherA/B
1-18Agilent E4418B/E4419B Programming Guide
A/B
Power Meter Remote Operation
Making Measurements
CommandCurrent Window SetupMeasurement
B/A
Any Other
MEAS1:POW:AC:DIFF?Upper Window:A-B
B-A
Any Other
MEAS2:POW:AC:DIFF?Lower Window:A-B
B-A
Any Other
B/A
A/B
A-B
B-A
A-B
A-B
B-A
A-B
Agilent E4418B/E4419B Programming Guide1-19
Power Meter Remote Operation
Making Measurements
Using the CONFigure Command
When you execute this command, the power meter presets the best settings for the
requested configuration (like the MEASure? query). However, the measurement is
not automatically started and you can change measurement parameters before making
measurements. This allows you to incrementally change the power meter’s
configuration from the preset conditions. The power meter offers a variety of
low-level commands in the SENSe, CALCulate, and TRIGger subsystems. For
example, if you want to change the averaging use the
[SENSe[1]]|SENSe2:AVERage:COUNt command.
Use the INITiate or READ? query to initiate the measurement.
Using READ?
CONFigure does not take the measurement. One method of obtaining a result is to
use the READ? query. The READ? query takes the measurement using the parameters
set by the CONFigure command then sends the reading to the output buffer. Using
the READ? query will obtain new data.
Using INITiate and FETCh?
CONFigure does not take the measurement. One method of obtaining the result is to
use the INITiate and FETCh? commands. The INITiate command causes the
measurement to be taken. The FETCh? query retrieves a reading when the
measurement is complete, and sends the reading to the output buffer. FETCh? can be
used to display the measurement results in a number of different formats (for
example, A/B and B/A) without taking fresh data for each measurement.
CONFigure Examples
The following program segments show how to use the READ? command and the
INITiate and FETCh? commands with CONFigure to make measurements.
It is advisable to read through these examples in order as they become increasingly
more detailed.
These examples give an overview of the CONFigure command. For further
information on the CONFigure commands refer to
Instructions”.
Chapter 2, “MEASurement
1-20Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Making Measurements
Example 1 - The Simplest Method
The following program segments show the simplest method of querying the upper
and lower window’s measurement results respectively.
Using READ?
*RSTReset instrument
CONF1Configure upper window - defaults to a channel A
measurement
READ1?Take upper window (channel A) measurement
*RSTReset instrument
CONF2Configure the lower window - defaults to channel A
(Agilent E4418B), Channel B (Agilent E4419B) measurement
READ2?Take lower window measurement (channel A on Agilent E4418B,
B on Agilent
Using INITiate and FETCh?
*RSTReset instrument
CONF1Configure upper window - defaults to a channel A
measurement
INIT1Causes channel A to make a measurement
FETC1?Retrieves the upper window’s measurement
For the Agilent E4418B only:
*RSTReset instrument
CONF2Configure lower window - Agilent E4418B defaults to
INIT1?Causes channel A to make measurement
FETC2?Retrieves the lower window’s measurement
E4419B)
channel A
For the Agilent E4419B only:
*RSTReset instrument
CONF2Configure lower window
INIT2?Causes channel B to make measurement
FETC2?Retrieves the lower window’s measurement
Agilent E4418B/E4419B Programming Guide1-21
Power Meter Remote Operation
Making Measurements
Example 2 - Specifying the Source List Parameter
The CONFigure and READ? commands have three optional parameters, an
expected power value, a resolution and a source list. These parameters must be
entered in the specified order. If parameters are omitted, they will default from the
right. The parameter DEFault is used as a place holder.
The following examples use the source list parameter to specify the measurement
channel as channel A. The expected power and resolution parameters are defaulted,
leaving them at their current settings. The measurement is carried out on the upper
window.
Although the READ? and FETCh? queries have three optional parameters it is not
necessary to define them as shown in these examples. If they are defined they must be
identical to those defined in the CONFigure command otherwise an error occurs.
Note For the Agilent E4418B it is not necessary to specify a channel as only one
channel is available.
Using READ?
ABOR1Aborts channel A
CONF1 DEF,DEF,(@1)Configures the upper window to make a
channel A measurement using the
current expected power and resolution
settings.
READ1?Takes the upper window’s
measurement.
Using INITiate and FETCh?
ABOR1Aborts channel A
CONF1 DEF,DEF,(@1)Configures the upper window to make a
channel A measurement using the
current expected power and resolution
settings.
INIT1Causes channel A to make a
measurement.
FETC1?Retrieves the upper window’s
measurement.
1-22Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Making Measurements
Example 3 - Specifying the Expected Power Parameter
The previous example details the three optional parameters which can be used with
the CONFigure and READ? commands. The first optional parameter is used to enter
an expected power value. Entering this parameter is only relevant if you are using an
Agilent
E-Series power sensors and N8480 Series power sensors (excluding Option
CFT). The value entered determines which of the power sensor’s two ranges is used
for the measurement. If the current setting of the power sensor’s range is no longer
valid for the new measurement, specifying the expected power value decreases the
time taken to obtain a result.
The following example uses the expected value parameter to specify a value of -50
dBm. This selects the power meter’s lower range (refer to
“Range”, on page 1-47 for
details of the range breaks). The resolution parameter is defaulted, leaving it at its
current setting. The source list parameter specifies a channel B measurement. The
measurement is carried out on the upper window.
Using READ?
ABOR2Aborts channel B
CONF1 -50,DEF,(@2)Configures the upper window to make a
channel B measurement using an
expected power of -50
dBm and the
current resolution setting.
READ1?Takes the upper window’s
measurement.
Some fine tuning of measurements can be carried out using the CONFigure and
READ? commands. For example, in the above program segment some fine tuning can
be carried out by setting the filter length to 1024 and the trigger delay off.
ABOR2
CONF1 -50,DEF,(@2)
SENS2:AVER:COUN 1024
TRIG2:DEL:AUTO OFF
READ1?
Using INITiate and FETCh?
ABOR2Aborts channel B
Agilent E4418B/E4419B Programming Guide1-23
Power Meter Remote Operation
Making Measurements
CONF1 -50,DEF,(@2)Configures the upperwindow to make a
channel B measurement using an
expected power of -50
dBm and the
current resolution setting.
INIT2Causes channel B to make a
measurement.
FETC1?Retrieves the upper window’s
measurement.
Some fine tuning of measurements can be carried out using the CONFigure
command and INITiate and FETCh? commands. For example, in the above
program segment some fine tuning can be carried out by setting the filter length to
1024 and the trigger delay off.
ABOR2
CONF1 -50,DEF,(@2)
SENS2:AVER:COUN 1024
TRIG2:DEL:AUTO OFF
INIT2
FETC1?
1-24Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Making Measurements
Example 4 - Specifying the Resolution Parameter
The previous examples detailed the use of the expected value and source list
parameters. The resolution parameter is used to set the resolution of the specified
window. This parameter does not affect the resolution of the GP-IB data, however it
does affect the auto averaging setting (refer to
Figure 1-3 on page 1-49).
Since the filter length used for a channel with auto-averaging enabled is dependent on
the window resolution setting, a conflict arises when a given channel is set up in both
windows and the resolution settings are different. In this case, the higher resolution
setting is used to determine the filter length.
The following example uses the resolution parameter to specify a resolution setting of
3. This setting represents 3 significant digits if the measurement suffix is W or %, and
0.01 dB if the suffix is dB or dBm (for further details on the resolution parameter refer
to the commands in
Chapter 2, “MEASurement Instructions”). Also, in this example
the expected power and source list parameters are defaulted. The expected power
value will be left unchanged at its current setting. The source list parameter will be
defaulted as described in the note on
page 1-18. Note that as the source list parameter
is the last specified parameter you do not have to specify DEF.
Using READ?
ABOR1Aborts channel A.
CONF1 DEF,3Configures the upper window to make a measurement using
the current setting of the expected power and source list and
a resolution setting of 3.
READ1?Takes the upper window’s measurement. This will be a
channel A or B measurement depending on current window
setup
Some fine tuning of the above program segment can be carried out for example, by
setting the trigger delay off. The following program segment assumes that channel A
is currently being measured on the upper window.
ABOR1
CONF1 DEF,3
TRIG1:DEL:AUTO OFF
READ1?
Using INITiate and FETCh?
Agilent E4418B/E4419B Programming Guide1-25
Power Meter Remote Operation
Making Measurements
The following program segment assumes that channel A is currently being measured
on the upper window.
ABOR1Aborts channel A.
CONF1 DEF,3Configures the upper window to make a
measurement using the current setting
of the expected power and source list
and a resolution setting of 3.
INIT1Causes channel A to make a
measurement.
FETC1?Retrieves the upper window’s
measurement.
Some fine tuning of the above program segment can be carried out for example, by
setting the trigger delay off.
ABOR1
CONF1 DEF,3
TRIG1:DEL:AUTO OFF
INIT1:IMM
FETC1?
1-26Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Making Measurements
Example 5 - Making a Difference Measurement
The following program segment can be carried out on the Agilent E4419B. It queries
the lower window to make a difference measurement of channel
A - channel B. The
expected power level and resolution parameters are defaulted, leaving them at their
current settings. Some fine tuning of the measurement is carried out by setting the
averaging, and the trigger delay to off.
Using READ?
ABOR1
ABOR2
CONF2:POW:AC:DIFF DEF,DEF,(@1),(@2)
SENS1:AVER:COUN 1024
SENS2:AVER:COUN 1024
TRIG1:DEL:AUTO OFF
TRIG2:DEL:AUTO OFF
READ2:POW:AC:DIFF?
READ2:POW:AC:DIFF? DEF,DEF,(@2),(@1)(A second
READ?
query is sent
to make a channel B - channel A measurement using fresh measurement data.)
Using INITiate and FETCh?
ABOR1
ABOR2
CONF2:POW:AC:DIFF DEF,DEF,(@1),(@2)
SENS1:AVER:COUN 1024
SENS2:AVER:COUN 1024
TRIG1:DEL:AUTO OFF
TRIG2:DEL:AUTO OFF
INIT1:IMM
INIT2:IMM
FETC2:POW:AC:DIFF?
FETC2:POW:AC:DIFF? DEF,DEF,(@2),(@1) (A second FETCh? query is
sent to make a channel B - channel A measurement using the current measurement
data.)
Agilent E4418B/E4419B Programming Guide1-27
Power Meter Remote Operation
Making Measurements
Example 6 - Making a Ratio Measurement
The following program segment can be carried out on the Agilent E4419B. It queries
the lower window to make a ratio measurement of channel A/B. The expected power
level and resolution parameters are defaulted, leaving them at their current settings.
Some fine tuning of the measurement is carried out by setting the averaging.
Using READ?
ABOR1
ABOR2
CONF2:POW:AC:RAT DEF,DEF,(@1),(@2)
SENS1:AVER:COUN 512
SENS2:AVER:COUN 256
READ2:POW:AC:RAT?
READ2:POW:AC:RAT? DEF,DEF,(@2),(@1) (A second
READ?
query is sent
to make a channel B - channel A ratio measurement using fresh measurement data.)
Using INITiate and FETCh?
ABOR1
ABOR2
CONF2:POW:AC:RAT DEF,DEF,(@1),(@2)
SENS1:AVER:COUN 512
SENS2:AVER:COUN 256
INIT1:IMM
INIT2:IMM
FETC2:POW:AC:RAT?
FETC2:POW:AC:RAT? DEF,DEF,(@2),(@1) (A second FETCh? query is sent
to make a channel B - channel A measurement using the current measurement data.)
1-28Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Making Measurements
Using the Lower Level Commands
An alternative method of making measurements is to use the lower level commands
to set up the expected range and resolution. This can be done using the following
commands:
The advantage of using the lower level commands over the CONFigure command is
that they give you more precise control of the power meter. As shown in
page 1-14 the CONFigure command presets various states in the power meter. It
may be likely that you do not want to preset these states.
Example
Table 1-3 on
The following example sets the expected power value to -50 dBm and the resolution
setting to 3 using the lower level commands. The measurement is a single channel A
measurement carried out on the lower window.
ABOR1Aborts channel A.
CALC2:MATH:EXPR "(SENS1)"Displays channel A on lower window.
SENS1:POW:AC:RANG 0Sets lower range (E-Series sensors and
N8480 Series sensors (excluding
Option CFT) only).
DISP:WIND2:RES 3Sets the lower window’s resolution to
setting 3.
INIT1Causes channel A to make a
measurement.
FETC2?Retrieves the lower window’s
measurement.
Agilent E4418B/E4419B Programming Guide1-29
Power Meter Remote Operation
Using Sensor Calibration Tables
Using Sensor Calibration Tables
This section applies to all Agilent 8480 Series power sensors and N8480 Series power
sensors with Option CFT. It does not apply to the Agilent
N8480 Series power sensors (excluding Option CFT). The Agilent
sensors and N8480 Series power sensors (excluding Option CFT) have their sensor
calibration tables stored in EEPROM which allows frequency and calibration factor
data to be downloaded by the power meter automatically.
This section describes how to use sensor calibration tables. Sensor calibration tables
are used to store the measurement calibration factors, supplied with each power
sensor, in the power meter. These calibration factors are used to correct measurement
results.
Overview
For the Agilent 8480 Series power sensors and N8480 Series power sensors with
Option CFT there are two methods of providing correction data to the power meter
depending on the setting of the
[SENSe[1]]|SENSe2:CORRection:CSET1:STATe command. If
[SENSe[1]]|SENSe2:CORRection:CSET1:STATe is OFF the sensor
calibration tables are not used. To make a calibrated power measurement when
[SENSe[1]]|SENSe2:CORRection:CSET1:STATe is OFF, perform the
following steps:
E-Series power sensors and
E-Series power
1.Zero and calibrate the power meter. Before carrying out the calibration set
the reference calibration factor for the power meter you are using.
2.Set the calibration factor to the value for the frequency of the signal you
want to measure.
3.Make the measurement.
When [SENSe[1]]|SENSe2:CORRection:CSET1:STATe is ON, the sensor
calibration tables are used, providing you with a quick and convenient method for
making power measurements at a range of frequencies using one or more power
sensors. Note that with the sensor calibration table selected, the RCF from the table
overides any value previously set. The power meter is capable of storing 20 sensor
calibration tables of 80 frequency points each.
1-30Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
TABLE N
FREQ
FREQ
1
.
.
.
.
.
.
.
.
.
.
.
FREQ
2
80
CFAC
CFAC
1
.
.
.
.
.
.
.
.
.
.
.
80
TABLE 1
FREQ
FREQ
1
.
.
.
.
.
.
.
.
.
.
.
FREQ
2
80
CFAC
CFAC
1
.
.
.
.
.
.
.
.
.
.
.
CFAC
2
80
TABLE 2 0
FREQ
FREQ
1
.
.
.
.
.
.
.
.
.
.
.
FREQ
2
80
CFAC
CFAC
1
.
.
.
.
.
.
.
.
.
.
.
CFAC
2
80
CFAC = Calibration Factor
RCF = Reference Calibration Factor
FREQ
FREQ
1
.
.
.
.
.
.
.
.
.
.
.
FREQ
2
80
CFAC
CFAC
1
.
.
.
.
.
.
.
.
.
.
.
CFAC
2
80
Frequency of the signal you want
to measure
Calibration Factor used
TABLE SELECTED
to make Measurement.
Calculated by the Power
Meter using linear
interpolation
RCF
RCF
RCF
CFAC
2
RCF
Reference Calibration Factor
used for Power Meter
Calibration.
Using Sensor Calibration Tables
Figure 1-1 illustrates how sensor calibration tables operate.
Figure 1-1: Sensor Calibration Tables
Agilent E4418B/E4419B Programming Guide1-31
Power Meter Remote Operation
Using Sensor Calibration Tables
To use sensor calibration tables you:
1.Edit a sensor calibration table if necessary.
2.Select the sensor calibration table.
3.Enable the sensor calibration table.
4.Zero and calibrate the power meter. The reference calibration factor used
during the calibration is automatically set by the power meter from the
sensor calibration table.
5.Specify the frequency of the signal you want to measure. The calibration
factor is automatically set by the power meter from the sensor calibration
table.
6.Make the measurement.
1-32Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Using Sensor Calibration Tables
Editing Sensor Calibration Tables
It is not possible to create any additional sensor calibration tables. However, the 20
existing ones can be edited using the MEMory subsystem. To do this:
1.Select one of the existing tables using:
MEMory:TABle:SELect <string>.
For information on naming sensor calibration tables see “Naming Sensor
Calibration Tables”, on page 1-36. For information on the current names
which you can select refer to “Listing the Sensor Calibration Table Names”,
on page 1-34.
MEMory:TABle:GAIN <numeric_value>
{,<numeric_value>}. The first parameter you enter should be the
reference calibration factor, each subsequent parameter is a calibration factor
in the sensor calibration table. This means that entries in the frequency list
correspond as shown with entries in the calibration factor list.
FrequencyCalibration Factor
Reference Calibration Factor
Frequency 1Calibration Factor 1
Frequency 2Calibration Factor 2
""
Frequency nCalibration Factor n
4.If required, rename the sensor calibration table using:
MEMory:TABLe:MOVE <string>,<string>. The first <string>
parameter identifies the existing table name, and the second identifies the
new table name.
Agilent E4418B/E4419B Programming Guide1-33
Power Meter Remote Operation
Using Sensor Calibration Tables
Note The legal frequency suffix multipliers are any of the IEEE suffix multipliers,
for example, KHZ, MHZ and GHZ. If no units are specified the power meter
assumes the data is Hz.
PCT is the only legal unit for calibration factors and can be omitted.
The frequency and calibration data must be within range. Refer to the
individual commands in
Chapter 4 for their specified ranges.
The number of calibration factor points must be one more than the number of
frequency points. This is verified when the sensor calibration table is selected
using
Ensure that the frequency points you use cover the frequency range of the
signals you want to measure. If you measure a signal with a frequency outside
the frequency range defined in the sensor calibration table, then the power
meter uses the highest or lowest frequency point in the sensor calibration
table to calculate the calibration factor.
To make subsequent editing of a sensor calibration table simpler, it is
recommended that you retain a copy of your data in a program.
Listing the Sensor Calibration Table Names
To list the tables currently stored in the power meter, use the following command:
MEMory:CATalog:TABLe?
Note that all tables are listed; including frequency dependent offset tables.
The power meter returns the data in the form of two numeric parameters and a string
list representing all the stored tables.
•<numeric_value>,<numeric_value>{,<string>}
The first numeric parameter indicates the amount of memory, in bytes, used
for storage of tables. The second parameter indicates the memory, in bytes,
available for tables.
1-34Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Using Sensor Calibration Tables
Each string parameter returned indicates the name, type and size of a stored sensor
calibration table:
•<string>,<type>,<size>
The <string>, <type> and <size> are all character data. The <type>
is always TABL. The <size> is displayed in bytes.
For example, a sample of the response may look like:
The power meter is shipped with a set of predefined sensor calibration tables. The
data in these sensor calibration tables is based on statistical averages for a range of
Agilent Technologies Power Sensors (see Chapter 2, “Editing Sensor Calibration
Tables” in the User’s Guide). These power sensors are:
•DEFAULT
1
•Agilent 8481A
•Agilent 8482A
2
•Agilent 8483A
•Agilent 8481D
•Agilent 8485A
•Agilent R8486A
•Agilent Q8486A
•Agilent R8486D
•Agilent 8487A
For further information on naming sensor calibration tables see “Naming Sensor
Calibration Tables”, on page 1-36.
Note Predefined sensor calibration table is not applicable for N8480 Series power
sensors with Option CFT. Therefore you are required to create a new sensor
calibration table for the sensors when a sensor calibration table is needed.
1. DEFAULT is a sensor calibration table in which the reference calibration factor and
calibration factors are 100%. This sensor calibration table can be used during the
performance testing of the power meter.
2. The Agilent 8482B and Agilent 8482H power sensors use the same data as the
Agilent
8482A.
Agilent E4418B/E4419B Programming Guide1-35
Power Meter Remote Operation
Using Sensor Calibration Tables
Naming Sensor Calibration Tables
To rename a sensor calibration table use:
MEMory:TABLe:MOVE <string>,<string>
The first <string> parameter identifies the existing table name, and the second
identifies the new table name.
The following rules apply to sensor calibration table names:
a)The sensor calibration table must consist of no more than 12 characters.
b)All characters must be upper or lower case alphabetic characters, or numeric
(0-9), or an underscore (_).
c)No spaces are allowed in the name.
1-36Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Using Sensor Calibration Tables
Reviewing Table Data
To review the data stored in a sensor calibration table, use the following commands:
•MEMory:TABLe:SELect "Sense1"
Select the sensor calibration table named “Sense1”.
•MEMory:TABLe:SELect?
Query command which returns the name of the currently selected table.
•MEMory:TABLe:FREQuency:POINTs?
Query command which returns the number of stored frequency points.
•MEMory:TABLe:FREQuency?
Query command which returns the frequencies stored in the sensor
calibration table (in Hz).
•MEMory:TABLe:GAIN[:MAGNitude]:POINTs?
Query command which returns the number of calibration factor points
stored in the sensor calibration table.
•MEMory:TABLe:GAIN[:MAGNitude]?
Query command which returns the calibration factors stored in the sensor
calibration table. The first point returned is the reference calibration factor.
Modifying Data
If you need to modify the frequency and calibration factor data stored in a sensor
calibration table you need to resend the complete data lists. There are two ways to do
this:
1.If you have retained the original data in a program, edit the program and
resend the data.
2.Use the query commands shown in “Reviewing Table Data”, on page 1-37 to
enter the data into your computer. Edit this data, then resend it.
Agilent E4418B/E4419B Programming Guide1-37
Power Meter Remote Operation
Using Sensor Calibration Tables
Selecting a Sensor Calibration Table
After you have created the sensor calibration table, you can select it using the
following command:
When the table is selected, the power meter verifies the number of calibration factor
points defined in the sensor calibration table is one parameter greater than the number
of frequency points. If this is not the case an error occurs.
To find out which sensor calibration table is currently selected, use the query:
[SENSe[1]]|SENSe2:CORRection:CSET1[:SELect]?
Enabling the Sensor Calibration Table System
To enable the sensor calibration table, use the following command:
[SENSe[1]]|SENSe2:CORRection:CSET1:STATe ON
If you set [SENSe[1]]|SENSe2:CORRection:CSET1:STATe to ON and no
sensor calibration table is selected error -221, “Settings conflict” occurs.
1-38Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Using Sensor Calibration Tables
Making the Measurement
To make the power measurement, set the power meter for the frequency of the signal
you want to measure. The power meter automatically sets the calibration factor. Use
either the INITiate,FETCh? or the READ? query to initiate the measurement as
shown in the following program segments:
ABORt1
CONFigure1:POWer:AC DEF,2,(@1)
SENS1:CORR:CSET1:SEL "HP8481A"
SENS1:CORR:CSET1:STAT ON
SENSe1:FREQuency 500KHZ
READ1?
Note If the measurement frequency does not correspond directly to a frequency in
the sensor calibration table, the power meter calculates the calibration factor
using linear interpolation.
If you enter a frequency outside the frequency range defined in the sensor
calibration table, then the power meter uses the highest or lowest frequency
point in the sensor calibration table to set the calibration factor.
To find out the value of the calibration factor being used by the power meter
to make a measurement, use the query command:
[SENSe[1]]|SENSe2:CORRection:CFAC? The response may be an
interpolated value.
To find out the value of the reference calibration factor being used, use the
commands:
CALibration[1|2]:RCFactor?
Agilent E4418B/E4419B Programming Guide1-39
Power Meter Remote Operation
Using Frequency Dependent Offset Tables
Using Frequency Dependent Offset Tables
This section describes how to use frequency dependent offset tables. Frequency
dependent offset tables give you the ability to compensate for frequency effects in
your test setup.
Overview
If the [SENSe[1]]|SENSe2:CORRection:CSET2:STATe command is OFF,
the frequency dependent offset tables are not used. When
[SENSe[1]]|SENSe2:CORRection:CSET2:STATe is ON, the frequency
dependent offset tables are used, providing you with a quick and convenient method
of compensating for your external test setup over a range of frequencies. Note that
when selected, frequency dependent offset correction is IN ADDITION to any
correction applied for sensor frequency response. The power meter is capable of
storing 10 frequency dependent offset tables of 80 frequency points each.
To use frequency dependent offset tables you:
1.Edit a frequency dependent offset table if necessary.
2.Select the frequency dependent offset table.
3.Enable the frequency dependent offset table.
4.Zero and calibrate the power meter. The reference calibration factor used
during the calibration will be automatically set by the power meter from a
sensor calibration table, if enabled; otherwise it should be entered manually.
5.Specify the frequency of the signal you want to measure. The required offset
is automatically set by the power meter from the frequency dependent offset
table.
6.Make the measurement.
1-40Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
TABLE N
FREQ
FREQ
1
.
.
.
.
.
.
.
.
.
.
.
FREQ
2
80
OFFSET
OFFSET
1
.
.
.
.
.
.
.
.
.
.
.
80
TABLE 1
FREQ
FREQ
1
.
.
.
.
.
.
.
.
.
.
.
FREQ
2
80
OFFSET
OFFSET
1
.
.
.
.
.
.
.
.
.
.
.
2
80
TABLE 1 0
FREQ
FREQ
1
.
.
.
.
.
.
.
.
.
.
.
FREQ
2
80
OFFSET
OFFSET
1
.
.
.
.
.
.
.
.
.
.
.
OFFSET
2
80
OFFSET = Frequency Dependent Offset
FREQ
FREQ
1
.
.
.
.
.
.
.
.
.
.
.
FREQ
2
80
OFFSET
OFFSET
1
.
.
.
.
.
.
.
.
.
.
.
OFFSET
2
80
Frequency of the signal you want
to measure
TABLE SELECTED
OFFSET
2
OFFSET
Frequency dependent
offset used to make
Measurement. Calculated
by the Power Meter using
linear interpolation.
Using Frequency Dependent Offset Tables
Figure 1-2 illustrates how frequency dependent offset tables operate.
Figure 1-2: Frequency Dependent Offset Tables
Agilent E4418B/E4419B Programming Guide1-41
Power Meter Remote Operation
Using Frequency Dependent Offset Tables
Editing Frequency Dependent Offset Tables
It is not possible to create any additional frequency dependent offset tables. However,
the 10 existing ones can be edited using the MEMory subsystem. To do this:
1.Select one of the existing tables using:
MEMory:TABle:SELect <string>.
For information on naming frequency dependent offset tables see “Naming
Frequency Dependent Offset Tables”, on page 1-44. For information on the
current names which you can select refer to “Listing the Frequency
Dependent Offset Table Names”, on page 1-43.
4.If required, rename the frequency dependent offset table using:
MEMory:TABLe:MOVE <string>,<string>. The first <string>
parameter identifies the existing table name, and the second identifies the
new table name.
1-42Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Using Frequency Dependent Offset Tables
Note The legal frequency suffix multipliers are any of the IEEE suffix multipliers,
for example, KHZ, MHZ and GHZ. If no units are specified the power meter
assumes the data is Hz.
PCT is the only legal unit for offset factors and can be omitted.
The frequency and offset data must be within range. Refer to the individual
commands in
Chapter 4 for their specified ranges.
Any offset values entered into the table should exclude the effect of the
sensor. Characterisation of the test setup independently of the sensor allows
the same table to be used with any sensor.
Ensure that the frequency points you use cover the frequency range of the
signals you want to measure. If you measure a signal with a frequency outside
the frequency range defined in the frequency dependent offset table, then the
power meter uses the highest or lowest frequency point in the table to
calculate the offset.
To make subsequent editing of a frequency dependent offset table simpler, it
is recommended that you retain a copy of your data in a program.
Listing the Frequency Dependent Offset Table Names
To list the frequency dependent offset tables currently stored in the power meter, use
the following command:
MEMory:CATalog:TABLe?
Note that all tables are listed; including sensor calibration tables.
The power meter returns the data in the form of two numeric parameters and a string
list representing all stored tables.
•<numeric_value>,<numeric_value>{,<string>}
The first numeric parameter indicates the amount of memory, in bytes, used
for storage of tables. The second parameter indicates the memory, in bytes,
available for tables.
Agilent E4418B/E4419B Programming Guide1-43
Power Meter Remote Operation
Using Frequency Dependent Offset Tables
Each string parameter returned indicates the name, type and size of a stored frequency
dependent offset table:
•<string>,<type>,<size>
The <string>, <type> and <size> are all character data. The <type>
is always TABL. The <size> is displayed in bytes.
For example, a sample of the response may look like:
The first <string> parameter identifies the existing table name, and the second
identifies the new table name.
The following rules apply to frequency dependent offset table names:
a)Table names use a maximum of 12 characters.
b)All characters must be upper or lower case alphabetic characters, or numeric
(0-9), or an underscore (_).
c)No spaces are allowed in the name.
Reviewing Table Data
To review the data stored in a frequency dependent offset table, use the following
commands:
•MEMory:TABLe:SELect "Offset1"
Select the sensor calibration table named “Offset1”.
•MEMory:TABLe:SELect?
Query command which returns the name of the currently selected table.
•MEMory:TABLe:FREQuency:POINTs?
Query command which returns the number of stored frequency points.
•MEMory:TABLe:FREQuency?
Query command which returns the frequencies stored in the frequency
dependent offset table (in Hz).
•MEMory:TABLe:GAIN[:MAGNitude]:POINTs?
Query command which returns the number of offset factor points stored in
the frequency dependent offset table.
1-44Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Using Frequency Dependent Offset Tables
•MEMory:TABLe:GAIN[:MAGNitude]?
Query command which returns the offset factors stored in the frequency
dependent offset table.
Modifying Data
If you need to modify the frequency and offset factor data stored in a frequency
dependent offset table you need to resend the complete data lists. There are two ways
to do this:
1.If you have retained the original data in a program, edit the program and
resend the data.
2.Use the query commands shown in “Reviewing Table Data”, on page 1-37 to
enter the data into your computer. Edit this data, then resend it.
Selecting a Frequency Dependent Offset Table
After you have created the frequency dependent offset table, you can select it using
the following command:
To find out which frequency dependent offset table is currently selected, use the
query:
[SENSe[1]]|SENSe2:CORRection:CSET2[:SELect]?
Enabling the Frequency Dependent Offset Table System
To enable the frequency dependent offset table, use the following command:
[SENSe[1]]|SENSe2:CORRection:CSET2:STATe ON
If you set [SENSe[1]]|SENSe2:CORRection:CSET2:STATe to ON and no
frequency dependent offset table is selected error -221, “Settings conflict” occurs.
Making the Measurement
To make the power measurement, set the power meter for the frequency of the signal
you want to measure. The power meter automatically sets the calibration factor. Use
either the INITiate,FETCh? or the READ? query to initiate the measurement as
shown in the following program segments:
ABORt1
CONFigure1:POWer:AC DEF,2,(@1)
SENS1:CORR:CSET2:SEL "Offset1"
SENS1:CORR:CSET2:STAT ON
SENSe1:FREQuency 500KHZ
READ1?
Note If the measurement frequency does not correspond directly to a frequency in
the frequency dependent offset table, the power meter calculates the offset
using linear interpolation.
If you enter a frequency outside the frequency range defined in the frequency
dependent offset table, then the power meter uses the highest or lowest
frequency point in the table to set the offset.
To find out the value of the offset being used by the power meter to make a
measurement, use the query command:
SENSe:CORRection:GAIN4|FDOFfset[:INPut][MAGNITUDE]?
The response may be an interpolated value.
1-46Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Setting the Range, Resolution and Averaging
Setting the Range, Resolution and Averaging
This section provides an overview of setting the range, resolution and averaging. For
more detailed information about these features refer to the individual commands in
Chapter 9.
Range
The power meter has no internal ranges which can be set. The only ranges that can be
set are those of the Agilent
(excluding Option CFT). With an Agilent
power sensor (excluding Option CFT), the range can be set either automatically or
manually. Use autoranging when you are not sure of the power level you will be
measuring.
Setting the Range
To set the range manually use the following command:
[SENSe[1]]|SENSe2:POWer:AC:RANGe <numeric_value>
E-Series power sensors and N8480 Series power sensors
E-Series power sensor or N8480 Series
If the <numeric_value> is set to:
•0, the sensor’s lower range is selected. (For example, this range is -70 to
-13.5
dBm for the Agilent ECP-18A power sensor.)
•1, the sensor’s upper range is selected. (For example, this range is -14.5 to
+20
dBm for the Agilent ECP-18A power sensor.)
For details on the range limits of other Agilent E-Series power sensors and N8480
Series power sensors (excluding Option CFT) refer to the appropriate power sensor
manual.
For further information on this command refer to page 9-51.
To enable autoranging use the following command:
[SENSe[1]]|SENSe2:POWer:AC:RANGe:AUTO ON
Use autoranging when you are not sure of the power level you will be measuring.
Agilent E4418B/E4419B Programming Guide1-47
Power Meter Remote Operation
Setting the Range, Resolution and Averaging
Resolution
You can set the window’s resolution using the following command:
DISPlay[:WINDow[1|2]]:RESolution <numeric_value>
There are four levels of resolution available (1 through 4).
When the measurement suffix is W or % this parameter represents the number of
significant digits. When the measurement suffix is dB or dBM, 1 through 4 represents
1, 0.1, 0.01, and 0.001 dB respectively.
For further information refer to the resolution command on page 5-14.
Averaging
The power meter has a digital filter to average power readings. The number of
readings averaged can range from 1 to 1024. This filter is used to reduce noise, obtain
the desired resolution and to reduce the jitter in the measurement results. However,
the time to take the measurement is increased. You can select the filter length or you
can set the power meter to auto filter mode. To enable and disable averaging use the
following command:
[SENSe[1]]|SENSe2:AVERage[:STATe] <Boolean>
Note If you are using the HP 437B remote programming language you cannot
enter a filter length above 512.
Auto Averaging Mode
To enable and disable auto filter mode, use the following command:
[SENSe[1]]|SENSe2:AVERage:COUNt:AUTO <Boolean>
When the auto filter mode is enabled, the power meter automatically sets the number
of readings averaged together to satisfy the filtering requirements for most power
measurements. The number of readings averaged together depends on the resolution
and the power level currently being measured.
averaged for each range and resolution when the power meter is in auto filter mode.
1-48Agilent E4418B/E4419B Programming Guide
Figure 1-3 lists the number of readings
Power Meter Remote Operation
10 dB
10 dB
Minimum Sensor Power
Maximum Sensor Power
Power Sensor
Dynamic Range
10 dB
10 dB
1234
88128128
Resolution Setting
Number of Averages
1116256
11232
11116
1118
Minimum Sensor PowerMinimum Sensor Power + 10 dB
Range Hysteresis
10.5 dB9.5 dB
Setting the Range, Resolution and Averaging
Figure 1-3: Averaged Readings
Figure 1-4 illustrates part of the power sensor dynamic range hysteresis.
Figure 1-4: Averaging Range Hysteresis
Agilent E4418B/E4419B Programming Guide1-49
Power Meter Remote Operation
Setting the Range, Resolution and Averaging
Filter Length
You specify the filter length using the following command:
[SENSe[1]]|SENSe2:AVERage:COUNt <numeric_value>
The range of values for the filter length is 1 to 1024. Specifying this command
disables automatic filter length selection. Increasing the value of the filter length
reduces measurement noise. However, the time to take the measurement is increased.
1-50Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Loss
1
Gain
-------------=
GainLoss–=
Setting Offsets
Setting Offsets
Channel Offsets
The power meter can be configured to compensate for signal loss or gain in your test
setup (for example, to compensate for the loss of a 10
SENSe command subsystem to configure the power meter. Gain and loss correction
are a coupled system. This means that a gain set by
[SENSe[1]]|SENSe2:CORRection:GAIN2 is represented in the
[SENSe[1]]|SENSe2:CORRection:LOSS2? command. If you enter an
offset value the state is automatically enabled. However it can be enabled and
disabled using either the [SENSe[1]]|SENSe2:CORRection:GAIN2:STATe
or [SENSe[1]]|SENSe2:CORRection:LOSS2:STATe commands.
LOSS2 is coupled to GAIN2 by the equation when the default
unit is linear, and when the default is logarithmic.
dB attenuator). You use the
Note You can only use LOSS2 and GAIN2 for external losses and gains. LOSS1
and GAIN1 are specifically for calibration factors.
Display Offsets
Display offset values can be entered using the
CALCulate[1|2]:GAIN[:MAGNitude] command.
CALCulate[1|2]:GAIN:STATe must be set to ON to enable the offset value. If
you enter an offset value the state is automatically enabled. On the Agilent
this offset is applied after any math calculations (refer to
Figure 1-9 on page 1-70).
E4419B
Agilent E4418B/E4419B Programming Guide1-51
Power Meter Remote Operation
A
dBm
10–
B
dBm
10–
---------------------------
⎝⎠
⎛⎞
20–
⎝⎠
⎛⎞
dB
Setting Offsets
Example
The following example program, in HP Basic, details how to use the channel and
display offsets on an Agilent
final result will be:
10 !Create I/O path name
20 ASSIGN @POWER TO 713
30 !Clear the power meter’s interface
40 CLEAR @POWER
50 !Set the power meter to a known state
60 OUTPUT @POWER;"*RST"
70 !Configure the Power Meter to make the measurement
80 OUTPUT @Power;"CONF:POW:AC:RAT 20DBM,2,(@1),(@2)"
90 !Set the measurement units to dBm
100 OUTPUT @POWER;"UNIT:POW DBM"
110 !Set the power meter for channel offsets of -10 dB
120 OUTPUT @POWER;"SENS1:CORR:GAIN2 -10"
130 OUTPUT @POWER;"SENS2:CORR:GAIN2 -10"
140 !Enable the gain correction
150 OUTPUT @POWER;"SENS:CORR:GAIN2:STATe ON"
160 OUTPUT @POWER;"SENS2:CORR:GAIN2:STATe ON"
170 !Set the power meter for a display offset of -20 dB
180 OUTPUT @POWER;"CALC1:GAIN -20 DB"
190 PRINT "MAKING THE MEASUREMENT"
200 !Initiate the measurement
210 OUTPUT @Power;"INIT1:IMM"
220 OUTPUT @Power;"INIT2:IMM"
230 ! ... and get the result
240 OUTPUT @Power;"FETC:POW:AC:RAT? 20DBM,2,(@1),(@2)"
250 ENTER @Power;Reading
260 !
270 PRINT "The measurement result is ";Reading;"dB."
280 END
E4419B making a channel A/B ratio measurement. The
For further information on channel offsets refer to page 9-25 through page 9-35.
For further information on display offsets refer to page 3-4.
1-52Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Power Meter
Swept Source
CHANNEL A
INPUT
OUT
IN
OUT
Device
Under Test
Setting Measurement Limits
Setting Measurement Limits
You can configure the power meter to detect when a measurement is outwith a
predefined upper and/or lower limit value.
There are two types of measurement limits you can set:
•Channel Limits - are applied to the input channel and are for power
measurements only.
•Window Limits - are windows based (upper and lower) and can be applied to
power, ratio or difference measurements. In addition, the window based
limits can be set to output a TTL logic level at the rear panel Rmt I/O port
when the predefined limits are exceeded.
Note Only one set of limits can be on at a time, that is, Channel OR Window.
Setting Channel Limits
The power meter can be configured to verify the power being measured against an
upper and/or lower limit value. The range of values that can be set for lower and
upper limits is -150.00
and the default lower limit is -90.00
dBm to +230.00 dBm. The default upper limit is +90.00 dBm
dBm.
A typical application for this feature is shown in Figure 1-5.
Figure 1-5: Limits Checking Application
Agilent E4418B/E4419B Programming Guide1-53
Power Meter Remote Operation
+4 dBm
+10 dBm
Amplitude
Frequency
o
o
o
o
o
o
o
Fail
Fail
Setting Measurement Limits
Figure 1-6: Limits Checking Results
In this application a swept frequency signal is applied to the input of the Device
Under Test. The power meter measures the output power. The limits have been set at
+4
dBm and +10 dBm. A fail occurs each time the output power is outside these
limits. Use the SENSe subsystem to configure the power meter for limits checking.
The following example program, in HP Basic, shows how to set the limits to +4
and +10
dBm.
dBm
10 !Create I/O path name
20 ASSIGN @Power to 713
30 !Clear the Power Meter’s Interface
40 CLEAR @Power
50 !Set the Power Meter to a known state
60 OUTPUT @Power;“*RST”
70 !Set the measurement units to dBm
80 OUTPUT @Power;“UNIT:POWer DBM”
90 !Set the upper limit to 10 dBm
100 OUTPUT @Power;“SENSe:LIMit:UPPer 10”
110 !Set the lower limit to 4 dBm
120 OUTPUT @Power;“SENSe:LIMit:LOWer 4”
130 !Switch the limit checking on
140 OUTPUT @Power;“SENSe:LIMit:STATe ON”
150 !Check the limits
160 OUTPUT @Power;“SENSe:LIMit:UPPer?”
170 ENTER @Power;A
180 OUTPUT @Power;“SENSe:LIMit:LOWer?”
190 ENTER @Power;B
1-54Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Setting Measurement Limits
200 PRINT A,B
210 END
Setting Window Limits
The power meter can be configured to verify the current measurement in either
window against predefined upper and/or lower limit values. The range of values that
can be set for the upper and lower limits and the default values depends on the
measurement units in the currently selected window - see
Table 1-4: Range of Values for Window Limits
Table 1-4.
Window
Units
dB+200 dB-180 dB60 dB-120 dB
dBm+230 dBm-150 dBm90 dBm-90 dBm
%10.0 Z%100.0 a%100.0 M%100.0 p%
W100.000 XW1.000 aW1.000 MW1.000 pW
The window based limits can also be set to output a TTL logic level at the rear panel
Rmt I/O port when the predefined limits are exceeded. You can switch the rear panel
TTL outputs on or off; set the TTL output level to active high or low; and determine
whether the TTL output represents an over limit condition, under limit condition or
both. Refer to Chapter 8 “OUTput Subsystem” for TTL output programming
commands and to the Agilent E4418B/E4419B User’s Guide for connector and
pin-out information.
Use the programming example for channel limits (page 1-54) as a guide to
programming window limits.
MaxMin
Default
MaxMin
Checking for Limit Failures
There are two ways to check for limit failures:
1. Use the SENSe:LIMit:FAIL? and SENSe:LIMit:FCOunt?
commands for channel limits or the CALCulate[1|2]:LIMit:FAIL?
and the CALCulate[1|2]:LIMit:FCOunt? for window limits.
2. Use the STATus command subsystem.
Agilent E4418B/E4419B Programming Guide1-55
Power Meter Remote Operation
Setting Measurement Limits
Using SENSe and CALCulate
Using SENSe to check the channel limit failures in Figure 1-6 would return the
following results:
SENSe:LIMit:FAIL?Returns 1 if there has been 1 or more
limit failures or 0 if there have been
no limit failures. In this case 1 is
returned.
SENSe:LIMit:FCOunt?Returns the total number of limit
failures, in this case 2.
Use the equivalent CALCulate commands for checking window limit failures.
Note If TRIGger:DELay:AUTO is set to ON, then the number of failures
returned by SENSe:LIMit:FCOunt? or
CALCulate[1|2]:LIMit:FCOunt?will be affected by the current filter
settings.
Refer to page 9-43, page 9-44, page 3-12 and page 3-13 for further information on
using these commands.
Using STATus
You can use the STATus subsystem to generate an SRQ to interrupt your program
when a limit failure occurs. This is a more efficient method than using SENSe or CALCulate , since you do not need to check the limit failures after every power
measurement.
Refer to “Status Reporting”, on page 1-71 and “STATus Subsystem”, on page 10-1 for
further information.
Configuring the TTL Outputs
The TTL Outputs on the rear panel Rmt I/O port can be used to determine when a
predefined limit in either, or both, windows has been exceeded.
1-56Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Setting Measurement Limits
Example
The following program segment shows how to use TTL output 1 to indicate when a
measurement is outside the range -30 dBm to -10 dBm. It is assumed that the
measurement has already been set up in the upper window (window 1).
CALC1:LIM:LOW -30Sets the lower limit for the upper
window to -30 dBm.
CALC1:LIM:UPP -10Sets the upper limit for the upper
window to -10 dBm.
CALC1:LIM:STAT ONTurns the limits on.
OUTP:TTL1:FEED
“CALC1:LIM:LOW,CALC1:LIM:UPP”
OUTP:TTL1:ACT HIGHSpecifies that TTL output 1 should be
OUTP:TTL1:STAT ONActivates TTL output 1
Specifies that TTL output 1 should be
asserted when the upper or lower
limit fails on the upper window.
active-high.
Agilent E4418B/E4419B Programming Guide1-57
Power Meter Remote Operation
Power
Time
B
A
Duty Cycle = A
B
Duty Cycle (%) = A x 100
B
Measuring Pulsed Signals
Measuring Pulsed Signals
The power meter can be used to measure the power of a pulsed signal. The
measurement result is a mathematical representation of the pulse power rather than an
actual measurement. The power meter measures the average power of the pulsed
input signal and then divides the measurement result by the duty cycle value to obtain
the pulse power reading. The allowable range of values is 0.001% to 99.999%. The
default is 1.000%. A duty cycle value can be set using the following command:
Note Pulse measurements are not recommended using Agilent E-Series E4410
power sensors.
Making the Measurement
An example of a pulsed signal is shown in Figure 1-7.
Figure 1-7: Pulsed Signal
You use the SENSe command subsystem to configure the power meter to measure a
pulsed signal. The following example program, in HP Basic, shows how to measure
the signal for the Agilent
with Option CFT.
1-58Agilent E4418B/E4419B Programming Guide
8480 Series power sensors and N8480 Series power sensors
Power Meter Remote Operation
Measuring Pulsed Signals
10 !Create I/O path name
20 ASSIGN @Power TO 713
30 !Clear the Power Meter’s Interface
40 CLEAR @Power
50 !Set the Power Meter to a known state
60 OUTPUT @Power;"*RST"
70 !Configure the Power Meter to make the measurement
80 OUTPUT @Power;"CONF:POW:AC 20DBM,2,(@1)"
90 !Set the reference calibration factor for the sensor
100 OUTPUT @Power;"CAL:RCF 98.7PCT"
110 !Zero and calibrate the power meter
120 OUTPUT @Power;"CAL?"
130 PRINT "ZEROING AND CALIBRATING THE POWER METER"
140 !Verify the outcome
150 ENTER @Power;Success
160 IF Success=0 THEN
170 !Calibration cycle was successful
180 !
190 !Set the measurement units to Watts
200 OUTPUT @Power;"UNIT:POW WATT"
210 !
220 !Set the measurement calibration factor for the
sensor
230 OUTPUT @Power;"SENS:CORR:CFAC 97.5PCT"
240 !Set the power meter for a duty cycle of 16PCT
250 OUTPUT @Power;"SENS1:CORR:DCYC 16PCT"
260 !
270 !Enable the duty cycle correction
280 OUTPUT @Power;"SENS:CORR:DCYC:STAT ON
290 PRINT "MAKING THE MEASUREMENT"
300 !Initiate the measurement
310 OUTPUT @Power;"INIT1:IMM"
320 !... and get the result
330 OUTPUT @Power;"FETC?"
340 ENTER @Power;Reading
350 !
360 PRINT "The result is ";Reading*1000;"mW"
370 !
380 ELSE
390 PRINT "THERE WAS A CALIBRATION ERROR!"
400 END IF
410 PRINT "PROGRAM COMPLETED"
420 END
Agilent E4418B/E4419B Programming Guide1-59
Power Meter Remote Operation
Measuring Pulsed Signals
Note Pulse power averages out any aberrations in the pulse such as overshooting
or ringing. For this reason it is called pulse power and not peak power or
peak pulse power.
In order to ensure accurate pulse power readings, the input signal must be
pulsed with a rectangular pulse. Other pulse shapes (such as triangle, chirp
or Gaussian) will cause erroneous results.
The pulse power on/off ratio must be much greater than the duty cycle ratio.
1-60Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Preset
Local
Triggering the Power Meter
Triggering the Power Meter
Triggering is a feature that is only available via remote programming of the power
meter.
The power meter has two modes of operation, standby mode and free run mode.
During local operation the power meter is always in free run mode. During remote
operation the power meter can operate in either free run mode or standby mode and
can be switched between modes at any time.
a)Standby mode means the power meter is making measurements, but the
display and remote interface are not updated until a trigger command is
received.
In this mode the power meter is either waiting to be initiated, or waiting for a
trigger (
b)Free run mode is the preset mode of operation and is identical to local
operation. The measurement result data available to the remote interface is
continuously updated as rapidly as the power meter makes measurements.
Entry into local mode via
In this mode INITiate:CONTinuous is set to ON and
TRIGger:SOURce is set to IMMediate.
See “Trigger System” on page 63.).
sets the power meter to free run mode
To obtain accurate measurements, ensure that the input power to the power sensor is
settled before making a measurement.
The trigger configuration is automatically set by the MEASure? command. If you
want to use the lower level commands (READ? or INITiate), you need to
understand the power meter’s trigger model.
Agilent E4418B/E4419B Programming Guide1-61
Power Meter Remote Operation
Triggering the Power Meter
Triggering the power meter from the remote interface is a process that offers
triggering flexibility. The process is:
1.Specify the source from which the power meter will accept the trigger. The
trigger source specifies which event causes the trigger system to travel
through the event detection state. See
“Event Detection State”, on page 1-64
for details.
2.Make sure that the power meter is ready to accept a trigger. This is called the
“wait-for-trigger” state. Sending a device clear, a *RST or an ABORt forces
the trigger system into the idle state. The trigger system remains in the idle
state until it is moved into the “wait-for-trigger” state by executing an
INITiate command.
The “wait-for-trigger” state is a term used only for remote interface
operation.
The TRIGger commands are used to synchronize power meter actions with
specified events.
Figure 1-8 summarizes the power meter’s trigger system.
1-62Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
:ABORt
Idle State
*RST
Is
INIT:CONT ON
INIT[:IMM]
or
INIT:CONT ON
NO
YES
Wait - for - trigger
state
Wai t
TRIG:DEL
TRIGGERED
Power Meter Measurement Actions
TRIG:SOURce
TRIG:SOUR IMM
TRIG:SOUR BUS
TRIG:SOUR HOLD
TRIG:IMMediate
INITIATE
STATE
EVENT
DETECTION
STATE
NO
YES
IDLE
STATE
SEQUENCE
OPERATION
STATE
Figure 1-8: Trigger System
Triggering the Power Meter
Idle State
Turning power on, sending an GP-IB CLEAR, sending a *RST or an :ABORt forces
the trigger system into the idle state. The trigger system remains in the IDLE state
until it is initiated by INITiate:CONTinuous ON or INITiate:IMMediate. Once one of
these conditions is satisfied the trigger system moves to the initiate state.
Agilent E4418B/E4419B Programming Guide1-63
Power Meter Remote Operation
Triggering the Power Meter
Initiate State
If the trigger system is on the downward path, it travels directly through the initiate
state without any restrictions. If the trigger system is on the upward path, and INIT
iate:CONTinuous is ON, it exits downwards to the event detection state. If the trigger
system is on the upward path and INITiate:CONTinuous is OFF, it exits upwards to
the idle state.
Event Detection State
The trigger source specifies which event causes the trigger system to travel through
the event detection state. The trigger source is set with the following command:
TRIGger:SOURce
There are three possible trigger sources.
•BUS
The trigger source is the GP-IB group execute trigger (<GET>), a *TRG
command, or the TRIGger:IMMediate command.
•HOLD
Triggering is suspended. The only way to trigger the power meter is to send
TRIGger:IMMediate.
•IMMediate
The power meter does not wait for any event and immediately travels
through the event detection state.
Querying the Trigger Source
The trigger source is queried with the following command:
TRIGger:SOURce
1-64Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Triggering the Power Meter
Trigger Delay
The power meter has the ability to insert a delay between receiving a trigger and
making the measurement. The delay is automatically calculated by the power meter
and depends on the current filter length. The delay ensures that the analog circuitry
and the digital filters in the power meter have settled. It does not allow time for power
sensor delay.
To enable the delay, use the following command:
TRIGger:DELay:AUTO ON
To disable the delay, use the following command:
TRIGger:DELay:AUTO OFF
Note MEASure? and CONFigure automatically enable the delay.
Also, when the power meter is first powered on the delay is enabled.
For the fastest possible measurements the delay should be disabled.
Agilent E4418B/E4419B Programming Guide1-65
Power Meter Remote Operation
Getting the Best Speed Performance
Getting the Best Speed Performance
This section discusses the factors that influence the speed of operation (number of
readings/sec) of an Agilent
The following factors are those which have the greatest effect upon measurement
speed (in no particular order):
• The selected speed i.e. 20, 40 or 200 readings/sec.
• The trigger mode (for example, free run, trigger with delay etc.).
• The output format i.e. ASCii or REAL.
• The units used for the measurement.
• The command used to take a measurement.
In addition, in 200 reading/sec mode there are other influences which are described
in
“200 Readings/Sec”, on page 1-68.
The following paragraphs give a brief description of the above factors and how they
are controlled from SCPI.
E4418B/E4419B power meter.
Speed
There are three possible speed settings 20, 40 and 200 readings/sec. These are set
using the SENSe:SPEed command and can be applied to each channel
independently (Agilent
the measurement i.e., 50ms, 25ms and 5ms respectively.
In 20 and 40 readings/sec mode, full instrument functionality is available; 200
readings/sec is available only for E-series sensors and averaging, offsets, limits, and
ratio/difference math functions are disabled.
Refer to “Specifications” in chapter 5 of the User’s Guide to see the influence of these
speed settings on the accuracy and noise performance of the power meter.
E4419B only). The speed setting controls the cycle time of
Trigger Mode
The power meter has a very flexible triggering system. For simplicity, it can be
described as having three modes:
1-66Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Getting the Best Speed Performance
Free run
A channel is in free run whenINITiate:CONTinuous is set to ON and
TRIGger:SOURce is set to IMMediate.
Trigger immediate
There are a variety of methods to achieve this:
TRIG:DEL:AUTO OFF
INIT:CONT OFF
TRIG:SOUR IMM
INIT
TRIG:SOUR BUS
INIT:CONT ON
TRIG
TRIG:DEL:AUTO OFF
TRIG:SOUR BUS
INIT:CONT ON
GET or *TRG
TRIG:DEL:AUTO OFF
INIT:CONT OFF
TRIG:SOUR IMM
READ?
Trigger with delay
This can be achieved using the same sequences above (apart from the second) with
TRIG:DEL:AUTO set to ON. Also, the MEAS? command operates in trigger with
delay mode.
In trigger with delay mode, a measurement is not completed until the power meter
filter is full. In this way, the reading returned is guaranteed to be settled. In all other
modes, the result returned is simply the current result from the filter and may or may
not be settled. This depends on the current length of the filter and the number of
readings that have been taken since a change in power level.
With trigger with delay enabled, the measurement speed can be calculated roughly
using the following equation:
readings/sec = speed (as set by SENSe:SPEed) / filter length
Agilent E4418B/E4419B Programming Guide1-67
Power Meter Remote Operation
Getting the Best Speed Performance
For example, with a filter length of 4 and SENS:SPE set to 20, approximately 5
readings/sec will be calculated by the power meter.
In general, free run mode will provide the best speed performance from the power
meter (especially in 200 readings/sec mode).
Output Format
The power meter has two output formats for measurement results: ASCii and REAL.
These formats can be selected using the FORMat command. When FORMat is set to
REAL, the result returned is in IEEE 754 floating-point format (note that the byte
order can be changed using FORMat:BORDer).
The REAL format is likely to be required only for 200 readings/sec mode as a means
to reduce bus traffic.
Units
The power meter can output results in either linear or log units. The internal units are
linear and therefore optimal performance will be acheived when the results output are
also in linear units (since the overhead of performing a log function is removed).
Command Used
In free run trigger mode, FETC? must be used to retrieve a result.
In other trigger modes, there are a number of commands which can be used, for
example, MEAS?, READ?, FETC? Note that the MEAS? and READ? commands
are compound commands i.e., they perform a combination of other lower level
commands. In general, the best speed performance will be achieved using the low
level commands directly.
200 Readings/Sec
In the highest speed setting, the limiting factor tends to be the speed of the controller
being used to retrieve results from the power meter and to a certain extent the volume
of GP-IB traffic. The latter can be reduced using the FORMat REAL command to
return results in binary format. The former is a combination of two factors:
•the hardware platform being used.
•the programming environment being used.
1-68Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Getting the Best Speed Performance
Note that it is unlikely that 200 readings/sec can be achieved when:
•you are using a 700 series HPUX workstation.
•you are using a low end PC.
•you are using a graphical programming environment (such as HP VEE).
Dual Channel Considerations
With the dual channel instrument, consideration must be taken of what operation is
required on both channels. Both channels can achieve 20 readings/sec simultaneously,
and 40 readings/sec simultaneously, but 200 readings/sec is not achievable on both
channels at the same time. If only single channel measurements are required, then the
other channel should be set to standby mode and not triggered.
The throughput for a channel set in the 200 readings/sec mode will be affected by the
speed mode of the other channel. However, in a situation where fast measurements
are required on one channel and slow measurements on the other, it will be possible to
perform more than one measurement cycle on the fast channel for every measurement
on the slow channel. For example, if channel A is set to 40 readings /sec and channel
B is set to 20 readings/sec, it is possible to construct a loop with 2 reads from channel
A and one from channel B and still achieve the set readings per second.
Agilent E4418B/E4419B Programming Guide1-69
Power Meter Remote Operation
HPIB
GP-IB
Sensor B
Sensor B
Sensor A
Sensor A
SENSe1
:AVER1 :GAIN1
:GAIN3
:GAIN2
Upper Measurement Window
Upper Measurement Window
Upper Measurement Window
“A” | “B”
“A-B” | “B-A”
“A/B” | “B/A”
:MATH
:GAIN
:REL
FORMat
MEAS1:POW:AC?
UNIT1:POW
UNIT1:POW:RAT
MEAS1:POW:AC:DIFF?
MEAS1:POW:AC:REL?
CALCulate1
SENSe2
:AVER1 :GAIN1:GAIN3:GAIN2
MEAS1:POW:AC:DIFF:REL?
MEAS1:POW:AC:RAT:REL?
MEAS1:POW:AC:RAT?
“A” | “B”
“A-B” | “B-A”
“A/B” | “B/A”
:MATH
:GAIN
:REL
Lower Measurement Window
MEAS2:POW:AC?
UNIT2:POW
UNIT2:POW:RAT
MEAS2:POW:AC:DIFF?
MEAS2:POW:AC:REL?
CALCulate2
MEAS2:POW:AC:DIFF:REL?
MEAS2:POW:AC:RAT:REL?
MEAS2:POW:AC:RAT?
B
A
:LIMit
:LIMit
How Measurements are Calculated
How Measurements are Calculated
Figure 1-9 details how measurements are calculated. It shows the order in which the
various power meter functions are implemented in the measurement calculation.
Figure 1-9: How Measurements are Calculated
The MEASure commands in this figure can be replaced with the FETCh? and
READ? commands.
Note All references to channel B in the above diagram refer to the
Agilent
MEAS[1|2]:POW:AC:REL? are the only commands relevant to the Agilent
E4418B.
E4419B only. The MEAS[1|2]:POW:AC? and
1-70Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
Status Reporting
Status Reporting
Status reporting is used to monitor the power meter to determine when events have
occurred. Status reporting is accomplished by configuring and reading status
registers. The power meter has the following main registers:
•Status Register
•Standard Event Register
•Operation Status Register
•Questionable Status Register
•Device Status Register
There are a number of other registers “behind” these. These are described later.
The Status and Standard Event registers are read using the IEEE-488.2 common
commands. These are the most commonly used registers and are described in detail in
this section.
The Operation and Questionable Status registers are read using the SCPI STATus
command subsystem.
Agilent E4418B/E4419B Programming Guide1-71
Power Meter Remote Operation
0
1
2
Bit 0
Bit 1
Bit 2
Bit 3
Condition
Register
Transit ion
Filter
Event
Register
Enable
Register
Logical OR
Summary
Bit
Status Reporting
The General Status Register Model
The generalized status register model shown in Figure 1-10 is the building block of
the SCPI status system. This model consists of a condition register, a transition filter,
an event register and an enable register. A set of these registers is called a status
group.
Figure 1-10: Generalized Status Register Model
When a status group is implemented in an instrument, it always contains all of the
component registers. However, there is not always a corresponding command to read
or write to every register.
Condition Register
The condition register continuously monitors the hardware and firmware status of the
power meter. There is no latching or buffering for this register, it is updated in real
time. Condition registers are read-only.
Transition Filter
The transition filter specifies which types of bit state changes in the condition
registers will set corresponding bits in the event register. Transition filter bits may be
set for positive transitions (PTR), negative transitions (NTR), or both. Transition
filters are read-write. They are unaffected by *CLS or queries. After
STATus:PRESet the NTR register is set to 0 and all bits of the PTR are set to 1.
Event Register
The event register latches transition events from the condition register as specified by
the transition filter. Bits in the event register are latched and once set they remain set
until cleared by a query or a *CLS. Once set, an event bit is no longer affected by
condition changes. It remains set until the event register is cleared; either when you
read the register or when you send the *CLS (clear status) command. Event registers
are read-only.
1-72Agilent E4418B/E4419B Programming Guide
Power Meter Remote Operation
00
01
110
011
0
1
00
0
0
0
0
0
1
11
011
0
1
0
0
0
1
1
0
0
1
0
1
00
01
0
01
0
1
00
0
0
0
0
00
000
000
1
0
0
0
0
0
Case A
Case B
Case C
Case D
Condition
PTR
NTR
Enable
Condition
Event
Summary Bit
Condition
Event
Summary Bit
Condition
Event
Summary Bit
Condition
Event
Summary Bit
Condition
Event
Summary Bit
1
0
T1T2T3
T4
T5
00
0
0
00
***
*
marks when event register is read
Status Reporting
Enable Register
The enable register specifies the bits in the event register that can generate a summary
bit. The instrument logically ANDs corresponding bits in the event and enable
registers and ORs all the resulting bits to obtain a summary bit. Enable registers are
read-write. Querying an enable register does not affect it.
An Example Sequence
Figure 1-11 illustrates the response of a single bit position in a typical status group for
various settings. The changing state of the condition in question is shown at the
bottom of the figure. A small binary table shows the state of the chosen bit in each
status register at the selected times T1 to T5.
Figure 1-11: Typical Status Register Bit Changes
Agilent E4418B/E4419B Programming Guide1-73
Power Meter Remote Operation
Status Reporting
How to Use Registers
There are two methods you can use to access the information in status groups:
•the polling method, or
•the service request (SRQ) method.
Use the polling method when:
•your language/development environment does not support SRQ interrupts.
•you want to write a simple, single purpose program and do not want to add
the complexity of setting an SRQ handler.
Use the SRQ method when you:
•need time critical notification of changes.
•are monitoring more than one device which supports SRQ interrupts.
•need to have the controller do something else while it’s waiting.
•cannot afford the performance penalty inherent to polling.
1-74Agilent E4418B/E4419B Programming Guide
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.