reproduced in any form or by any
means (including electronic storage
and retrieval or translation into a
foreign language) without prior
agreement and written consent from
Keysight Technologies as governed by
United States and international
copyright laws.
Manual Part Number
U8481-90003
Edition
Edition 9, April 15, 2019
Printed in:
Printed in Malaysia
Published by:
Keysight Technologies
Bayan Lepas Free Industrial Zone,
11900 Penang, Malaysia
Technology Licenses
The hard ware and/or software
described in this document are
furnished under a license and may be
used or copied only in accordance with
the terms of such license.
Declaration of Conformity
Declarations of Conformity for this
product and for other Keysight
products may be downloaded from the
Web. Go to http://www.keysight.com/
go/conformity. You can then search by
product number to find the latest
Declaration of Conformity.
U.S. Government Rights
The Software is “commercial computer
software,” as defined by Federal
Acquisition Regulation (“FAR”) 2.101.
Pursuant to FAR 12.212 and 27.405-3
and Department of Defense FAR
Supplement (“DFARS”) 227.7202, the
U.S. government acquires commercial
computer software under the same
terms by which the software is
customarily provided to the public.
Accordingly, Keysight provides the
Software to U.S. government
customers under its standard
commercial license, which is embodied
in its End User License Agreement
(EULA), a copy of which can be found
at http://www.keysight.com/find/
sweula. The license set forth in the
EULA represents the exclusive authority
by which the U.S. government may use,
modify, distribute, or disclose the
Software. The EULA and the license set
forth therein, does not require or
permit, among other things, that
Keysight: (1) Furnish technical
information related to commercial
computer software or commercial
computer software documentation that
is not customarily provided to the
public; or (2) Relinquish to, or
otherwise provide, the government
rights in excess of these rights
customarily provided to the public to
use, modify, reproduce, release,
perform, display, or disclose
commercial computer software or
commercial computer software
documentation. No additional
government requirements beyond
those set forth in the EULA shall apply,
except to the extent that those terms,
rights, or licenses are explicitly required
from all providers of commercial
computer software pursuant to the FAR
and the DFARS and are set forth
specifically in writing elsewhere in the
EULA. Keysight shall be under no
obligation to update, revise or
otherwise modify the Software. With
respect to any technical data as
defined by FAR 2.101, pursuant to FAR
12.211 and 27.404.2 and DFARS
227.7102, the U.S. government
acquires no greater than Limited Rights
as defined in FAR 27.401 or DFAR
227.7103-5 (c), as applicable in any
technical data.
Warranty
THE MATERIAL CONTAINED IN THIS
DOCUMENT IS PROVIDED “AS IS,” AND
IS SUBJECT TO BEING CHANGED,
WITHOUT NOTICE, IN FUTURE
EDITIONS. FURTHER, TO THE MAXIMUM
EXTENT PERMITTED BY APPLICABLE
LAW, KEYSIGHT DISCLAIMS ALL
WARRANTIES, EITHER EXPRESS OR
IMPLIED, WITH REGARD TO THIS
MANUAL AND ANY INFORMATION
CONTAINED HEREIN, INCLUDING BUT
NOT LIMITED TO THE IMPLIED
WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR
PURPOSE. KEYSIGHT SHALL NOT BE
LIABLE FOR ERRORS OR FOR
INCIDENTAL OR CONSEQUENTIAL
DAMAGES IN CONNECTION WITH THE
FURNISHING, USE, OR PERFORMANCE
OF THIS DOCUMENT OR OF ANY
INFORMATION CONTAINED HEREIN.
SHOULD KEYSIGHT AND THE USER
HAVE A SEPARATE WRITTEN
AGREEMENT WITH WARRANTY TERMS
COVERING THE MATERIAL IN THIS
DOCUMENT THAT CONFLICT WITH
THESE TERMS, THE WARRANTY TERMS
IN THE SEPARATE AGREEMENT SHALL
CONTROL.
Safety Information
A CAUTION notice denotes a hazard. It
calls attention to an operating
procedure, practice, or the like that, if
not correctly performed or adhered to,
could result in damage to the product
or loss of important data. Do not
proceed beyond a CAUTION notice
until the indicated conditions are fully
understood and met.
A WARNING notice denotes a hazard. It
calls attention to an operating
procedure, practice, or the like that, if
not correctly performed or adhered to,
could result in personal injury or death.
Do not proceed beyond a WARNING
notice until the indicated conditions are
fully understood and met.
U8480 Series USB Thermocouple Power Sensor
Programming Guide
1U8480 Series Remote
Operation
Introduction 16
Configuring the USB Interface 17
Zeroing and Calibrating the U8480 Series 26
Making Measurements 28
Using Frequency-Dependent Offset Tables 36
Setting the Averaging 43
Setting Offsets 45
Setting Measurement Limits 46
Getting the Best Speed Performance 50
How Measurements are Calculated 53
Status Reporting 54
Saving and Recalling U8480 Series Configurations 69
Using Device Clear to Halt Measurements 70
This chapter describes the parameters that configure the U8480 Series and helps
you determine settings to optimize performance.
15
Page 16
1U8480 Series Remote Operation
Introduction
This chapter contains the following sections:
– “Configuring the USB Interface” on page 17.
– “An Introduction to the SCPI Language” on page 18.
– “Zeroing and Calibrating the U8480 Series” on page 26.
– “Making Measurements” on page 28.
– “Using Frequency-Dependent Offset Tables” on page 36.
– “Setting the Averaging” on page 43.
– “Setting Offsets” on page 45.
– “Setting Measurement Limits” on page 46.
– “Getting the Best Speed Performance” on page 50.
– “How Measurements are Calculated” on page 53.
– “Status Reporting” on page 54.
– “Saving and Recalling U8480 Series Configurations” on page 69.
– “Using Device Clear to Halt Measurements” on page 70.
16U8480 Series Programming Guide
Page 17
Configuring the USB Interface
NOTE
NOTE
The USB interface requires no front panel or remote configuration.
Before connecting the USB cable, make sure that the Keysight IO Libraries
software is installed on your PC.
For further information on connecting and verifying the U8480 Series via USB,
refer to the U8480 Series User’s Guide.
– For more information on configuring the USB remote interface connectivity,
refer to the Keysight USB/LAN/GPIB Interfaces Connectivity Guide.
– If you have installed the IO Libraries Suite, you can access the Connectivity
Guide via the IO Libraries Control icon or via the Web at www.keysight.com/
find/connectivity.
– If you have installed other I/O software, refer to the documentation that
accompanies the software.
U8480 Series Remote Operation1
U8480 Series Programming Guide17
Page 18
1U8480 Series Remote Operation
“B” Subsystem
:G:I:H
:M
:N=:B:H:N
“A” Subsystem
:D:F:E
“C” Subsystem
:J:L=:C:L:K
An Introduction to the SCPI Language
Standard Commands for Programmable Instruments (SCPI) defines how you
communicate with an instrument from a bus controller. The SCPI language uses a
hierarchical structure similar to the file systems used by many bus controllers. The
command tree is organized with root-level commands (also called subsystems)
positioned at the top, with multiple levels below each root-level command. You
must specify the complete path to execute the individual lower-level commands.
Figure 1-1Hierarchical structure of SCPI
Mnemonic forms
Each keyword has both a long form and a short form. A standard notation is used
to differentiate the short-form keyword from the long-form keyword. The long
form of the keyword is shown, with the short form portion shown in upper-case
characters, and the rest of the keyword shown in lower-case characters. For
example, the short form of TRIGger is TRIG.
Using a colon (:)
When a colon is the first character of a command keyword, it indicates that the
next command mnemonic is a root-level command. When a colon is inserted
between two command mnemonics, the colon moves the path down one level in
the present path (for the specified root-level command) of the command tree. You
must separate command mnemonics from each other using a colon. You can omit
the leading colon if the command is the first of a new program line.
18U8480 Series Programming Guide
Page 19
Using a semicolon (;)
NOTE
Use a semicolon to separate two commands within the same command string.
The semicolon does not change the present path specified. For example, the
following two statements are equivalent. Note that in the first statement, the first
colon is optional but the third is compulsory.
If a command requires more than one parameter, you must separate adjacent
parameters using a comma.
Using whitespace
You must use whitespace characters, [tab] or [space], to separate a parameter
from a command keyword. Whitespace characters are generally ignored only in
parameter lists.
U8480 Series Remote Operation1
Using “?” commands
The bus controller may send commands at any time, but a SCPI instrument may
only send responses when specifically instructed to do so. Only query commands
(commands that end with a “?”) instruct the instrument to send a response
message. Queries return either measured values or internal instrument settings.
If you send two query commands without reading the response from the first,
then attempt to read the second response, you may receive some data from the
first response followed by the complete second response. To avoid this, do not
send a query command without reading the response. When you cannot avoid
this situation, send a device clear before sending the second query command.
U8480 Series Programming Guide19
Page 20
1U8480 Series Remote Operation
Using “*” commands
Commands starting with a “*” are called common commands. They are required
to perform the identical function for all instruments that are compliant with the
IEEE-488.2 interface standard. The “*” commands are used to control reset,
self-test, and status operations in the U8480 Series.
Syntax conventions
Throughout this guide, the following conventions are used for the SCPI command
syntax.
– Square brackets ([]) indicate optional keywords or parameters.
– Braces ({}) enclose one or more parameters that may be included zero or more
times.
– Triangle brackets (<>) indicate that you must substitute a value for the
enclosed parameter.
– Bars (|) can be read as “or” and are used to separate alternative parameter
options.
Syntax diagram conventions
– Solid lines represent the recommended path.
– Ovals enclose command mnemonics. The command mnemonic must be
entered exactly as shown.
– Dotted lines indicate an optional path for bypassing secondary keywords.
– Arrows and curved intersections indicate command path direction.
SCPI data types
The SCPI language defines different data formats for use in program messages
and response messages. Instruments are flexible listeners and can accept
commands and parameters in various formats. However, SCPI instruments are
precise talkers. This means that SCPI instruments always respond to a particular
query in a predefined, rigid format.
20U8480 Series Programming Guide
Page 21
U8480 Series Remote Operation1
<digit>
<upper-case
alpha>
<upper-case
alpha>
<boolean> definition
Throughout this document, <boolean> is used to represent ON|OFF|<NRf>.
Boolean parameters have a value of 0 or 1 and are unitless. ON corresponds to 1
and OFF corresponds to 0.
On input, an <NRf> is rounded to an integer. A nonzero result is interpreted as 1.
Queries always return a 1 or 0, never ON or OFF.
<character_data> definition
Throughout this document, <character_data> is used to represent character
data, that is, A-Z, a-z, 0-9, and _ (underscore). For example: START and R6_5F.
The format is defined as follows:
Figure 1-2Format of <character_data>
<NAN> definition
Not a number (NAN) is represented as 9.91E37. Not a number is defined in
IEEE 754.
U8480 Series Programming Guide21
Page 22
1U8480 Series Remote Operation
A/a
B/b
C/c
D/d
E/e
F/f
<digit>
H/h
1
2
3
4
5
6
0
7
Q/q
0
1
#
B/b
<non-decimal numeric> definition
Throughout this document, <non-decimal numeric> is used to represent numeric
information in bases other than ten (that is, hexadecimal, octal, and binary). The
following syntax diagram shows the standard for these three data structures. For
example: #HA2F, #ha4e, #Q62, #q15, #B01011.
Figure 1-3Format of <non-decimal numeric>
22U8480 Series Programming Guide
Page 23
U8480 Series Remote Operation1
digit
+
digit
+
digit
Refer to section 7.7.4.1 of IEEE 488.2 for further details.
<NRf> definition
Throughout this document, <NRf> is used to denote a flexible numeric
representation. For example: +200; –56; +9.9E36. Refer to section 7.7.2.1 of IEEE
488.2 for further details.
<NR1> definition
Throughout this document, the <NR1> numeric response data is defined as:
Figure 1-4Format of <NR1>
For example:
– 146
– +146
– –12345
Refer to section 8.7.2 of IEEE 488.2 for further details.
<NR2> definition
Throughout this document, the <NR2> numeric response data is defined as:
Figure 1-5Format of <NR2>
For example:
– 12.3
– +1.2345
– –0.123
U8480 Series Programming Guide23
Page 24
1U8480 Series Remote Operation
digit
+
digit
digit
+
E
Refer to section 8.7.3 of IEEE 488.2 for further details.
<NR3> definition
Throughout this document, the <NR3> numeric response data is defined as:
Figure 1-6Format of <NR3>
For example:
– 1.23E+6
– 123.4E-54
– –1234.567E+90
Refer to section 8.7.4 of IEEE 488.2 for further details.
<numeric_value> definition
Throughout this document, the decimal numeric element is abbreviated to
<numeric_value>. For example: <NRf>, MINimum, MAXimum, DEFault, or Not A
Number (NAN).
<string> definition
Throughout this document, <string> is used to represent 7-bit ASCII characters.
24U8480 Series Programming Guide
Page 25
The format is defined as:
<inserted “>
<non-double
quote char>
“
“
“
<inserted “>
<non-double
quote char>
“
“
“
<inserted '>
<non-single
quote char>
'
'
'
Program Data
Response Data
U8480 Series Remote Operation1
Figure 1-7Format of <string>
Input message terminators
Program messages sent to a SCPI instrument must terminate with a <newline>
character. The IEEE.488 EOI (end or identify) signal is interpreted as a <newline>
character and may also be used to terminate a message in place of the <newline>
character. A <carriage return> followed by a <newline> is also accepted. Many
programming languages allow you to specify a message terminator character or
EOI state to be automatically sent with each bus transaction. Message
termination always sets the current path back to the root-level.
U8480 Series Programming Guide25
Page 26
1U8480 Series Remote Operation
Zeroing and Calibrating the U8480 Series
The U8480 Series does not require manual calibration. It is equipped with a highly
stable and accurate Internal Reference circuitry so that calibration can be
performed without an external 50 MHz 1 mW power reference.
Zeroing must be performed on the U8480 Series without the presence of RF
power at the U8480 Series input.
Zeroing
Zeroing adjusts the U8480 Series for a zero power reading. Input power to the
U8480 Series must not be present while zeroing is performed.
The CALibration[1]:ZERO:AUTO ONCE command causes the U8480 Series to
perform its zeroing routine, assuming that there is no power being applied to the
U8480 Series.
Zeroing takes approximately 15 seconds to complete.
Zeroing of the U8480 Series is recommended:
– upon power up.
– when a 5
– every 24 hours.
ο
C change in temperature occurs.
– prior to measuring low-level signals (for example, lowest 10 dB of the dynamic
range).
– when switching from or to the fast measurement mode (SENSe:MRATe FAST).
Calibration
The CALibration:AUTO ONCE command is used to calibrate the U8480 Series.
The U8480 Series performs an internal or external calibration:
– Internal calibration (CALibration:TYPE INT) utilizes the Internal Reference
Circuitry to perform calibration, and it does not require a 50 MHz 1 mW power
reference. Internal calibration is not impacted by the input power to the U8480
Series.
26U8480 Series Programming Guide
Page 27
U8480 Series Remote Operation1
– External calibration (CALibration:TYPE EXT) enables the U8480 Series to
perform calibration with a 50 MHz 1 mW power reference or a suitable power
reference.
Internal calibration is the default calibration type upon power up.
Internal calibration of the U8480 Series occurs automatically:
– upon power up.
– when a 10
ο
C change in temperature has occurred since the last calibration.
The CALibration:AUTO [ON|OFF|1|0] command controls the automatic
setting of the internal calibration.
Internal calibration takes approximately 1.5 s to complete, while external
calibration takes approximately 15 s to complete.
Calibration sequence
You can perform a complete calibration sequence in a single query:
CALibration[1][:ALL]?
This query is only applicable for the internal calibration as the U8480 Series does
not have control of the power reference in the external calibration. The calibration
sequence consists of:
1 Zeroing the U8480 Series (CALibration:ZERO:AUTO ONCE) and
2 Calibrating the U8480 Series (CALibration:AUTO ONCE).
This query enters a number into the output buffer when the sequence has
completed. If the result is 0, the sequence is successful. If the result is 1, the
sequence has failed.
Refer to “CALCulate Command Subsystem” on page 94 for further information.
U8480 Series Programming Guide27
Page 28
1U8480 Series Remote Operation
Making Measurements
The MEASure? query and CONFigure command provide a straightforward method
to program the U8480 Series for measurements. You can select the measurement
expected power level and resolution in one command. The U8480 Series
automatically presets other measurement parameters to default values as shown
in Table 1-1 below.
Tab le 1-1MEASure? and CONFigure preset states
CommandMEASure? and CONFigure settings
Trigger source
(TRIGger[1]:SOURce)
Filter
([SENSe[1]:]AVERage:COUNt:AUTO)
Immediate
On
Filter state
([SENSe[1]:]AVERage[:STATe])
Trigger cycle
(INITiate[1]:CONTinuous)
Trigger delay
(TRIGger[1]:DELay:AUTO)
An alternative method to program the U8480 Series is to use the lower-level
commands. The advantage of using the lower-level commands over the
MEASure? query and CONFigure command is that they give you more precise
control of the U8480 Series. As shown in Table 1-1, the CONFigure command
presets various states in the U8480 Series. It may be likely that you do not want to
preset these states.
Using MEASure?
The simplest way to program the U8480 Series for measurements is by using the
MEASure? query. However, this query does not offer much flexibility. When you
execute the query, the U8480 Series selects the best settings for the requested
configuration and immediately performs the measurement. You cannot change any
setting (other than the expected power value and resolution) before the
measurement is taken. This means you cannot finetune the measurement; for
On
Off
On
28U8480 Series Programming Guide
Page 29
U8480 Series Remote Operation1
MEAS?
MEAS? DEF,DEF,(@1)
specifies source list
example, you cannot change the filter length. To make more flexible and accurate
measurements, use the CONFigure command. MEASure? is a compound command
which is equivalent to an ABORt, followed by a CONFigure and a READ?
MEASure? examples
The following examples describe how to use the MEASure? query to make a
measurement. These examples configure the U8480 Series for a measurement (as
described in each individual example), automatically place the U8480 Series in
the “wait-for-trigger” state, trigger the U8480 Series to take one reading, and
then send the reading to the output buffer.
For further information on the
Commands” on page 72.
MEASure? query, refer to the “Measurement
Example 1 - The simplest method
The following shows the simplest method of making measurements using MEAS?
Example 2 - Specifying the source list parameter
The MEASure? query has three optional parameters: an expected power value, a
resolution, and a source list. These parameters must be entered in the specified
order. Parameters may be defaulted from the right by omitting them, or anywhere
by substituting the keyword DEFault. The parameter DEFault is used as a
placeholder.
The source list parameter is used to specify a measurement channel. The U8480
Series supports only one channel. Therefore, the only valid value is (@1). The
expected power and resolution parameters are set to their default values, leaving
them at their current settings.
U8480 Series Programming Guide29
Page 30
1U8480 Series Remote Operation
MEAS? -20,DEF,(@1)
specifies expected power value
MEAS? DEF,3
specifies resolution setting
Example 3 - Specifying the expected power parameter
The previous example details the three optional parameters which can be used
with the MEASure? query. The first optional parameter is used to enter an expected
power value.
The following example uses the expected value parameter to specify a value of
-20 dBm. The resolution parameter is set to its default value, leaving it at its
current setting.
Example 4 - Specifying the resolution parameter
The previous examples detail the use of the expected value and source list
parameters. The resolution parameter is used to set the resolution. This parameter
does not affect the resolution of the data; however it does affect the
auto-averaging setting (refer to “Auto- aver agin g mode” on page 43).
The following example uses the resolution parameter to specify a resolution
setting of 3. This setting represents three significant digits if the measurement unit
is W, and 0.01 dB if the unit is dBm. Refer to Chapter 2, “MEASurement
Commands” on page 71 for further details on the resolution parameter. The
expected power and source list parameters are set to their default values in the
example. The expected power value remains unchanged at its current setting.
Note that as the source list parameter is the last specified parameter, you do not
have to specify DEF.
30U8480 Series Programming Guide
Page 31
Using the CONFigure command
When you execute this command, the U8480 Series presets the optimum settings
for the requested configuration (like the MEASure? query). However, the
measurement is not automatically started, and you can change the measurement
parameters before making measurements. This allows you to change the U8480
Series configuration from the preset conditions. The U8480 Series offers a variety
of low-level commands in the SENSe, CALCulate, and TRIGger command
subsystems. For example, if you want to change the measurement filter length,
use the [SENSe[1]:]AVERage:COUNt command.
Use the INITiate command or the 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 and then sends the reading to the
output buffer. New data is obtained using the READ? query.
Using INITiate and FETCh?
CONFigure does not take the measurement. One method of obtaining the result is
to use the INITiate command and FETCh? query. 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 retrieve the measurement results in a number of different formats
without taking fresh data for each measurement.
U8480 Series Remote Operation1
CONFigure examples
The following examples describe how to use the CONFigure commands together
with the INITiate, READ?, and FETCh? commands to make measurements.
For further information on the CONFigure commands, refer to Chapter 2,
MEASurement Commands.
Example 1 - The simplest method
This example shows the simplest method of querying the measurement results.
U8480 Series Programming Guide31
Page 32
1U8480 Series Remote Operation
Using READ?
*RSTResets the U8480 Series.
CONFConfigures the measurement -sets to a single measurement by
default.
READ?Initiates and retrieves the measurement.
Using INITiate and FETCh?
*RSTResets the U8480 Series.
CONFConfigures the measurement -sets to a single measurement by
default.
INITSets it to wait for a trigger state.
FETC?Triggers a measurement, and then retrieves the measurement
reading.
Example 2 - Specifying the source list parameter
The CONFigure command and READ? query have three optional parameters: an
expected power value, a resolution, and a source list. These parameters must be
entered in the specified order. Parameters may be defaulted from the right by
omitting them, or anywhere by substituting the keyword DEFault. The parameter
DEFault is used as a placeholder.
The following examples use the source list parameter to specify the measurement.
The expected power and resolution parameters are set to their default values,
leaving them at their current settings.
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
will occur.
Using READ?
ABORAborts the measurement.
CONF DEF,DEF,(@1)Configures the measurement to make a measurement
using the current expected power and resolution
settings.
READ?Initiates and retrieves the measurement.
32U8480 Series Programming Guide
Page 33
U8480 Series Remote Operation1
Using INITiate and FETCh?
ABORAborts the measurement.
CONF DEF,DEF,(@1)Configures the measurement to measure using the
current expected power and resolution settings.
INITSets it to wait for a trigger state.
FETC? DEF,DEF,(@1)Triggers a measurement, and then retrieves the
measurement reading.
Example 3 - Specifying the expected power parameter
The previous example details the three optional parameters which can be used
with the CONFigure command and READ? query. The first optional parameter is
used to enter an expected power value.
The following example uses the expected value parameter to specify an expected
power of –20 dBm. The resolution parameter is set to its default value, leaving it
at its current setting.
Using READ?
ABORAborts the measurement.
CONF -20,DEF,(@1)Configures the measurement to use an expected
power of –20 dBm and the current resolution
setting.
READ?Initiates and retrieves the measurement.
Some finetuning of the measurements can be performed using the CONFigure
command and READ? query. For example, in the earlier program segment, some
finetuning can be performed by setting the filter length to 1024 and the trigger
delay off.
1 ABOR
2 CONF -20,DEF,(@1)
3 SENS:AVER:COUN 1024
4 TRIG:DEL:AUTO OFF
5 READ?
U8480 Series Programming Guide33
Page 34
1U8480 Series Remote Operation
Using INITiate and FETCh?
ABORAborts the measurement.
CONF -20,DEF,(@1)Configures the measurement to use an expected
INITSets it to wait for a trigger state.
FETC? -20,DEF,(@1)Triggers a measurement, and then retrieves the
Some finetuning of measurements can be carried out using the CONFigure
command, INITiate command, and FETCh? query. For example, in the above
program segment, some finetuning can be carried out by setting the filter length
to 1024 and the trigger delay off.
1 ABOR
2 CONF -20,DEF,(@1)
3 SENS:AVER:COUN 1024
4 TRIG:DEL:AUTO OFF
power of –20 dBm and the current resolution
setting.
measurement reading.
5 INIT
6 FETC? -20,DEF,(@1)
Example 4 - Specifying the resolution parameter
The previous examples detail the use of the expected value and source list
parameters. The resolution parameter is used to set the measurement resolution.
This parameter does not affect the resolution of the data; however it does affect
the auto-averaging setting.
The following example uses the resolution parameter to specify a resolution
setting of 3. This setting represents three significant digits if the measurement unit
is W, and 0.01 dB if the unit is dBm (for further details on the resolution
parameter, refer to the commands in Chapter 2,MEASurement Commands). Also,
in this example, the expected power and source list parameters are set to their
default values. The expected power value is left unchanged at its current setting.
Note that as the source list parameter is the last specified parameter, you do not
have to specify DEF.
34U8480 Series Programming Guide
Page 35
U8480 Series Remote Operation1
Using READ?
ABORAborts the measurement.
CONF DEF,3Configures the measurement to use the current setting of
the expected power and source list and a resolution
setting of 3.
READ?Initiates and retrieves the measurement.
Some finetuning of the above program segment can be carried out, for example,
by setting the trigger delay off, as shown below.
1 ABOR
2 CONF DEF,3
3 TRIG:DEL:AUTO OFF
4 READ?
Using INITiate and FETCh?
ABOR
CONF DEF,3
INIT
FETC? DEF,3
Some finetuning of the above program segment can be carried out, for example,
by setting the trigger delay off, as shown below.
1 ABOR
2 CONF DEF,3
3 TRIG:DEL:AUTO OFF
4 INIT
5 FETC? DEF,3
U8480 Series Programming Guide35
Aborts the measurement.
Configures the measurement to use the current setting
of the expected power and source list and a resolution
setting of 3.
Sets it to wait for a trigger state.
Triggers a measurement, and then retrieves the
measurement reading.
Page 36
1U8480 Series Remote Operation
Using Frequency-Dependent Offset Tables
This section describes how to use frequency-dependent offset tables. These
tables give you the ability to compensate for frequency effects in your test setup.
Overview
If the [SENSe[1]:]CORRection:CSET2:STATe command is OFF, the
frequency-dependent offset tables are not used. When
[SENSe[1]:]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 U8480 Series is capable of
storing 10 frequency-dependent offset tables of 80 frequency points each.
To use the frequency-dependent offset table:
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 U8480 Series.
5 Specify the frequency of the signal you want to measure. The required offset is
automatically set by the U8480 Series from the frequency-dependent offset
table.
6 Make the measurement.
The figure below illustrates how frequency-dependent offset tables operate.
36U8480 Series Programming Guide
Page 37
U8480 Series Remote Operation1
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 10
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 SELECTE D
OFFSET
2
OFFSET
Frequency-dependent
offset is used to make
measurements using
linear interpolation
U8480 Series Programming Guide37
Figure 1-8Frequency-dependent offset tables
Page 38
1U8480 Series Remote Operation
Editing frequency-dependent offset tables
It is not possible to create any additional frequency-dependent offset tables.
However, the 10 existing tables can be edited using the MEMory command
subsystem. To do this:
1 Select one of the existing tables using
MEMory:TABLe:SELect <“character_data”>
For information on naming frequency-dependent offset tables, see “Naming
frequency-dependent offset tables” on page 40. For information on the current
names which you can select, refer to “Listing the frequency-dependent offset
4 If required, rename the frequency-dependent offset table using
MEMory:TABLe:MOVE <“character_data”>,<“character_data”>. The first
<string> parameter identifies the existing table name, and the second
identifies the new table name.
38U8480 Series Programming Guide
Page 39
U8480 Series Remote Operation1
NOTE
The legal frequency unit multipliers are any of the IEEE unit multipliers, for
example, KHZ, MHZ, and GHZ. If no units are specified, the U8480 Series
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 8 for their specified ranges.
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
U8480 Series 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 U8480 Series,
use the following query:
MEMory:CATalog:TABLe?
The U8480 Series 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.
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 indicated 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:
– Table names use a maximum of 12 characters.
– All characters must be upper or lower case alphabetic characters, or numeric
(0-9), or an underscore (_).
– No spaces are allowed in the name.
Reviewing table data
To review the data stored in a frequency-dependent offset table, use the following
command and queries:
MEMory:TABLe:SELect “Offset1”
Selects the frequency-dependent offset table named “Offset1”.
MEMory:TABLe:SELect?
Returns the name of the currently selected table.
MEMory:TABLe:FREQuency:POINts?
Returns the number of stored frequency points.
MEMory:TABLe:FREQuency?
Returns the frequencies stored in the frequency-dependent offset table (in Hz).
MEMory:TABLe:GAIN[:MAGNitude]:POINts?
Returns the number of offset factor points stored in the frequency-dependent
offset table.
MEMory:TABLe:GAIN[:MAGNitude]?
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.
If you have retained the original data in a program, edit the program and resend
the data.
40U8480 Series Programming Guide
Page 41
U8480 Series Remote Operation1
Selecting a frequency-dependent offset table
After you have created the frequency-dependent offset table, you can select it
using the following command:
[SENSe[1]:]CORRection:CSET2[:SELect] <string>
To find out which frequency-dependent offset table is currently selected, use the
following query:
[SENSe[1]:]CORRection:CSET2[:SELect]?
Enabling a frequency-dependent offset table
To enable the frequency-dependent offset table, use the following command:
[SENSe[1]:]CORRection:CSET2:STATe ON
If you set [SENSe[1]:]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 U8480 Series for the frequency of the
signal you want to measure. The U8480 Series automatically sets the offset factor.
Use either INITiate and FETCh?, or READ? to initiate the measurement as shown
in the following program segments:
ABOR
CONF DEF,2,(@1)
CORR:CSET2:SEL “Offset1”
CORR:CSET2:STAT ON
FREQ 50MHZ
READ?
If the measurement frequency does not correspond directly to a frequency in the
frequency- dependent offset table, the U8480 Series calculates the offset using
linear interpolation.
If you enter a frequency outside the frequency range defined in the
frequency-dependent offset table, then the U8480 Series 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 U8480 Series to make a
measurement, use the following query:
This section provides an overview of setting the averaging. For more detailed
information on this feature, refer to the individual commands in Chapter 8, SENSe
Subsystem.
Averaging
The U8480 Series 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 U8480 Series to the auto-filter mode. To enable and
disable averaging, use the following command:
[SENSe[1]:]AVERage[:STATe] <boolean>
Auto-averaging mode
To enable or disable auto-filter mode, use the following command:
U8480 Series Remote Operation1
[SENSe[1]:]AVERage:COUNt:AUTO <boolean>
When the auto-filter mode is enabled, the U8480 Series 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. Refer to
“Auto-Averaging Settings” on page 374 for more information.
U8480 Series Programming Guide43
Page 44
1U8480 Series Remote Operation
Filter length
You specify the filter length using the following command:
[SENSe[1]:]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.
Tab le 1-2Settling time for normal speed, ×2 speed, and fast speed
Number of averages
10.150.140.003
20.230.160.005
40.330.230.009
80.530.330.018
160.900.510.036
321.680.910.069
643.241.700.134
1286.443.280.265
25612.76.450.528
51225.312.71.05
102450.525.32.10
[a] Manual filter, 10 dB decreasing power step
Settling time
(Normal speed)
[a]
(s)
Settling time
(´2 speed)
[a]
(s)
Settling time
(Fast speed)
[a]
(s)
44U8480 Series Programming Guide
Page 45
Setting Offsets
NOTE
Channel offsets
The U8480 Series can be configured to compensate for signal loss or gain in your
test setup (for example, to compensate for the loss of a 10 dB attenuator). You use
the SENSe command subsystem to configure the U8480 Series. Gain and loss
correction are a coupled system. If you enter an offset value, the state is
automatically enabled. However, it can be enabled and disabled using the
[SENSe[1]:]CORRection:GAIN2:STATe <boolean> command.
To enter a LOSS value, you can enter a negative value in the command:
You can configure the U8480 Series to detect when a measurement is outside of a
predefined upper and/or lower limit value.
Setting limits
The U8480 Series 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 dBm to +230.00 dBm. The default upper limit is
+90.00 dBm, and the default lower limit is –90.00 dBm.
Figure 1-9Limits checking results
The U8480 Series can be configured to verify the measurement in either Watts (W)
or dBm against the predefined upper and/or lower limit values. The upper and
lower limits can be set using the CALCulate[1]:LIMit:UPPer[:DATA] and CALCulate[1]:LIMit:LOWer[:DATA] commands respectively. The range of
values that can be set for the limits and default values depends on the
measurement unit that is currently selected (refer to Tab le 1-3).
46U8480 Series Programming Guide
Page 47
U8480 Series Remote Operation1
NOTE
Table 1-3Range of values for measurement limits
UnitMaximumMinimumDefault maximumDefault minimum
dBm230 dBm
W1e20 W1e–18 W1e6 W1e–12 W
An example of the programming sequence is shown as follows.
-> SYST:PRES DEF// Presets the U8480 Series.
-> UNIT:POW DBM// Sets the measurement unit to dBm.
-> CALC:LIM:STAT 1// Enables the test limit feature.
-> CALC:LIM:LOW 4// Sets the lower limit to 4 dBm.
-> CALC:LIM:UPP 10// Sets the upper limit to 10 dBm.
The U8480 Series will start to monitor the RF power between 4 dBm (lower limit)
and 10 dBm (upper limit). RF power that is either <4 dBm or
>10 dBm will cause the U8480 Series to log an error.
–150 dBm
90 dBm
–90 dBm
“->” indicates the commands that you send to the U8480 Series.
Checking for limit failures
To check for limit failures, use the CALCulate[1]:LIMit:FAIL? and/or
CALCulate[1]:LIMit:FCOunt? queries.
The CALCulate[1]:LIMit:FAIL? query will return 1 if one or more limit failures
have occurred. If no limit failures have occurred, 0 will be returned.
The CALCulate[1]:LIMit:FCOunt? query will return the total number of limit
failures.
U8480 Series Programming Guide47
Page 48
1U8480 Series Remote Operation
An example of the programming sequence is shown as follows.
-> SYST:PRES DEF// Presets the U8480 Series.
-> TRIG:SOUR EXT// Sets the trigger source to external.
-> UNIT:POW DBM// Sets the measurement unit to dBm.
-> CALC:LIM:STAT 1// Enables the test limit feature.
-> CALC:LIM:LOW 4// Sets the lower limit to 4 dBm.
-> CALC:LIM:UPP 10// Sets the upper limit to 10 dBm.
-> CALC:LIM:CLE:AUTO OFF// Disables auto-clearing of the fail counter.
-> CALC:LIM:CLE// Clears the fail counter of any limit failure.
Provides 5 dBm of RF power to the U8480 Series, followed by sending an
external trigger signal to the U8480 Series.
-> CALC:LIM:FAIL?// Checks for limit failures.
<– 0// No limit failure, where the measured
-> CALC:LIM:FCO?// Checks the total number of limit failures.
<– 0// No limit failure has been detected.
Provides 12 dBm of RF power to the U8480 Series, followed by sending an
external trigger signal to the U8480 Series.
-> CALC:LIM:FAIL?// Checks for limit failures.
<– 1// Limit failures have been detected, where
-> CALC:LIM:FCO?// Checks the total number of limit failures.
<– 1// One limit failure has been detected.
Provides 8 dBm of RF power to the U8480 Series, followed by sending an
external trigger signal to the U8480 Series.
-> CALC:LIM:FAIL?// Checks for limit failures.
<– 1// No limit failure. “1” was caused by the
-> CALC:LIM:FCO?// Checks the total number of limit failures.
power is within the range of >4 dBm and
<10 dBm.
the measured power is
>10 dBm. Previous limit failures will not
be cleared.
previous limit failure.
48U8480 Series Programming Guide
Page 49
U8480 Series Remote Operation1
NOTE
NOTE
<– 1// One limit failure has been detected.
Provides 2 dBm of RF power to the U8480 Series, followed by sending an
external trigger signal to the U8480 Series.
-> CALC:LIM:FAIL?// Checks for limit failures.
<– 1// Limit failures have been detected, where
the measured power is
<4 dBm. Previous limit failures will not be
cleared.
-> CALC:LIM:FCO?// Checks the total number of limit failures.
<– 2// Two limit failures have been detected.
“->” indicates the commands that you send to the U8480 Series.
“<-” indicates the response from the U8480 Series.
If TRIGger[1]:DELay:AUTO is set to ON, then the number of failures returned by
CALCulate[1]:LIMit:FCOunt? is affected by the current filter settings.
U8480 Series Programming Guide49
Page 50
1U8480 Series Remote Operation
Getting the Best Speed Performance
This section discusses the factors that influence the speed of operation (number
of readings/sec) of the U8480 Series.
The following factors are those which have the greatest effect upon measurement
speed (in no particular order):
– The selected measurement rate of either NORMal, DOUBle, or FAST.
– The trigger mode (for example, Free Run, Triggered Free Run, or Single Shot).
– The output format: ASCii
– The units used for the measurement.
– The command used to take a measurement.
In addition, there are other influences in the FAST
“Fast mode” on page 52.
The following paragraphs give a brief description of the above factors and how
they are controlled using SCPI.
Measurement rate
There are three possible speed settings: NORMal, DOUBle, and FAST. These are set
using the [SENSe[1]:]MRATe command.
In the NORMal and DOUBle modes, full instrument functionality is available, but in
the FAST mode, limits are disabled.
Refer to the specifications in the U8480 Series User’s Guide to determine the
influence of these speed settings on the accuracy and noise performance of the
U8480 Series.
Trigger mode
The U8480 Series has a very flexible triggering system. For simplicity, it can be
described as having three modes:
or REAL.
mode which are described in
– Free Run: When the U8480 Series is in the Free Run mode, it continuously
takes measurements. A measurement is in free run when
INITiate:CONTinuous is set to ON and TRIGger:SOURce is set to IMMediate.
50U8480 Series Programming Guide
Page 51
U8480 Series Remote Operation1
NOTE
– Triggered Free Run: When the U8480 Series is in the Triggered Free Run or
Continuous Trigger mode, it takes a new measurement each time a trigger
event is detected. A measurement is in triggered free run or continuous trigger
when INITiate:CONTinuous is set to ON and TRIGger:SOURce is not set to
IMMediate.
– Single Shot: When the U8480 Series is in the Single Shot mode, it takes a new
measurement when a trigger event is detected and then returns to the idle
state. A measurement is in single shot when INITiate:CONTinuous is set to
OFF. Note that a measurement can take several EXT triggers depending on the
filter settings. Refer to “TRIGger[1]:DELay:AUTO <boolean>” on page 311 for
further information.
A trigger event can be any of the following:
– The input signal meeting the trigger level criteria.
– Auto-level triggering being used.
–A TRIGger[1][:IMMediate] or *TRG command being sent.
– An external TTL level trigger being detected.
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? query operates in the trigger with
delay mode.
In the trigger with delay mode, a measurement is not completed until the U8480
Series 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[1]:]MRATe) / filter length
For example, with a filter length of 4 and [SENSe[1]:]MRATe set to NORMal,
approximately 5 readings/sec is calculated by the U8480 Series.
U8480 Series Programming Guide51
Page 52
1U8480 Series Remote Operation
Output format
The U8480 Series has two output formats for measurement results: ASCii and
REAL. These formats are selected using the FORMat command. When FORMat is set
to REAL, the returned result is in the 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 the FAST mode as it reduces the
amount of bus traffic.
Units
The U8480 Series can output results in either linear or log units. The internal units
are linear; therefore optimal performance is achieved when the results output are
also in linear units (since the overhead of performing a log function is removed).
Command used
In the Free Run mode, FETCh? must be used to return a result.
In other trigger modes, there are a number of queries that can be used, for
example, MEASure?, READ?, FETCh?. Note that the MEAS? and READ? queries are
compound commands — they perform a combination of other lower-level
commands. Typically, the best speed performance is achieved using the low-level
commands directly.
Trigger count
To get the fastest measurement speed, TRIG:COUNt must be set to return multiple
measurements for each FETCh? query. For average only measurements, a count of
4 is required; however, 10 is recommended.
Fast mode
In the highest speed setting, the limiting factor tends to be the speed of the
controller being used to retrieve results from the U8480 Series, and to a certain
extent, the volume of remote traffic. The latter can be reduced using the FORMat REAL command to return results in the binary format. The former is a combination
of two factors:
– the hardware platform being used
– the programming environment being used
52U8480 Series Programming Guide
Page 53
How Measurements are Calculated
SENSe[1]
Sensor
Freq.
corr.
Filter
Offset
Duty
cycle
Math
Limits
Switch
Conversion
Switch
FORMat
:FREQ
:CORR:CSET2
TRIG
:AVER :CORR:GAIN2
:CORR:DCYC
CALCulate[1]
:FEED[1]
:MATH
:LIM
UNIT[1]
:POW
MEAS?
READ?
FETC?
CONF
:MRAT
:SPE
:DET:FUNC
Figure 1-10 shows how measurements are calculated. It shows the order in which
the various U8480 Series functions are implemented in the measurement calculation.
Figure 1-10How measurements are calculated
U8480 Series Remote Operation1
U8480 Series Programming Guide53
Page 54
1U8480 Series Remote Operation
0
1
2
Bit 0
Bit 1
Bit 2
Bit 3
Condition
Register
Transition
Filter
Event
Register
Enable
Register
Logical OR
Summary
Bit
Status Reporting
Status reporting is used to monitor the U8480 Series to determine when events
have occurred. Status reporting is accomplished by configuring and reading
status registers.
The U8480 Series has the following main registers:
–Status Register
– Standard Event Register
– Operation Status Register
– Questionable Status Register
– Device Status Register
There are other registers that exist “behind” the main registers, and they are
described later in this chapter.
Status and Standard Event registers are read using the IEEE-488.2 common
commands.
Operation and Questionable Status registers are read using the SCPI STATus
command subsystem.
The general status register model
The generalized status register model shown in Figure 1-11 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-11Generalized status register model
54U8480 Series Programming Guide
Page 55
U8480 Series Remote Operation1
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 hard ware and firmware status of
the U8480 Series. 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 type of changes to the bit state in the
condition register will set corresponding bits in the event register. Transition filter
bits may be set for positive transitions (PTR), negative transitions (NTR), or both.
Positive transition will cause the corresponding bit in the event register to be set
when the condition bit changes from 0 to 1. Negative transition will cause the
corresponding bit in the event register to be set when the condition bit changes
from 1 to 0. Setting both positive and negative transitions will cause the
corresponding bit in the event register to be set whenever the condition bit
changes. Clearing both the positive and negative transition filters disables the
corresponding bit in the event register to be set. Transition filters are read-write.
They are unaffected by clear status (*CLS) or queries.
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
the bits are set, they will remain set until they are cleared by a query or clear
status (*CLS). There is no buffering; therefore, while an event bit is set,
subsequents events corresponding to that bit are ignored. Event registers are
read-only.
Enable register
The enable register specifies which bits in the event register 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. Summary
bits are, in turn, recorded in another register, usually the Status Byte. Enable
registers are read-write. They are not affected by clear status (*CLS) or querying
the enable registers. There is always a command to read and write to the enable
register of a particular status group.
U8480 Series Programming Guide55
Page 56
1U8480 Series Remote Operation
00
01
110
011
0
1
00
0
0
0
0
0
1
11
011
0
1
000
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 the event register is read
An example sequence
Figure 1-12 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 selected times T1 to T5.
Figure 1-12Typical status register bit changes
Consider Case C, where the positive transition filter is set to 1 and negative
transition filter to 0. This configures the U8480 Series to set the corresponding bit
in the event register whenever the condition bit changes from 0 to 1. The enable
register is set to 1 to enable the summary bit to be generated each time there is a
change in the event register.
At time T1, the condition bit is 0. Since there is no changes to the condition bit at
this time, no corresponding bit in the event register will be set and the summary
bit is 0.
At time T2, the condition bit changes from 0 to 1. Since the positive transition filter
56U8480 Series Programming Guide
is set to detect condition bit changes from 0 to 1, the corresponding bit in the event
register will be set to 1. The enable register is set to 1, which means that the
summary bit will also be set to 1 whenever any bit in the event register is set to 1.
At time T3, the condition bit remains 1. The event register is cleared by a query.
Hence, the event register bit and summary bit are set to 0.
Page 57
U8480 Series Remote Operation1
At time T4, the condition bit changes from 1 to 0. Since the positive transition
filter is set to detect condition bit changes from 0 to 1, the corresponding bit in
the event register will be set to 0, signifying no event has been logged. The
summary bit is set to 0 as no bit is set in the event register.
At time T5, the condition bit remains 0. Since there is no changes to the condition
bit at this time, no corresponding bit in the event register will be set and the
summary bit is 0.
Consider Case D, where the positive transition filter is set to 1 and negative
transition filter to 1. This configures the U8480 Series to set the corresponding bit
in the event register whenever there are changes to the condition bit. The enable
register is set to 0 to disable the summary bit to be generated.
At time T1, the condition bit is 0. Since there is no changes to the condition bit at
this time, no corresponding bit in the event register will be set and the summary
bit is 0.
At time T2, the condition bit changes from 0 to 1. Since the positive and negative
transition filters are set to detect any changes to the condition bit, the
corresponding bit in the event register will be set to 1. The enable register is set to
0, which means that the summary bit will not be set.
At time T3, the condition bit remains 1. The event register is cleared by a query.
Hence, the event register bit and summary bit are set to 0.
At time T4, the condition bit changes from 1 to 0. Since the positive and negative
transition filters are set to detect any changes to the condition bit, the
corresponding bit in the event register will be set to 1, signifying an event has
been logged. The summary bit is 0 as the enable register is set to 0.
At time T5, the condition bit remains 0. The event register is cleared by a query.
Hence, the event register bit and summary bit are set to 0.
U8480 Series Programming Guide57
Page 58
1U8480 Series Remote Operation
How to read registers
The condition polling method is used to access the information in the status
register groups. In this method, the U8480 Series has a passive role. It only
informs the PC that conditions have changed when the PC “asks”. When you
monitor a condition with the polling method, you must:
1 Determine which register contains the bit that monitors the condition.
2 Send the unique query that reads that register.
3 Examine the bit to see if the condition has changed.
The polling method works well if you do not need to know about the changes the
moment they occur. Detecting an immediate change in a condition using the
polling method requires your program to continuously read the registers at very
short intervals. This is not particularly efficient, and there is a possibility that an
event may be missed.
Status registers
The Status System in the U8480 Series is shown in Figure 1-13. The Operation
Status and Questionable Status groups are 16 bits wide, while the Status Byte and
Standard Event groups are 8 bits wide. In all 16-bit groups, the most significant bit
(bit 15) is not used and is always set to 0.
58U8480 Series Programming Guide
Page 59
U8480 Series Remote Operation1
Questionable Status
Logical OR
Condition EventEnable
Operation Status
Logical OR
Condition EventEnable
Standard Event
Logical OR
Event
Enable
*ESR
*ESE
Status Byte
Logical OR
*STB?
*SRE
MAV
0
1
2
QUE
ESB
RQS
OPR
MAV
0
1
2
QUE
ESB
X
OPR
Output Queue
Device Status
Logical OR
Condition EventEnable
Error/Event Queue
Figure 1-13Status system
U8480 Series Programming Guide59
Page 60
1U8480 Series Remote Operation
Status byte summary register
The status byte summary register reports conditions from other status registers.
Query data waiting in the U8480 Series output buffer is immediately reported
through the “message available” bit (bit 4). Clearing an event register clears the
corresponding bits in the status byte summary register. Reading all messages in
the output buffer, including any pending queries, clears the message available bit.
Tab le 1-4Bit definitions - Status byte register
Bit numberDecimal weightDefinition
01Not Used (Always set to 0)
12Device Status Register summary bit
One or more bits are set in the Device Status Register (bits must be “enabled” in
the enable register)
24Error/Event Queue
38Questionable Status Register summary bit
One or more bits are set in the Questionable Status Register (bits must be
“enabled” in the enable register)
416Data Available
Data is available in the U8480 Series output buffer
532Standard Event
One or more bits are set in the Standard Event register (bits must be “enabled” in
the enable register)
664Request Service
The U8480 Series is requesting service (serial poll)
7 128Operation Status Register summary bit
One or more bits are set in the Operation Status Register (bits must be “enabled”
in the enable register)
Particular bits in the status byte register are cleared when:
– The standard event, questionable status, operation status, and device status
are queried.
– The error or event queue becomes empty.
– The output queue becomes empty.
60U8480 Series Programming Guide
Page 61
U8480 Series Remote Operation1
The status byte enable register (SRE, service request enable) is cleared when you:
– cycle the U8480 Series power.
–execute a *SRE 0 command.
Using *STB? to read the status byte
The *STB? (status byte query) is similar to a serial poll except it is processed like
any other U8480 Series command. *STB? returns the same result as an IEEE-488
serial poll except that the request service bit (bit 6) is not cleared if a serial poll
has occurred. *STB? is not handled automatically by the IEEE-488 bus interface
hardware, and the query is executed only after previous commands have
completed. Using *STB? does not clear the status byte summary register.
Standard event register
The standard event register reports the following types of instrument events:
power-on detected, command and syntax errors, command execution errors,
self-test or calibration errors, query errors, or when an overlapped command
completes following an *OPC command. Any or all of these conditions can be
reported in the standard event summary bit through the enable register. You must
write a decimal value using the *ESE (event status enable) command to set the
enable register mask.
Table 1-5Bit definitions - Standard event register
Bit numberDecimal valueDefinition
01Operation Complete
All overlapped commands following an *OPC command have been completed
12Not Used (always set to 0)
24 Query Error
A query error occurred, refer to error numbers 410 to 440 in Error message list
3 8Device-Dependent Error
A device error occurred, refer to error numbers 310 to 350 in Error message list
U8480 Series Programming Guide61
Page 62
1U8480 Series Remote Operation
Bit numberDecimal valueDefinition
4 16Execution Error
An execution error occurred, refer to error numbers 211 to 231 in Error message list
5 32Command Error
A command syntax error occurred, refer to error numbers 101 to 178 in Error
message list
6 64User Request
7128Power On
Power has been turned off and on since the last time the event register was read or
cleared
The standard event register is cleared when you:
–send a *CLS (clear status) command.
– query the event register using *ESR? (event status register).
The standard event enable register is cleared when you:
– cycle the U8480 Series power.
– execute an *ESE 0 command.
Questionable status register
The questionable status register provides information about the quality of the
U8480 Series measurement results. Any or all of these conditions can be reported
in the questionable data summary bit through the enable register. You must write
a value using the STATus:QUEStionable:ENABle command to set the enable
register mask.
62U8480 Series Programming Guide
Page 63
U8480 Series Remote Operation1
The following bits in these registers are used by the U8480 Series.
Table 1-6Bit definitions - Questionable status registers
Bit numberDecimal weightDefinition
0 to 2-Not Used
38POWer Summary
4 to 7-Not Used
8256CALibration Summary
9512Power-On Self-Test
10 to 14-Not Used
15-Not Used (always 0)
The condition bits are set and cleared under the following conditions:
Table 1-7Bit change conditions for Questionable status register
Bit numberDefinitionEVENts causing bit changes
3POWer SummaryThis is a summary bit for the Questionable POWer Register
When any of the commands listed above succeed and no errors are placed on
the error queue
This bit is set when the power-on self-test fails
– CLEARED:
When the power-on self-test passes
Operation status register
The Operation Status group monitors conditions in the U8480 Series
measurement process.
The following bits in these registers are used by the U8480 Series:
Tab le 1-8Bit definitions - Operation status
Bit numberDecimal weightDefinition
01CALibrating Summary
1 to 3-Not Used
416MEASuring Summary
532Waiting for TRIGger Summary
6 to 9-Not Used
101024SENSe Summary
112048Lower Limit Fail Summary
124096Upper Limit Fail Summary
64U8480 Series Programming Guide
Page 65
U8480 Series Remote Operation1
Bit numberDecimal weightDefinition
13 to 14-Not Used
15-Not Used (always 0)
The condition bits are set and cleared under the following conditions:
Table 1-9Bit change conditions for operation status
Bit numberDefinitionEVENts causing bit changes
0CALibratingThis is a summary bit for the Operation CALibrating Register
– SET:
At the beginning of zeroing (CALibration[1]:ZERO:AUTO ONCE) or calibration
(CALibration[1]:AUTO ONCE). Also for the compound command/query
CALibration[1][:ALL]?, this bit is set when calibration begins.
– CLEARED:
At the end of zeroing or calibration
4MEASuringThis is a summary bit for the Operation MEASuring Register
– SET:
When the U8480 Series is taking a measurement
– CLEARED:
When the measurement is completed
5Waiting for
TRIGger
10SENSeThis is a summary bit for the Operation SENSe Register
This is a summary bit for the Operation TRIGger Register
– SET:
When the U8480 Series enters the “wait-for-trigger” state
– CLEARED:
When the U8480 Series enters the “idle” state
– SET:
When the U8480 Series is reading data from the non-volatile memory
– CLEARED:
When the U8480 Series is not reading data from the non-volatile memory
U8480 Series Programming Guide65
Page 66
1U8480 Series Remote Operation
Bit numberDefinitionEVENts causing bit changes
11Lower Limit FailThis is a summary bit for the Lower Limit Fail Register
– SET:
If a measurement is made and the lower limit test fails
– CLEARED:
If a measurement is made and the lower limit test is not enabled or the test is enabled
and passes
12Upper Limit FailThis is a summary bit for the Upper Limit Fail Register
– SET:
If a measurement is made and the upper limit test fails
– CLEARED:
If a measurement is made and the upper limit test is not enabled or the test is enabled
and passes
Device status register
The device status register set contains bits which give device-dependent
information.
The following bits in these registers are used by the U8480 Series:
Table 1-10Bit definitions - Device status register
Bit numberDecimal weightDefinition
0 to 2-Not Used
38U8480 Series Error
4 to 14-Not Used
15-Not Used (always 0)
66U8480 Series Programming Guide
Page 67
The condition bits are set and cleared under the following conditions:
Table 1-11Bit change conditions for Device status
Bit numberDefinitionEVENts causing bit changes
3U8480 Series Error– SET:
If the U8480 Series non-volatile memory has failed or other hardware has failed
– CLEARED:
In every other condition
U8480 Series Remote Operation1
U8480 Series Programming Guide67
Page 68
1U8480 Series Remote Operation
Using the Operation Complete commands
*OPC? and *OPC allow you to maintain synchronization between the PC and the
U8480 Series. *OPC? places a 1 into the U8480 Series output queue when all
pending U8480 Series commands have completed. If your program reads this
response before continuing program execution, you can ensure synchronization
between one or more sensors and the PC.
The *OPC command sets bit 0 (Operation Complete) in the Standard Event Status
Register when all pending U8480 Series operations have completed.
Procedure
1 Send a Device Clear message to clear the U8480 Series output buffer.
2 Clear the event registers with the *CLS (clear status) command.
3 Enable operation complete using the *ESE 1 command (standard event
register).
4 Send *OPC? (operation complete query) to assure synchronization.
5 Send your programming command string, and place the *OPC (operation
complete) command as the last command.
6 Send *STB? (status byte query) to poll the register. This command does not
clear the status byte summary register.
Examples
This example program uses *OPC? to determine when the U8480 Series has
finished calibrating.
CAL:AUTO ONCE
*OPC?
MEAS?
68U8480 Series Programming Guide
Page 69
U8480 Series Remote Operation1
Saving and Recalling U8480 Series Configurations
To reduce repeated programming, up to ten U8480 Series configurations can be
stored in the U8480 Series non-volatile memory. The error list, remote addresses,
calibration table data, and zeroing/calibration information are not stored.
How to save and recall a configuration
The U8480 Series configurations are saved and recalled with the following
commands:
*SAV <NRf>
*RCL <NRf>
The range of values for <NRf> in the above commands is 1 to 10.
U8480 Series Programming Guide69
Page 70
1U8480 Series Remote Operation
Using Device Clear to Halt Measurements
Device clear is an IEEE-488 low-level bus message which can be used to halt
measurements in progress. The status registers, the error queue, and all
configuration states are left unchanged when a device clear message is received.
Device clear performs the following actions:
– All measurements in progress are aborted.
– The U8480 Series returns to the trigger “idle state”.
– The U8480 Series input and output buffers are cleared.
– The U8480 Series is prepared to accept a new command string.
70U8480 Series Programming Guide
Page 71
U8480 Series USB Thermocouple Power Sensor
Programming Guide
This chapter explains how to use the MEASure group of instructions to acquire
data using a set of high-level instructions.
71
Page 72
2MEASurement Commands
CONFigure1?
current measurement
Measurement Commands
Measurement commands are high-level commands used to acquire data. They
enable you to trade interchangeability against fine control of the measurement
process.
Measurement commandDescription
MEASure?Provides the simplest way to program a U8480 Series for measurements. MEASure? is a
compound command which is equivalent to a CONFigure followed by a READ?. It does not
enable much flexibility or control over measurement settings.
CONFigureUsed to change the U8480 Series configuration values. CONFigure must then be followed by
another command which takes the measurement, for example, INITiate? followed by
FETCh?
READ?Takes a measurement using parameters previously set up using either CONFigure or
lower-level commands. READ? is equivalent to an INITiate (which performs the data
acquisition) and a FETCh?
FETCh?
[a] INITiate is described in Chapter 12,“TRIGger Subsystem” on page 297.
Retrieves measurements taken by INITiate
[a]
.
CONFigure, FETCh?, READ?, and MEASure? all have a numeric suffix which refers to
a specific measurement window. The U8480 Series does not have the
measurement window feature, so this suffix is always 1. Figure 2-1 shows an
example of the configuration returned measurement result.
CONFigure, FETCh?, READ?, andMEASure? have the following three optional
parameters:
– An expected power value
–A resolution
– A source list
Refer to “Auto-Averaging Settings” on page 374 to configure the correct
parameters for expected power and resolution.
Expected power value
The <expected_value> parameter sets the expected power level of the
measurement.
Resolution
The <resolution> parameter sets the resolution of the measurement. This
parameter does not affect the resolution of the returned data, but it does affect
the auto-averaging setting.
MEASurement Commands2
Source list
The <source list> parameter is used to define the measurement channel.
U8480 Series Programming Guide73
Page 74
2MEASurement Commands
?
CONF
1
CONFigure[1]?
This query returns the present configuration of the measurement.
Syntax
The returned string depends on the setting of the CALCulate:MATH commands.
The configuration is returned as a quoted string in the following format:
<expected_value> returns the expected value sent by the last CONFigure
command or +20 dBm by default.
Example
CONF?Queries the measurement configuration.
Reset condition
On reset:
– The command function is set to :POWer:AC.
– The expected power level is set to +20 dBm.
– The resolution is set to 3.
– The source list on the U8480 Series is set to (@1).
74U8480 Series Programming Guide
Page 75
MEASurement Commands2
CONFigure[1] Command
The CONFigure command is used to set:
– the expected measurement power level.
– the measurement resolution.
The CONFigure command does not make the power measurement after setting
the configuration. Use READ?, or alternatively use INITiate followed by a FETCh?,
to make the measurement.
The CONFigure command also applies the following defaults to the
measurement(s) which are specified in the <source list> parameter:
Default settingsDescription
INITiate[1]:CONTinuous OFFSets the U8480 Series to make one trigger cycle when
INITiate is sent
TRIGger[1]:SOURce IMMediateWhen TRIG:SOUR is set to BUS or HOLD, sets the U8480
Series to make the measurement immediately once a trigger
is received
TRIGger[1]:DELay:AUTO ONEnables automatic delay before making the measurement
Refer to “Auto-Averaging Settings” on page 374 to configure the correct
parameters for the expected power and resolution.
Syntax
76U8480 Series Programming Guide
Page 77
MEASurement Commands2
Parameters
Refer to “Optional parameters” on page 73 for additional details on the
parameters in this command.
ItemDescription/DefaultRange of values
expected_valueA numeric value for the expected power level. The
units of measurement are dBm and W. The default
units are defined by UNIT:POWer
resolutionA numeric value for the resolution. If unspecified, the current
resolution setting is used.
sensor-dependent
[a]
DEF
[b]
1 to 4
1.0, 0.1, 0.01, 0.001
[a]
DEF
source listThe measurement channel which the command is
implemented on. The U8480 Series supports only one
channel. Therefore, the only valid value is (@1).
[a] The mnemonic DEF means DEFault. This is not equivalent to the DEFault parameter used in the command subsystems. The parameters must
be entered in the specified order. If parameters are omitted, they default from the right. The parameter DEFault is used as a placeholder.
Specifying DEF leaves the parameter value unchanged.
[b] When the measurement result is linear, this parameter represents the number of significant digits. When the measurement result is
logarithmic, 1 to 4 represents 1, 0.1, 0.01, and 0.001 respectively.
(@1)
Example
CONF DEF,2,(@1)This command configures the measurement
to measure power using the current range
and a resolution setting of 2.
U8480 Series Programming Guide77
Page 78
2MEASurement Commands
NOTE
FETCh[1]? Query
The FETCh? query calculates the measurement and sends the result to the PC.
The result format is set by FORMat[:READing][:DATA]. Refer to Chapter 5,
“FORMat Subsystem,” on page 125 for further information.
The query returns a measurement result when it is valid. The measurement result
is invalid under the following conditions:
– when *RST is executed.
– whenever a measurement is initiated.
– when any SENSe parameter, such as frequency, is changed.
If the data is invalid, the FETCh? query is not completed until all data becomes
valid. The exceptions to this are, if the U8480 Series is in the idle state and the
data is invalid, or the U8480 Series has been reconfigured as defined above and
no new measurement has been initiated. In such cases, the FETCh? routine
generates the error –230, “Data corrupt or stale” and no result is returned. A
common cause for this error is receiving a FETCh?
value and resolution parameters are not the same as those that were used to
collect the data, error –221, “Settings conflict” occurs.
after a *RST. If the expected
When TRIGger[1]:SOURce is EXT and a new acquisition has been initiated (using
the INITiate command for example), FETCh? waits until the trigger takes place
before executing. If trigger conditions are not satisfied — when the trigger level
differs greatly from the signal level for example — this can give the impression
that the U8480 Series has hung.
To unlock the U8480 Series and adjust trigger settings, a Device Clear command
must be performed.
This command sets the measurement function, recalculates the measurement,
and places the result on the bus. The result is a power-based measurement and is
expressed in the units defined by UNIT[1]:POWer.
Refer to “Auto-Averaging Settings” on page 374 to configure the correct
parameters for the expected power and resolution.
Syntax
Parameters
Refer to “Optional parameters” on page 73 for additional details on the
parameters in this command.
ItemDescription/DefaultRange of values
expected_valueThe expected power level parameter can be set to DEF or a
numeric value. If a value is entered, it should correspond to
that set by CONFigure otherwise an error occurs. The units of
measurement are dBm and W. The default units are defined by
UNIT:POWer.
U8480 Series Programming Guide79
sensor-dependent
[a]
DEF
Page 80
2MEASurement Commands
ItemDescription/DefaultRange of values
resolutionA numeric value for the resolution. If it is unspecified, the
current resolution setting is used. If a value is entered, it
should correspond to the current resolution setting otherwise
an error occurs.
[b]
1 to 4
1.0, 0.1, 0.01, 0.001
[a]
DEF
source listThe measurement channel which the command is
implemented on. The U8480 Series supports only one
channel. Therefore, the only valid value is (@1).
[a] The mnemonic DEF means DEFault. This is not equivalent to the DEFault parameter used in the command subsystems. The parameters must
be entered in the specified order. If parameters are omitted, they default from the right. The parameter DEFault is used as a placeholder.
Specifying DEF leaves the parameter value unchanged.
[b] When the measurement result is linear, this parameter represents the number of significant digits. When the measurement result is
logarithmic, 1 to 4 represents 1, 0.1, 0.01, and 0.001 respectively.
(@1)
Example
FETC?Queries the measurement result.
Error messages
– If the last measurement is not valid, error –230, “Data corrupt or stale” occurs.
A measurement is valid after it has been initiated. It becomes invalid when
either a reset occurs or any measurement parameter, for example frequency, is
changed.
– If the expected_value and resolution parameters are not the same as the
current expected value and resolution settings on the measurement, error
–221, “Settings conflict” occurs.
This command sets the measurement function, recalculates the measurement and
the corresponding measurement uncertainty, and places the result on the bus.
The result is a power-based measurement and is expressed in the units defined by
UNIT[1]:POWer.
When “UNIT:POW W” is set, the parameters returned will be:
–measured power in Watts
– +measurement uncertainty value in %
– –measurement uncertainty value in %
When “UNIT:POW DBM” is set, the parameters returned will be:
–measured power in dBm
– +measurement uncertainty value in dB
– –measurement uncertainty value in dB.
This query is only supported for TRIG:COUNT of 1. It is not supported for power
and frequency sweep modes.
Syntax
U8480 Series Programming Guide81
Page 82
2MEASurement Commands
Parameters
Refer to “Optional parameters” on page 73 for additional details on the
parameters in this command.
ItemDescription/DefaultRange of values
expected_valueThe expected power level parameter can be set to DEF or a
numeric value. If a value is entered, it should correspond to
that set by CONFigure otherwise an error occurs. The units of
measurement are dBm and W. The default units are defined by
UNIT:POWer.
resolutionA numeric value for the resolution. If it is unspecified, the
current resolution setting is used. If a value is entered, it
should correspond to the current resolution setting otherwise
an error occurs.
source listThe measurement channel which the command is
implemented on. The U8480 Series supports only one
channel. Therefore, the only valid value is (@1).
[a] The mnemonic DEF means DEFault. This is not equivalent to the DEFault parameter used in the command subsystems. The parameters must
be entered in the specified order. If parameters are omitted, they default from the right. The parameter DEFault is used as a placeholder.
Specifying DEF leaves the parameter value unchanged.
[b] When the measurement result is linear, this parameter represents the number of significant digits. When the measurement result is
logarithmic, 1 to 4 represents 1, 0.1, 0.01, and 0.001 respectively.
sensor-dependent
[a]
DEF
[b]
1 to 4
1.0, 0.1, 0.01, 0.001
[a]
DEF
(@1)
Error messages
– If this query is sent, and TRIG:COUNT > 1, error –221, “Settings conflict”
occurs.
82U8480 Series Programming Guide
Page 83
READ[1] Query
The READ? query is most commonly used with the CONFigure command to cause a
new power measurement to be taken and the result returned to the output buffer.
The result format is set by FORMat[:READing][:DATA]. Refer to Chapter 5,
“FORMat Subsystem” on page 125 for further information.
This query sets the measurement function, aborts then initiates the measurement,
calculates the measurement result, and places the result on the bus. The result is
a power-based measurement and is expressed in the units defined by
UNIT[1]:POWer.
Refer to “Auto-Averaging Settings” on page 374 to configure the correct
parameters for expected power and resolution.
INITiate[1]:CONTinuous must be set to OFF, otherwise error –213, “INIT
ignored” occurs. If TRIGger[1]:SOURce is set to BUS, error –214, “Trigger
deadlock” occurs.
Syntax
84U8480 Series Programming Guide
Page 85
MEASurement Commands2
Parameters
Refer to “Optional parameters” on page 73 for additional details on the
parameters in this query.
ItemDescription/DefaultRange of values
expected_value
(for the expected power
level)
resolutionA numeric value for the resolution. If it is unspecified, the
source listThe measurement channel which the command is
[a] The mnemonic DEF means DEFault. This is not equivalent to the DEFault parameter used in the command sub-systems. The parameters must
be entered in the specified order. If parameters are omitted, they default from the right. The parameter DEFault is used as a placeholder.
Specifying DEF leaves the parameter value unchanged.
[b] When the measurement result is linear, this parameter represents the number of significant digits. When the measurement result is
logarithmic, 1 to 4 represents 1, 0.1, 0.01, and 0.001 respectively.
The expected power level parameter can be set to
DEF or a numeric value. If a value is entered, it should
correspond to that set by CONFigure otherwise an
error occurs.
current resolution setting is used. If a value is entered, it
should correspond to the current resolution setting otherwise
an error occurs.
implemented on. The U8480 Series supports only one
channel. Therefore, the only valid value is (@1).
sensor-dependent
[a]
DEF
[b]
1 to 4
1.0, 0.1, 0.01, 0.001
[a]
DEF
(@1)
Example
READ?Queries the measurement.
Error messages
– INITiate[1]:CONTinuous must be set to OFF, otherwise error –213, “Init
ignored” occurs.
–If TRIGger[1]:SOURce is set to BUS or HOLD, error –214, “Trigger deadlock”
occurs.
– If the expected value and resolution parameters are not the same as the
current expected value and resolution settings on the measurement, error
–221, “Settings conflict” occurs.
This command sets the measurement function, aborts then initiates the
measurement and the corresponding measurement uncertainty, and places the
result on the bus. The result is a power-based measurement and is expressed in
the units defined by UNIT[1]:POWer.
When “UNIT:POW W” is set, the parameters returned will be:
– measured power in Watts
– +measurement uncertainty value in %
– –measurement uncertainty value in %
When “UNIT:POW DBM” is set, the parameters returned will be:
– measured power in dBm
– +measurement uncertainty value in dB
– –measurement uncertainty value in dB.
This query is only supported for TRIG:COUNT of 1. It is not supported for power
and frequency sweep modes.
Syntax
86U8480 Series Programming Guide
Page 87
MEASurement Commands2
Parameters
Refer to “Optional parameters” on page 73 for additional details on the
parameters in this query.
ItemDescription/Defaul tRange of values
expected_value
(for the expected power
level)
resolutionA numeric value for the resolution. If it is unspecified, the
source listThe measurement channel which the command is
[a] The mnemonic DEF means DEFault. This is not equivalent to the DEFault parameter used in the command sub-systems. The parameters must
be entered in the specified order. If parameters are omitted, they default from the right. The parameter DEFault is used as a placeholder.
Specifying DEF leaves the parameter value unchanged.
[b] When the measurement result is linear, this parameter represents the number of significant digits. When the measurement result is
logarithmic, 1 to 4 represents 1, 0.1, 0.01, and 0.001 respectively.
The expected power level parameter can be set to DEF or a
numeric value. If a value is entered, it should correspond to
that set by CONFigure
current resolution setting is used. If a value is entered, it
should correspond to the current resolution setting
otherwise an error occurs.
implemented on. The U8480 Series supports only one
channel. Therefore, the only valid value is (@1).
otherwise an error occurs.
sensor-dependent
[a]
DEF
[b]
1 to 4
1.0, 0.1, 0.01, 0.001
[a]
DEF
(@1)
Error messages
– INITiate[1]:CONTinuous must be set to OFF, otherwise error –213, “Init
ignored” occurs.
–If TRIGger[1]:SOURce is set to BUS or HOLD, error –214, “Trigger deadlock”
occurs.
– If the expected value and resolution parameters are not the same as the
current expected value and resolution settings on the measurement, error
–221, “Settings conflict” occurs.
– If this query is sent, and TRIG:COUNT > 1, error –221, “Settings conflict” occurs.
U8480 Series Programming Guide87
Page 88
2MEASurement Commands
MEASure[1] Query
The MEASure? query configures the U8480 Series to perform a power measurement
with the given measurement function, range, and resolution, and then make the
measurement. The format of the result is set by FORMat[:READing][:DATA]. Refer
to Chapter 5, “FORMat Subsystem” on page 125 for further information.
This query aborts any measurement in progress, configures the U8480 Series,
calculates the measurement result, and places the result on the bus.
Refer to “Auto-Averaging Settings” on page 374 to configure the correct
parameters for the expected power and resolution.
Syntax
Parameters
Refer to “Optional parameters” on page 73 for additional details on the
parameters in this query.
ItemDescription/DefaultRange of values
expected_value
(for the expected power
level)
resolutionA numeric value for the resolution. If unspecified, the current
source listThe measurement channel which the command is
U8480 Series Programming Guide89
A numeric value for the expected power level. The units of
measurement are dBm and W. The default units are defined
by UNIT:POWer.
resolution setting is used.
implemented on. The U8480 Series supports only one
channel. Therefore, the only valid value is (@1).
sensor-dependent
[a]
DEF
[b]
1 to 4
1.0, 0.1, 0.01, 0.001
[a]
DEF
(@1)
Page 90
2MEASurement Commands
[a] The mnemonic DEF means DEFault. This is not equivalent to the DEFault parameter used in the command subsystems. The parameters must
be entered in the specified order. If parameters are omitted, they default from the right. The parameter DEFault is used as a placeholder.
Specifying DEF leaves the parameter value unchanged.
[b] When the measurement result is linear, this parameter represents the number of significant digits. When the measurement result is
logarithmic, 1 to 4 represents 1, 0.1, 0.01, and 0.001 respectively.
Example
MEAS? -10DBM,1,(@1)Queries the measurement using an expected
power level of –10 dBm and a resolution
setting of 1.
This command aborts any measurement in progress, configures the U8480 Series,
calculates the measurement result and the corresponding measurement
uncertainty, and places the result on the bus. The result is a power-based
measurement and is expressed in the units defined by UNIT[1]:POWer.
When “UNIT:POW W” is set, the parameters returned will be:
–measured power in Watts
– +measurement uncertainty value in %
– –measurement uncertainty value in %
–When “UNIT:POW DBM” is set, the parameters returned will be:
–measured power in dBm
– +measurement uncertainty value in dB
– –measurement uncertainty value in dB.
This query is only supported for TRIG:COUNT of 1. It is not supported for power
and frequency sweep modes.
Syntax
U8480 Series Programming Guide91
Page 92
2MEASurement Commands
Parameters
Refer to “Optional parameters” on page 73 for additional details on the
parameters in this query.
ItemDescription/Defaul tRange of values
expected_value
(for the expected power
level)
resolutionA numeric value for the resolution. If unspecified, the current
source listThe measurement channel which the command is
[a] The mnemonic DEF means DEFault. This is not equivalent to the DEFault parameter used in the command subsystems. The parameters must
be entered in the specified order. If parameters are omitted, they default from the right. The parameter DEFault is used as a placeholder.
Specifying DEF leaves the parameter value unchanged.
[b] When the measurement result is linear, this parameter represents the number of significant digits. When the measurement result is
logarithmic, 1 to 4 represents 1, 0.1, 0.01, and 0.001 respectively.
A numeric value for the expected power level. The units of
measurement are dBm and W. The default units are defined
by UNIT:POWer.
resolution setting is used.
implemented on. The U8480 Series supports only one
channel. Therefore, the only valid value is (@1).
sensor-dependent
[a]
DEF
[b]
1 to 4
1.0, 0.1, 0.01, 0.001
[a]
DEF
(@1)
Error messages
– If this query is sent, and TRIG:COUNT > 1, error –221, “Settings conflict”
occurs.
92U8480 Series Programming Guide
Page 93
U8480 Series USB Thermocouple Power Sensor
Programming Guide
This chapter explains how the CALCulate command subsystem is used to
perform post-acquisition data processing.
93
Page 94
3CALCulate Subsystem
CALC1
current measurement
“A”
:MATH
CALCulate Block
SENSe[1]:
Input from
SENSe[1]
block
FEED1
:FEED
Avg
CALCulate Command Subsystem
The CALCulate command subsystem performs post-acquisition data processing.
Functions in the SENSe command subsystem are related to data acquisition, while
the CALCulate command subsystem operates on the data acquired by a SENSe
function.
There is an independent CALCulate block in the U8480 Series, as shown below.
Figure 3-2 details where the commands are applied within the CALCulate block.
Figure 3-2CALCulate block
94U8480 Series Programming Guide
Page 95
CALCulate[1]:FEED[1] <“string”>
Space
?
“string”
:FEED
1
CALC
1
This command sets the input measurement mode to be fed to the specified input
on the CALC block. It is applied to the measurement after the
CALCulate[1]:MATH[:EXPRession] command has been used to specify which
measurement the feed is taken from.
Under certain circumstances, the measurement mode is changed by the
CALCulate[1]:MATH[:EXPRession] command. Refer to
“CALCulate[1]:MATH[:EXPRession] <“string”>” on page 111 for further
information.
Syntax
CALCulate Subsystem3
Parameters
ItemDescriptionRange of values
stringThe input measurement type to be fed to the specific input on the CALC block
is AVER (average).
“POW:AVER”
Example
CALC:FEED “POW:AVER”This command selects the input for FEED of
the CALC block to be average power. The
measurement from which the feed is taken is
determined by CALC:MATH:EXPR.
U8480 Series Programming Guide95
Page 96
3CALCulate Subsystem
Reset condition
On reset, the feed is set to POW:AVER.
Query
CALCulate[1]:FEED[1]?
The query returns the current value of the string.
Query example
CALC:FEED?Queries the current setting of the CALC block
Error message
If the command parameter is not “POW:AVER”, error –224, “Illegal parameter
value” occurs.
on FEED.
96U8480 Series Programming Guide
Page 97
CALCulate[1]:LIMit Commands
These commands set the measurement limits which enable you to:
– set upper-level and lower-level limits
– query if there has been a failure
– count the number of failures
– clear the counter
The following commands or queries are detailed in this section:
CALCulate[1]:LIMit:CLEar:AUTo <boolean>|ONCE
CALCulate[1]:LIMit:CLEar[IMMediate]
CALCulate[1]:LIMit:FAIL?
CALCulate[1]:LIMit:FCOunt?
CALCulate[1]:LIMit:LOWer[:DATA] <numeric_value>
CALCulate[1]:LIMit:UPPer[:DATA] <numeric_value>
CALCulate[1]:LIMit:STATe <boolean>
CALCulate Subsystem3
U8480 Series Programming Guide97
Page 98
3CALCulate Subsystem
0|OFF
1|ON
Space
?
:LIM
:CLE
:AUTO
ONCE
CALC
1
CALCulate[1]:LIMit:CLEar:AUTO <boolean>|ONCE
This command controls when the FCO (fail counter) is cleared of any limit failure.
The FCO is used to determine the results returned by the
CALCulate[1]:LIMit:FAIL? query.
–If ON is specified, the FCO is set to 0 each time a measurement is:
– initiated using INITiate[1][:IMMediate]
– initiated using INITiate[1]:CONTinuous ON
–measured using MEASure?
–read using READ?
–If OFF is specified, the FCO is not cleared by the above commands or queries.
–If ONCE is specified, the FCO is cleared only after the first initialization, and then
starts accumulating any limit failures.
Syntax
Example
CALC:LIM:CLE:AUTO 1This command switches on automatic
clearing of the FCO.
98U8480 Series Programming Guide
Page 99
Reset condition
On reset, CALCulate[1]:LIMit:CLEar:AUTO is set to ON.
Query
CALCulate[1]:LIMit:CLEar:AUTO?
The query enters a 1 or 0 into the output buffer indicating whether limit failures
are cleared automatically when a new measurement is initiated.
– 1 is entered into the output buffer when limit failures are cleared automatically
when a new measurement is initiated.
– 0 is entered into the output buffer when limit failures are not cleared
automatically when a new measurement is initiated.
In the case where limit failures are cleared once, when a query occurs, 1 is entered
into the output buffer if no measurement is initiated. If a measurement is initiated,
then 0 is entered.
Query example
CALCulate Subsystem3
CALC:LIM:CLE:AUTO?Queries when the fail counter is cleared.
U8480 Series Programming Guide99
Page 100
3CALCulate Subsystem
:LIM
:CLE
:IMM
CALC
1
CALCulate[1]:LIMit:CLEar[:IMMediate]
This command immediately clears the FCO (fail counter) of any limit failure. The
FCO is used to determine the results returned by the
CALCulate[1]:LIMit:FAIL? query.
Syntax
Example
CALC:LIM:CLE:IMMThis command clears the FCO.
100U8480 Series 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.