Keysight Technologies 6811C Programming Manual
Read Online
Read the Keysight Technologies 6811C Programming Manual online using the built-in PDF viewer.
Text of the manual
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Notices
Copyright Notice
© Keysight Technologies 2017
No part of this manual may be repro-
duced 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 Technol-
ogies as governed by United States and
international copyright laws.
Manual Part Number
06811-90005
Edition
Edition 1, October 2, 2017
Printed in:
Printed in Malaysia
Published by:
Keysight Technologies
Bayan Lepas Free Industrial Zone,
11900 Penang, Malaysia
Technology Licenses
The hardware and/or software
described in this document are fur-
nished 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 prod-
ucts 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 Dec-
laration of Conformity.
U.S. Government Rights
The Software is “commercial computer
software,” as defined by Federal Acqui-
sition Regulation (“FAR”) 2.101. Pursu-
ant to FAR 12.212 and 27.405-3 and
Department of Defense FAR Supple-
ment (“DFARS”) 227.7202, the U.S.
government acquires commercial com-
puter 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 stan-
dard 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 Soft-
ware. The EULA and the license set
forth therein, does not require or per-
mit, among other things, that Keysight:
(1) Furnish technical information
related to commercial computer soft-
ware or commercial computer software
documentation that is not customarily
provided to the public; or (2) Relinquish
to, or otherwise provide, the govern-
ment rights in excess of these rights
customarily provided to the public to
use, modify, reproduce, release, per-
form, display, or disclose commercial
computer software or commercial com-
puter 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 pursu-
ant to the FAR and the DFARS and are
set forth specifically in writing else-
where 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 DIS-
CLAIMS ALL WARRANTIES, EITHER
EXPRESS OR IMPLIED, WITH REGARD
TO THIS MANUAL AND ANY INFORMA-
TION CONTAINED HEREIN, INCLUD-
ING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MER-
CHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE. KEYSIGHT
SHALL NOT BE LIABLE FOR ERRORS
OR FOR INCIDENTAL OR CONSE-
QUENTIAL DAMAGES IN CONNECTION
WITH THE FURNISHING, USE, OR
PERFORMANCE OF THIS DOCUMENT
OR OF ANY INFORMATION CON-
TAINED HEREIN. SHOULD KEYSIGHT
AND THE USER HAVE A SEPARATE
WRITTEN AGREEMENT WITH WAR-
RANTY TERMS COVERING THE MATE-
RIAL IN THIS DOCUMENT THAT
CONFLICT WITH THESE TERMS, THE
WARRANTY TERMS IN THE SEPARATE
AGREEMENT SHALL CONTROL.
Keysight Models 6811C, 6812C, and 6813C Programming Guide
3
Safety Information
CAUTION
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.
La mention ATTENTION signale un danger. Si la manoeuvre ou la procédure
correspondante n’est pas exécutée correctement, il peut y avoir un risque
d’endommagement de l’appareil ou de perte de données importantes. En
présence de la mention ATTENTION, il convient de ne pas poursuivre tant
que les conditions indiquées n’ont pas été parfaitement comprises et
remplies.
WARNING
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.
La mention AVERTISSEMENT signale un danger pour la sécurité de
l’opérateur. Si la manoeuvre ou la procédure correspondante n’est pas
exécutée correctement, il peut y avoir un risque grave, voire mortel pour les
personnes. En présence d’une mention AVERTISSEMENT, il convient de
s’interrompre tant que les conditions indiquées n’ont pas été parfaitement
comprises et satisfaites.
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Safety Considerations
Read the information below before using this instrument.
The following general safety precautions must be observed during all phases of
operation, service, and repair of this instrument. Failure to comply with these
precautions or with specific warnings elsewhere in this guide violates safety
standards for design, manufacture, and intended use of the instrument. Keysight
Technologies assumes no liability for the customer’s failure to comply with these
requirements.
WARNING
ENERGY HAZARD. AC sources can supply 425 V peak at their output. DEATH
on contact may result if the output terminals or circuits connected to the
output are touched when power is applied.
RISQUE ÉNERGÉTIQUE. Les sources AC peuvent fournir une tension de sortie
de 425 V maximum. Tout contact peut entraîner la MORT si les circuits ou
bornes de sortie connectés à la sortie sont touchés lorsqu’ils sont sous
tension.
Keysight Models 6811C, 6812C, and 6813C Programming Guide
5
Waste Electrical and Electronic Equipment (WEEE) Directive
This instrument complies with the WEEE Directive marking requirement. This
affixed product label indicates that you must not discard this electrical or
electronic product in domestic household waste.
Product category:
With reference to the equipment types in the WEEE directive Annex 1, this
instrument is classified as a “Monitoring and Control Instrument” product.
The affixed product label is as shown below.
Do not dispose in domestic household waste.
To return this unwanted instrument, contact your nearest Keysight Service Center,
or visit http://about.keysight.com/en/companyinfo/environment/takeback.shtml
for more information.
Sales and Technical Support
To contact Keysight for sales and technical support, refer to the support links on
the following Keysight websites:
–
www.keysight.com/find/6800
(product-specific information and support, software and
documentation updates)
–
www.keysight.com/find/assist
(worldwide contact information for repair and service)
Keysight Models 6811C, 6812C, and 6813C Programming Guide
THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK.
all-guides.co
m
Keysight Models 6811C, 6812C, and 6813C Programming Guide
7
Table of Contents
Safety Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
Safety Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
Waste Electrical and Electronic Equipment (WEEE) Directive . . . . . . . .5
Product category: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
Sales and Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
1
General Information
About this Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
Documentation summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
External References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
SCPI references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
GPIB references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
Keysight IO Libraries Suite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
2
Introduction to Programming
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
USB Capabilities of the AC Source . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
Vendor Identification (VID) and Product Identification (PID) . . . . . .29
LAN Capabilities of the AC Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
Instrument Web server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
GPIB Capabilities of the AC Source . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
GPIB address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
RS-232 Capabilities of the AC Source . . . . . . . . . . . . . . . . . . . . . . . . . .32
RS-232 data format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
Baud rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
RS-232 Programming Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
RS-232 troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34
Introduction to SCPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35
Conventions used in this guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35
Types of SCPI commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Types of SCPI messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
The SCPI Command Tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
The root level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Active header path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
The effect of optional headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Moving among subsystems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Including common commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Using queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Coupled commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Structure of a SCPI Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
The message unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Combining message units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Query indicator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Message unit separator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Root specifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Message terminator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
SCPI Data Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Numerical data formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Suffixes and multipliers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Character data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
System Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Assigning the GPIB address in programs . . . . . . . . . . . . . . . . . . . . . 49
Types of DOS drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Keysight BASIC controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
3
Language Dictionary
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Subsystem Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Calibration Subsystem Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
CALibrate:COUNt? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
CALibrate:CURRent:AC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Keysight Models 6811C, 6812C, and 6813C Programming Guide
9
CALibrate:CURRent:EXTernal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59
CALibrate:CURRent:MEASure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59
CALibrate:DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60
CALibrate:DATA? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60
CALibrate:DATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61
CALibrate:IMPedance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61
CALibrate:LEVel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62
CALibrate:PASSword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62
CALibrate:PHASe:AUXiliary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63
CALibrate:PWM:FREQuency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63
CALibrate:PWM:RAMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64
CALibrate:SAVE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64
CALibrate:SECure:CODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65
CALibrate:SECure:STATe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66
CALibrate:SHUNt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67
CALibrate:STATe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .68
CALibrate:STRing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69
CALibrate:VOLTage:AC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69
CALibrate:VOLTage:AUXiliary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .70
CALibrate:VOLTage:DC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .70
CALibrate:VOLTage:EXTernal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .70
CALibrate:VOLTage:OFFSet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .71
CALibrate:VOLTage:PROTection . . . . . . . . . . . . . . . . . . . . . . . . . . . .71
Display Subsystem Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72
DISPlay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72
DISPlay:MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73
DISPlay:TEXT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73
DISPlay:TEXT:CLEar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73
LXI Subsystem Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .74
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .74
LXI:IDENtify[:STATe] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .74
LXI:MDNS[:STATe] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75
LXI:MDNS:ENABle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75
LXI:MDNS:HNAMe[:RESolved]? . . . . . . . . . . . . . . . . . . . . . . . . . . . .76
LXI:MDNS:SNAMe:DESired . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76
Keysight Models 6811C, 6812C, and 6813C Programming Guide
LXI:MDNS:SNAMe[:RESolved]? . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
LXI:RESet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
LXI:RESTart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Measurement Subsystem (Arrays) Commands . . . . . . . . . . . . . . . . . . . 78
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
MEASure:ARRay:CURRent? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
MEASure:ARRay:CURRent:HARMonic? . . . . . . . . . . . . . . . . . . . . . . 80
MEASure:ARRay:CURRent:HARMonic:PHASe? . . . . . . . . . . . . . . . . 81
MEASure:ARRay:VOLTage? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
MEASure:ARRay:VOLTage:HARMonic? . . . . . . . . . . . . . . . . . . . . . . 83
MEASure:ARRay:VOLTage:HARMonic:PHASe? . . . . . . . . . . . . . . . . 84
Measurement Subsystem (Current) Commands . . . . . . . . . . . . . . . . . . 85
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
MEASure:CURRent? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
MEASure:CURRent:AC? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
MEASure:CURRent:ACDC? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
MEASure:CURRent:AMPLitude:MAXimum? . . . . . . . . . . . . . . . . . . . 87
MEASure:CURRent:CREStfactor? . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
MEASure:CURRent:HARMonic? . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
MEASure:CURRent:HARMonic:PHASe? . . . . . . . . . . . . . . . . . . . . . . 89
MEASure:CURRent:HARMonic:THD? . . . . . . . . . . . . . . . . . . . . . . . . 89
Measurement Subsystem (Frequency) Commands . . . . . . . . . . . . . . . 90
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
MEASure:FREQuency? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Measurement Subsystem (Power) Commands . . . . . . . . . . . . . . . . . . . 92
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
MEASure:POWer? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
MEASure:POWer:AC? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
MEASure:POWer:AC:APParent? . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
MEASure:POWer:AC:REACtive? . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
MEASure:POWer:AC:PFACtor? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Measurement Subsystem (TVOLt) Commands . . . . . . . . . . . . . . . . . . . 95
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
MEASure:TVOLt? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Keysight Models 6811C, 6812C, and 6813C Programming Guide
11
MEASure:TVOLt:ABSolute? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .97
Measurement Subsystem (Voltage) Commands . . . . . . . . . . . . . . . . . .98
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .98
MEASure:VOLTage? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99
MEASure:VOLTage:AC? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99
MEASure:VOLTage:ACDC? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100
MEASure:VOLTage:HARMonic? . . . . . . . . . . . . . . . . . . . . . . . . . . .100
MEASure:VOLTage:HARMonic:PHASe? . . . . . . . . . . . . . . . . . . . . .101
MEASure:VOLTage:HARMonic:THD? . . . . . . . . . . . . . . . . . . . . . . .101
MEASure:VOLTage:RANKed? . . . . . . . . . . . . . . . . . . . . . . . . . . . . .102
Output Subsystem Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .103
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .103
OUTPut . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104
OUTPut:COUPling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104
OUTPut:DFI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .105
OUTPut:DFI:SOURce . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .105
OUTPut:IMPedance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106
OUTPut:IMPedance:REAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106
OUTPut:IMPedance:REACtive . . . . . . . . . . . . . . . . . . . . . . . . . . . . .107
OUTPut:PON:STATe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .107
OUTPut:PROTection:CLEar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108
OUTPut:PROTection:DELay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108
OUTPut:RI:MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .109
OUTPut:TTLTrg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .109
OUTPut:TTLTrg:SOURce . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110
Sense Subsystem Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .111
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .111
SENSe:CURRent:ACDC:RANGe . . . . . . . . . . . . . . . . . . . . . . . . . . .112
SENSe:FREQuency:SOURce . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .113
SENSe:NSELect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114
SENSe:SWEep:OFFSet:POINts . . . . . . . . . . . . . . . . . . . . . . . . . . . .114
SENSe:SWEep:TINTerval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .115
SENSe:WINDow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116
Source Subsystem (Current) Commands . . . . . . . . . . . . . . . . . . . . . . .117
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117
all-guides.co
m
Keysight Models 6811C, 6812C, and 6813C Programming Guide
CURRent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
CURRent:PEAK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
CURRent:PEAK:MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
CURRent:PEAK:TRIGgered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
CURRent:PROTection:STATe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
Source Subsystem (Frequency) Commands . . . . . . . . . . . . . . . . . . . . 123
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
FREQuency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
FREQuency:MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
FREQuency:SLEW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
FREQuency:SLEW:MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
FREQuency:SLEW:TRIGgered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
FREQuency:TRIGgered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Source Subsystem (Frequency Modulation) Commands . . . . . . . . . . 127
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
FM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
FM:DEViation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
FM:FREQuency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Source Subsystem (Function) Commands . . . . . . . . . . . . . . . . . . . . . 129
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
FUNCtion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
FUNCtion:MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
FUNCtion:TRIGgered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
FUNCtion:CSINusoid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Source Subsystem (List) Commands . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
LIST:COUNt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
LIST:CURRent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
LIST:CURRent:POINts? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
LIST:DWELl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
LIST:DWELl:POINts? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
LIST:FREQuency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
LIST:FREQuency:POINts? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
LIST:FREQuency:SLEW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
LIST:FREQuency:SLEW:POINts? . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Keysight Models 6811C, 6812C, and 6813C Programming Guide
13
LIST:PHASe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .140
LIST:PHASe:POINts? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .140
LIST:SHAPe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .141
LIST:SHAPe:POINts? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .141
LIST:STEP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .142
LIST:TTLTrg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .142
LIST:TTLTrg:POINts? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .143
LIST:VOLTage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .143
LIST:VOLTage:POINts? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .144
LIST:VOLTage:SLEW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .144
LIST:VOLTage:SLEW:POINts? . . . . . . . . . . . . . . . . . . . . . . . . . . . . .144
LIST:VOLTage:OFFSet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .145
LIST:VOLTage:OFFSet:POINts? . . . . . . . . . . . . . . . . . . . . . . . . . . . .145
LIST:VOLTage:OFFSet:SLEW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .146
LIST:VOLTage:OFFSet:SLEW:POINts? . . . . . . . . . . . . . . . . . . . . . .146
Source Subsystem (Phase) Commands . . . . . . . . . . . . . . . . . . . . . . . .147
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .147
PHASe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .147
PHASe:AUXiliary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .148
PHASe:MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .148
PHASe:TRIGgered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .149
Source Subsystem (Pulse) Commands . . . . . . . . . . . . . . . . . . . . . . . .150
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .150
PULSe:COUNt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .150
PULSe:DCYCle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .151
PULSe:HOLD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .151
PULSe:PERiod . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .153
PULSe:WIDTh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .153
Source Subsystem (Voltage) Commands . . . . . . . . . . . . . . . . . . . . . . .154
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .154
VOLTage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .155
VOLTage:TRIGgered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .156
VOLTage:AUXiliary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .157
VOLTage:MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .158
VOLTage:OFFSet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .159
Keysight Models 6811C, 6812C, and 6813C Programming Guide
VOLTage:OFFSet:MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
VOLTage:OFFSet:TRIGgered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
VOLTage:OFFSet:SLEW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
VOLTage:OFFSet:SLEW:MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
VOLTage:OFFSet:SLEW:TRIGgered . . . . . . . . . . . . . . . . . . . . . . . . 162
VOLTage:PROTection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
VOLTage:PROTection:STATe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
VOLTage:SENSe:DETector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
VOLTage:SENSe:SOURce . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
VOLTage:SLEW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
VOLTage:SLEW:MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
VOLTage:SLEW:TRIGgered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Status Subsystem Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
STATus:PRESet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
STATus:OPERation? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
STATus:OPERation:CONDition? . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
STATus:OPERation:ENABle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
STATus:OPERation:NTRansition . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
STATus:QUEStionable? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
STATus:QUEStionable:CONDition? . . . . . . . . . . . . . . . . . . . . . . . . . 173
STATus:QUEStionable:ENABle . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
STATus:QUEStionable:NTRansition . . . . . . . . . . . . . . . . . . . . . . . . 174
System Subsystem Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
SECurity[:IMMediate] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
SYSTem:COMMunicate:LAN:CONTrol? . . . . . . . . . . . . . . . . . . . . . 177
SYSTem:COMMunicate:LAN:DHCP . . . . . . . . . . . . . . . . . . . . . . . . 178
SYSTem:COMMunicate:LAN:DNS[{1|2}] . . . . . . . . . . . . . . . . . . . . . 179
SYSTem:COMMunicate:LAN:DOMain? . . . . . . . . . . . . . . . . . . . . . . 180
SYSTem:COMMunicate:LAN:GATeway . . . . . . . . . . . . . . . . . . . . . . 181
SYSTem:COMMunicate:LAN:HOSTname . . . . . . . . . . . . . . . . . . . . 182
SYSTem:COMMunicate:LAN:IPADdress . . . . . . . . . . . . . . . . . . . . . 183
SYSTem:COMMunicate:LAN:MAC? . . . . . . . . . . . . . . . . . . . . . . . . 184
SYSTem:COMMunicate:LAN:SMASk . . . . . . . . . . . . . . . . . . . . . . . 185
SYSTem:COMMunicate:LAN:TELNet:PROMpt . . . . . . . . . . . . . . . . 186
Keysight Models 6811C, 6812C, and 6813C Programming Guide
15
SYSTem:COMMunicate:LAN:TELNet:WMESsage . . . . . . . . . . . . . .186
SYSTem:COMMunicate:LAN:UPDate . . . . . . . . . . . . . . . . . . . . . . .187
SYSTem:COMMunicate:RLSTate . . . . . . . . . . . . . . . . . . . . . . . . . . .188
SYSTem:COMMunicate:TCPip:CONTrol? . . . . . . . . . . . . . . . . . . . .188
SYSTem:ERRor? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .189
SYSTem:LANGuage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .189
SYSTem:PERSona:MANufacturer . . . . . . . . . . . . . . . . . . . . . . . . . .189
SYSTem:PERSona:MANufacturer:DEFault . . . . . . . . . . . . . . . . . . .190
SYSTem:PERSona:MODel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .190
SYSTem:PERSona:MODel:DEFault . . . . . . . . . . . . . . . . . . . . . . . . .190
SYSTem:SECurity:COUNt? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .191
SYSTem:SECurity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .191
SYSTem:SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .192
SYSTem:VERSion? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .192
SYSTem:LOCal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .192
SYSTem:REMote . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .193
SYSTem:RWLock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .193
Trace Subsystem Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .194
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .194
TRACe:CATalog? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .194
TRACe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .195
TRACe:DEFine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .196
TRACe:DELete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .196
Trigger Subsystem Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .197
Subsystem syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .197
ABORt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .198
INITiate:SEQuence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .199
INITiate:CONTinuous:SEQuence . . . . . . . . . . . . . . . . . . . . . . . . . . .200
TRIGger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .200
TRIGger:DELay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .201
TRIGger:SOURce . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .201
TRIGger:SEQuence2:SOURce . . . . . . . . . . . . . . . . . . . . . . . . . . . . .202
TRIGger:SEQuence2:PHASe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .203
TRIGger:SEQuence3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .203
TRIGger:SEQuence3:SOURce . . . . . . . . . . . . . . . . . . . . . . . . . . . . .204
TRIGger:SEQuence1:DEFine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .205
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Common Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
Common commands syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
*CLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
*ESE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
*ESR? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
*IDN? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
*LRN? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
*OPC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
*OPT? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
*PSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
*RCL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
*RST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
*SAV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
*SRE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
*STB? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
*TRG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
*TST? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
*WAI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
4
Compatibility of the B and C Versions of the AC Power Solutions
Persona Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
Model number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
Manufacturer ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
New Feature Comparison with B and C AC Source . . . . . . . . . . . . . . 223
5
Programming Examples
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
Programming the Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Power-on initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Enabling the output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
AC voltage and frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Voltage and frequency slew rates . . . . . . . . . . . . . . . . . . . . . . . . . . 230
Waveform shapes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
Programming the output phase . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
Current limit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
DC output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
all-guides.co
m
Keysight Models 6811C, 6812C, and 6813C Programming Guide
17
Coupled commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .235
Programming Output Transients . . . . . . . . . . . . . . . . . . . . . . . . . . . . .236
Transient system model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .237
Step and pulse transients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .239
List transients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .241
Triggering Output Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .244
SCPI triggering nomenclature . . . . . . . . . . . . . . . . . . . . . . . . . . . . .244
Output trigger system model . . . . . . . . . . . . . . . . . . . . . . . . . . . . .245
Initiating the output trigger system . . . . . . . . . . . . . . . . . . . . . . . . .246
Selecting the output trigger source . . . . . . . . . . . . . . . . . . . . . . . .246
Specifying a trigger delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .247
Synchronizing output changes to a reference phase angle . . . . . .248
Generating output triggers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .248
Specifying a dwell time for each list point . . . . . . . . . . . . . . . . . . .249
Making Measurements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .250
Voltage and current measurements . . . . . . . . . . . . . . . . . . . . . . . .251
Power measurements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .251
Harmonic measurements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .252
Returning voltage and current data from the data buffer . . . . . . .253
Regulatory-compliant measurement of quasi-stationary harmonics .
253
Triggering Measurements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .254
SCPI triggering nomenclature . . . . . . . . . . . . . . . . . . . . . . . . . . . . .254
Measurement trigger system model . . . . . . . . . . . . . . . . . . . . . . . .255
Initiating the measurement trigger system . . . . . . . . . . . . . . . . . . .256
Selecting the measurement trigger source . . . . . . . . . . . . . . . . . . .256
Generating measurement triggers . . . . . . . . . . . . . . . . . . . . . . . . .257
Controlling the instantaneous voltage and current data buffers . .257
Programming the Status Registers . . . . . . . . . . . . . . . . . . . . . . . . . . .259
Power-on conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .259
Operation status group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .259
Questionable Status Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .263
Standard event status group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .264
Status byte register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .265
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
Programming the Trigger In and Trigger Out BNC Connectors . . . . . 269
Remote Inhibit and Discrete Fault Indicator . . . . . . . . . . . . . . . . . . . . 271
Remote inhibit (RI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
Discrete fault indicator (DFI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
SCPI Command Completion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
A
SCPI Command Tree
Command Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
B
SCPI Conformance Information
SCPI Confirmed Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296
Non SCPI Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
C
Error Messages
Error Number List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302
Keysight Models 6811C, 6812C, and 6813C Programming Guide
19
List of Figures
Figure 2-1
Partial command tree . . . . . . . . . . . . . . . . . . . . . . . . . .37
Figure 2-2
Command message structure . . . . . . . . . . . . . . . . . . .43
Figure 5-1
Model of transient system . . . . . . . . . . . . . . . . . . . . .238
Figure 5-2
Model of output triggers . . . . . . . . . . . . . . . . . . . . . .245
Figure 5-3
Model of measurement triggers . . . . . . . . . . . . . . . .255
Figure 5-4
Pre-event and post-event triggering . . . . . . . . . . . . .258
Figure 5-5
AC source status model . . . . . . . . . . . . . . . . . . . . . . .262
Figure 5-6
BNC connector trigger model . . . . . . . . . . . . . . . . . .270
Keysight Models 6811C, 6812C, and 6813C Programming Guide
THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK.
Keysight Models 6811C, 6812C, and 6813C Programming Guide
21
List of Tables
Table 5-1
Bit configuration of status registers . . . . . . . . . . . . . .260
Table C-1
Error numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .302
all-guides.co
m
Keysight Models 6811C, 6812C, and 6813C Programming Guide
THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK.
Keysight Models 6811C, 6812C, and 6813C AC Power Solutions
Programming Guide
23
1
General Information
About this Guide 24
External References 25
Keysight IO Libraries Suite 26
This chapter provides an introduction to this guide.
Keysight Models 6811C, 6812C, and 6813C Programming Guide
About this Guide
This guide contains programming information for the Keysight Models 6811C,
6812C, and 6813C AC Power Solutions. These units will be referred to as “ac
source” throughout this guide. You will find the following information in the rest of
this guide:
–
Chapter 1, an introduction to this guide.
–
Chapter 2, an introduction to SCPI messages structure, syntax, and data
formats.
–
Chapter 3, a dictionary of the available SCPI commands.
–
Chapter 4, information about the compatibility of the B and C versions of the
ac source.
–
Chapter 5, an introduction to programming the ac source with SCPI
commands.
–
Appendix A, the SCPI command tree.
–
Appendix B, SCPI conformance information.
–
Appendix C, list of error messages.
Documentation summary
The following documents that are related to this Programming Guide have
additional helpful information for using the ac source.
–
Quick Start Guide. Information on how to quickly get started using the ac
source.
–
User’s and Service Guide. Includes specifications and supplemental
characteristics, how to use the front panel, how to connect to the ac source,
and calibration procedures.
Keysight Models 6811C, 6812C, and 6813C Programming Guide
25
External References
SCPI references
The following documents will assist you with programming in SCPI:
–
Beginner's Guide to SCPI. Keysight part no. H2325-90001. Highly
recommended for anyone who has not had previous experience programming
with SCPI.
–
Tutorial Description of the General Purpose Interface Bus. Keysight part no.
5952-0156. Highly recommended for those not familiar with the IEEE 488.1
and 488.2 standards.
To obtain a copy of the above documents, contact your local Keysight Sales and
Support Office.
GPIB references
The most important GPIB documents are your controller programming manuals -
Keysight BASIC, GPIB Command Library for MS DOS, etc. Refer to these for all
non-SCPI commands (for example: Local Lockout).
The following are two formal documents concerning the GPIB interface:
–
ANSI/IEEE Std. 488.1-1987 IEEE Standard Digital Interface for Programmable
Instrumentation. Defines the technical details of the GPIB interface. While
much of the information is beyond the need of most programmers, it can serve
to clarify terms used in this guide and in related documents.
–
ANSI/IEEE Std. 488.2-1987 IEEE Standard Codes, Formats, Protocols, and
Common Commands. Recommended as a reference only if you intend to do
fairly sophisticated programming. Helpful for finding precise definitions of
certain types of SCPI message formats, data types, or common commands.
The above two documents are available from the IEEE (Institute of Electrical and
Electronics Engineers), 345 East 47th Street, New York, NY 10017, USA.
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Keysight IO Libraries Suite
Keysight IO Libraries Suite is a collection of free instrument control software that
automatically discovers instruments and allows you to control instruments over
LAN, USB, GPIB, RS-232, and other interfaces. For more information, or to
download IO Libraries, go to www.keysight.com/find/iosuite.
all-guides.co
m
Keysight Models 6811C, 6812C, and 6813C AC Power Solutions
Programming Guide
27
2
Introduction to
Programming
Introduction 28
USB Capabilities of the AC Source 29
LAN Capabilities of the AC Source 30
GPIB Capabilities of the AC Source 31
RS-232 Capabilities of the AC Source 32
Introduction to SCPI 35
The SCPI Command Tree 37
Structure of a SCPI Message 42
SCPI Data Formats 47
System Considerations 49
This chapter provides an introduction to SCPI messages structure, syntax, and
data formats.
Introduction to Programming
28
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Introduction
The ac source supports the SCPI programming language on all of its remote I/O
interfaces.
NOTE
It is not recommended to send SCPI commands simultaneously using more than
one remote I/O interface.
Introduction to Programming
2
Keysight Models 6811C, 6812C, and 6813C Programming Guide
29
USB Capabilities of the AC Source
To use the USB interface for the ac source, no settings are required on the ac
source.
Vendor Identification (VID) and Product Identification (PID)
The vendor identification (VID) and product identification (PID) of the ac sources
are specified as below:
VID
PID
Keysight model
0x2A8D
0x3601
6811C
0x3701
6812C
0x3801
6813C
Introduction to Programming
30
Keysight Models 6811C, 6812C, and 6813C Programming Guide
LAN Capabilities of the AC Source
The ac source conforms to the LAN eXtensions for Instrumentation (LXI) Device
Specification 2011 version 1.4. The Telnet, Socket, and VXI-11 interfaces are
available to communicate with the ac source that works on either static or
dynamic IP address.
Instrument Web server
The ac source has a built-in Web server that gives you direct control from an
Internet browser on your computer. With the Web server, you can access the front
panel control functions including the LAN configuration parameters.
The Web server is enabled when shipped. Perform the following steps to launch
the Web server:
1
Establish a LAN interface connection from your computer to the ac source.
2
To launch the Web server, enter the instrument's IP address or fully-qualified
hostname into the browser’s Address field.
3
To begin controlling your instrument, click the Browser Web Control button in
the navigation bar on the left.
4
For additional help, click the “Help Page” button on the navigation bar.
NOTE
The built-in Web server only operates over the LAN interface. It requires Internet
Explorer 9 onwards.
Introduction to Programming
2
Keysight Models 6811C, 6812C, and 6813C Programming Guide
31
GPIB Capabilities of the AC Source
All ac source functions except for setting the GPIB address are programmable
over the GPIB.
GPIB address
The ac source operates from a GPIB address that is set from the front panel. To set
the GPIB address, press the Address key on the front panel and enter the address
using the Entry keys.
all-guides.co
m
Introduction to Programming
32
Keysight Models 6811C, 6812C, and 6813C Programming Guide
RS-232 Capabilities of the AC Source
The ac source provides an RS-232 programming interface, which is activated by
commands located under the front panel Address key. All SCPI commands are
available through RS-232 programming.
The EIA RS-232 Standard defines the interconnections between Data Terminal
Equipment (DTE) and Data Communications Equipment (DCE). The ac source is
designed to be a DTE. It can be connected to another DTE such as a PC COM port
through a null modem cable.
RS-232 data format
The RS-232 data is an 11-bit word with one start bit and two stop bits. The
number of start and stop bits is not programmable. The following parity options
are selectable using the front panel Address key:
Parity options are stored in non-volatile memory.
Baud rate
The front panel Address key lets you select one of the following baud rates, which
is stored in non-volatile memory:1200, 2400, 4800, or 9600.
NOTE
The RS-232 settings in your program must match the settings specified in the
front panel Address menu. Press the front panel Address key if you need to
change the settings.
EVEN
Seven data bits with even parity
ODD
Seven data bits with odd parity
NONE
Eight data bits without parity
NOTE
The ac source must have the same baud rate and parity as the controller.
Introduction to Programming
2
Keysight Models 6811C, 6812C, and 6813C Programming Guide
33
RS-232 Programming Example
The following program illustrates how to program the ac source using RS-232 to
set the output voltage and frequency and to read back the model number and
output voltage.
' Program to write and read via RS232
' Configure serial port (e.g. COM1) for:
' Bits per second: select 9600 baud (or desired baudrate)
' Start bits: select 1
' Data bits: select 8
' Stop bits: select 2
' Parity: select None
' Flow control: select None
' Send line feed [Enter]
' Reserve 1000 character buffer for serial I/O
'
' Ensure identical baud and parity settings on ac source
(Default - Baudrate: 9600, Parity: None)
'
' Send SCPI commands
*RST
' Resets the ac source
VOLT 60
' Set voltage to 60 volts
FREQ 50
' Set frequency to 50 hertz
OUTPUT ON
' Turn on the output
*IDN?
' Query the ac source identification string
[Wait for response]
MEAS:VOLT:AC?
' Query the ac source voltage
Introduction to Programming
34
Keysight Models 6811C, 6812C, and 6813C Programming Guide
RS-232 troubleshooting
If you are having trouble communicating over the RS-232 interface, check the
following:
–
The computer and the ac source must be configured for the same baud rate,
parity, and number of data bits. Note that the ac source is configured for 1
start bit and 2 stop bits (these values are fixed).
–
The correct interface cables or adapters must be used, as described under
“RS-232 connector” in the User's Guide. Note that even if the cable has the
proper connectors for your system, the internal wiring may be incorrect.
–
The interface cable must be connected to the correct serial port on your
computer (COM1, COM2, etc.).
[Wait for response]
' END
' End of main program
Introduction to Programming
2
Keysight Models 6811C, 6812C, and 6813C Programming Guide
35
Introduction to SCPI
SCPI (Standard Commands for Programmable Instruments) is a programming
language for controlling instrument functions over the GPIB. SCPI is layered on
top of the hardware-portion of IEEE 488.2. The same SCPI commands and
parameters control the same functions in different classes of instruments. For
example, you would use the same DISPlay command to control the ac source
display and the display of a SCPI-compatible multimeter.
Conventions used in this guide
Angle brackets
< >
Items within angle brackets are parameter
abbreviations. For example, indicates a specific
form of numerical data.
Vertical bar
|
Vertical bars separate alternative parameters. For
example, NORM | TEXT indicates that either “TEXT” or
“NORM” can be used as a parameter.
Square Brackets
[ ]
Items within square brackets are optional. The
representation [SOURce:]LIST means that SOURce:
may be omitted.
Braces
{ }
Braces indicate parameters that may be repeated zero
or more times. It is used especially for showing arrays.
The notation {<,B>} shows that parameter “A” must
be entered, while parameter “B” may be omitted or may
be entered one or more times.
Computer font
Computer font is used to show program lines in text.
TRIGger:DELay .5 shows a program line.
Introduction to Programming
36
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Types of SCPI commands
SCPI has two types of commands: common and subsystem.
–
Common commands generally are not related to specific operation but to
controlling overall ac source functions, such as reset, status, and
synchronization. All common commands consist of a three-letter mnemonic
preceded by an asterisk: *RST, *IDN?, *SRE 8
–
Subsystem commands perform specific ac source functions. They are
organized into an inverted tree structure with the “root” at the top. Some are
single commands while others are grouped within specific subsystems.
Refer to Appendix A, "SCPI Command Tree” for the ac source SCPI tree structure.
Types of SCPI messages
There are two types of SCPI messages: program and response.
–
A program message consists of one or more properly formatted SCPI
commands sent from the controller to the ac source. The message, which may
be sent at any time, requests the ac source to perform some action.
–
A response message consists of data in a specific SCPI format sent from the ac
source to the controller. The ac source sends the message only when
commanded by a program message called a “query”.
all-guides.co
m
Introduction to Programming
2
Keysight Models 6811C, 6812C, and 6813C Programming Guide
37
The SCPI Command Tree
As previously explained, the basic SCPI communication method involves sending
one or more properly formatted commands from the SCPI command tree to the
instrument as program messages. The following figure shows a portion of a
subsystem command tree, from which you access the commands located along
the various paths (you can refer to the complete tree in Appendix A, "SCPI
Command Tree”).
Figure 2-1
Partial command tree
:OUTPut
[:STATe]
:DFI
:PROTection
ROOT
:CLEar
:DELay
:STATus
:CONDition?
:OPERation
[:EVEN]
?
[:STATe]
:SOURce
:COUPling
Introduction to Programming
38
Keysight Models 6811C, 6812C, and 6813C Programming Guide
The root level
Note the location of the ROOT node at the top of the tree. Commands at the root
level are at the top level of the command tree. The SCPI interface is at this
location when:
–
the ac source is powered on
–
a device clear (DCL) is sent to the ac source
–
the SCPI interface encounters a message terminator
–
the SCPI interface encounters a root specifier
Active header path
In order to properly traverse the command tree, you must understand the concept
of the active header path. When the ac source is turned on (or under any of the
other conditions listed above), the active path is at the root. That means the SCPI
interface is ready to accept any command at the root level, such as OUTPut or
STATe.
If you enter OUTPut, the active header path moves one colon to the right. The
interface is now ready to accept :STATe, :COUPling, :DFI, or :PROTection as the
next header. You must include the colon because it is required between headers.
If you now enter :PROTection, the active path again moves one colon to the right.
The interface is now ready to accept either :CLEar or :DELay as the next header.
If you now enter :CLEar, you have reached the end of the command string. The
active header path remains at :CLEar. If you wished, you could have entered
:CLEar;DELay 20 and it would be accepted as a compound message consisting of:
OUTPut:PROTection:CLEAr and
OUTPut:PROTection:DELay 20
The entire message would be:
OUTPut:PROTection:CLEar;DELay 20
The message terminator after DELay 20 returns the path to the root.
Introduction to Programming
2
Keysight Models 6811C, 6812C, and 6813C Programming Guide
39
The effect of optional headers
If a command includes optional headers, the interface assumes they are there. For
example, if you enter OUTPut OFF, the interface recognizes it as OUTPut:STATe
OFF. This returns the active path to the root (:OUTPut). But if you enter
|OUTPut:STATe OFF,| then the active path remains at :STATe. This allows you to
send
OUTPut:STATe OFF;PROTection:CLEar
in one message. If you tried to send
OUTPut OFF;PROTection:CLEar
the header path would return to :OUTPut instead of :PROTection.
The optional header [SOURce] precedes the current, frequency, function, phase,
pulse, list, and voltage subsystems. This effectively makes :CURRent,
:FREQuency, :FUNCtion, :PHASe, :PULse, :LIST, and :VOLTage root-level
commands.
Moving among subsystems
In order to combine commands from different subsystems, you need to be able to
restore the active path to the root. You do this with the root specifier (:). For
example, you could clear the output protection and check the status of the
Operation Condition register as follows:
OUTPut:PROTection:CLEAr
STATus:OPERation:CONDition?
Because the root specifier resets the command parser to the root, you can use the
root specifier and do the same thing in one message:
OUTPut:PROTection:CLEAr;:STATus:OPERation:CONDition?
The following message shows how to combine commands from different
subsystems as well as within the same subsystem:
VOLTage:LEVel 70;PROTection 80;:CURRent:LEVel 3;PROTection:STATe
ON
Note the use of the optional header LEVel to maintain the correct path within the
voltage and current subsystems and the use of the root specifier to move between
subsytems.
Introduction to Programming
40
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Including common commands
You can combine common commands with system commands in the same
message. Treat the common command as a message unit by separating it with a
semicolon (the message unit separator). Common commands do not affect the
active header path; you may insert them anywhere in the message.
VOLTage:TRIGger 7.5;INITialize;*TRG
OUTPut OFF;*RCL 2;OUTPut ON
Using queries
Observe the following precautions with queries:
–
Set up the proper number of variables for the returned data.
–
Read back all the results of a query before sending another command to the
ac source. Otherwise a Query Interrupted error will occur and the unreturned
data will be lost.
NOTE
The “Enhanced Tree Walking Implementation” given in Appendix A of the IEEE
488.2 Standard is not implemented in the ac source.
Introduction to Programming
2
Keysight Models 6811C, 6812C, and 6813C Programming Guide
41
Coupled commands
When commands are coupled it means that the value sent by one command is
affected by the settings of the other commands. The following commands are
coupled in the ac source:
–
the voltage, voltage offset, and function shape commands
–
the step, pulse, and list commands that control output voltages, voltage
offsets, and function shapes
–
the pulse commands that program the width, duty cycle, period, and the hold
parameter
–
the voltage range and current limit commands in some ac source models
As explained later in Chapter 5, “Programming Examples”, the order in which data
is sent by these coupled commands can be important when more than one
parameter is changed.
all-guides.co
m
Introduction to Programming
42
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Structure of a SCPI Message
SCPI messages consist of one or more message units ending in a message
terminator. The terminator is not part of the syntax, but implicit in the way your
programming language indicates the end of a line (such as a newline or
end-of-line character).
The message unit
The simplest SCPI command is a single message unit consisting of a command
header (or keyword) followed by a message terminator.
ABORt
VOLTage?
The message unit may include a parameter after the header. The parameter
usually is numeric, but it can be a string:
VOLTage 20
VOLTage MAX
Introduction to Programming
2
Keysight Models 6811C, 6812C, and 6813C Programming Guide
43
Combining message units
The following command message is briefly described here, with details in
subsequent paragraphs.
Figure 2-2
Command message structure
The basic parts of the above message are as follows:
Message component
Example
Headers
VOLT LEV PROT CURR
Header separator
The colon in VOLT:LEV
Data
8088
Data separator
The space in VOLT 80 and PROT 88
Message units
VOLT:LEV 80 PROT 88 CURR?
Data
Headers
Header Separator
Message Unit Separators
Message Unit
Query Indicator
Message Terminator
Root Specifier
VOLT:LEV 80
PROT 88
;
; :
CURR?
Introduction to Programming
44
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Headers
Headers are instructions recognized by the ac source. Headers (which are
sometimes known as “keywords”) may be either in the long form or the short form.
The SCPI interface is not sensitive to case. It will recognize any case mixture, such
as TRIGGER, Trigger, TRIGger.
Message unit separator
The semicolons in VOLT:LEV 80; and PROT 88;
Root specifier
The colon in PROT 88;:CURR?
Query indicator
The question mark in CURR?
Message terminator
The (newline) indicator. Terminators are not part of the SCPI syntax.
Long form
The header is completely spelled out, such as VOLTAGE, STATUS, and DELAY.
Short form
The header has only the first three or four letters, such as VOLT, STAT, and DEL.
NOTE
Short form headers result in faster program execution.
Header
convention
In the command descriptions in Chapter 3, “Language Dictionary” of this guide, headers
are emphasized with boldface type. The proper short form is shown in upper-case letters,
such as DELay.
Header
separator
If a command has more than one header, you must separate them with a colon (VOLT:PROT
OUTPut:RELay:POLarity).
Optional
headers
The use of some headers is optional. Optional headers are shown in brackets, such as
OUTPut[:STATe] ON. As previously explained under “The effect of optional headers” on
page 39, if you combine two or more message units into a compound message, you may
need to enter the optional header.
Introduction to Programming
2
Keysight Models 6811C, 6812C, and 6813C Programming Guide
45
Query indicator
Following a header with a question mark turns it into a query (VOLTage?,
VOLTage:PROTection?). If a query contains a parameter, place the query indicator
at the end of the last header (VOLTage:PROTection? MAX).
Message unit separator
When two or more message units are combined into a compound message,
separate the units with a semicolon (STATus:OPERation?;QUEStionable?).
Root specifier
When it precedes the first header of a message unit, the colon becomes the root
specifier. It tells the command parser that this is the root or the top node of the
command tree. Note the difference between root specifiers and header separators
in the following examples:
OUTPut:PROTection:DELay .1
All colons are header separators
:OUTPut:PROTection:DELay .1
Only the first colon is a root specifier
OUTPut:PROTection:DELay .1;:VOLTage 12.5
Only the third colon is a root specifier
NOTE
You do not have to precede root-level commands with a colon; there is an
implied colon in front of every root-level command.
Introduction to Programming
46
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Message terminator
A terminator informs SCPI that it has reached the end of a message. Three
permitted messages terminators are as follows:
–
newline (), which is ASCII decimal 10 or hex 0A.
–
end or identify ()
–
both of the above ().
In the examples of this guide, there is an assumed message terminator at the end
of each message. If the terminator needs to be shown, it is indicated as
regardless of the actual terminator character.
all-guides.co
m
Introduction to Programming
2
Keysight Models 6811C, 6812C, and 6813C Programming Guide
47
SCPI Data Formats
All data programmed to or returned from the ac source is ASCII. The data may be
numerical or character string.
Numerical data formats
Symbol
Data form
Talking formats
Digits with an implied decimal point assumed at the right of the least-significant digit.
Examples: 273
Digits with an explicit decimal point.
Example: .0273
Digits with an explicit decimal point and an exponent.
Example: 2.73E+2
Boolean data.
Example: 0 | 1 or OFF | ON (0 = OFF; 1 = ON)
Listening formats
Extended format that includes , and .
Examples: 273273. 2.73E2
Expanded decimal format that includes and MINMAX.
Examples: 273 73.2 .73E2 MAX.
MIN and MAX are the minimum and maximum limit values that are implicit in the
range specification for the parameter.
Boolean data.
Example: 0 | 1
Introduction to Programming
48
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Suffixes and multipliers
Character data
Character strings returned by query statements may take either of the following
forms, depending on the length of the returned string:
Class
Suffix
Unit
Unit with multiplier
Current
A
ampere
mA (milliampere)
Amplitude
V
volt
mV (millivolt)
Time
s
second
ms (millisecond)
Frequency
Hz
hertz
kHz (kilohertz)
Common multipliers
1E3
K
kilo
1E–3
m
milli
1E–6
u
micro
Character Response Data. Permits the return of character strings.
Arbitrary ASCII Response Data. Permits the return of undelimited 7-bit ASCII. This data type
has an implied message terminator.
String Response Data. Returns string parameters enclosed in double quotes.
Introduction to Programming
2
Keysight Models 6811C, 6812C, and 6813C Programming Guide
49
System Considerations
The remainder of this chapter addresses some system issues concerning
programming. These are ac source addressing and the use of the following types
of GPIB system interfaces:
–
HP Vectra PC controller with Keysight 82335A GPIB Interface Command
Library
–
IBM PC controller with National Instruments GPIB-PCII Interface/Handler
–
Keysight controller with Keysight BASIC Language System
Assigning the GPIB address in programs
The ac source address cannot be set remotely. It must be set from the front panel.
Once the address is set, you can assign it inside programs. The following examples
assume that the GPIB select code is 7, and the ac source will be assigned to the
variable ACS.
For systems using the National Instruments DOS driver, the address is specified in
the software configuration program (IBCONFIG.EXE) and assigned a symbolic
name. The address then is referenced only by this name within the application
program (refer to the National Instruments GPIB documentation).
1070 ACS=706
! Keysight 82335A Interface
1070 ASSIGN @ACS TO 706
! Keysight BASIC Interface
Introduction to Programming
50
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Types of DOS drivers
The Keysight 82335A and National Instruments GPIB are two popular DOS drivers.
Each is briefly described here. Refer to the software documentation supplied with
the driver for more details.
Keysight 82335A driver
For GW-BASIC programming, the GPIB library is implemented as a series of
subroutine calls. To access these subroutines, your application program must
include the header file SETUP.BAS, which is part of the DOS driver software.
SETUP.BAS starts at program line 5 and can run up to line 999. Your application
programs must begin at line 1000. SETUP.BAS has built-in error checking
routines that provide a method to check for GPIB errors during program execution.
You can use the error-trapping code in these routines or write your own code
using the same variables as used by SETUP.BAS.
National Instruments GPIB driver
Your program must include the National Instruments header file DECL.BAS. This
contains the initialization code for the interface. Prior to running any applications
programs, you must set up the interface with the configuration program
(IBCONF.EXE).
Your application program will not include the ac source symbolic name and GPIB
address. These must be specified during configuration (when you run
IBCONF.EXE). Note that the primary address range is from 0 to 30 but any
secondary address must be specified in the address range of 96 to 126. The
instrument expects a message termination on EOI or line feed, so set end of
identify (EOI) with last byte of Write. It is also recommended that you set Disable
Auto Serial Polling.
All function calls return the status word IBSTA%, which contains a bit (ERR) that is
set if the call results in an error. When ERR is set, an appropriate code is placed in
variable IBERR%. Be sure to check IBSTA% after every function call. If it is not
equal to zero, branch to an error handler that reads IBERR% to extract the specific
error.
Introduction to Programming
2
Keysight Models 6811C, 6812C, and 6813C Programming Guide
51
Error handling
If there is no error-handling code in your program, undetected errors can cause
unpredictable results. This includes “hanging up” the controller and forcing you to
reset the system. Both of the above DOS drivers have routines for detecting
program execution errors.
Keysight BASIC controllers
The Keysight BASIC Programming Language provides access to GPIB functions at
the operating system level. This makes it unnecessary to have the header files
required in front of DOS applications programs. Also, you do not have to be
concerned about controller “hangups” as long as your program includes a timeout
statement. Because the ac source can be programmed to generate Service
Request (SRQ) on errors, your program can use an SRQ service routine for
decoding detected errors. The detectable errors are listed in Appendix C, "Error
Messages”.
NOTE
Use error detection after every call to a subroutine.
all-guides.co
m
Introduction to Programming
52
Keysight Models 6811C, 6812C, and 6813C Programming Guide
THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK.
Keysight Models 6811C, 6812C, and 6813C AC Power Solutions
Programming Guide
53
3
Language Dictionary
Introduction 54
Subsystem Commands 55
Calibration Subsystem Commands 57
Display Subsystem Commands 72
LXI Subsystem Commands 74
Measurement Subsystem (Arrays) Commands 78
Measurement Subsystem (Current) Commands 85
Measurement Subsystem (Frequency) Commands 90
Measurement Subsystem (Power) Commands 92
Measurement Subsystem (TVOLt) Commands 95
Measurement Subsystem (Voltage) Commands 98
Output Subsystem Commands 103
Sense Subsystem Commands 111
Source Subsystem (Current) Commands 117
Source Subsystem (Frequency) Commands 123
Source Subsystem (Frequency Modulation) Commands 127
Source Subsystem (Function) Commands 129
Source Subsystem (List) Commands 134
Source Subsystem (Phase) Commands 147
Source Subsystem (Pulse) Commands 150
Source Subsystem (Voltage) Commands 154
Status Subsystem Commands 168
System Subsystem Commands 176
Trace Subsystem Commands 194
Trigger Subsystem Commands 197
Common Commands 206
This chapter provides a dictionary of the available SCPI commands.
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Introduction
This section gives the syntax and parameters for all the IEEE 488.2 SCPI
commands and the Common commands used by the ac sources when operating
in Normal mode. It is assumed that you are familiar with the material in Chapter 2,
"Introduction to Programming". Because the SCPI syntax remains the same for all
programming languages, the examples given for each command are generic.
Syntax forms
Syntax definitions use the long form, but only short form headers (or “keywords”)
appear in the examples. Use the long form to help make your program
self-documenting.
Parameters
Most commands require a parameter and all queries will return a parameter.The
range for a parameter may vary according to the model of ac source. Parameters
for all models are listed in the Specifications table in the User's Guide.
Models
If a command only applies to specific models, those models are listed in the
only entry. If there is no only entry, the command applies to
all models.
Related commands
Where appropriate, related commands or queries are included. These are listed
because they are either directly related by function, or because reading about
them will clarify or enhance your understanding of the original command or
query.
Order of presentation The dictionary is organized as follows:
– Subsystem commands, arranged by subsystem
– IEEE 488.2 common commands
Keysight Models 6811C, 6812C, and 6813C Programming Guide
55
Subsystem Commands
Subsystem commands are specific to ac source functions. They can be a single
command or a group of commands. The groups comprise commands that extend
one or more levels below the root. The description of common commands follows
the description of the subsystem commands.
The subsystem command groups are listed in alphabetical order and the
commands within each subsystem are grouped alphabetically under the
subsystem. Commands followed by a question mark (?) take only the query form.
When commands take both the command and query form, this is noted in the
syntax descriptions.
You will find the subsystem command groups discussed on the following pages:
Subsystem
Page
Calibration Subsystem Commands
page 57
Display Subsystem Commands
page 72
LXI Subsystem Commands
page 74
Measurement Subsystem (Arrays) Commands
page 78
Measurement Subsystem (Current) Commands
page 85
Measurement Subsystem (Frequency) Commands
page 90
Measurement Subsystem (Power) Commands
page 92
Measurement Subsystem (TVOLt) Commands
page 95
Measurement Subsystem (Voltage) Commands
page 98
Output Subsystem Commands
page 103
Sense Subsystem Commands
page 111
Source Subsystem (Current) Commands
page 117
Source Subsystem (Frequency) Commands
page 123
Source Subsystem (Frequency Modulation) Commands
page 127
Source Subsystem (Function) Commands
page 129
Source Subsystem (List) Commands
page 134
Source Subsystem (Phase) Commands
page 147
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Source Subsystem (Pulse) Commands
page 150
Source Subsystem (Voltage) Commands
page 154
Status Subsystem Commands
page 168
System Subsystem Commands
page 176
Trace Subsystem Commands
page 194
Trigger Subsystem Commands
page 197
Common Commands
page 206
Subsystem
Page
all-guides.co
m
Keysight Models 6811C, 6812C, and 6813C Programming Guide
57
Calibration Subsystem Commands
The commands in this subsystem allow you to do the following:
–
Enable and disable the calibration mode
–
Change the calibration password
–
Calibrate the current and voltage output levels, and store new calibration
constants in non-volatile memory.
Subsystem syntax
CALibrate | CALibration
:COUNt?
Returns the calibration count of the ac source
:CURRent
:AC
Begin AC current programming calibration sequence
:EXTernal
Initiates calibration of the external current measurement
:MEASure
Begin current measurement calibration sequence
:DATA
Input a calibration measurement
:DATA?
Returns the present value of the phase calibration
:DATE
Input a calibration date
:IMPedance
Begin output impedance calibration sequence
:LEVel
Advance to next calibration step (P1 | P2 | P3 | P4)
:PASSword
Set calibration password
:PHASe
:AUXiliary
Initiates calibration of the auxiliary output phase
:PWM
:FREQuency
Trim pulse width modulator frequency
:RAMP
Trim pulse width modulator ramp
:SAVE
Save new cal constants in non-volatile memory
:SECure
:CODE Set calibration password
:STATe [, ]
Unsecures or secures the instrument for calibration
:SHUNt
Allows you to enter the external current shunt value
:STATE [, ]
Enable or disable calibration mode
:STRing
Stores a message in calibration memory
Keysight Models 6811C, 6812C, and 6813C Programming Guide
CALibrate:COUNt?
CALibration:COUNt?
Returns the calibration count of the ac source. Read and record the initial count
when you first receive your instrument. The value increments each time you store
the calibration constants, as such a complete calibration adds many counts. The
calibration count also increments whenever you save a calibration string, change
the calibration password, or override the calibration security. You can perform this
query regardless of whether the instrument is secured. This setting is non-volatile;
it will not be changed by power cycling, a factory reset (*RST), or an instrument
preset (SYSTem:PRESet).
:VOLTage
:AC
Begin AC voltage calibration sequence
:AUXiliary
[:AC]
Initiates calibration of the auxiliary output voltage
:DC
Begin DC voltage calibration sequence
:EXTernal
Initiates calibration of the external voltage measurement
:OFFSet
Begin offset voltage calibration sequence
:PROTection
Begin voltage protection calibration sequence
CALibrate | CALibration
Query syntax CALibrate:COUNt?
CALibration:COUNt?
Parameters None
Examples CAL:COUN?
Returned parameters
Related commands SYST:SEC:COUN
Keysight Models 6811C, 6812C, and 6813C Programming Guide
59
CALibrate:CURRent:AC
CALibration:CURRent:AC
This command can only be used in the calibration mode. It initiates the calibration
of the AC current limit and metering circuits.
CALibrate:CURRent:EXTernal
CALibration:CURRent:EXTernal
Keysight 6811C/6812C/6813C Option 020 only.
Initiates calibration of the external current measurement.
CALibrate:CURRent:MEASure
CALibration:CURRent:MEASure
This command is used to initiate the calibration of the current metering circuits
and the peak current limit circuits. It can only be used in the calibration mode.
Command syntax CALibrate:CURRent:AC
CALibration:CURRent:AC
Parameters None
Examples CAL:CURR:AC
Related commands CAL:STAT CAL:SAVE CAL:LEV
Command syntax CALibrate:CURRent:EXTernal
CALibration:CURRent:EXTernal
Parameters None
Examples CAL:CURR:EXT
Command syntax CALibrate:CURRent:MEASure
CALibration:CURRent:MEASure
Parameters None
Examples CAL:CURR:MEAS
Related commands CAL:STAT CAL:SAVE CAL:LEV
Keysight Models 6811C, 6812C, and 6813C Programming Guide
CALibrate:DATA
CALibration:DATA
This command is only used in calibration mode. It enters a calibration value that
you obtain by reading an external meter. You must first select a calibration level
(with CALibrate:LEVel) for the value being entered. These constants are not stored
in non-volatile memory until they are saved with CALibrate:SAVE. If
CALibrate:STATE OFF is programmed without a CALibrate:SAVE, the previous
calibration constants are restored.
CALibrate:DATA?
CALibration:DATA?
Keysight 6812/6813C Option 026 only.
Returns the present value of the phase calibration. This command can only be
used during the auxiliary phase calibration procedure. It will return an error if it is
used at any other time.
Command syntax CALibrate:DATA
CALibration:DATA
Parameters
Examples CAL:DATA 3222.3 MA CAL:DATA 5.000
Related commands CAL:STAT CAL:SAVE
Query syntax CALibrate:DATA?
CALibration:DATA?
Returned parameters
Examples CAL:DATA?
Keysight Models 6811C, 6812C, and 6813C Programming Guide
61
CALibrate:DATE
CALibration:DATE
Stores a message in calibration memory with a string input of 11 characters.
Storing a calibration message overwrites the previous message. You can perform
this query regardless of whether the instrument is secured. This setting is
non-volatile; it will not be changed by power cycling or *RST or SYSTem:PRESet.
CALibrate:IMPedance
CALibration:IMPedance
This command can only be used in calibration mode. It calibrates the output
impedance circuits. The command automatically performs the calibration.
CALibrate:SAVE is required to store the impedance constant in non-volatile
memory. CALibrate:IMPedance is a sequential command that takes several
seconds to complete.
Command syntax CALibrate:DATE
CALibration:DATE
Parameters
Examples CAL:DATE “14-Jun-2016”
Query syntax CALibrate:DATE?
CALibration:DATE?
Returned parameters
Related commands CAL:STR
Command syntax CALibrate:IMPedance
CALibration:IMPedance
Parameters None
Examples CAL:IMP
Related commands CAL:STAT CAL:SAVE
all-guides.co
m
Keysight Models 6811C, 6812C, and 6813C Programming Guide
CALibrate:LEVel
CALibration:LEVel
This command can only be used in calibration mode. It is used to advance to the
next state in the calibration sequence.
CALibrate:PASSword
CALibration:PASSword
This command can only be used in calibration mode. It allows you to change the
calibration password. A new password is automatically stored in non-volatile
memory and does not have to be stored with CALibrate:SAVE. If the password is
set to 0, password protection is removed and the ability to enter the calibration
mode is unrestricted.
Command syntax CALibrate:LEVel
CALibration:LEVel
Parameters P1 | P2 | P3 | P4
Examples CAL:LEV P2
Related commands CAL:STAT CAL:SAVE
Command syntax CALibrate:PASSword
CALibration:PASSword
Parameters 0 (default)
Examples CAL:PASS 6812 CAL:PASS 02.1997
Related commands CAL:STAT CAL:SEC:CODE
Keysight Models 6811C, 6812C, and 6813C Programming Guide
63
CALibrate:PHASe:AUXiliary
CALibration:PHASe:AUXiliary
Keysight 6812C/6813C Option 026 only.
Initiates calibration of the auxiliary output phase.
CALibrate:PWM:FREQuency
CALibration:PWM:FREQuency
This command is only used during manufacture or repair. It trims the switching
frequency of the power output stages. The numbers from 0 to 7 are internally
mapped to 8 discrete frequencies.
Command syntax CALibrate:PHASe:AUXiliary
CALibration:PHASe:AUXliary
Parameters 0 through 7
Examples CAL:PHAS:AUX 1
Command syntax CALibrate:PWM:FREQuency
CALibration:PWM:FREQuency
Parameters 0 through 7
Examples CAL:PWM:FREQ 1
Query syntax CALibrate:PWM:FREQuency?
CALibration:PWM:FREQuency?
Returned parameters
Related commands CAL:PWM:RAMP
Keysight Models 6811C, 6812C, and 6813C Programming Guide
CALibrate:PWM:RAMP
CALibration:PWM:RAMP
This command modulates the slope of voltage ramp driving the power output
stages. Varying the ramp affects the harmonic distortion of the output. The
argument is a number from 0 to 255. This command is only used during
manufacture or repair of the ac source.
CALibrate:SAVE
CALibration:SAVE
This command can only be used in calibration mode. It saves any new calibration
constants (after a current or voltage calibration procedure has been completed) in
non-volatile memory.
Command syntax CALCulate:PWM:RAMP
CALibration:PWM:RAMP
Parameters 0 through 255
Examples CAL:PWM:RAMP 100
Query syntax CALibrate:PWM:RAMP?
CALibration:PWM:RAMP?
Returned parameters
Related commands CAL:PWM:FREQ
Command syntax CALibrate:SAVE
CALibration:SAVE
Parameters None
Examples CAL:SAVE
Related commands CAL:CURR CAL:VOLT CAL:STAT
Keysight Models 6811C, 6812C, and 6813C Programming Guide
65
CALibrate:SECure:CODE
CALibration:SECure:CODE
This command can only be used in calibration mode. It allows you to change the
calibration password. A new password is automatically stored in non-volatile
memory and does not have to be stored with CALibrate:SAVE. If the password is
set to 0, password protection is removed and the ability to enter the calibration
mode is unrestricted. This setting is non-volatile; it will not be changed by power
cycling or *RST or SYSTem:PRESet.
Command syntax CALibrate:SECure:CODE
CALibration:SECure:CODE
Parameters 0 (default)
Examples CAL:SEC:CODE 6813 | CAL:SEC:CODE 02.1997
Related commands CAL:PASS
Keysight Models 6811C, 6812C, and 6813C Programming Guide
CALibrate:SECure:STATe
CALibration:SECure:STATe
This command enables and disables calibration mode. The calibration mode must
be enabled before the ac source will accept any other calibration commands. The
first parameter specifies the enabled or disabled state. The second parameter is
the password. It is required if the calibration mode is being enabled and the
existing password is not 0. If the password is not entered or is incorrect, an error is
generated and the calibration mode remains disabled. The query statement
returns only the state, not the password.
Whenever the calibration state is changed from enabled to disabled, any new
calibration constants are lost unless they have been stored with CALibrate:SAVE.
Unsecures or secures the ac source for calibration.
Command syntax CALibrate:SECure:STATe [, ]
CALibration:SECure:STATe [, ]
Parameters 0 | 1 | OFF | ON [, ]
*RST value OFF
Examples CAL:SEC:STAT 1, 6812 | CAL:SEC:STAT OFF
Query syntax CALibrate:SECure:STATe?
CALibration:SECure:STATe?
Returned parameters 0 | 1
Related commands CAL:STAT
all-guides.co
m
Keysight Models 6811C, 6812C, and 6813C Programming Guide
67
CALibrate:SHUNt
CALibration:SHUNt
Keysight 6811C/6812C/6813C Option 020 only.
Allows you to enter the external current shunt value (in ohms). The external
current shunt is used for external current measurement. The programming range
is 1E-6 to 1E6. This parameter is non-volatile, so there is no *RST value. As with
other CAL commands, calibration must first be enabled with CAL:STATe, and the
value must be made permanent with CAL:SAVE.
Command syntax CALibrate:SHUNt
CALibration:SHUNt
Parameters 1E-6 to 1E6 | MINimum | MAXimum
Unit Ω (ohms)
Examples CAL:SHUN .01
Keysight Models 6811C, 6812C, and 6813C Programming Guide
CALibrate:STATe
CALibration:STATe
This command enables and disables calibration mode. The calibration mode must
be enabled before the ac source will accept any other calibration commands. The
first parameter specifies the enabled or disabled state. The second parameter is
the password. It is required if the calibration mode is being enabled and the
existing password is not 0. If the password is not entered or is incorrect, an error is
generated and the calibration mode remains disabled. The query statement
returns only the state, not the password.
Whenever the calibration state is changed from enabled to disabled, any new
calibration constants are lost unless they have been stored with CALibrate:SAVE.
Command syntax CALibrate:STATe [, ]
CALibration:STATe [, ]
Parameters 0 | 1 | OFF | ON [, ]
*RST value OFF
Examples CAL:STAT 1, 6812 | CAL:STAT OFF
Query syntax CALibrate:STATe?
CALibration:STATe?
Returned parameters
Related commands CAL:PASS CAL:SAVE
Keysight Models 6811C, 6812C, and 6813C Programming Guide
69
CALibrate:STRing
CALibration:STRing
Stores a message in calibration memory. Common messages include the last
calibration date, calibration due date, or calibration department contact
information. You can perform this query regardless of whether the ac source is
secured. Storing a calibration message overwrites the previous message. This
setting is non-volatile; it will not be changed by power cycling or *RST or
SYSTem:PRESet.
CALibrate:VOLTage:AC
CALibration:VOLTage:AC
This command can only be used in calibration mode. It initiates the calibration of
the AC voltage programming and metering circuits.
Command syntax CALibrate:STRing
CALibration:STRing
Parameters
*RST value OFF
Examples CAL:STR “CAL BY JOHN [EXT: 1234]”
Query syntax CALibrate:STRing?
CALibration:STRing?
Returned parameters
Related commands CAL:DATE
Command syntax CALibrate:VOLTage:AC
CALibration:VOLTage:AC
Parameters None
Examples CAL:VOLT:AC
Related commands CAL:SAVE CAL:STAT
Keysight Models 6811C, 6812C, and 6813C Programming Guide
CALibrate:VOLTage:AUXiliary
CALibration:VOLTage:AUXiliary
Keysight 6812C/6813C Option 026 only.
Initiates calibration of the auxiliary output voltage.
CALibrate:VOLTage:DC
CALibration:VOLTage:DC
This command can only be used in calibration mode. It initiates the calibration of
the DC voltage programming circuits.
CALibrate:VOLTage:EXTernal
CALibration:VOLTage:EXTernal
Keysight 6811C/6812C/6813C Option 020 only.
Initiates calibration of the external voltage measurement.
Command syntax CALibrate:VOLTage:AUXiliary[:AC]
CALibration:VOLTage:AUXiliary[:AC]
Parameters None
Examples CAL:VOLT:AUX
Command syntax CALibrate:VOLTage:DC
CALibration:VOLTage:DC
Parameters None
Examples CAL:VOLT:DC
Related commands CAL:SAVE CAL:STAT
Command syntax CALibrate:VOLTage:EXTernal
CALibration:VOLTage:EXTernal
Parameters None
Examples CAL:VOLT:EXT
Keysight Models 6811C, 6812C, and 6813C Programming Guide
71
CALibrate:VOLTage:OFFSet
CALibration:VOLTage:OFFSet
This command can only be used in calibration mode. It initiates the calibration of
the offset voltage programming circuits.
CALibrate:VOLTage:PROTection
CALibration:VOLTage:PROTection
This command can only be used in calibration mode. It calibrates the overvoltage
protection (OV) circuit. The command automatically performs the calibration.
CALibrate:SAVE is required to store the new OV constant in non-volatile memory.
CALibrate:VOLTage:PROTection is a sequential command that takes several
seconds to complete.
Command syntax CALibrate:VOLTage:OFFSet
CALibration:VOLTage:OFFSet
Parameters None
Examples CAL:VOLT:OFFS
Related commands CAL:SAVE CAL:STAT CAL:LEV
Command syntax CALibrate:VOLTage:PROTection
CALibration:VOLTage:PROTection
Parameters None
Examples CAL:VOLT:PROT
Related commands CAL:SAVE CAL:STAT
all-guides.co
m
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Display Subsystem Commands
This subsystem programs the front panel display of the ac source.
Subsystem syntax
DISPlay
This command turns the front panel display on and off. It does not affect the
annunciators.
DISPlay
[:WINDow]
[:STATe]
Enable/disable front panel display
:MODE
Set display mode (NORM | TEXT)
:TEXT
[:DATA] Set text displayed in text mode
:CLEar
Clears text string set on DISP:TEXT
Command syntax DISPlay[:WINDow][:STATe]
Parameters 0 | 1 | OFF | ON
*RST value ON
Examples DISP:STAT 1 DISP:STAT OFF
Query syntax DISPlay[:WINDow]:STATe?
Returned parameters 0 | 1
Related commands DISP:MODE DISP:TEXT
Keysight Models 6811C, 6812C, and 6813C Programming Guide
73
DISPlay:MODE
This command sets the display to show either normal instrument functions, or to
show a text message. Text messages are defined with DISPlay:TEXT:DATA.
DISPlay:TEXT
This command sets the character string that is displayed when the display mode
is set to TEXT. The argument is a quoted string limited to upper case alpha
characters and numbers. The display is capable of showing up to 14 characters. If
the string exceeds the display capacity, it will be truncated.
DISPlay:TEXT:CLEar
Clears text string set on DISP:TEXT.
Command syntax DISPlay[:WINDow]:MODE
Parameters NORMal | TEXT
*RST value NORMal
Examples DISP:MODE TEXT
Query syntax DISPlay[:WINDow]:MODE?
Returned parameters
Related commands DISP DISP:TEXT
Command syntax DISPlay[:WINDow]:TEXT[:DATA]
Parameters
*RST value Null string
Examples DISP:TEXT “DO TEST1”
Query syntax DISPlay[:WINDow]:TEXT?
Returned parameters (the last programmed string)
Related commands DISP DISP:MODE
Command syntax DISPlay[:WINDow]:TEXT:CLEar
Parameters None
Examples DISP:TEXT:CLE
Related commands DISP:MODE DISP:TEXT
Keysight Models 6811C, 6812C, and 6813C Programming Guide
LXI Subsystem Commands
This subsystem supports LXI functionality.
Subsystem syntax
LXI:IDENtify[:STATe]
Shows or hides the LXI Web Identify indicator on the display. The indicator helps
you identify the device associated with the LAN address. Press the [Local] key or
send *RST to turn off the indicator.
LXI
:IDENtify
[:STATe]
Shows or hides the LXI Web Identify indicator on the
display.
:MDNS
[:STATe]
Disables or enables the mDNS.
:ENABle
Disables or enables the mDNS.
:HNAMe
[:RESolved]?
Returns the resolved (unique) mDNS hostname.
:SNAMe
:DESired Sets the desired mDNS service name.
[:RESolved]?
Returns the desired mDNS service name.
:RESet
Resets LAN settings to a known operating state.
:RESTart
Restarts the LAN with the specified settings.
Command syntax LXI:IDENtify[:STATe]
Parameters 0 | 1 | OFF | ON
*RST value OFF
Examples LXI:IDEN:STAT ON LXI:IDEN 0
Query syntax LXI:IDENtify[:STATe]?
Returned parameters 0 | 1
Keysight Models 6811C, 6812C, and 6813C Programming Guide
75
LXI:MDNS[:STATe]
Disables or enables the multicast Domain Name System (mDNS), which provides
the capabilities of a DNS server for service discovery in a small network without a
DNS server. This setting is non-volatile; it is not changed by power cycling, *RST,
or SYSTem:PRESet. This parameter is set to its default value when the ac source
is shipped from the factory and after SYSTem:SECurity:IMMediate.
LXI:MDNS:ENABle
Disables or enables the multicast Domain Name System (mDNS), which provides
the capabilities of a DNS server for service discovery in a small network without a
DNS server. This setting is non-volatile; it is not changed by power cycling, *RST,
or SYSTem:PRESet. This parameter is set to its default value when the ac source
is shipped from the factory and after SYSTem:SECurity:IMMediate.
Command syntax LXI:MDNS[:STATe]
Parameters 0 | 1 | OFF | ON
*RST value ON
Examples LXI:MDNS ON LXI:MDNS 1
Query syntax LXI:MDNS[:STATe]?
Returned parameters 0 | 1
Related commands LXI:MDNS:ENAB
Command syntax LXI:MDNS:ENABle
Parameters 0 | 1 | OFF | ON
*RST value ON
Examples LXI:MDNS:ENAB ON LXI:MDNS:ENAB 0
Query syntax LXI:MDNS:ENABle?
Returned parameters 0 | 1
Related commands LXI:MDNS
Keysight Models 6811C, 6812C, and 6813C Programming Guide
LXI:MDNS:HNAMe[:RESolved]?
Returns the resolved (unique) mDNS hostname in the form K---N, where is the last 5 digits of the ac source's serial
number. N is an integer appended if necessary, so that the name is unique. The
desired name may be truncated, if necessary, to make room for the appended
integer.
LXI:MDNS:SNAMe:DESired
Sets the desired mDNS service name. This setting is non-volatile; it is not
changed by power cycling, a *RST, or SYSTem:PRESet. This parameter is set to its
default value when the ac source is shipped from the factory and after
SYSTem:SECurity:IMMediate.
Query syntax LXI:MDNS:HNAMe[:RESolved]?
Parameters None
Examples LXI:MDNS:HNAM?
Returned parameters
Related commands LXI:MDNS:SNAM
Command syntax LXI:MDNS:SNAMe:DESired
Parameters
Examples LXI:MDNS:SNAM:DES “Keysight 6811C ACS”
Query syntax LXI:MDNS:SNAMe:DESired?
Returned parameters
Related commands LXI:MDNS:SNAM:RES
all-guides.co
m
Keysight Models 6811C, 6812C, and 6813C Programming Guide
77
LXI:MDNS:SNAMe[:RESolved]?
The resolved mDNS service name will be the desired service name
(LXI:MDNS:SNAMe:DESired), possibly with “()” appended. The N is an integer
appended if necessary, to make the name unique. The desired name may be
truncated, if necessary, to make room for the appended integer.
LXI:RESet
Resets LAN settings to a known operating state, beginning with DHCP, and clears
the Web Interface password. If DHCP fails, it uses Auto-IP. Depending on your
network, the LAN interface may take several seconds to restart after this
command is sent.
LXI:RESTart
Restarts the LAN with the current settings as specified by the
SYSTem:COMMunicate:LAN commands. Depending on your network, the LAN
interface may take several seconds to restart after this command is sent.
Query syntax LXI:MDNS:SNAMe[:RESolved]?
Parameters None
Examples LXI:MDNS:SNAM?
Returned parameters
Related commands LXI:MDNS:HNAM
Command syntax LXI:RESet
Parameters None
Examples LXI:RES
Related commands LXI:REST
Command syntax LXI:RESTart
Parameters None
Examples LXI:REST
Related commands LXI:RES
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Measurement Subsystem (Arrays) Commands
This subsystem lets you retrieve arrays containing measurements data. Only
current and voltage measurements are stored in an array. Two measurement
commands are available: MEASure and FETCh. MEASure triggers the acquisition
of new data before returning the readings from the array. FETCh returns previously
acquired data from the array.
For Keysight 6811C/6812C/6813C Option 020 only, all standard ac source
MEASure or FETCh functions are available for the Main Output of the ac source as
well as the Power Analyzer input. The SENSe:NSELect command selects the
measurement source that will return data.
Subsystem syntax
MEASure | FETCh
:ARRay
:CURRent
[:DC]?
Returns the digitized instantaneous current
:HARMonic
[:AMPLitude]? Returns amplitudes of the first 50 harmonics
:PHASe?
Returns phase angles of the first 50 harmonics
:VOLTage
[:DC]?
Returns the digitized instantaneous voltage
:HARMonic
[:AMPLitude]? Returns amplitudes of the first 50 harmonics
:PHASe?
Returns phase angles of the first 50 harmonics
Keysight Models 6811C, 6812C, and 6813C Programming Guide
79
MEASure:ARRay:CURRent?
FETCh:ARRay:CURRent?
These queries return an array containing the instantaneous output current in
amperes. The output voltage and current are digitized whenever a measure
command is given or whenever an acquire trigger occurs. If digitization is caused
by a measure command, the time interval between samples is determined by the
output frequency. For frequencies greater than 45 Hz, the time interval is
25 microseconds. If digitization is caused by an acquire trigger, the time interval is
set by SENSe:SWEep:TINTerval, and the position of the trigger relative to the
beginning of the data buffer is determined by SENSe:SWEep:OFFSet:POINts.
Query syntax MEASure:ARRay:CURRent[:DC]?
FETCh:ARRay:CURRent[:DC]?
Parameters None
Examples MEAS:ARR:CURR? FETC:ARR:CURR?
Returned parameters 4096 NR3 values
Related commands MEAS:ARR:VOLT?
Keysight Models 6811C, 6812C, and 6813C Programming Guide
MEASure:ARRay:CURRent:HARMonic?
FETCh:ARRay:CURRent:HARMonic?
These queries return an array of harmonic amplitudes of output current in rms
amperes.
The first value returned is the DC component, the second value is the fundamental
frequency, and so on up to the 50th harmonic. Harmonic orders can be measured
up to the fundamental measurement bandwidth of the measurement system,
which is 12.6 kHz. Thus, the maximum harmonic that can be measured is
dependent on the output frequency. Any harmonics that represent frequencies
greater than 12.6 kHz are returned as 0.
Query syntax MEASure:ARRay:CURRent:HARMonic[:AMPLitude]?
FETCh:ARRay:CURRent:HARMonic[:AMPLitude]?
Parameters None
Examples MEAS:ARR:CURR:HARM? FETC:ARR:CURR:HARM?
Returned parameters 51 NR3 values
Related commands MEAS:ARR:VOLT:HARM? MEAS:ARR:CURR:HARM:PHAS?
Keysight Models 6811C, 6812C, and 6813C Programming Guide
81
MEASure:ARRay:CURRent:HARMonic:PHASe?
FETCh:ARRay:CURRent:HARMonic:PHASe?
These queries return an array of harmonic phases of output current in degrees,
referenced to the positive zero crossing of the fundamental component.
The first value returned is the DC component (always returned as 0 degrees
phase), the second value is the fundamental frequency, and so on up to the 50th
harmonic. Harmonic orders can be measured up to the fundamental
measurement bandwidth of the measurement system, which is 12.6 kHz. Thus the
maximum harmonic that can be measured is dependent on the output frequency.
Any harmonics that represent frequencies greater than 12.6 kHz are returned as 0.
Query syntax MEASure:ARRay:CURRent:HARMonic:PHASe?
FETCh:ARRay:CURRent:HARMonic:PHASe?
Parameters None
Examples MEAS:ARR:CURR:HARM:PHAS? FETC:ARR:CURR:HARM:PHAS?
Returned parameters 51 NR3 values
Related commands MEAS:ARR:VOLT:HARM:PHAS? MEAS:ARR:CURR:HARM?
all-guides.co
m
Keysight Models 6811C, 6812C, and 6813C Programming Guide
MEASure:ARRay:VOLTage?
FETCh:ARRay:VOLTage?
These queries return an array containing the instantaneous output voltage in
volts.
The output voltage and current are digitized whenever a measure command is
given or whenever an acquire trigger occurs. If digitization is caused by a measure
command, the time interval between samples is determined by the output
frequency. For frequencies greater than 45 Hz, the time interval is
25 microseconds. If digitization is caused by an acquire trigger, the time interval is
set by SENSe:SWEep:TINTerval, and the position of the trigger relative to the
beginning of the data buffer is determined by SENSe:SWEep:OFFSet:POINts.
Query syntax MEASure:ARRay:VOLTage[:DC]?
FETCh:ARRay:VOLTage[:DC]?
Parameters None
Examples MEAS:ARR:VOLT? FETC:ARR:VOLT?
Returned parameters 4096 NR3 values
Related commands MEAS:ARR:CURR?
Keysight Models 6811C, 6812C, and 6813C Programming Guide
83
MEASure:ARRay:VOLTage:HARMonic?
FETCh:ARRay:VOLTage:HARMonic?
These queries return an array of harmonic amplitudes of output voltage in rms
volts.
The first value returned is the DC component, the second value is the fundamental
frequency, and so on up to the 50th harmonic. Harmonic orders can be measured
up to the fundamental measurement bandwidth of the measurement system,
which is 12.6 kHz. Thus, the maximum harmonic that can be measured is
dependent on the output frequency. Any harmonics that represent frequencies
greater than 12.6 kHz are returned as 0.
Query syntax MEASure:ARRay:VOLTage:HARMonic[:AMPLitude]?
FETCh:ARRay:VOLTage:HARMonic[:AMPLitude]?
Parameters None
Examples MEAS:ARR:VOLT:HARM? FETC:ARR:VOLT:HARM?
Returned parameters 51 NR3 values
Related commands MEAS:ARR:CURR:HARM? MEAS:ARR:VOLT:HARM:PHAS?
Keysight Models 6811C, 6812C, and 6813C Programming Guide
MEASure:ARRay:VOLTage:HARMonic:PHASe?
FETCh:ARRay:VOLTage:HARMonic:PHASe?
These queries return an array of harmonic phases of output voltage in degrees,
referenced to the positive zero crossing of the fundamental component.
The first value returned is the DC component (always returned as 0 degrees
phase), the second value is the fundamental frequency, and so on up to the 50th
harmonic. Harmonic orders can be measured up to the fundamental
measurement bandwidth of the measurement system, which is 12.6 kHz. Thus the
maximum harmonic that can be measured is dependent on the output frequency.
Any harmonics that represent frequencies greater than 12.6 kHz are returned as 0.
Query syntax MEASure:ARRay:VOLTage:HARMonic:PHASe?
FETCh:ARRay:VOLTage:HARMonic:PHASe?
Parameters None
Examples MEAS:ARR:VOLT:HARM:PHAS? FETC:ARR:VOLT:HARM:PHAS?
Returned parameters 51 NR3 values
Related commands MEAS:ARR:CURR:HARM:PHAS? MEAS:ARR:VOLT:HARM?
Keysight Models 6811C, 6812C, and 6813C Programming Guide
85
Measurement Subsystem (Current) Commands
This subsystem programs the current measurement capability of the ac source.
Two measurement commands are available: MEASure and FETCh. MEASure
triggers the acquisition of new measurement data before returning a reading.
FETCh returns a reading computed from previously acquired data.
For Keysight 6811C/6812C/6813C Option 020 only, all standard ac source
MEASure or FETCh functions are available for the Main Output of the ac source as
well as the Power Analyzer input. The SENSe:NSELect command selects the
measurement source that will return data.
Subsystem syntax
MEASure | FETCh
[:SCALar]
:CURRent
[:DC]?
Returns DC component of the current
:AC?
Returns AC rms current
:ACDC?
Returns AC+DC rms current
:AMPLitude
:MAXimum?
Returns peak current
:CREStfactor?
Returns current crest factor
:HARMonic
[:AMPLitude]? Returns amplitude of the Nth harmonic of current
:PHASe?
Returns phase of the Nth harmonic of current
:THD?
Returns % of total harmonic distortion of current
Keysight Models 6811C, 6812C, and 6813C Programming Guide
MEASure:CURRent?
FETCh:CURRent?
These queries return the DC component of the output current being sourced at
the output terminals.
MEASure:CURRent:AC?
FETCh:CURRent:AC?
These queries return the AC component rms current being sourced at the output
terminals.
Query syntax MEASure:[SCALar]:CURRent[:DC]?
FETCh:[SCALar]:CURRent[:DC]?
Parameters None
Examples MEAS:CURR? FETC:CURR?
Returned parameters
Related commands MEAS:VOLT? MEAS:CURR:AC?
Query syntax MEASure:[SCALar]:CURRent:AC?
FETCh:[SCALar]:CURRent:AC?
Parameters None
Examples MEAS:CURR:AC? FETC:CURR:AC?
Returned parameters
Related commands MEAS:VOLT:AC? MEAS:CURR?
all-guides.co
m
Keysight Models 6811C, 6812C, and 6813C Programming Guide
87
MEASure:CURRent:ACDC?
FETCh:CURRent:ACDC?
These queries return the AC+DC rms current being sourced at the output
terminals.
MEASure:CURRent:AMPLitude:MAXimum?
FETCh:CURRent:AMPLitude:MAXimum?
These queries return the absolute value of the peak current as sampled over one
measurement acquisition of 4096 data points.
Query syntax MEASure:[SCALar]:CURRent:ACDC?
FETCh:[SCALar]:CURRent:ACDC?
Parameters None
Examples MEAS:CURR:ACDC? FETC:CURR:ACDC?
Returned parameters
Related commands MEAS:VOLT:ACDC? MEAS:CURR:AMPL:MAX?
Query syntax MEASure:[SCALar]:CURRent:AMPLitude:MAXimum?
FETCh:[SCALar]:CURRent:AMPLitude:MAXimum?
Parameters None
Examples MEAS:CURR:AMPL:MAX? FETC:CURR:AMPL:MAX?
Returned parameters
Related commands MEAS:CURR:ACDC? MEAS:CURR:CRES?
Keysight Models 6811C, 6812C, and 6813C Programming Guide
MEASure:CURRent:CREStfactor?
FETCh:CURRent:CREStfactor?
These queries return the output current crest factor. This is the ratio of peak
output current to rms output current.
MEASure:CURRent:HARMonic?
FETCh:CURRent:HARMonic?
These queries return the rms amplitude of the Nth harmonic of output current.
The parameter is the desired harmonic number. Queries sent with a value of 0
return the DC component. A value of 1 returns the fundamental output frequency.
Harmonic orders can be queried up to the fundamental measurement bandwidth
of the measurement system, which is 12.6 kHz. Thus the maximum harmonic that
can be measured is dependent on the output frequency. Any harmonics that
represent frequencies greater than 12.6 kHz are returned as 0.
Query syntax MEASure:[SCALar]:CURRent:CREStfactor?
FETCh:[SCALar]:CURRent:CREStfactor?
Parameters None
Examples MEAS:CURR:CRES? FETC:CURR:CRES?
Returned parameters
Related commands MEAS:CURR:ACDC? MEAS:CURR:AMPL:MAX?
Query syntax MEASure:[SCALar]:CURRent:HARMonic[:AMPLitude]?
FETCh:[SCALar]:CURRent:HARMonic[:AMPLitude]?
Parameters 0 to 50
Examples MEAS:CURR:HARM? 3 FETC:CURR:HARM? 1
Returned parameters
Related commands MEAS:CURR:HARM:PHAS? MEAS:CURR:HARM:THD?
Keysight Models 6811C, 6812C, and 6813C Programming Guide
89
MEASure:CURRent:HARMonic:PHASe?
FETCh:CURRent:HARMonic:PHASe?
These queries return the phase angle of the Nth harmonic of output current,
referenced to the positive zero crossing of the fundamental component.
The parameter is the desired harmonic number. Queries sent with a value of 0
return the DC component. A value of 1 returns the fundamental output frequency.
Harmonic orders can be queried up to the fundamental measurement bandwidth
of the measurement system, which is 12.6 kHz. Thus the maximum harmonic that
can be measured is dependent on the output frequency. Any harmonics that
represent frequencies greater than 12.6 kHz are returned as 0.
MEASure:CURRent:HARMonic:THD?
FETCh:CURRent:HARMonic:THD?
These queries return the percentage of total harmonic distortion and noise in the
output current.
Query syntax MEASure:[SCALar]:CURRent:HARMonic:PHASe?
FETCh:[SCALar]:CURRent:HARMonic:PHASe?
Parameters 0 to 50
Examples MEAS:CURR:HARM:PHAS? 3 FETC:CURR:HARM:PHAS? 1
Returned parameters
Related commands MEAS:CURR:HARM? MEAS:CURR:HARM:THD?
Query syntax MEASure:[SCALar]:CURRent:HARMonic:THD?
FETCh:[SCALar]:CURRent:HARMonic:THD?
Parameters None
Examples MEAS:CURR:HARM:THD? FETC:CURR:HARM:THD?
Returned parameters
Related commands MEAS:CURR:HARM? MEAS:CURR:HARM:PHAS?
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Measurement Subsystem (Frequency) Commands
This subsystem programs the frequency measurement capability of the ac source.
Two measurement commands are available: MEASure and FETCh. MEASure
triggers the acquisition of new measurement data before returning a reading.
FETCh returns a reading computed from previously acquired data.
For Keysight 6811C/6812C/6813C Option 020 only, all standard ac source
MEASure or FETCh functions are available for the Main Output of the ac source as
well as the Power Analyzer input. The SENSe:NSELect command selects the
measurement source that will return data.
Subsystem syntax
MEASure:FREQuency?
FETCh:FREQuency?
This query returns the output frequency in hertz.
For Keysight 6811C/6812C/6813C Option 020 only, when the Power Analyzer
input is selected as the measurement source, this command returns the actual
frequency measured at the V SENSE input channel. When the Main Output of the
ac source is selected as the measurement source, this command returns the
programmed output frequency.
MEASure | FETCh
[:SCALar]
:FREQuency Returns the output frequency
NOTE
With no signal connected to the Power Analyzer input, this command may return
a very high frequency value. This is normal, since there is no external frequency
for the measurement circuit to detect.
Query syntax MEASure:[SCALar]:FREQuency?
FETCh:[SCALar]:FREQuency?
Parameters None
Keysight Models 6811C, 6812C, and 6813C Programming Guide
91
Examples MEAS:FREQ? FETC:FREQ?
Returned parameters
all-guides.co
m
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Measurement Subsystem (Power) Commands
This subsystem programs the power measurement capability of the ac source.
Two measurement commands are available: MEASure and FETCh. MEASure
triggers the acquisition of new measurement data before returning a reading.
FETCh returns a reading computed from previously acquired data.
For Keysight 6811C/6812C/6813C Option 020 only, all standard ac source
MEASure or FETCh functions are available for the Main Output of the ac source as
well as the Power Analyzer input. The SENSe:NSELect command selects the
measurement source that will return data.
Subsystem syntax
MEASure:POWer?
FETCh:POWer?
These queries return the DC component of the power being sourced at the output
terminals in watts.
MEASure | FETCh
[:SCALar]
:POWer
[:DC]?
Returns the DC component of power
:AC
[:REAL]?
Returns real power
:APParent? Returns VA
:REACtive? Returns VAR
:PFACtor?
Returns power factor
Query syntax MEASure:[SCALar]:POWer[:DC]?
FETCh:[SCALar]:POWer[:DC]?
Parameters None
Examples MEAS:POW? FETC:POW?
Returned parameters
Related commands MEAS:POW:AC?
Keysight Models 6811C, 6812C, and 6813C Programming Guide
93
MEASure:POWer:AC?
FETCh:POWer:AC?
These queries return the in-phase component of power being sourced at the
output terminals in watts.
MEASure:POWer:AC:APParent?
FETCh:POWer:AC:APParent?
These queries return the apparent power being sourced at the output terminals in
volt-amperes.
Query syntax MEASure:[SCALar]:POWer:AC[:REAL]?
FETCh:[SCALar]:POWer:AC[:REAL]?
Parameters None
Examples MEAS:POW:AC? FETC:POW:AC?
Returned parameters
Related commands MEAS:POW?
Query syntax MEASure:[SCALar]:POWer:AC:APParent?
FETCh:[SCALar]:POWer:AC:APParent?
Parameters None
Examples MEAS:POW:AC:APP? FETC:POW:AC:APP?
Returned parameters
Related commands MEAS:POW:REAC? MEAS:POW:PFAC?
Keysight Models 6811C, 6812C, and 6813C Programming Guide
MEASure:POWer:AC:REACtive?
FETCh:POWer:AC:REACtive?
These queries return the reactive power being sourced at the output terminals in
volt-amperes reactive (VAR). Reactive power is computed as:
MEASure:POWer:AC:PFACtor?
FETCh:POWer:AC:PFACtor?
These queries return the output power factor. The power factor is computed as:
Query syntax MEASure:[SCALar]:POWer:AC:REACtive?
FETCh:[SCALar]:POWer:AC:REACtive?
Parameters None
Examples MEAS:POW:AC:REAC? FETC:POW:AC:REAC?
Returned parameters
Related commands MEAS:POW:AC:APP? MEAS:POW:PFAC?
VAR
(Apparent Power
)2
(Real Power
)2
–
(
)
=
Query syntax MEASure:[SCALar]:POWer:AC:PFACtor?
FETCh:[SCALar]:POWer:AC:PFACtor?
Parameters None
Examples MEAS:POW:AC:PFAC? FETC:POW:AC:PFAC?
Returned parameters
Related commands MEAS:POW:AC:APP? MEAS:POW:REAC?
PFactor
Real Power
Apparent Power
--------------------------------
=
Keysight Models 6811C, 6812C, and 6813C Programming Guide
95
Measurement Subsystem (TVOLt) Commands
For Keysight 6811C/6812C/6813C Option 020 only, these measurement
commands are optimized for use in specific applications such as evaluating
uninterruptible power supplies. In this application the new commands can be
used to measure transfer time, peak voltage, and phase locked loop performance
of the UPS.
For Keysight 6811C/6812C/6813C Option 020 only, all standard ac source
MEASure or FETCh functions are available for the Main Output of the ac source as
well as the Power Analyzer input. The SENSe:NSELect command selects the
measurement source that will return data.
Subsystem syntax
MEASure | FETCh
[:SCALar]
:TVOLt? ,
Returns the time
:TVOLt
:ABSolute? , , Returns the time
Keysight Models 6811C, 6812C, and 6813C Programming Guide
MEASure:TVOLt?
FETCh:TVOLt?
Keysight 6811C/6812C/6813C Option 020 only.
Returns the time at which the measured voltage crosses a user-specified voltage
level. The sign and magnitude of occurrence define the event to be reported. For
example, if occurrence is –3, the return value is the third time at which the voltage
crosses the level in the negative-going direction. If occurrence is 4, the return
value is the fourth time at which the voltage crosses the level in the positive-going
direction.
The return value is with respect to the start of the measurement buffer. If no point
on the waveform satisfies the specified conditions, the return value is
9.91000E+37.
Query syntax MEASure:[SCALar]:TVOLt? ,
FETCh:[SCALar]:TVOLt? ,
Parameters –1E6 to 1E6 (for level)
–4096 to +4096, but not 0 (for occurrence)
Examples MEAS:TVOL? 50, 3 FETC:TVOL? 10, -1
Returned parameters
Related commands MEAS:TVOL:ABS?
all-guides.co
m
Keysight Models 6811C, 6812C, and 6813C Programming Guide
97
MEASure:TVOLt:ABSolute?
FETCh:TVOLt:ABSolute?
Keysight 6811C/6812C/6813C Option 020 only.
Returns the time at which the absolute value of the measured voltage first
exceeds level, with the following qualifications: The behavior of the signal before
start_time is ignored, and the absolute value of the voltage must remain above
level for at least the specified min_pulse_width.
Both start_time and the return value are with respect to the start of the
measurement buffer. If no point on the waveform satisfies the specified
conditions, the return value is 9.91000E+37.
Query syntax MEASure:[SCALar]:TVOLt:ABSolute? , ,
FETCh:[SCALar]:TVOLt:ABSolute? , ,
Parameters 0 to 1E6 (for level)
0 to 1E6 (for start time in seconds)
0 to 1E6 (for minimum pulse width in seconds)
Examples MEAS:TVOL:ABS? 50, 0, 0.001
FETC:TVOL:ABS? 100, 0.005, 0
Returned parameters
Related commands MEAS:TVOL?
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Measurement Subsystem (Voltage) Commands
This subsystem programs the voltage measurement capability of the ac source.
Two measurement commands are available: MEASure and FETCh. MEASure
triggers the acquisition of new measurement data before returning a reading.
FETCh returns a reading computed from previously acquired data.
For Keysight 6811C/6812C/6813C Option 020 only, all standard ac source
MEASure or FETCh functions are available for the Main Output of the ac source as
well as the Power Analyzer input. The SENSe:NSELect command selects the
measurement source that will return data.
Subsystem syntax
MEASure | FETCh
[:SCALar]
:VOLTage
[:DC]?
Returns DC component of the voltage
:AC?
Returns AC rms voltage
:ACDC?
Returns AC+DC rms voltage
:HARMonic
[:AMPLitude]? Returns amplitude of the Nth harmonic of voltage
:PHASe?
Returns phase of the Nth harmonic of voltage
:THD?
Returns % of total harmonic distortion of voltage
:RANKed?
Returns the voltage value for the percentile rank given
Keysight Models 6811C, 6812C, and 6813C Programming Guide
99
MEASure:VOLTage?
FETCh:VOLTage?
These queries return the DC component of the output voltage being sourced at
the output terminals.
MEASure:VOLTage:AC?
FETCh:VOLTage:AC?
These queries return the AC rms voltage being sourced at the output terminals.
Query syntax MEASure:[SCALar]:VOLTage[:DC]?
FETCh:[SCALar]:VOLTage[:DC]?
Parameters None
Examples MEAS:VOLT? FETC:VOLT?
Returned parameters
Related commands MEAS:CURR? MEAS:VOLT:AC?
Query syntax MEASure:[SCALar]:VOLTage:AC?
FETCh:[SCALar]:VOLTage:AC?
Parameters None
Examples MEAS:VOLT:AC? FETC:VOLT:AC?
Returned parameters
Related commands MEAS:CURR:AC? MEAS:VOLT?
Keysight Models 6811C, 6812C, and 6813C Programming Guide
MEASure:VOLTage:ACDC?
FETCh:VOLTage:ACDC?
These queries return the AC+DC rms voltage being sourced at the output
terminals.
MEASure:VOLTage:HARMonic?
FETCh:VOLTage:HARMonic?
These queries return the rms amplitude of the Nth harmonic of output voltage.
The parameter is the desired harmonic number. Queries sent with a value of 0
return the DC component. A value of 1 returns the fundamental output frequency.
Harmonic orders can be queried up to the fundamental measurement bandwidth
of the measurement system, which is 12.6 kHz. Thus the maximum harmonic that
can be measured is dependent on the output frequency. Any harmonics that
represent frequencies greater than 12.6 kHz are returned as 0.
Query syntax MEASure:[SCALar]:VOLTage:ACDC?
FETCh:[SCALar]:VOLTage:ACDC?
Parameters None
Examples MEAS:VOLT:ACDC? FETC:VOLT:ACDC?
Returned parameters
Related commands MEAS:CURR:ACDC? MEAS:VOLT?
Query syntax MEASure:[SCALar]:VOLTage:HARMonic[:AMPLitude]?
FETCh:[SCALar]:VOLTage:HARMonic[:AMPLitude]?
Parameters 0 to 50
Examples MEAS:VOLT:HARM? 3 FETC:VOLT:HARM? 1
Returned parameters
Related commands MEAS:VOLT:HARM:PHAS? MEAS:VOLT:HARM:THD?