Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight Technologies, Inc.

InfiniiVision 3000 X-Series Oscilloscopes - Programmer's Guide

for "Connectivity Guide". • For the latest versions of this and other manuals, see: http://www.keysight.com/find/3000X-Series-manual ...

Infiniivision 3000T X Programmieranleitung

Batronix Download-Center

https://www.mouser.com/pdfDocs/3000 series prog guide

Keysight Msox3024t Manual

3000 series prog guide
Keysight InfiniiVision 3000 X-Series Oscilloscopes
Programmer's Guide

Notices
© Keysight Technologies, Inc. 2005-2019 No part of this manual may be reproduced in any form or by any means (including electronic storage and retrieval or translation into a foreign language) without prior agreement and written consent from Keysight Technologies, Inc. as governed by United States and international copyright laws.
Revision
Version 02.50.0000
Edition
March 2019 Available in electronic format only Published by: Keysight Technologies, Inc. 1900 Garden of the Gods Road Colorado Springs, CO 80907 USA
Warranty
The material contained in this document is provided "as is," and is subject to being changed, without notice, in future editions. Further, to the maximum extent permitted by applicable law, Keysight disclaims all warranties, either express or implied, with regard to this manual and any information contained herein, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Keysight shall not be liable for errors or for incidental or consequential damages in connection with the furnishing, use, or performance of this document or of any information contained herein. Should Keysight and the user have a separate written agreement with warranty terms covering the material in this document that conflict with these terms, the warranty terms in the separate agreement shall control.
Technology License
The hardware and/or software described in this document are furnished under a license and may be used or copied only in accordance with the terms of such license.

U.S. Government Rights
The Software is "commercial computer software," as defined by Federal Acquisition Regulation ("FAR") 2.101. Pursuant to FAR 12.212 and 27.405-3 and Department of Defense FAR Supplement ("DFARS") 227.7202, the U.S. government acquires commercial computer software under the same terms by which the software is customarily provided to the public. Accordingly, Keysight provides the Software to U.S. government customers under its standard commercial license, which is embodied in its End User License Agreement (EULA), a copy of which can be found at www.keysight.com/find/sweula. The license set forth in the EULA represents the exclusive authority by which the U.S. government may use, modify, distribute, or disclose the Software. The EULA and the license set forth therein, does not require or permit, among other things, that Keysight: (1) Furnish technical information related to commercial computer software or commercial computer software documentation that is not customarily provided to the public; or (2) Relinquish to, or otherwise provide, the government rights in excess of these rights customarily provided to the public to use, modify, reproduce, release, perform, display, or disclose commercial computer software or commercial computer software documentation. No additional government requirements beyond those set forth in the EULA shall apply, except to the extent that those terms, rights, or licenses are explicitly required from all providers of commercial computer software pursuant to the FAR and the DFARS and are set forth specifically in writing elsewhere in the EULA. Keysight shall be under no obligation to update, revise or otherwise modify the Software. With respect to any technical data as defined by FAR 2.101, pursuant to FAR 12.211 and 27.404.2 and DFARS 227.7102, the U.S. government acquires no greater than Limited Rights as defined in FAR 27.401 or DFAR 227.7103-5 (c), as applicable in any technical data.

Safety Notices 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.
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.

2

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

In This Book
This book is your guide to programming the 3000 X-Series oscilloscopes:

Table 1 InfiniiVision 3000 X-Series Oscilloscope Models, Bandwidths, Sample Rates

Bandwidth Sample Rate (interleaved, non-interleaved) 4 analog + 16 digital (mixed signal) channels 2 analog + 16 digital (mixed signal) channels 4 analog channels 2 analog channels

100 MHz 4 GSa/s, 2 GSa/s MSO-X 3014A
MSO-X 3012A
DSO-X 3014A DSO-X 3012A

200 MHz 4 GSa/s, 2 GSa/s MSO-X 3024A
DSO-X 3024A

350 MHz 4 GSa/s, 2 GSa/s MSO-X 3034A
MSO-X 3032A
DSO-X 3034A DSO-X 3032A

500 MHz 4 GSa/s, 2 GSa/s MSO-X 3054A
MSO-X 3052A
DSO-X 3054A DSO-X 3052A

1 GHz 5 GSa/s, 2.5 GSa/s MSO-X 3104A
MSO-X 3102A
DSO-X 3104A DSO-X 3102A

The first few chapters describe how to set up and get started: · Chapter 1, "What's New," starting on page 33, describes programming
command changes in the latest version of oscilloscope software. · Chapter 2, "Setting Up," starting on page 55, describes the steps you must take
before you can program the oscilloscope. · Chapter 3, "Getting Started," starting on page 63, gives a general overview of
oscilloscope program structure and shows how to program the oscilloscope using a few simple examples. · Chapter 4, "Commands Quick Reference," starting on page 77, is a brief listing of the 3000 X-Series oscilloscope commands and syntax.
The next chapters provide reference information on common commands, root level commands, other subsystem commands, and error messages: · Chapter 5, "Common (*) Commands," starting on page 167, describes
commands defined by the IEEE 488.2 standard that are common to all instruments. · Chapter 6, "Root (:) Commands," starting on page 193, describes commands that reside at the root level of the command tree and control many of the basic functions of the oscilloscope. · Chapter 7, ":ACQuire Commands," starting on page 233, describes commands for setting the parameters used when acquiring and storing data. · Chapter 8, ":BUS<n> Commands," starting on page 247, describes commands that control all oscilloscope functions associated with the digital channels bus display. · Chapter 9, ":CALibrate Commands," starting on page 257, describes utility commands for determining the state of the calibration factor protection button.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

3

· Chapter 10, ":CHANnel<n> Commands," starting on page 267, describes commands that control all oscilloscope functions associated with individual analog channels or groups of channels.
· Chapter 11, ":DEMO Commands," starting on page 289, describes commands that control the education kit (Option EDU) demonstration signals that can be output on the oscilloscope's Demo 1 and Demo 2 terminals.
· Chapter 12, ":DIGital<d> Commands," starting on page 297, describes commands that control all oscilloscope functions associated with individual digital channels.
· Chapter 13, ":DISPlay Commands," starting on page 305, describes commands that control how waveforms, graticule, and text are displayed and written on the screen.
· Chapter 14, ":DVM Commands," starting on page 319, describes commands that control the optional DSOXDVM digital voltmeter analysis feature.
· Chapter 15, ":EXTernal Trigger Commands," starting on page 327, describes commands that control the input characteristics of the external trigger input.
· Chapter 16, ":FUNCtion Commands," starting on page 333, describes commands that control math waveforms.
· Chapter 17, ":HARDcopy Commands," starting on page 367, describes commands that set and query the selection of hardcopy device and formatting options.
· Chapter 18, ":LISTer Commands," starting on page 385, describes commands that turn on/off the Lister display for decoded serial data and get the Lister data.
· Chapter 19, ":MARKer Commands," starting on page 389, describes commands that set and query the settings of X-axis markers (X1 and X2 cursors) and the Y-axis markers (Y1 and Y2 cursors).
· Chapter 20, ":MEASure Commands," starting on page 407, describes commands that select automatic measurements (and control markers).
· Chapter 21, ":MEASure Power Commands," starting on page 485, describes measurement commands that are available when the DSOX3PWR power measurements and analysis application is licensed and enabled.
· Chapter 22, ":MTESt Commands," starting on page 505, describes commands that control the mask test features provided with Option LMT.
· Chapter 23, ":POD Commands," starting on page 539, describes commands that control all oscilloscope functions associated with groups of digital channels.
· Chapter 24, ":POWer Commands," starting on page 545, describes commands that control the DSOX3PWR power measurement application.
· Chapter 25, ":RECall Commands," starting on page 613, describes commands that recall previously saved oscilloscope setups, reference waveforms, or masks.

4

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

· Chapter 26, ":SAVE Commands," starting on page 621, describes commands that save oscilloscope setups, screen images, and data.
· Chapter 27, ":SBUS<n> Commands," starting on page 645, describes commands that control oscilloscope functions associated with the serial decode bus and serial triggering.
· Chapter 28, ":SEARch Commands," starting on page 795, describes commands that control oscilloscope functions associated with searching for waveform events.
· Chapter 29, ":SYSTem Commands," starting on page 869, describes commands that control basic system functions of the oscilloscope.
· Chapter 30, ":TIMebase Commands," starting on page 891, describes commands that control all horizontal sweep functions.
· Chapter 31, ":TRIGger Commands," starting on page 903, describes commands that control the trigger modes and parameters for each trigger type.
· Chapter 32, ":WAVeform Commands," starting on page 983, describes commands that provide access to waveform data.
· Chapter 33, ":WGEN Commands," starting on page 1019, describes commands that control waveform generator (Option WGN) functions and parameters.
· Chapter 34, ":WMEMory<r> Commands," starting on page 1061, describes commands that control reference waveforms.
· Chapter 35, "Obsolete and Discontinued Commands," starting on page 1071, describes obsolete commands which still work but have been replaced by newer commands and discontinued commands which are no longer supported.
· Chapter 36, "Error Messages," starting on page 1123, lists the instrument error messages that can occur while programming the oscilloscope.
The command descriptions in this reference show upper and lowercase characters. For example, :AUToscale indicates that the entire command name is :AUTOSCALE. The short form, :AUT, is also accepted by the oscilloscope.
Then, there are chapters that describe programming topics and conceptual information in more detail: · Chapter 37, "Status Reporting," starting on page 1131, describes the
oscilloscope's status registers and how to check the status of the instrument. · Chapter 38, "Synchronizing Acquisitions," starting on page 1153, describes
how to wait for acquisitions to complete before querying measurement results or performing other operations with the captured data. · Chapter 39, "More About Oscilloscope Commands," starting on page 1163, contains additional information about oscilloscope programming commands.
Finally, there is a chapter that contains programming examples: · Chapter 40, "Programming Examples," starting on page 1173.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

5

Mixed-Signal Oscilloscope
Channel Differences
See Also

Because both the "analog channels only" oscilloscopes (DSO models) and the mixed-signal oscilloscopes (MSO models) have analog channels, topics that describe analog channels refer to all oscilloscope models. Whenever a topic describes digital channels, that information applies only to the mixed-signal oscilloscope models.
· For more information on using the SICL, VISA, and VISA COM libraries in general, see the documentation that comes with the Keysight IO Libraries Suite.
· For information on controller PC interface configuration, see the documentation for the interface card used (for example, the Keysight 82350B GPIB interface).
· For information on oscilloscope front-panel operation, see the User's Guide. · For detailed connectivity information, refer to the Keysight Technologies
USB/LAN/GPIB Connectivity Guide. For a printable electronic copy of the Connectivity Guide, direct your Web browser to www.keysight.com and search for "Connectivity Guide". · For the latest versions of this and other manuals, see: http://www.keysight.com/find/3000X-Series-manual

6

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Contents
In This Book / 3
1 What's New
What's New in Version 2.50 / 34 What's New in Version 2.43 / 35 What's New in Version 2.39 / 36 What's New in Version 2.38 / 37 What's New in Version 2.30 / 38 What's New in Version 2.20 / 39 What's New in Version 2.10 / 42 What's New in Version 2.00 / 43 What's New in Version 1.20 / 47 What's New in Version 1.10 / 49 Version 1.00 at Introduction / 50 Command Differences From 7000B Series Oscilloscopes / 51
2 Setting Up
Step 1. Install Keysight IO Libraries Suite software / 56 Step 2. Connect and set up the oscilloscope / 57
Using the USB (Device) Interface / 57 Using the LAN Interface / 57 Using the GPIB Interface / 58 Step 3. Verify the oscilloscope connection / 59
3 Getting Started
Basic Oscilloscope Program Structure / 64 Initializing / 64 Capturing Data / 64 Analyzing Captured Data / 65

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

7

Programming the Oscilloscope / 66 Referencing the IO Library / 66 Opening the Oscilloscope Connection via the IO Library / 67 Initializing the Interface and the Oscilloscope / 67 Using :AUToscale to Automate Oscilloscope Setup / 68 Using Other Oscilloscope Setup Commands / 68 Capturing Data with the :DIGitize Command / 69 Reading Query Responses from the Oscilloscope / 71 Reading Query Results into String Variables / 72 Reading Query Results into Numeric Variables / 72 Reading Definite-Length Block Query Response Data / 72 Sending Multiple Queries and Reading Results / 73 Checking Instrument Status / 74
Other Ways of Sending Commands / 75 Telnet Sockets / 75 Sending SCPI Commands Using Browser Web Control / 75
4 Commands Quick Reference
Command Summary / 78
Syntax Elements / 163 Number Format / 163 <NL> (Line Terminator) / 163 [ ] (Optional Syntax Terms) / 163 { } (Braces) / 163 ::= (Defined As) / 163 < > (Angle Brackets) / 164 ... (Ellipsis) / 164 n,..,p (Value Ranges) / 164 d (Digits) / 164 Quoted ASCII String / 164 Definite-Length Block Response Data / 164
5 Common (*) Commands
*CLS (Clear Status) / 171 *ESE (Standard Event Status Enable) / 172 *ESR (Standard Event Status Register) / 174 *IDN (Identification Number) / 176 *LRN (Learn Device Setup) / 177 *OPC (Operation Complete) / 178 *OPT (Option Identification) / 179

8

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

*RCL (Recall) / 181 *RST (Reset) / 182 *SAV (Save) / 185 *SRE (Service Request Enable) / 186 *STB (Read Status Byte) / 188 *TRG (Trigger) / 190 *TST (Self Test) / 191 *WAI (Wait To Continue) / 192
6 Root (:) Commands
:ACTivity / 197 :AER (Arm Event Register) / 198 :AUToscale / 199 :AUToscale:AMODE / 201 :AUToscale:CHANnels / 202 :AUToscale:FDEBug / 203 :BLANk / 204 :DIGitize / 205 :MTEenable (Mask Test Event Enable Register) / 207 :MTERegister[:EVENt] (Mask Test Event Event Register) / 209 :OPEE (Operation Status Enable Register) / 211 :OPERegister:CONDition (Operation Status Condition Register) / 213 :OPERegister[:EVENt] (Operation Status Event Register) / 215 :OVLenable (Overload Event Enable Register) / 217 :OVLRegister (Overload Event Register) / 219 :PRINt / 221 :PWRenable (Power Event Enable Register) / 222 :PWRRegister[:EVENt] (Power Event Event Register) / 224 :RUN / 225 :SERial / 226 :SINGle / 227 :STATus / 228 :STOP / 229 :TER (Trigger Event Register) / 230 :VIEW / 231
7 :ACQuire Commands
:ACQuire:COMPlete / 235 :ACQuire:COUNt / 236 :ACQuire:MODE / 237 :ACQuire:POINts / 238

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

9

:ACQuire:SEGMented:ANALyze / 239 :ACQuire:SEGMented:COUNt / 240 :ACQuire:SEGMented:INDex / 241 :ACQuire:SRATe / 244 :ACQuire:TYPE / 245
8 :BUS<n> Commands
:BUS<n>:BIT<m> / 249 :BUS<n>:BITS / 250 :BUS<n>:CLEar / 252 :BUS<n>:DISPlay / 253 :BUS<n>:LABel / 254 :BUS<n>:MASK / 255
9 :CALibrate Commands
:CALibrate:DATE / 259 :CALibrate:LABel / 260 :CALibrate:OUTPut / 261 :CALibrate:PROTected / 262 :CALibrate:STARt / 263 :CALibrate:STATus / 264 :CALibrate:TEMPerature / 265 :CALibrate:TIME / 266
10 :CHANnel<n> Commands
:CHANnel<n>:BANDwidth / 270 :CHANnel<n>:BWLimit / 271 :CHANnel<n>:COUPling / 272 :CHANnel<n>:DISPlay / 273 :CHANnel<n>:IMPedance / 274 :CHANnel<n>:INVert / 275 :CHANnel<n>:LABel / 276 :CHANnel<n>:OFFSet / 277 :CHANnel<n>:PROBe / 278 :CHANnel<n>:PROBe:HEAD[:TYPE] / 279 :CHANnel<n>:PROBe:ID / 280 :CHANnel<n>:PROBe:SKEW / 281 :CHANnel<n>:PROBe:STYPe / 282 :CHANnel<n>:PROTection / 283 :CHANnel<n>:RANGe / 284 :CHANnel<n>:SCALe / 285

10

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:CHANnel<n>:UNITs / 286 :CHANnel<n>:VERNier / 287
11 :DEMO Commands
:DEMO:FUNCtion / 290 :DEMO:FUNCtion:PHASe:PHASe / 294 :DEMO:OUTPut / 295
12 :DIGital<d> Commands
:DIGital<d>:DISPlay / 299 :DIGital<d>:LABel / 300 :DIGital<d>:POSition / 301 :DIGital<d>:SIZE / 302 :DIGital<d>:THReshold / 303
13 :DISPlay Commands
:DISPlay:ANNotation / 307 :DISPlay:ANNotation:BACKground / 308 :DISPlay:ANNotation:COLor / 309 :DISPlay:ANNotation:TEXT / 310 :DISPlay:CLEar / 311 :DISPlay:DATA / 312 :DISPlay:INTensity:WAVeform / 314 :DISPlay:LABel / 315 :DISPlay:LABList / 316 :DISPlay:PERSistence / 317 :DISPlay:VECTors / 318
14 :DVM Commands
:DVM:ARANge / 320 :DVM:CURRent / 321 :DVM:ENABle / 322 :DVM:FREQuency / 323 :DVM:MODE / 324 :DVM:SOURce / 325
15 :EXTernal Trigger Commands
:EXTernal:BWLimit / 328 :EXTernal:PROBe / 329 :EXTernal:RANGe / 330 :EXTernal:UNITs / 331

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

11

16 :FUNCtion Commands
:FUNCtion:BUS:CLOCk / 338 :FUNCtion:BUS:SLOPe / 339 :FUNCtion:BUS:YINCrement / 340 :FUNCtion:BUS:YORigin / 341 :FUNCtion:BUS:YUNits / 342 :FUNCtion:DISPlay / 343 :FUNCtion[:FFT]:CENTer / 344 :FUNCtion[:FFT]:SPAN / 345 :FUNCtion[:FFT]:VTYPe / 346 :FUNCtion[:FFT]:WINDow / 347 :FUNCtion:FREQuency:HIGHpass / 348 :FUNCtion:FREQuency:LOWPass / 349 :FUNCtion:GOFT:OPERation / 350 :FUNCtion:GOFT:SOURce1 / 351 :FUNCtion:GOFT:SOURce2 / 352 :FUNCtion:INTegrate:IOFFset / 353 :FUNCtion:LINear:GAIN / 354 :FUNCtion:LINear:OFFSet / 355 :FUNCtion:OFFSet / 356 :FUNCtion:OPERation / 357 :FUNCtion:RANGe / 359 :FUNCtion:REFerence / 360 :FUNCtion:SCALe / 361 :FUNCtion:SOURce1 / 362 :FUNCtion:SOURce2 / 364 :FUNCtion:TRENd:MEASurement / 365
17 :HARDcopy Commands
:HARDcopy:AREA / 369 :HARDcopy:APRinter / 370 :HARDcopy:FACTors / 371 :HARDcopy:FFEed / 372 :HARDcopy:INKSaver / 373 :HARDcopy:LAYout / 374 :HARDcopy:NETWork:ADDRess / 375 :HARDcopy:NETWork:APPLy / 376 :HARDcopy:NETWork:DOMain / 377 :HARDcopy:NETWork:PASSword / 378 :HARDcopy:NETWork:SLOT / 379 :HARDcopy:NETWork:USERname / 380

12

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:HARDcopy:PALette / 381 :HARDcopy:PRINter:LIST / 382 :HARDcopy:STARt / 383
18 :LISTer Commands
:LISTer:DATA / 386 :LISTer:DISPlay / 387 :LISTer:REFerence / 388
19 :MARKer Commands
:MARKer:MODE / 391 :MARKer:X1Position / 392 :MARKer:X1Y1source / 393 :MARKer:X2Position / 394 :MARKer:X2Y2source / 395 :MARKer:XDELta / 396 :MARKer:XUNits / 397 :MARKer:XUNits:USE / 398 :MARKer:Y1Position / 399 :MARKer:Y2Position / 401 :MARKer:YDELta / 403 :MARKer:YUNits / 404 :MARKer:YUNits:USE / 405
20 :MEASure Commands
:MEASure:ALL / 422 :MEASure:AREa / 423 :MEASure:BRATe / 424 :MEASure:BWIDth / 425 :MEASure:CLEar / 426 :MEASure:COUNter / 427 :MEASure:DEFine / 428 :MEASure:DELay / 431 :MEASure:DUAL:CHARge / 433 :MEASure:DUAL:VAMPlitude / 434 :MEASure:DUAL:VAVerage / 435 :MEASure:DUAL:VBASe / 436 :MEASure:DUAL:VPP / 437 :MEASure:DUAL:VRMS / 438 :MEASure:DUTYcycle / 439 :MEASure:FALLtime / 440

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

13

:MEASure:FREQuency / 441 :MEASure:NDUTy / 442 :MEASure:NEDGes / 443 :MEASure:NPULses / 444 :MEASure:NWIDth / 445 :MEASure:OVERshoot / 446 :MEASure:PEDGes / 448 :MEASure:PERiod / 449 :MEASure:PHASe / 450 :MEASure:PPULses / 451 :MEASure:PREShoot / 452 :MEASure:PWIDth / 453 :MEASure:RESults / 454 :MEASure:RISetime / 457 :MEASure:SDEViation / 458 :MEASure:SHOW / 459 :MEASure:SOURce / 460 :MEASure:STATistics / 462 :MEASure:STATistics:DISPlay / 463 :MEASure:STATistics:INCRement / 464 :MEASure:STATistics:MCOunt / 465 :MEASure:STATistics:RESet / 466 :MEASure:STATistics:RSDeviation / 467 :MEASure:TEDGe / 468 :MEASure:TVALue / 470 :MEASure:VAMPlitude / 472 :MEASure:VAVerage / 473 :MEASure:VBASe / 474 :MEASure:VMAX / 475 :MEASure:VMIN / 476 :MEASure:VPP / 477 :MEASure:VRATio / 478 :MEASure:VRMS / 479 :MEASure:VTIMe / 480 :MEASure:VTOP / 481 :MEASure:WINDow / 482 :MEASure:XMAX / 483 :MEASure:XMIN / 484
21 :MEASure Power Commands
:MEASure:ANGLe / 488

14

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure:APParent / 489 :MEASure:CPLoss / 490 :MEASure:CRESt / 491 :MEASure:EFFiciency / 492 :MEASure:ELOSs / 493 :MEASure:FACTor / 494 :MEASure:IPOWer / 495 :MEASure:OFFTime / 496 :MEASure:ONTime / 497 :MEASure:OPOWer / 498 :MEASure:PCURrent / 499 :MEASure:PLOSs / 500 :MEASure:REACtive / 501 :MEASure:REAL / 502 :MEASure:RIPPle / 503 :MEASure:TRESponse / 504
22 :MTESt Commands
:MTESt:ALL / 510 :MTESt:AMASk:CREate / 511 :MTESt:AMASk:SOURce / 512 :MTESt:AMASk:UNITs / 513 :MTESt:AMASk:XDELta / 514 :MTESt:AMASk:YDELta / 515 :MTESt:COUNt:FWAVeforms / 516 :MTESt:COUNt:RESet / 517 :MTESt:COUNt:TIME / 518 :MTESt:COUNt:WAVeforms / 519 :MTESt:DATA / 520 :MTESt:DELete / 521 :MTESt:ENABle / 522 :MTESt:LOCK / 523 :MTESt:RMODe / 524 :MTESt:RMODe:FACTion:MEASure / 525 :MTESt:RMODe:FACTion:PRINt / 526 :MTESt:RMODe:FACTion:SAVE / 527 :MTESt:RMODe:FACTion:STOP / 528 :MTESt:RMODe:SIGMa / 529 :MTESt:RMODe:TIME / 530 :MTESt:RMODe:WAVeforms / 531 :MTESt:SCALe:BIND / 532

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

15

:MTESt:SCALe:X1 / 533 :MTESt:SCALe:XDELta / 534 :MTESt:SCALe:Y1 / 535 :MTESt:SCALe:Y2 / 536 :MTESt:SOURce / 537 :MTESt:TITLe / 538
23 :POD Commands
:POD<n>:DISPlay / 541 :POD<n>:SIZE / 542 :POD<n>:THReshold / 543
24 :POWer Commands
:POWer:DESKew / 551 :POWer:EFFiciency:APPLy / 552 :POWer:ENABle / 553 :POWer:HARMonics:APPLy / 554 :POWer:HARMonics:DATA / 555 :POWer:HARMonics:DISPlay / 556 :POWer:HARMonics:FAILcount / 557 :POWer:HARMonics:LINE / 558 :POWer:HARMonics:POWerfactor / 559 :POWer:HARMonics:RUNCount / 560 :POWer:HARMonics:STANdard / 561 :POWer:HARMonics:STATus / 562 :POWer:HARMonics:THD / 563 :POWer:INRush:APPLy / 564 :POWer:INRush:EXIT / 565 :POWer:INRush:NEXT / 566 :POWer:MODulation:APPLy / 567 :POWer:MODulation:SOURce / 568 :POWer:MODulation:TYPE / 569 :POWer:ONOFf:APPLy / 570 :POWer:ONOFf:EXIT / 571 :POWer:ONOFf:NEXT / 572 :POWer:ONOFf:TEST / 573 :POWer:PSRR:APPLy / 574 :POWer:PSRR:FREQuency:MAXimum / 575 :POWer:PSRR:FREQuency:MINimum / 576 :POWer:PSRR:RMAXimum / 577 :POWer:QUALity:APPLy / 578

16

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer:QUALity:TYPE / 579 :POWer:RIPPle:APPLy / 580 :POWer:SIGNals:AUTosetup / 581 :POWer:SIGNals:CYCLes:HARMonics / 582 :POWer:SIGNals:CYCLes:QUALity / 583 :POWer:SIGNals:DURation:EFFiciency / 584 :POWer:SIGNals:DURation:MODulation / 585 :POWer:SIGNals:DURation:ONOFf:OFF / 586 :POWer:SIGNals:DURation:ONOFf:ON / 587 :POWer:SIGNals:DURation:RIPPle / 588 :POWer:SIGNals:DURation:TRANsient / 589 :POWer:SIGNals:IEXPected / 590 :POWer:SIGNals:OVERshoot / 591 :POWer:SIGNals:VMAXimum:INRush / 592 :POWer:SIGNals:VMAXimum:ONOFf:OFF / 593 :POWer:SIGNals:VMAXimum:ONOFf:ON / 594 :POWer:SIGNals:VSTeady:ONOFf:OFF / 595 :POWer:SIGNals:VSTeady:ONOFf:ON / 596 :POWer:SIGNals:VSTeady:TRANsient / 597 :POWer:SIGNals:SOURce:CURRent<i> / 598 :POWer:SIGNals:SOURce:VOLTage<i> / 599 :POWer:SLEW:APPLy / 600 :POWer:SLEW:SOURce / 601 :POWer:SWITch:APPLy / 602 :POWer:SWITch:CONDuction / 603 :POWer:SWITch:IREFerence / 604 :POWer:SWITch:RDS / 605 :POWer:SWITch:VCE / 606 :POWer:SWITch:VREFerence / 607 :POWer:TRANsient:APPLy / 608 :POWer:TRANsient:EXIT / 609 :POWer:TRANsient:IINitial / 610 :POWer:TRANsient:INEW / 611 :POWer:TRANsient:NEXT / 612
25 :RECall Commands
:RECall:ARBitrary[:STARt] / 615 :RECall:FILename / 616 :RECall:MASK[:STARt] / 617 :RECall:PWD / 618 :RECall:SETup[:STARt] / 619

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

17

:RECall:WMEMory<r>[:STARt] / 620
26 :SAVE Commands
:SAVE:ARBitrary[:STARt] / 624 :SAVE:FILename / 625 :SAVE:IMAGe[:STARt] / 626 :SAVE:IMAGe:FACTors / 627 :SAVE:IMAGe:FORMat / 628 :SAVE:IMAGe:INKSaver / 629 :SAVE:IMAGe:PALette / 630 :SAVE:LISTer[:STARt] / 631 :SAVE:MASK[:STARt] / 632 :SAVE:MULTi[:STARt] / 633 :SAVE:POWer[:STARt] / 634 :SAVE:PWD / 635 :SAVE:SETup[:STARt] / 636 :SAVE:WAVeform[:STARt] / 637 :SAVE:WAVeform:FORMat / 638 :SAVE:WAVeform:LENGth / 639 :SAVE:WAVeform:LENGth:MAX / 640 :SAVE:WAVeform:SEGMented / 641 :SAVE:WMEMory:SOURce / 642 :SAVE:WMEMory[:STARt] / 643
27 :SBUS<n> Commands
General :SBUS<n> Commands / 647 :SBUS<n>:DISPlay / 648 :SBUS<n>:MODE / 649
:SBUS<n>:A429 Commands / 650 :SBUS<n>:A429:AUTosetup / 652 :SBUS<n>:A429:BASE / 653 :SBUS<n>:A429:COUNt:ERRor / 654 :SBUS<n>:A429:COUNt:RESet / 655 :SBUS<n>:A429:COUNt:WORD / 656 :SBUS<n>:A429:FORMat / 657 :SBUS<n>:A429:SIGNal / 658 :SBUS<n>:A429:SOURce / 659 :SBUS<n>:A429:SPEed / 660 :SBUS<n>:A429:TRIGger:LABel / 661 :SBUS<n>:A429:TRIGger:PATTern:DATA / 662 :SBUS<n>:A429:TRIGger:PATTern:SDI / 663

18

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n>:A429:TRIGger:PATTern:SSM / 664 :SBUS<n>:A429:TRIGger:RANGe / 665 :SBUS<n>:A429:TRIGger:TYPE / 666
:SBUS<n>:CAN Commands / 668
:SBUS<n>:CAN:COUNt:ERRor / 670 :SBUS<n>:CAN:COUNt:OVERload / 671 :SBUS<n>:CAN:COUNt:RESet / 672 :SBUS<n>:CAN:COUNt:TOTal / 673 :SBUS<n>:CAN:COUNt:UTILization / 674 :SBUS<n>:CAN:SAMPlepoint / 675 :SBUS<n>:CAN:SIGNal:BAUDrate / 676 :SBUS<n>:CAN:SIGNal:DEFinition / 677 :SBUS<n>:CAN:SOURce / 678 :SBUS<n>:CAN:TRIGger / 679 :SBUS<n>:CAN:TRIGger:PATTern:DATA / 681 :SBUS<n>:CAN:TRIGger:PATTern:DATA:LENGth / 682 :SBUS<n>:CAN:TRIGger:PATTern:ID / 683 :SBUS<n>:CAN:TRIGger:PATTern:ID:MODE / 684
:SBUS<n>:FLEXray Commands / 685
:SBUS<n>:FLEXray:AUTosetup / 687 :SBUS<n>:FLEXray:BAUDrate / 688 :SBUS<n>:FLEXray:CHANnel / 689 :SBUS<n>:FLEXray:COUNt:NULL / 690 :SBUS<n>:FLEXray:COUNt:RESet / 691 :SBUS<n>:FLEXray:COUNt:SYNC / 692 :SBUS<n>:FLEXray:COUNt:TOTal / 693 :SBUS<n>:FLEXray:SOURce / 694 :SBUS<n>:FLEXray:TRIGger / 695 :SBUS<n>:FLEXray:TRIGger:ERRor:TYPE / 696 :SBUS<n>:FLEXray:TRIGger:EVENt:AUToset / 697 :SBUS<n>:FLEXray:TRIGger:EVENt:BSS:ID / 698 :SBUS<n>:FLEXray:TRIGger:EVENt:TYPE / 699 :SBUS<n>:FLEXray:TRIGger:FRAMe:CCBase / 700 :SBUS<n>:FLEXray:TRIGger:FRAMe:CCRepetition / 701 :SBUS<n>:FLEXray:TRIGger:FRAMe:ID / 702 :SBUS<n>:FLEXray:TRIGger:FRAMe:TYPE / 703
:SBUS<n>:I2S Commands / 704
:SBUS<n>:I2S:ALIGnment / 707 :SBUS<n>:I2S:BASE / 708 :SBUS<n>:I2S:CLOCk:SLOPe / 709

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

19

:SBUS<n>:I2S:RWIDth / 710 :SBUS<n>:I2S:SOURce:CLOCk / 711 :SBUS<n>:I2S:SOURce:DATA / 712 :SBUS<n>:I2S:SOURce:WSELect / 713 :SBUS<n>:I2S:TRIGger / 714 :SBUS<n>:I2S:TRIGger:AUDio / 716 :SBUS<n>:I2S:TRIGger:PATTern:DATA / 717 :SBUS<n>:I2S:TRIGger:PATTern:FORMat / 719 :SBUS<n>:I2S:TRIGger:RANGe / 720 :SBUS<n>:I2S:TWIDth / 722 :SBUS<n>:I2S:WSLow / 723
:SBUS<n>:IIC Commands / 724 :SBUS<n>:IIC:ASIZe / 726 :SBUS<n>:IIC[:SOURce]:CLOCk / 727 :SBUS<n>:IIC[:SOURce]:DATA / 728 :SBUS<n>:IIC:TRIGger:PATTern:ADDRess / 729 :SBUS<n>:IIC:TRIGger:PATTern:DATA / 730 :SBUS<n>:IIC:TRIGger:PATTern:DATa2 / 731 :SBUS<n>:IIC:TRIGger:QUALifier / 732 :SBUS<n>:IIC:TRIGger[:TYPE] / 733
:SBUS<n>:LIN Commands / 735 :SBUS<n>:LIN:PARity / 737 :SBUS<n>:LIN:SAMPlepoint / 738 :SBUS<n>:LIN:SIGNal:BAUDrate / 739 :SBUS<n>:LIN:SOURce / 740 :SBUS<n>:LIN:STANdard / 741 :SBUS<n>:LIN:SYNCbreak / 742 :SBUS<n>:LIN:TRIGger / 743 :SBUS<n>:LIN:TRIGger:ID / 744 :SBUS<n>:LIN:TRIGger:PATTern:DATA / 745 :SBUS<n>:LIN:TRIGger:PATTern:DATA:LENGth / 747 :SBUS<n>:LIN:TRIGger:PATTern:FORMat / 748
:SBUS<n>:M1553 Commands / 749 :SBUS<n>:M1553:AUTosetup / 750 :SBUS<n>:M1553:BASE / 751 :SBUS<n>:M1553:SOURce / 752 :SBUS<n>:M1553:TRIGger:PATTern:DATA / 753 :SBUS<n>:M1553:TRIGger:RTA / 754 :SBUS<n>:M1553:TRIGger:TYPE / 755
:SBUS<n>:SPI Commands / 756

20

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n>:SPI:BITorder / 758 :SBUS<n>:SPI:CLOCk:SLOPe / 759 :SBUS<n>:SPI:CLOCk:TIMeout / 760 :SBUS<n>:SPI:FRAMing / 761 :SBUS<n>:SPI:SOURce:CLOCk / 762 :SBUS<n>:SPI:SOURce:FRAMe / 763 :SBUS<n>:SPI:SOURce:MISO / 764 :SBUS<n>:SPI:SOURce:MOSI / 765 :SBUS<n>:SPI:TRIGger:PATTern:MISO:DATA / 766 :SBUS<n>:SPI:TRIGger:PATTern:MISO:WIDTh / 767 :SBUS<n>:SPI:TRIGger:PATTern:MOSI:DATA / 768 :SBUS<n>:SPI:TRIGger:PATTern:MOSI:WIDTh / 769 :SBUS<n>:SPI:TRIGger:TYPE / 770 :SBUS<n>:SPI:WIDTh / 771
:SBUS<n>:UART Commands / 772 :SBUS<n>:UART:BASE / 775 :SBUS<n>:UART:BAUDrate / 776 :SBUS<n>:UART:BITorder / 777 :SBUS<n>:UART:COUNt:ERRor / 778 :SBUS<n>:UART:COUNt:RESet / 779 :SBUS<n>:UART:COUNt:RXFRames / 780 :SBUS<n>:UART:COUNt:TXFRames / 781 :SBUS<n>:UART:FRAMing / 782 :SBUS<n>:UART:PARity / 783 :SBUS<n>:UART:POLarity / 784 :SBUS<n>:UART:SOURce:RX / 785 :SBUS<n>:UART:SOURce:TX / 786 :SBUS<n>:UART:TRIGger:BASE / 787 :SBUS<n>:UART:TRIGger:BURSt / 788 :SBUS<n>:UART:TRIGger:DATA / 789 :SBUS<n>:UART:TRIGger:IDLE / 790 :SBUS<n>:UART:TRIGger:QUALifier / 791 :SBUS<n>:UART:TRIGger:TYPE / 792 :SBUS<n>:UART:WIDTh / 793
28 :SEARch Commands
General :SEARch Commands / 796 :SEARch:COUNt / 797 :SEARch:MODE / 798 :SEARch:STATe / 799
:SEARch:EDGE Commands / 800

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

21

:SEARch:EDGE:SLOPe / 801 :SEARch:EDGE:SOURce / 802
:SEARch:GLITch Commands / 803 :SEARch:GLITch:GREaterthan / 804 :SEARch:GLITch:LESSthan / 805 :SEARch:GLITch:POLarity / 806 :SEARch:GLITch:QUALifier / 807 :SEARch:GLITch:RANGe / 808 :SEARch:GLITch:SOURce / 809
:SEARch:RUNT Commands / 810 :SEARch:RUNT:POLarity / 811 :SEARch:RUNT:QUALifier / 812 :SEARch:RUNT:SOURce / 813 :SEARch:RUNT:TIME / 814
:SEARch:TRANsition Commands / 815 :SEARch:TRANsition:QUALifier / 816 :SEARch:TRANsition:SLOPe / 817 :SEARch:TRANsition:SOURce / 818 :SEARch:TRANsition:TIME / 819
:SEARch:SERial:A429 Commands / 820 :SEARch:SERial:A429:LABel / 821 :SEARch:SERial:A429:MODE / 822 :SEARch:SERial:A429:PATTern:DATA / 823 :SEARch:SERial:A429:PATTern:SDI / 824 :SEARch:SERial:A429:PATTern:SSM / 825
:SEARch:SERial:CAN Commands / 826 :SEARch:SERial:CAN:MODE / 827 :SEARch:SERial:CAN:PATTern:DATA / 828 :SEARch:SERial:CAN:PATTern:DATA:LENGth / 829 :SEARch:SERial:CAN:PATTern:ID / 830 :SEARch:SERial:CAN:PATTern:ID:MODE / 831
:SEARch:SERial:FLEXray Commands / 832 :SEARch:SERial:FLEXray:CYCLe / 833 :SEARch:SERial:FLEXray:DATA / 834 :SEARch:SERial:FLEXray:DATA:LENGth / 835 :SEARch:SERial:FLEXray:FRAMe / 836 :SEARch:SERial:FLEXray:MODE / 837
:SEARch:SERial:I2S Commands / 838 :SEARch:SERial:I2S:AUDio / 839

22

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch:SERial:I2S:MODE / 840 :SEARch:SERial:I2S:PATTern:DATA / 841 :SEARch:SERial:I2S:PATTern:FORMat / 842 :SEARch:SERial:I2S:RANGe / 843
:SEARch:SERial:IIC Commands / 844 :SEARch:SERial:IIC:MODE / 845 :SEARch:SERial:IIC:PATTern:ADDRess / 847 :SEARch:SERial:IIC:PATTern:DATA / 848 :SEARch:SERial:IIC:PATTern:DATA2 / 849 :SEARch:SERial:IIC:QUALifier / 850
:SEARch:SERial:LIN Commands / 851 :SEARch:SERial:LIN:ID / 852 :SEARch:SERial:LIN:MODE / 853 :SEARch:SERial:LIN:PATTern:DATA / 854 :SEARch:SERial:LIN:PATTern:DATA:LENGth / 855 :SEARch:SERial:LIN:PATTern:FORMat / 856
:SEARch:SERial:M1553 Commands / 857 :SEARch:SERial:M1553:MODE / 858 :SEARch:SERial:M1553:PATTern:DATA / 859 :SEARch:SERial:M1553:RTA / 860
:SEARch:SERial:SPI Commands / 861 :SEARch:SERial:SPI:MODE / 862 :SEARch:SERial:SPI:PATTern:DATA / 863 :SEARch:SERial:SPI:PATTern:WIDTh / 864
:SEARch:SERial:UART Commands / 865 :SEARch:SERial:UART:DATA / 866 :SEARch:SERial:UART:MODE / 867 :SEARch:SERial:UART:QUALifier / 868
29 :SYSTem Commands
:SYSTem:DATE / 871 :SYSTem:DIDentifier / 872 :SYSTem:DSP / 873 :SYSTem:ERRor / 874 :SYSTem:LOCK / 875 :SYSTem:MENU / 876 :SYSTem:PRESet / 877 :SYSTem:PROTection:LOCK / 880 :SYSTem:RLOGger / 881

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

23

:SYSTem:RLOGger:DESTination / 882 :SYSTem:RLOGger:DISPlay / 883 :SYSTem:RLOGger:FNAMe / 884 :SYSTem:RLOGger:STATe / 885 :SYSTem:RLOGger:TRANsparent / 886 :SYSTem:RLOGger:WMODe / 887 :SYSTem:SETup / 888 :SYSTem:TIME / 890
30 :TIMebase Commands
:TIMebase:MODE / 893 :TIMebase:POSition / 894 :TIMebase:RANGe / 895 :TIMebase:REFerence / 896 :TIMebase:SCALe / 897 :TIMebase:VERNier / 898 :TIMebase:WINDow:POSition / 899 :TIMebase:WINDow:RANGe / 900 :TIMebase:WINDow:SCALe / 901
31 :TRIGger Commands
General :TRIGger Commands / 905 :TRIGger:FORCe / 906 :TRIGger:HFReject / 907 :TRIGger:HOLDoff / 908 :TRIGger:LEVel:ASETup / 909 :TRIGger:LEVel:HIGH / 910 :TRIGger:LEVel:LOW / 911 :TRIGger:MODE / 912 :TRIGger:NREJect / 913 :TRIGger:SWEep / 914
:TRIGger:DELay Commands / 915 :TRIGger:DELay:ARM:SLOPe / 916 :TRIGger:DELay:ARM:SOURce / 917 :TRIGger:DELay:TDELay:TIME / 918 :TRIGger:DELay:TRIGger:COUNt / 919 :TRIGger:DELay:TRIGger:SLOPe / 920 :TRIGger:DELay:TRIGger:SOURce / 921
:TRIGger:EBURst Commands / 922 :TRIGger:EBURst:COUNt / 923

24

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger:EBURst:IDLE / 924 :TRIGger:EBURst:SLOPe / 925 :TRIGger:EBURst:SOURce / 926
:TRIGger[:EDGE] Commands / 927 :TRIGger[:EDGE]:COUPling / 928 :TRIGger[:EDGE]:LEVel / 929 :TRIGger[:EDGE]:REJect / 930 :TRIGger[:EDGE]:SLOPe / 931 :TRIGger[:EDGE]:SOURce / 932
:TRIGger:GLITch Commands / 933 :TRIGger:GLITch:GREaterthan / 935 :TRIGger:GLITch:LESSthan / 936 :TRIGger:GLITch:LEVel / 937 :TRIGger:GLITch:POLarity / 938 :TRIGger:GLITch:QUALifier / 939 :TRIGger:GLITch:RANGe / 940 :TRIGger:GLITch:SOURce / 941
:TRIGger:OR Commands / 942 :TRIGger:OR / 943
:TRIGger:PATTern Commands / 944 :TRIGger:PATTern / 945 :TRIGger:PATTern:FORMat / 947 :TRIGger:PATTern:GREaterthan / 948 :TRIGger:PATTern:LESSthan / 949 :TRIGger:PATTern:QUALifier / 950 :TRIGger:PATTern:RANGe / 951
:TRIGger:RUNT Commands / 952 :TRIGger:RUNT:POLarity / 953 :TRIGger:RUNT:QUALifier / 954 :TRIGger:RUNT:SOURce / 955 :TRIGger:RUNT:TIME / 956
:TRIGger:SHOLd Commands / 957 :TRIGger:SHOLd:SLOPe / 958 :TRIGger:SHOLd:SOURce:CLOCk / 959 :TRIGger:SHOLd:SOURce:DATA / 960 :TRIGger:SHOLd:TIME:HOLD / 961 :TRIGger:SHOLd:TIME:SETup / 962
:TRIGger:TRANsition Commands / 963 :TRIGger:TRANsition:QUALifier / 964

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

25

:TRIGger:TRANsition:SLOPe / 965 :TRIGger:TRANsition:SOURce / 966 :TRIGger:TRANsition:TIME / 967
:TRIGger:TV Commands / 968 :TRIGger:TV:LINE / 969 :TRIGger:TV:MODE / 970 :TRIGger:TV:POLarity / 971 :TRIGger:TV:SOURce / 972 :TRIGger:TV:STANdard / 973 :TRIGger:TV:UDTV:ENUMber / 974 :TRIGger:TV:UDTV:HSYNc / 975 :TRIGger:TV:UDTV:HTIMe / 976 :TRIGger:TV:UDTV:PGTHan / 977
:TRIGger:USB Commands / 978 :TRIGger:USB:SOURce:DMINus / 979 :TRIGger:USB:SOURce:DPLus / 980 :TRIGger:USB:SPEed / 981 :TRIGger:USB:TRIGger / 982
32 :WAVeform Commands
:WAVeform:BYTeorder / 991 :WAVeform:COUNt / 992 :WAVeform:DATA / 993 :WAVeform:FORMat / 995 :WAVeform:POINts / 996 :WAVeform:POINts:MODE / 998 :WAVeform:PREamble / 1000 :WAVeform:SEGMented:COUNt / 1003 :WAVeform:SEGMented:TTAG / 1004 :WAVeform:SOURce / 1005 :WAVeform:SOURce:SUBSource / 1009 :WAVeform:TYPE / 1010 :WAVeform:UNSigned / 1011 :WAVeform:VIEW / 1012 :WAVeform:XINCrement / 1013 :WAVeform:XORigin / 1014 :WAVeform:XREFerence / 1015 :WAVeform:YINCrement / 1016 :WAVeform:YORigin / 1017 :WAVeform:YREFerence / 1018

26

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

33 :WGEN Commands
:WGEN:ARBitrary:BYTeorder / 1023 :WGEN:ARBitrary:DATA / 1024 :WGEN:ARBitrary:DATA:ATTRibute:POINts / 1027 :WGEN:ARBitrary:DATA:CLEar / 1028 :WGEN:ARBitrary:DATA:DAC / 1029 :WGEN:ARBitrary:INTerpolate / 1030 :WGEN:ARBitrary:STORe / 1031 :WGEN:FREQuency / 1032 :WGEN:FUNCtion / 1033 :WGEN:FUNCtion:PULSe:WIDTh / 1037 :WGEN:FUNCtion:RAMP:SYMMetry / 1038 :WGEN:FUNCtion:SQUare:DCYCle / 1039 :WGEN:MODulation:AM:DEPTh / 1040 :WGEN:MODulation:AM:FREQuency / 1041 :WGEN:MODulation:FM:DEViation / 1042 :WGEN:MODulation:FM:FREQuency / 1043 :WGEN:MODulation:FSKey:FREQuency / 1044 :WGEN:MODulation:FSKey:RATE / 1045 :WGEN:MODulation:FUNCtion / 1046 :WGEN:MODulation:FUNCtion:RAMP:SYMMetry / 1047 :WGEN:MODulation:NOISe / 1048 :WGEN:MODulation:STATe / 1049 :WGEN:MODulation:TYPE / 1050 :WGEN:OUTPut / 1052 :WGEN:OUTPut:LOAD / 1053 :WGEN:PERiod / 1054 :WGEN:RST / 1055 :WGEN:VOLTage / 1056 :WGEN:VOLTage:HIGH / 1057 :WGEN:VOLTage:LOW / 1058 :WGEN:VOLTage:OFFSet / 1059
34 :WMEMory<r> Commands
:WMEMory<r>:CLEar / 1063 :WMEMory<r>:DISPlay / 1064 :WMEMory<r>:LABel / 1065 :WMEMory<r>:SAVE / 1066 :WMEMory<r>:SKEW / 1067 :WMEMory<r>:YOFFset / 1068 :WMEMory<r>:YRANge / 1069

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

27

:WMEMory<r>:YSCale / 1070
35 Obsolete and Discontinued Commands
:CHANnel:ACTivity / 1077 :CHANnel:LABel / 1078 :CHANnel:THReshold / 1079 :CHANnel2:SKEW / 1080 :CHANnel<n>:INPut / 1081 :CHANnel<n>:PMODe / 1082 :DISPlay:CONNect / 1083 :DISPlay:ORDer / 1084 :ERASe / 1085 :EXTernal:PMODe / 1086 :FUNCtion:SOURce / 1087 :FUNCtion:VIEW / 1088 :HARDcopy:DESTination / 1089 :HARDcopy:FILename / 1090 :HARDcopy:GRAYscale / 1091 :HARDcopy:IGColors / 1092 :HARDcopy:PDRiver / 1093 :MEASure:LOWer / 1094 :MEASure:SCRatch / 1095 :MEASure:TDELta / 1096 :MEASure:THResholds / 1097 :MEASure:TMAX / 1098 :MEASure:TMIN / 1099 :MEASure:TSTArt / 1100 :MEASure:TSTOp / 1101 :MEASure:TVOLt / 1102 :MEASure:UPPer / 1103 :MEASure:VDELta / 1104 :MEASure:VSTArt / 1105 :MEASure:VSTOp / 1106 :MTESt:AMASk:{SAVE | STORe} / 1107 :MTESt:AVERage / 1108 :MTESt:AVERage:COUNt / 1109 :MTESt:LOAD / 1110 :MTESt:RUMode / 1111 :MTESt:RUMode:SOFailure / 1112 :MTESt:{STARt | STOP} / 1113 :MTESt:TRIGger:SOURce / 1114

28

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:PRINt? / 1115 :SAVE:IMAGe:AREA / 1117 :SBUS<n>:LIN:SIGNal:DEFinition / 1118 :SBUS<n>:SPI:SOURce:DATA / 1119 :TIMebase:DELay / 1120 :TRIGger:THReshold / 1121 :TRIGger:TV:TVMode / 1122
36 Error Messages
37 Status Reporting
Status Reporting Data Structures / 1133 Status Byte Register (STB) / 1135 Service Request Enable Register (SRE) / 1137 Trigger Event Register (TER) / 1138 Output Queue / 1139 Message Queue / 1140 (Standard) Event Status Register (ESR) / 1141 (Standard) Event Status Enable Register (ESE) / 1142 Error Queue / 1143 Operation Status Event Register (:OPERegister[:EVENt]) / 1144 Operation Status Condition Register (:OPERegister:CONDition) / 1145 Arm Event Register (AER) / 1146 Overload Event Register (:OVLRegister) / 1147 Mask Test Event Event Register (:MTERegister[:EVENt]) / 1148 Power Event Event Register (:PWRRegister[:EVENt]) / 1149 Clearing Registers and Queues / 1150 Status Reporting Decision Chart / 1151
38 Synchronizing Acquisitions
Synchronization in the Programming Flow / 1154 Set Up the Oscilloscope / 1154 Acquire a Waveform / 1154 Retrieve Results / 1154
Blocking Synchronization / 1155

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

29

Polling Synchronization With Timeout / 1156
Synchronizing with a Single-Shot Device Under Test (DUT) / 1158
Synchronization with an Averaging Acquisition / 1160
39 More About Oscilloscope Commands
Command Classifications / 1164 Core Commands / 1164 Non-Core Commands / 1164 Obsolete Commands / 1164
Valid Command/Query Strings / 1165 Program Message Syntax / 1165 Duplicate Mnemonics / 1169 Tree Traversal Rules and Multiple Commands / 1169
Query Return Values / 1171
Sequential vs. Overlapped Commands / 1172
40 Programming Examples
VISA COM Examples / 1174 VISA COM Example in Visual Basic / 1174 VISA COM Example in C# / 1183 VISA COM Example in Visual Basic .NET / 1192 VISA COM Example in Python / 1200
VISA Examples / 1207 VISA Example in C / 1207 VISA Example in Visual Basic / 1216 VISA Example in C# / 1226 VISA Example in Visual Basic .NET / 1237 VISA Example in Python (PyVISA 1.5 and older) / 1247 VISA Example in Python (PyVISA 1.6 and newer) / 1253
VISA.NET Examples / 1260 VISA.NET Example in C# / 1260 VISA.NET Example in Visual Basic .NET / 1266 VISA.NET Example in IronPython / 1273
SICL Examples / 1279 SICL Example in C / 1279 SICL Example in Visual Basic / 1288
SCPI.NET Examples / 1299

30

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Index

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

31

32

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
1 What's New
What's New in Version 2.50 / 34 What's New in Version 2.43 / 35 What's New in Version 2.39 / 36 What's New in Version 2.38 / 37 What's New in Version 2.30 / 38 What's New in Version 2.20 / 39 What's New in Version 2.10 / 42 What's New in Version 2.00 / 43 What's New in Version 1.20 / 47 What's New in Version 1.10 / 49 Version 1.00 at Introduction / 50 Command Differences From 7000B Series Oscilloscopes / 51
33

1 What's New

What's New in Version 2.50

New Commands

New features in version 2.50 of the InfiniiVision 3000 X-Series oscilloscope software are: · Added support for licenses that allow support subscriptions. More detailed descriptions of the new and changed commands appear below.

Command :SYSTem:DIDentifier? (see page 872)

Differences Returns the oscilloscope's Host ID string.

Changed Commands

Command *OPT? (see page 179)

Differences New license information is possible in the returned string.

34

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

What's New 1

What's New in Version 2.43

New Commands

New features in version 2.43 of the InfiniiVision 3000 X-Series oscilloscope software are: · Added measurements: bit rate and negative duty cycle. More detailed descriptions of the new and changed commands appear below.

Command :MEASure:BRATe (see page 424) :MEASure:NDUTy (see page 442) :SYSTem:RLOGger (see page 881) :SYSTem:RLOGger:DESTination (see page 882) :SYSTem:RLOGger:DISPlay (see page 883) :SYSTem:RLOGger:FNAMe (see page 884) :SYSTem:RLOGger:STATe (see page 885) :SYSTem:RLOGger:TRANsparen t (see page 886) :SYSTem:RLOGger:WMODe (see page 887)

Differences Measures the bit rate.
Measures the negative duty cycle.
Enables or disables remote command logging, optionally specifying the log file name and write mode. Specifies whether remote commands are logged to a text file (on a connected USB storage device), logged to the screen, or both. Enables or disables the screen display of logged remote commands and their return values (if applicable). Specifies the remote command log file name.
Enables or disables remote command logging.
Specifies whether the screen display background for remote command logging is transparent or solid. Specifies the remote command logging write mode (either CREate or APPend).

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

35

1 What's New

What's New in Version 2.39

New Commands

More detailed descriptions of the new and changed commands appear below.

Command :DISPlay:INTensity:WAVeform (see page 314)

Differences Sets the waveform intensity.

36

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

What's New 1

What's New in Version 2.38

New Commands

More detailed descriptions of the new and changed commands appear below.

Command :CHANnel<n>:BANDwidth (see page 270)

Differences Sets bandwidth limiting for an analog input channel.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

37

1 What's New

What's New in Version 2.30

New Commands

New features in version 2.30 of the InfiniiVision 3000 X-Series oscilloscope software are: · Support for the N2820A high-sensitivity current probe. · Saving Multi Channel Waveform data (*.h5) format files that can be opened by
the N8900A InfiniiView oscilloscope analysis software.
More detailed descriptions of the new and changed commands appear below.

Command :MEASure:DUAL:CHARge (see page 433) :MEASure:DUAL:VAMPlitude (see page 434) :MEASure:DUAL:VAVerage (see page 435) :MEASure:DUAL:VBASe (see page 436) :MEASure:DUAL:VPP (see page 437) :MEASure:DUAL:VRMS (see page 438) :SAVE:MULTi[:STARt] (see page 633)
:TRIGger:LEVel:ASETup (see page 909)

Differences These are special measurements available with the N2820A high sensitivity current probe when both the Primary and Secondary probe cables are used. These measurements join the Zoom In waveform data below the probe's clamp level with Zoom Out waveform data above the probe's clamp level to create the waveform on which the measurement is made.
Lets you save Multi Channel Waveform data (*.h5) format files that can be opened by the N8900A InfiniiView oscilloscope analysis software. Sets the trigger levels of all displayed analog channels to their waveforms' 50% values.

Changed Commands

Command :SAVE:WAVeform:FORMat (see page 638)

Differences The ALB format is no longer supported.

38

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

What's New 1

What's New in Version 2.20

New Commands

New features in version 2.20 of the InfiniiVision 3000 X-Series oscilloscope software are: · Support for modulation of the waveform generator output. · Support for controlling the optional DSOXDVM digital voltmeter analysis
feature · Power measurements application modifications. · Ability to turn reference waveform locations on or off and view their status using
the :VIEW, :BLANk, and :STATus commands.
More detailed descriptions of the new and changed commands appear below.

Command :DVM Commands (see page 319)
:MEASure:CPLoss (see page 490)
:POWer:SIGNals:CYCLes:HARMonics (see page 582) :POWer:SIGNals:CYCLes:QUALity (see page 583) :POWer:SIGNals:DURation:EFFiciency (see page 584) :POWer:SIGNals:DURation:MODulation (see page 585) :POWer:SIGNals:DURation:ONOFf:OFF (see page 586) :POWer:SIGNals:DURation:ONOFf:ON (see page 587) :POWer:SIGNals:DURation:RIPPle (see page 588) :POWer:SIGNals:DURation:TRANsient (see page 589) :POWer:SIGNals:VMAXimum:INRush (see page 592) :POWer:SIGNals:VMAXimum:ONOFf:OFF (see page 593) :POWer:SIGNals:VMAXimum:ONOFf:ON (see page 594)

Description Commands for controlling the optional DSOXDVM digital voltmeter analysis feature. Installs a power loss per cycle measurement on screen or returns the measured value. Specifies the number of cycles to include in the current harmonics analysis. Specifies the number of cycles to include in the power quality analysis. Specifies the duration of the efficiency analysis.
Specifies the duration of the modulation analysis. Specifies the duration of the turn off analysis.
Specifies the duration of the turn on analysis.
Specifies the duration of the output ripple analysis. Specifies the duration of the transient response analysis. Specifies the maximum expected input voltage for inrush current analysis. Specifies the maximum expected input voltage for turn off analysis. Specifies the maximum expected input voltage for turn on analysis.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

39

1 What's New

Command :POWer:SIGNals:VSTeady:ONOFf:OFF (see page 595) :POWer:SIGNals:VSTeady:ONOFf:ON (see page 596) :POWer:SIGNals:VSTeady:TRANsient (see page 597)
:WGEN:MODulation:AM:DEPTh (see page 1040) :WGEN:MODulation:AM:FREQuency (see page 1041) :WGEN:MODulation:FM:DEViation (see page 1042) :WGEN:MODulation:FM:FREQuency (see page 1043) :WGEN:MODulation:FSKey:FREQuency (see page 1044) :WGEN:MODulation:FSKey:RATE (see page 1045) :WGEN:MODulation:FUNCtion (see page 1046) :WGEN:MODulation:FUNCtion:RAMP:SYMMetry (see page 1047) :WGEN:MODulation:STATe (see page 1049)
:WGEN:MODulation:TYPE (see page 1050)

Description Specifies the expected steady state output DC voltage of the power supply for turn off analysis. Specifies the expected steady state output DC voltage of the power supply for turn on analysis. Specifies the expected steady state output DC voltage of the power supply for transient response analysis. Specifies the amount of amplitude modulation.
Specifies the frequency of the modulating signal. Specifies the frequency deviation from the original carrier signal frequency. Specifies the frequency of the modulating signal. Specifies the "hop frequency".
Specifies the rate at which the output frequency "shifts". Specifies the shape of the modulating signal. Specifies the amount of time per cycle that the ramp waveform is rising. Enables or disables modulated waveform generator output. Selects the modulation type: Amplitude Modulation (AM), Frequency Modulation (FM), or Frequency-Shift Keying Modulation (FSK).

Changed Commands

Command :BLANk (see page 204)

:STATus (see page 228)

:VIEW (see page 231)

Differences You can now use the WMEMory<r> source parameter to turn off the display of a reference waveform location. You can now use the WMEMory<r> source parameter to view the display status of a reference waveform location. You can now use the WMEMory<r> source parameter to turn on the display of a reference waveform location.

40

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

What's New 1

Discontinued Commands

Discontinued Command :POWer:SIGNals:CYCLes

:POWer:SIGNals:DURation

:POWer:SIGNals:VMAXimum :POWer:SIGNals:VSTeady :POWer:SLEW:VALue

Current Command Equivalent
:POWer:SIGNals:CYCLes:HARM onics (see page 582) :POWer:SIGNals:CYCLes:QUALi ty (see page 583)
:POWer:SIGNals:DURation:EFFi ciency (see page 584) :POWer:SIGNals:DURation:MO Dulation (see page 585) :POWer:SIGNals:DURation:ON OFf:OFF (see page 586) :POWer:SIGNals:DURation:ON OFf:ON (see page 587) :POWer:SIGNals:DURation:RIP Ple (see page 588) :POWer:SIGNals:DURation:TRA Nsient (see page 589)
:POWer:SIGNals:VMAXimum:IN Rush (see page 592) :POWer:SIGNals:VMAXimum:O NOFf:OFF (see page 593) :POWer:SIGNals:VMAXimum:O NOFf:ON (see page 594)
:POWer:SIGNals:VSTeady:ONO Ff:OFF (see page 595) :POWer:SIGNals:VSTeady:ONO Ff:ON (see page 596) :POWer:SIGNals:VSTeady:TRA Nsient (see page 597)
none

Comments This command was separated into several other commands for specific types of power analysis. This command was separated into several other commands for specific types of power analysis.
This command was separated into several other commands for specific types of power analysis. This command was separated into several other commands for specific types of power analysis. Slew rate values are now displayed using max and min measurements of a differentiate math function signal.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

41

1 What's New

What's New in Version 2.10

New Commands

New features in version 2.10 of the InfiniiVision 3000 X-Series oscilloscope software are: · Support for adding an annotation to the display. More detailed descriptions of the new and changed commands appear below.

Command :DISPlay:ANNotation (see page 307) :DISPlay:ANNotation:BACKground (see page 308) :DISPlay:ANNotation:COLor (see page 309) :DISPlay:ANNotation:TEXT (see page 310)

Description Turns screen annotation on or off. Specifies the background of the annotation to be either opaque, inverted, or transparent. Specifies the color of the annotation. Specifies the annotation string, up to 254 characters.

42

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

What's New 1

What's New in Version 2.00

New Commands

New features in version 2.00 of the InfiniiVision 3000 X-Series oscilloscope software are: · Support for the DSOX3WAVEGEN waveform generator's new arbitrary
waveform type. · Support for the new DSOX3VID extended Video triggering license. · Support for the new DSOX3AERO MIL-STD-1553 and ARINC 429 triggering
and serial decode license. · Support for the new DSOX3FLEX FlexRay triggering and serial decode license. · Support for the new DSOX3PWR power measurements and analysis license. · Support for the new DSOX3ADVMATH advanced math measurements license.
More detailed descriptions of the new and changed commands appear below.

Command :FUNCtion:BUS:CLOCk (see page 338) :FUNCtion:BUS:SLOPe (see page 339) :FUNCtion:BUS:YINCrement (see page 340)
:FUNCtion:BUS:YORigin (see page 341) :FUNCtion:BUS:YUNits (see page 342) :FUNCtion:FREQuency:HIGHpass (see page 348) :FUNCtion:FREQuency:LOWPass (see page 349) :FUNCtion:LINear:GAIN (see page 354)

Description Selects the clock signal source for the Chart Logic Bus State operation. Available with the DSOX3ADVMATH advanced math license. Specifies the clock signal edge for the Chart Logic Bus State operation. Available with the DSOX3ADVMATH advanced math license. Specifies the value associated with each increment in Chart Logic Bus data. Available with the DSOX3ADVMATH advanced math license. Specifies the value associated with Chart Logic Bus data equal to zero. Available with the DSOX3ADVMATH advanced math license. Specifies the vertical units for the Chart Logic Bus operations. Available with the DSOX3ADVMATH advanced math license. Sets the high-pass filter's -3 dB cutoff frequency. Available with the DSOX3ADVMATH advanced math license. Sets the low-pass filter's -3 dB cutoff frequency. Available with the DSOX3ADVMATH advanced math license. Specifies the 'A' value in the Ax + B operation. Available with the DSOX3ADVMATH advanced math license.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

43

1 What's New

Command :FUNCtion:LINear:OFFSet (see page 355)
:FUNCtion:TRENd:MEASurement (see page 365) :MEASure Power Commands (see page 485)
:MEASure:STATistics:DISPlay (see page 463) :POWer Commands (see page 545) :PWRenable (Power Event Enable Register) (see page 222)
:PWRRegister[:EVENt] (Power Event Event Register) (see page 222)
:RECall:ARBitrary[:STARt] (see page 615) :SAVE:ARBitrary[:STARt] (see page 624) :SAVE:POWer[:STARt] (see page 634) :SBUS<n>:A429 Commands (see page 650) :SBUS<n>:FLEXray Commands (see page 685) :SBUS<n>:M1553 Commands (see page 749) :SEARch:SERial:A429 Commands (see page 820) :SEARch:SERial:FLEXray Commands (see page 832) :SEARch:SERial:M1553 Commands (see page 857)

Description Specifies the 'B' value in the Ax + B operation. Available with the DSOX3ADVMATH advanced math license. Selects the measurement whose trend is shown in the math waveform. Available with the DSOX3ADVMATH advanced math license. :MEASure commands available when the DSOX3PWR power measurements and analysis application is licensed and enabled. Specifies whether the display of measurement statistics is on or off. Commands for the DSOX3PWR power measurements and analysis application. For enabling bits in the Power Event Enable Register. This status register control is available when the DSOX3PWR power measurements and analysis application is licensed. For reading power application status bits in the Power Event Event Register. This query is available when the DSOX3PWR power measurements and analysis application is licensed. Recalls waveform generator arbitrary waveforms from a file. Saves waveform generator arbitrary waveforms to a file. Saves the power measurement application's current harmonics analysis results to a file. Commands for ARINC 429 triggering and serial decode. Commands for FlexRay triggering and serial decode. Commands for MIL-STD 1553 triggering and serial decode. Commands for finding ARINC 429 events in the captured data. Commands for finding FlexRay events in the captured data. Commands for finding MIL-STD 1553 events in the captured data.

44

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

What's New 1

Command :TRIGger:TV:UDTV:ENUMber (see page 974)
:TRIGger:TV:UDTV:HSYNc (see page 975)
:TRIGger:TV:UDTV:HTIMe (see page 976)
:TRIGger:TV:UDTV:PGTHan (see page 977)
:WGEN:ARBitrary:BYTeorder (see page 1023) :WGEN:ARBitrary:DATA (see page 1024) :WGEN:ARBitrary:DATA:ATTRibute:POINts? (see page 1027) :WGEN:ARBitrary:DATA:CLEar (see page 1028) :WGEN:ARBitrary:DATA:DAC (see page 1029) :WGEN:ARBitrary:INTerpolate (see page 1030) :WGEN:ARBitrary:STORe (see page 1031) :WGEN:MODulation:NOISe (see page 1048)

Description Specifies the Nth edge to trigger on with the Generic video trigger. Available with the DSOX3VID extended Video triggering license. Enables or disables the horizontal sync control in the Generic video trigger. Available with the DSOX3VID extended Video triggering license. When the Generic video trigger's horizontal sync control is enabled, this command specifies the sync time. Available with the DSOX3VID extended Video triggering license. Specifies the "greater than the sync pulse width" time in the Generic video trigger. Available with the DSOX3VID extended Video triggering license. Selects the byte order for arbitrary waveform binary transfers. Downloads an arbitrary waveform in floating-point values format. Returns the number of points used by the current arbitrary waveform. Clears the arbitrary waveform memory and restores the default waveform. Downloads an arbitrary waveform in integer (DAC) values. Enable or disables interpolated values between points in the arbitrary waveform. Captures a waveform and stores it into arbitrary waveform memory. Adds noise to the waveform generator's output signal.

Changed Commands

Command :DEMO:FUNCtion (see page 290)

:FUNCtion:OPERation (see page 357)

Differences The FMBurst, ARINc, FLEXray, MIL, and MIL2 functions are now available with the DSOXEDK educator's kit license. The MAGNify, ABSolute, SQUare, LN, LOG, EXP, TEN, LOWPass, HIGHpass, DIVide, LINear, TRENd, BTIMing, and BSTate operations are now available with the DSOX3ADVMATH advanced math measurements license.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

45

1 What's New

Command :FUNCtion:SOURce1 (see page 362)
:SBUS<n>:MODE (see page 649)
:TRIGger:TV:MODE (see page 970) :TRIGger:TV:STANdard (see page 973) :WGEN:FUNCtion (see page 1033)

Differences The BUS<m> source is now available for the bus charting operations available with the DSOX3ADVMATH advanced math measurements license. The A429, M1553, and FLEXray modes are now available with the DSOX3AERO (MIL-STD-1553 and ARINC 429) and DSOX3FLEX (FlexRay) serial decode and triggering licenses. The LINE mode is added for the video standards available with the extended Video triggering license. Lets you select additional video standards available with the extended Video triggering license. The ARBitrary waveform type can now be selected.

46

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

What's New 1

What's New in Version 1.20

New Commands

New features in version 1.20 of the InfiniiVision 3000 X-Series oscilloscope software are: · Edge Then Edge trigger. · OR'ed edge trigger. · Sine Cardinal, Exponential Rise, Exponential Fall, Cardiac, and Gaussian Pulse
waveform generator waveforms. · X cursor units that let you measure time (seconds), frequency (Hertz), phase
(degrees), and ratio (percent), and Y cursor units that let you measure the channel units (base) or ratio (percent). · Option for specifying FFT vertical units as V RMS as well as decibels. · Option for entering a DC offset correction factor for the integrate math waveform input signal. · Option for saving the maximum number of waveform data points.
More detailed descriptions of the new and changed commands appear below.

Command :FUNCtion:INTegrate:IOFFset (see page 353)
:FUNCtion[:FFT]:VTYPe (see page 346) :MARKer:XUNIts (see page 397) :MARKer:XUNIts:USE (see page 398)
:MARKer:YUNIts (see page 404) :MARKer:YUNIts:USE (see page 405) :MEASure:STATistics:MCOunt (see page 465) :MEASure:STATistics:RSDeviation (see page 467) :SAVE:WAVeform:LENGth:MAX (see page 640) :TRIGger:DELay:ARM:SLOPe (see page 916)

Description Lets you enter a DC offset correction factor for the integrate math waveform input signal to level a "ramp"ed waveform. Specifies FFT vertical units as DECibel or VRMS. Specifies the units for X cursors. Sets the current X1 and X2 cursor locations as 0 and 360 degrees if XUNIts is DEGRees or as 0 and 100 percent if XUNIts is PERCent. Specifies the units for Y cursors. Sets the current Y1 and Y2 cursor locations as 0 and 100 percent if YUNIts is PERCent. Specifies the maximum number of values used when calculating measurement statistics. Disables or enables relative standard deviations, that is, standard deviation/mean, in the measurement statistics. Enable or disables saving the maximum number of waveform data points. Specifies the arming edge slope for the Edge Then Edge trigger.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

47

1 What's New

Command

Description

:TRIGger:DELay:ARM:SOURce (see page 917)

Specifies the arming edge source for the Edge Then Edge trigger.

:TRIGger:DELay:TDELay:TIME (see page 918)

Specifies the delay time for the Edge Then Edge trigger.

:TRIGger:DELay:TRIGger:COUNt (see page 919) Specifies the trigger edge count for the Edge Then Edge trigger.

:TRIGger:DELay:TRIGger:SLOPe (see page 920) Specifies the trigger edge slope for the Edge Then Edge trigger.

:TRIGger:DELay:TRIGger:SOURce (see page 921)

Specifies the trigger edge source for the Edge Then Edge trigger.

:TRIGger:FORCe (see page 906)

Now documented, this command is equivalent to the front panel [Force Trigger] key which causes an acquisition to be captured even though the trigger condition has not been met.

:TRIGger:OR (see page 943)

Specifies edges for the OR'ed edge trigger.

Changed Commands

Command :DEMO:FUNCtion (see page 290)

:TRIGger:MODE (see page 912)

:WGEN:FUNCtion (see page 1033)

Differences The ETE (Edge then Edge) function has been added. The OR and DELay modes are added for the OR'ed edge trigger and the Edge Then Edge trigger. The SINC, EXPRise, EXPFall, CARDiac, and GAUSsian waveform types can now be selected.

48

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

What's New 1

What's New in Version 1.10

New Commands

New command descriptions for Version 1.10 of the InfiniiVision 3000 X-Series oscilloscope software appear below.

Command :SYSTem:PRESet (see page 877)

Description Now documented, this command is equivalent to the front panel [Default Setup] key which leaves some user settings, like preferences, unchanged. The *RST command is equivalent to a factory default setup where no user settings are left unchanged.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

49

1 What's New
Version 1.00 at Introduction
The Keysight InfiniiVision 3000 X-Series oscilloscopes were introduced with version 1.00 of oscilloscope operating software. The command set is most closely related to the InfiniiVision 7000B Series oscilloscopes (and the 7000A Series, 6000 Series, and 54620/54640 Series oscilloscopes before them). For more information, see "Command Differences From 7000B Series Oscilloscopes" on page 51.

50

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

What's New 1

Command Differences From 7000B Series Oscilloscopes

New Commands

The Keysight InfiniiVision 3000 X-Series oscilloscopes command set is most closely related to the InfiniiVision 7000B Series oscilloscopes (and the 7000A Series, 6000 Series, and 54620/54640 Series oscilloscopes before them).
The main differences between the version 1.00 programming command set for the InfiniiVision 3000 X-Series oscilloscopes and the 6.10 programming command set for the InfiniiVision 7000B Series oscilloscopes are related to: · Built-in waveform generator (with Option WGN license). · Built-in demo signals (with Option EDU license that comes with the N6455A
Education Kit). · Reference waveforms (in place of trace memory). · Multiple serial decode waveforms. · Serial decode now available on 2-channel oscilloscopes. · Enhanced set of trigger types. · Additional measurements. · Different path name format for internal and USB storage device locations.
More detailed descriptions of the new, changed, obsolete, and discontinued commands appear below.

Command :DEMO Commands (see page 289) :HARDcopy:NETWork Commands (see page 367) :MEASure:AREA (see page 423) :MEASure:BWIDth (see page 425) :MEASure:NEDGes (see page 443) :MEASure:NPULses (see page 444) :MEASure:PEDGes (see page 448) :MEASure:PPULses (see page 451)

Description Commands for using built-in demo signals (with the Option EDU license that comes with the N6455A Education Kit). For accessing network printers. Measures the area between the waveform and the ground level. Measures the burst width from the first edge on screen to the last. Counts the number of falling edges. Counts the number of negative pulses. Counts the number of rising edges. Counts the number of positive pulses.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

51

1 What's New

Command :MEASure:WINDow (see page 482)
:MTESt:ALL (see page 510) :RECall:WMEMory<r>[:STARt] (see page 620) :SAVE:WMEMory:SOURce (see page 642) :SAVE:WMEMory[:STARt] (see page 643) :SBUS<n>:CAN Commands (see page 668) :SBUS<n>:I2S Commands (see page 704) :SBUS<n>:IIC Commands (see page 724) :SBUS<n>:LIN Commands (see page 735) :SBUS<n>:SPI Commands (see page 668) :SBUS<n>:UART Commands (see page 772) :SEARch:EDGE Commands (see page 800) :SEARch:GLITch Commands (see page 803) :SEARch:RUNT Commands (see page 810) :SEARch:TRANsition Commands (see page 800) :TRIGger:LEVel:HIGH (see page 910) :TRIGger:LEVel:LOW (see page 911) :TRIGger:PATTern Commands (see page 944) :TRIGger:RUNT Commands (see page 952)

Description When the zoomed time base in on, specifies whether the measurement window is the zoomed time base or the main time base. Specifies whether all channels are included in the mask test. Recalls reference waveforms.
Selects the source for saving a reference waveform.
Saves reference waveforms.
This subsystem contains commands/functions that are in the 7000B Series oscilloscope's :TRIGger:CAN subsystem. This subsystem contains commands/functions that are in the 7000B Series oscilloscope's :TRIGger:I2S subsystem. This subsystem contains commands/functions that are in the 7000B Series oscilloscope's :TRIGger:IIC subsystem. This subsystem contains commands/functions that are in the 7000B Series oscilloscope's :TRIGger:LIN subsystem. This subsystem contains commands/functions that are in the 7000B Series oscilloscope's :TRIGger:SPI subsystem. This subsystem contains commands/functions that are in the 7000B Series oscilloscope's :TRIGger:UART subsystem. Commands for searching edge events.
Commands for searching glitch events.
Commands for searching runt events.
Commands for searching edge transition events.
Sets runt and transition (rise/fall time) trigger high level.
Sets runt and transition (rise/fall time) trigger low level.
This subsystem contains commands/functions that are in the 7000B Series oscilloscope's :TRIGger:DURation subsystem. Commands for triggering on runt pulses.

52

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

What's New 1

Command :TRIGger:SHOLd Commands (see page 957) :TRIGger:TRANsition Commands (see page 963) :WGEN Commands (see page 1019) :WMEMory<r> Commands (see page 1061)

Description Commands for triggering on setup and hold time violations.
Commands for triggering on edge transitions.
Commands for controlling the built-in waveform generator (with Option WGN license). Commands for reference waveforms.

Changed Commands

Command :ACQuire:MODE (see page 237) :CALibrate:OUTPut (see page 261) :DISPlay:DATA (see page 312)
:DISPlay:LABList (see page 316) :DISPlay:VECTors (see page 318) :MARKer Commands (see page 389) :MEASure Commands (see page 407) General :SBUS<n> Commands (see page 647) :SAVE:IMAGe[:STARt] (see page 626) :SEARch:MODE (see page 798) :SEARch:SERial:IIC:MODE (see page 845) :TRIGger:PATTern (see page 945) :WAVeform:SOURce (see page 1005) :VIEW (see page 231)

Differences From InfiniiVision 7000B Series Oscilloscopes There is no ETIMe parameter with the 3000 X-Series oscilloscopes. The TRIG OUT signal can be a trigger output, mask test failure, or waveform generator sync pulse. Monochrome TIFF images of the graticule cannot be saved or restored. The label list contains up to 77, 10-character labels (instead of 75). Always ON with 3000 X-Series oscilloscopes.
Can select reference waveforms as marker source.
Can select reference waveforms as the source for many measurements. With multiple serial decode waveforms, "SBUS" is now "SBUS1" or "SBUS2". Cannot save images to internal locations.
Can select EDGE, GLITch, RUNT, and TRANsition modes. Also, SERial is now SERial{1 | 2}. ANACknowledge parameter is now ANACk.
Takes <string> parameter instead of <value>,<mask> parameters.
Can select reference waveforms as the source.
PMEMory (pixel memory) locations are not present.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

53

1 What's New
Obsolete Commands Obsolete Command

Current Command Equivalent Behavior Differences

Discontinued Commands

Command :ACQuire:RSIGnal

:CALibrate:SWITch?

:DISPlay:SOURce :EXTernal:IMPedance :EXTernal:PROBe:ID :EXTernal:PROBe:STYPe :EXTernal:PROTection :HARDcopy:DEVice, :HARDcopy:FORMat :MERGe :RECall:IMAGe[:STARt] :SYSTem:PRECision

:TIMebase:REFClock

Description The 3000 X-Series oscilloscope does not have a 10 MHz REF BNC connector. Replaced by :CALibrate:PROTected? (see page 262). The oscilloscope has a protection button instead of a switch. PMEMory (pixel memory) locations are not present. External TRIG IN connector is now fixed at 1 MOhm. Not supported on external TRIG IN connector. Not supported on external TRIG IN connector. Not supported on external TRIG IN connector. Use the :SAVE:IMAGe:FORMat, :SAVE:WAVeform:FORMat, and :HARDcopy:APRinter commands instead. Waveform traces have been replaced by reference waveforms. Waveform traces have been replaced by reference waveforms. The 3000 X-Series oscilloscopes' measurement record is 62,500 points, and there is no need for a special precision mode. The 3000 X-Series oscilloscope does not have a 10 MHz REF BNC connector.

54

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
2 Setting Up
Step 1. Install Keysight IO Libraries Suite software / 56 Step 2. Connect and set up the oscilloscope / 57 Step 3. Verify the oscilloscope connection / 59 This chapter explains how to install the Keysight IO Libraries Suite software, connect the oscilloscope to the controller PC, set up the oscilloscope, and verify the oscilloscope connection.
55

2 Setting Up
Step 1. Install Keysight IO Libraries Suite software
1 Download the Keysight IO Libraries Suite software from the Keysight web site at: · http://www.keysight.com/find/iolib
2 Run the setup file, and follow its installation instructions.

56

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Setting Up 2
Step 2. Connect and set up the oscilloscope
The 3000 X-Series oscilloscope has three different interfaces you can use for programming: · USB (device port). · LAN, when the LAN/VGA option module is installed. To configure the LAN
interface, press the [Utility] key on the front panel, then press the I/O softkey, then press the Configure softkey. · GPIB, when the GPIB option module is installed. When installed, these interfaces are always active.
USB Device Port

LAN/VGA Option Module

GPIB Option Module

Figure 1 Control Connectors on Rear Panel

Using the USB (Device) Interface
1 Connect a USB cable from the controller PC's USB port to the "USB DEVICE" port on the back of the oscilloscope. This is a USB 2.0 high-speed port.

Using the LAN Interface
1 If the controller PC is not already connected to the local area network (LAN), do that first.
2 Contact your network administrator about adding the oscilloscope to the network. Find out if automatic configuration via DHCP or AutoIP can be used. Also, find out whether your network supports Dynamic DNS or Multicast DNS.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

57

2 Setting Up
If automatic configuration is not supported, get the oscilloscope's network parameters (hostname, domain, IP address, subnet mask, gateway IP, DNS IP, etc.). 3 Connect the oscilloscope to the local area network (LAN) by inserting LAN cable into the "LAN" port on the LAN/VGA option module. 4 Configure the oscilloscope's LAN interface: a Press the Configure softkey until "LAN" is selected. b Press the LAN Settings softkey. c Press the Config softkey, and enable all the configuration options supported
by your network. d If automatic configuration is not supported, press the Addresses softkey.
Use the Modify softkey (and the other softkeys and the Entry knob) to enter the IP Address, Subnet Mask, Gateway IP, and DNS IP values. When you are done, press the [Back up] key. e Press the Host name softkey. Use the softkeys and the Entry knob to enter the Host name. When you are done, press the [Back up] key.
Using the GPIB Interface
1 Connect a GPIB cable from the controller PC's GPIB interface to the "GPIB" port on the GPIB option module.
2 Configure the oscilloscope's GPIB interface: a Press the Configure softkey until "GPIB" is selected. b Use the Entry knob to select the Address value.

58

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Setting Up 2
Step 3. Verify the oscilloscope connection
1 On the controller PC, click on the Keysight IO Control icon in the taskbar and choose Connection Expert from the popup menu.
2 In the Keysight Connection Expert application, instruments connected to the controller's USB and GPIB interfaces as well as instruments on the same LAN subnet should automatically appear in the Instruments tab.

3 If your instrument does not appear, you can add it using the Manual Configuration tab.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

59

2 Setting Up

For example, to add a device: a Select LAN instrument in the list on the left. b Enter the oscilloscope's Hostname or IP address. c Select the protocol. d Select Instrument under Set Protocol. e Click Test This VISA Address to verify the connection. f If the connection test is successful, click Accept to add the instrument.
If the connection test is not successful, go back and verify the LAN connections and the oscilloscope setup.

60

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Setting Up 2
4 Test some commands on the instrument: a In the Details for the selected instrument, click Send Commands To This Instrument.

b In the Keysight Interactive IO application, enter commands in the Command field and press Send Command, Read Response, or Send & Read.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

61

2 Setting Up
c Choose Connect > Exit from the menu to exit the Keysight Interactive IO application.
5 In the Keysight Connection Expert application, choose File > Exit from the menu to exit the application.

62

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
3 Getting Started
Basic Oscilloscope Program Structure / 64 Programming the Oscilloscope / 66 Other Ways of Sending Commands / 75

NOTE

This chapter gives you an overview of programming the 3000 X-Series oscilloscopes. It describes basic oscilloscope program structure and shows how to program the oscilloscope using a few simple examples. The getting started examples show how to send oscilloscope setup, data capture, and query commands, and they show how to read query results.
Language for Program Examples
The programming examples in this guide are written in Visual Basic using the Keysight VISA COM library.

63

3 Getting Started
Basic Oscilloscope Program Structure
The following figure shows the basic structure of every program you will write for the oscilloscope.

Initializing
To ensure consistent, repeatable performance, you need to start the program, controller, and oscilloscope in a known state. Without correct initialization, your program may run correctly in one instance and not in another. This might be due to changes made in configuration by previous program runs or from the front panel of the oscilloscope. · Program initialization defines and initializes variables, allocates memory, or
tests system configuration. · Controller initialization ensures that the interface to the oscilloscope is properly
set up and ready for data transfer. · Oscilloscope initialization sets the channel configuration, channel labels,
threshold voltages, trigger specification, trigger mode, timebase, and acquisition type.
Capturing Data
Once you initialize the oscilloscope, you can begin capturing data for analysis. Remember that while the oscilloscope is responding to commands from the controller, it is not performing acquisitions. Also, when you change the oscilloscope configuration, any data already captured will most likely be rendered. To collect data, you use the :DIGitize command. This command clears the waveform buffers and starts the acquisition process. Acquisition continues until acquisition memory is full, then stops. The acquired data is displayed by the oscilloscope, and the captured data can be measured, stored in acquisition memory in the oscilloscope, or transferred to the controller for further analysis. Any additional commands sent while :DIGitize is working are buffered until :DIGitize is complete.

64

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Getting Started 3
You could also put the oscilloscope into run mode, then use a wait loop in your program to ensure that the oscilloscope has completed at least one acquisition before you make a measurement. Keysight does not recommend this because the needed length of the wait loop may vary, causing your program to fail. :DIGitize, on the other hand, ensures that data capture is complete. Also, :DIGitize, when complete, stops the acquisition process so that all measurements are on displayed data, not on a constantly changing data set.
Analyzing Captured Data
After the oscilloscope has completed an acquisition, you can find out more about the data, either by using the oscilloscope measurements or by transferring the data to the controller for manipulation by your program. Built-in measurements include: frequency, duty cycle, period, positive pulse width, and negative pulse width. Using the :WAVeform commands, you can transfer the data to your controller. You may want to display the data, compare it to a known good measurement, or simply check logic patterns at various time intervals in the acquisition.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

65

3 Getting Started
Programming the Oscilloscope
· "Referencing the IO Library" on page 66 · "Opening the Oscilloscope Connection via the IO Library" on page 67 · "Using :AUToscale to Automate Oscilloscope Setup" on page 68 · "Using Other Oscilloscope Setup Commands" on page 68 · "Capturing Data with the :DIGitize Command" on page 69 · "Reading Query Responses from the Oscilloscope" on page 71 · "Reading Query Results into String Variables" on page 72 · "Reading Query Results into Numeric Variables" on page 72 · "Reading Definite-Length Block Query Response Data" on page 72 · "Sending Multiple Queries and Reading Results" on page 73 · "Checking Instrument Status" on page 74
Referencing the IO Library
No matter which instrument programming library you use (SICL, VISA, or VISA COM), you must reference the library from your program. In C/C++, you must tell the compiler where to find the include and library files (see the Keysight IO Libraries Suite documentation for more information). To reference the Keysight VISA COM library in Visual Basic for Applications (VBA, which comes with Microsoft Office products like Excel): 1 Choose Tools>References... from the main menu. 2 In the References dialog, check the "VISA COM 5.9 Type Library".

66

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Getting Started 3

3 Click OK. To reference the Keysight VISA COM library in Microsoft Visual Basic 6.0: 1 Choose Project>References... from the main menu. 2 In the References dialog, check the "VISA COM 5.9 Type Library". 3 Click OK.
Opening the Oscilloscope Connection via the IO Library
PC controllers communicate with the oscilloscope by sending and receiving messages over a remote interface. Once you have opened a connection to the oscilloscope over the remote interface, programming instructions normally appear as ASCII character strings embedded inside write statements of the programing language. Read statements are used to read query responses from the oscilloscope. For example, when using the Keysight VISA COM library in Visual Basic (after opening the connection to the instrument using the ResourceManager object's Open method), the FormattedIO488 object's WriteString, WriteNumber, WriteList, or WriteIEEEBlock methods are used for sending commands and queries. After a query is sent, the response is read using the ReadString, ReadNumber, ReadList, or ReadIEEEBlock methods. The following Visual Basic statements open the connection and send a command that turns on the oscilloscope's label display.
Dim myMgr As VisaComLib.ResourceManager Dim myScope As VisaComLib.FormattedIO488
Set myMgr = New VisaComLib.ResourceManager Set myScope = New VisaComLib.FormattedIO488
' Open the connection to the oscilloscope. Get the VISA Address from the ' Keysight Connection Expert (installed with Keysight IO Libraries Suite ). Set myScope.IO = myMgr.Open("<VISA Address>")
' Send a command. myScope.WriteString ":DISPlay:LABel ON"
The ":DISPLAY:LABEL ON" in the above example is called a program message. Program messages are explained in more detail in "Program Message Syntax" on page 1165.
Initializing the Interface and the Oscilloscope
To make sure the bus and all appropriate interfaces are in a known state, begin every program with an initialization statement. When using the Keysight VISA COM library, you can use the resource session object's Clear method to clears the interface buffer:

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

67

3 Getting Started

NOTE

Dim myMgr As VisaComLib.ResourceManager Dim myScope As VisaComLib.FormattedIO488
Set myMgr = New VisaComLib.ResourceManager Set myScope = New VisaComLib.FormattedIO488
' Open the connection to the oscilloscope. Get the VISA Address from the ' Keysight Connection Expert (installed with Keysight IO Libraries Suite ). Set myScope.IO = myMgr.Open("<VISA Address>")
' Clear the interface buffer and set the interface timeout to 10 seconds . myScope.IO.Clear myScope.IO.Timeout = 10000
When you are using GPIB, CLEAR also resets the oscilloscope's parser. The parser is the program which reads in the instructions which you send it. After clearing the interface, initialize the instrument to a preset state:
myScope.WriteString "*RST"
Information for Initializing the Instrument
The actual commands and syntax for initializing the instrument are discussed in Chapter 5, "Common (*) Commands," starting on page 167. Refer to the Keysight IO Libraries Suite documentation for information on initializing the interface.

Using :AUToscale to Automate Oscilloscope Setup
The :AUToscale command performs a very useful function for unknown waveforms by setting up the vertical channel, time base, and trigger level of the instrument. The syntax for the autoscale command is:
myScope.WriteString ":AUToscale"
Using Other Oscilloscope Setup Commands
A typical oscilloscope setup would set the vertical range and offset voltage, the horizontal range, delay time, delay reference, trigger mode, trigger level, and slope. An example of the commands that might be sent to the oscilloscope are:
myScope.WriteString ":CHANnel1:PROBe 10" myScope.WriteString ":CHANnel1:RANGe 16" myScope.WriteString ":CHANnel1:OFFSet 1.00" myScope.WriteString ":TIMebase:MODE MAIN" myScope.WriteString ":TIMebase:RANGe 1E-3" myScope.WriteString ":TIMebase:DELay 100E-6"

68

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Getting Started 3

Vertical is set to 16 V full-scale (2 V/div) with center of screen at 1 V and probe attenuation set to 10. This example sets the time base at 1 ms full-scale (100 ms/div) with a delay of 100 µs.

Example Oscilloscope Setup Code
This program demonstrates the basic command structure used to program the oscilloscope.
' Initialize the instrument interface to a known state. myScope.IO.Clear myScope.IO.Timeout = 10000 ' Set interface timeout to 10 seconds.

' Initialize the instrument to a preset state. myScope.WriteString "*RST"

' Set the time base mode to normal with the horizontal time at

' 50 ms/div with 0 s of delay referenced at the center of the

' graticule.

myScope.WriteString ":TIMebase:RANGe 5E-4" ' Time base to 50 us/div.

myScope.WriteString ":TIMebase:DELay 0"

' Delay to zero.

myScope.WriteString ":TIMebase:REFerence CENTer" ' Display ref. at

' center.

' Set the vertical range to 1.6 volts full scale with center screen

' at -0.4 volts with 10:1 probe attenuation and DC coupling.

myScope.WriteString ":CHANnel1:PROBe 10"

' Probe attenuation

' to 10:1.

myScope.WriteString ":CHANnel1:RANGe 1.6" ' Vertical range

' 1.6 V full scale.

myScope.WriteString ":CHANnel1:OFFSet -0.4" ' Offset to -0.4.

myScope.WriteString ":CHANnel1:COUPling DC" ' Coupling to DC.

' Configure the instrument to trigger at -0.4 volts with normal

' triggering.

myScope.WriteString ":TRIGger:SWEep NORMal" ' Normal triggering.

myScope.WriteString ":TRIGger:LEVel -0.4"

' Trigger level to -0.4.

myScope.WriteString ":TRIGger:SLOPe POSitive" ' Trigger on pos. slope.

' Configure the instrument for normal acquisition. myScope.WriteString ":ACQuire:TYPE NORMal" ' Normal acquisition.

Capturing Data with the :DIGitize Command
The :DIGitize command captures data that meets the specifications set up by the :ACQuire subsystem. When the digitize process is complete, the acquisition is stopped. The captured data can then be measured by the instrument or transferred to the controller for further analysis. The captured data consists of two parts: the waveform data record, and the preamble.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

69

3 Getting Started

NOTE NOTE

Ensure New Data is Collected
When you change the oscilloscope configuration, the waveform buffers are cleared. Before doing a measurement, send the :DIGitize command to the oscilloscope to ensure new data has been collected.
When you send the :DIGitize command to the oscilloscope, the specified channel signal is digitized with the current :ACQuire parameters. To obtain waveform data, you must specify the :WAVeform parameters for the SOURce channel, the FORMat type, and the number of POINts prior to sending the :WAVeform:DATA? query.
Set :TIMebase:MODE to MAIN when using :DIGitize
:TIMebase:MODE must be set to MAIN to perform a :DIGitize command or to perform any :WAVeform subsystem query. A "Settings conflict" error message will be returned if these commands are executed when MODE is set to ROLL, XY, or WINDow (zoomed). Sending the *RST (reset) command will also set the time base mode to normal.
The number of data points comprising a waveform varies according to the number requested in the :ACQuire subsystem. The :ACQuire subsystem determines the number of data points, type of acquisition, and number of averages used by the :DIGitize command. This allows you to specify exactly what the digitized information contains. The following program example shows a typical setup:
myScope.WriteString ":ACQuire:TYPE AVERage" myScope.WriteString ":ACQuire:COMPlete 100" myScope.WriteString ":ACQuire:COUNt 8" myScope.WriteString ":DIGitize CHANnel1" myScope.WriteString ":WAVeform:SOURce CHANnel1" myScope.WriteString ":WAVeform:FORMat BYTE" myScope.WriteString ":WAVeform:POINts 500" myScope.WriteString ":WAVeform:DATA?"
This setup places the instrument into the averaged mode with eight averages. This means that when the :DIGitize command is received, the command will execute until the signal has been averaged at least eight times. After receiving the :WAVeform:DATA? query, the instrument will start passing the waveform information. Digitized waveforms are passed from the instrument to the controller by sending a numerical representation of each digitized point. The format of the numerical representation is controlled with the :WAVeform:FORMat command and may be selected as BYTE, WORD, or ASCii.

70

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Getting Started 3

NOTE

The easiest method of transferring a digitized waveform depends on data structures, formatting available and I/O capabilities. You must scale the integers to determine the voltage value of each point. These integers are passed starting with the left most point on the instrument's display. For more information, see the waveform subsystem commands and corresponding program code examples in Chapter 32, ":WAVeform Commands," starting on page 983.
Aborting a Digitize Operation Over the Programming Interface
When using the programming interface, you can abort a digitize operation by sending a Device Clear over the bus (for example, myScope.IO.Clear).

Reading Query Responses from the Oscilloscope
After receiving a query (command header followed by a question mark), the instrument interrogates the requested function and places the answer in its output queue. The answer remains in the output queue until it is read or another command is issued. When read, the answer is transmitted across the interface to the designated listener (typically a controller). The statement for reading a query response message from an instrument's output queue typically has a format specification for handling the response message. When using the VISA COM library in Visual Basic, you use different read methods (ReadString, ReadNumber, ReadList, or ReadIEEEBlock) for the various query response formats. For example, to read the result of the query command :CHANnel1:COUPling? you would execute the statements:
myScope.WriteString ":CHANnel1:COUPling?" Dim strQueryResult As String strQueryResult = myScope.ReadString
This reads the current setting for the channel one coupling into the string variable strQueryResult. All results for queries (sent in one program message) must be read before another program message is sent. Sending another command before reading the result of the query clears the output buffer and the current response. This also causes an error to be placed in the error queue. Executing a read statement before sending a query causes the controller to wait indefinitely. The format specification for handling response messages depends on the programming language.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

71

3 Getting Started

Reading Query Results into String Variables
The output of the instrument may be numeric or character data depending on what is queried. Refer to the specific command descriptions for the formats and types of data returned from queries.

NOTE

Express String Variables Using Exact Syntax
In Visual Basic, string variables are case sensitive and must be expressed exactly the same each time they are used.

The following example shows numeric data being returned to a string variable:
myScope.WriteString ":CHANnel1:RANGe?" Dim strQueryResult As String strQueryResult = myScope.ReadString MsgBox "Range (string):" + strQueryResult
After running this program, the controller displays: Range (string): +40.0E+00
Reading Query Results into Numeric Variables
The following example shows numeric data being returned to a numeric variable:
myScope.WriteString ":CHANnel1:RANGe?" Dim varQueryResult As Variant varQueryResult = myScope.ReadNumber MsgBox "Range (variant):" + CStr(varQueryResult)
After running this program, the controller displays: Range (variant): 40
Reading Definite-Length Block Query Response Data
Definite-length block query response data allows any type of device-dependent data to be transmitted over the system interface as a series of 8-bit binary data bytes. This is particularly useful for sending large quantities of data or 8-bit extended ASCII codes. The syntax is a pound sign (#) followed by a non-zero digit representing the number of digits in the decimal integer. After the non-zero digit is the decimal integer that states the number of 8-bit data bytes being sent. This is followed by the actual data. For example, for transmitting 1000 bytes of data, the syntax would be:

72

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Getting Started 3

Number of Digits That Follow

Actual Data

#800001000<1000 bytes of data><terminator>
Number of Bytes to be Transmitted

Figure 2 Definite-length block response data

The "8" states the number of digits that follow, and "00001000" states the number of bytes to be transmitted. The VISA COM library's ReadIEEEBlock and WriteIEEEBlock methods understand the definite-length block syntax, so you can simply use variables that contain the data:
' Read oscilloscope setup using ":SYSTem:SETup?" query. myScope.WriteString ":SYSTem:SETup?" Dim varQueryResult As Variant varQueryResult = myScope.ReadIEEEBlock(BinaryType_UI1)
' Write learn string back to oscilloscope using ":SYSTem:SETup" command: myScope.WriteIEEEBlock ":SYSTem:SETup ", varQueryResult
Sending Multiple Queries and Reading Results
You can send multiple queries to the instrument within a single command string, but you must also read them back as a single query result. This can be accomplished by reading them back into a single string variable, multiple string variables, or multiple numeric variables. For example, to read the :TIMebase:RANGe?;DELay? query result into a single string variable, you could use the commands:
myScope.WriteString ":TIMebase:RANGe?;DELay?" Dim strQueryResult As String strQueryResult = myScope.ReadString MsgBox "Timebase range; delay:" + strQueryResult
When you read the result of multiple queries into a single string variable, each response is separated by a semicolon. For example, the output of the previous example would be:
Timebase range; delay: <range_value>;<delay_value>
To read the :TIMebase:RANGe?;DELay? query result into multiple string variables, you could use the ReadList method to read the query results into a string array variable using the commands:
myScope.WriteString ":TIMebase:RANGe?;DELay?" Dim strResults() As String strResults() = myScope.ReadList(ASCIIType_BSTR) MsgBox "Timebase range: " + strResults(0) + ", delay: " + strResults(1)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

73

3 Getting Started
To read the :TIMebase:RANGe?;DELay? query result into multiple numeric variables, you could use the ReadList method to read the query results into a variant array variable using the commands:
myScope.WriteString ":TIMebase:RANGe?;DELay?" Dim varResults() As Variant varResults() = myScope.ReadList MsgBox "Timebase range: " + FormatNumber(varResults(0) * 1000, 4) + _
" ms, delay: " + FormatNumber(varResults(1) * 1000000, 4) + " us"
Checking Instrument Status
Status registers track the current status of the instrument. By checking the instrument status, you can find out whether an operation has been completed, whether the instrument is receiving triggers, and more. For more information, see Chapter 37, "Status Reporting," starting on page 1131 which explains how to check the status of the instrument.

74

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Getting Started 3
Other Ways of Sending Commands
Standard Commands for Programmable Instrumentation (SCPI) can also be sent via a Telnet socket or through the Browser Web Control: · "Telnet Sockets" on page 75 · "Sending SCPI Commands Using Browser Web Control" on page 75
Telnet Sockets
The following information is provided for programmers who wish to control the oscilloscope with SCPI commands in a Telnet session. To connect to the oscilloscope via a telnet socket, issue the following command:
telnet <hostname> 5024
where <hostname> is the hostname of the oscilloscope. This will give you a command line with prompt. For a command line without a prompt, use port 5025. For example:
telnet <hostname> 5025
Sending SCPI Commands Using Browser Web Control
To send SCPI commands using the Browser Web Control feature, establish a connection to the oscilloscope via LAN as described in the InfiniiVision 3000 X-Series Oscilloscopes User's Guide. When you make the connection to the oscilloscope via LAN and the instrument's welcome page is displayed, select the Browser Web Control tab, then select the Remote Programming link.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

75

3 Getting Started

76

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
4 Commands Quick Reference
Command Summary / 78 Syntax Elements / 163
77

4 Commands Quick Reference

Command Summary
· Common (*) Commands Summary (see page 80) · Root (:) Commands Summary (see page 83) · :ACQuire Commands Summary (see page 86) · :BUS<n> Commands Summary (see page 87) · :CALibrate Commands Summary (see page 88) · :CHANnel<n> Commands Summary (see page 88) · :DEMO Commands Summary (see page 90) · :DIGital<n> Commands Summary (see page 91) · :DISPlay Commands Summary (see page 91) · :DVM Commands Summary (see page 92) · :EXTernal Trigger Commands Summary (see page 93) · :FUNCtion Commands Summary (see page 93) · :HARDcopy Commands Summary (see page 96) · :LISTer Commands Summary (see page 98) · :MARKer Commands Summary (see page 98) · :MEASure Commands Summary (see page 100) · :MTESt Commands Summary (see page 112) · :POD<n> Commands Summary (see page 115) · :POWer Commands Summary (see page 115) · :RECall Commands Summary (see page 120) · :SAVE Commands Summary (see page 121) · General :SBUS<n> Commands Summary (see page 123) · :SBUS<n>:A429 Commands Summary (see page 123) · :SBUS<n>:CAN Commands Summary (see page 125) · :SBUS<n>:FLEXray Commands Summary (see page 126) · :SBUS<n>:I2S Commands Summary (see page 128) · :SBUS<n>:IIC Commands Summary (see page 130) · :SBUS<n>:LIN Commands Summary (see page 131) · :SBUS<n>:M1553 Commands Summary (see page 132) · :SBUS<n>:SPI Commands Summary (see page 133) · :SBUS<n>:UART Commands Summary (see page 135) · General :SEARch Commands Summary (see page 137) · :SEARch:EDGE Commands Summary (see page 137)

78

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4
· :SEARch:GLITch Commands Summary (see page 137) · :SEARch:RUNT Commands Summary (see page 138) · :SEARch:TRANsition Commands Summary (see page 138) · :SEARch:SERial:A429 Commands Summary (see page 139) · :SEARch:SERial:CAN Commands Summary (see page 140) · :SEARch:SERial:FLEXray Commands Summary (see page 140) · :SEARch:SERial:I2S Commands Summary (see page 141) · :SEARch:SERial:IIC Commands Summary (see page 141) · :SEARch:SERial:LIN Commands Summary (see page 142) · :SEARch:SERial:M1553 Commands Summary (see page 143) · :SEARch:SERial:SPI Commands Summary (see page 143) · :SEARch:SERial:UART Commands Summary (see page 144) · :SYSTem Commands Summary (see page 144) · :TIMebase Commands Summary (see page 146) · General :TRIGger Commands Summary (see page 146) · :TRIGger:DELay Commands Summary (see page 147) · :TRIGger:EBURst Commands Summary (see page 148) · :TRIGger[:EDGE] Commands Summary (see page 149) · :TRIGger:GLITch Commands Summary (see page 150) · :TRIGger:OR Commands Summary (see page 151) · :TRIGger:PATTern Commands Summary (see page 152) · :TRIGger:RUNT Commands Summary (see page 153) · :TRIGger:SHOLd Commands Summary (see page 153) · :TRIGger:TRANsition Commands Summary (see page 154) · :TRIGger:TV Commands Summary (see page 154) · :TRIGger:USB Commands Summary (see page 155) · :WAVeform Commands Summary (see page 156) · :WGEN Commands Summary (see page 158) · :WMEMory<r> Commands Summary (see page 161)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

79

4 Commands Quick Reference

Table 2 Common (*) Commands Summary

Command *CLS (see page 171)
*ESE <mask> (see page 172)

Query n/a *ESE? (see page 172)

n/a

*ESR? (see page 174)

n/a

*IDN? (see page 174)

n/a

*LRN? (see page 177)

*OPC (see page 178)

*OPC? (see page 178)

Options and Query Returns

n/a

<mask> ::= 0 to 255; an integer in NR1 format:

Bit Weight Name Enables

--- ------ ---- ----------

7 128 PON Power On

6

64 URQ User Request

5

32 CME Command Error

4

16 EXE Execution Error

3

8 DDE Dev. Dependent Error

2

4 QYE Query Error

1

2 RQL Request Control

0

1 OPC Operation Complete

<status> ::= 0 to 255; an integer in NR1 format

AGILENT TECHNOLOGIES,<model>,<serial number>,X.XX.XX
<model> ::= the model number of the instrument
<serial number> ::= the serial number of the instrument
<X.XX.XX> ::= the software revision of the instrument

<learn_string> ::= current instrument setup as a block of data in IEEE 488.2 # format

ASCII "1" is placed in the output queue when all pending device operations have completed.

80

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 2 Common (*) Commands Summary (continued)

Command n/a

Query *OPT? (see page 179)

*RCL <value> (see

n/a

page 181)

*RST (see page 182)

n/a

*SAV <value> (see

n/a

page 185)

Options and Query Returns
<return_value> ::= 0,0,<license info>
<license info> ::= <All field>, <reserved>, <MSO>, <reserved>, <Memory>, <Low Speed Serial>, <Automotive Serial>, <reserved>, <reserved>, <Power Measurements>, <RS-232/UART Serial>, <Segmented Memory>, <Mask Test>, <reserved>, <Bandwidth>, <reserved>, <reserved>, <reserved>, <I2S Serial>, <reserved>, <reserved>, <Waveform Generator>, <reserved>, <reserved>
<All field> ::= {0 | All}
<reserved> ::= 0
<MSO> ::= {0 | MSO}
<Memory> ::= {0 | MEMUP}
<Low Speed Serial> ::= {0 | EMBD}
<Automotive Serial> ::= {0 | AUTO}
<Power Measurements> ::= {0 | PWR}
<RS-232/UART Serial> ::= {0 | COMP}
<Segmented Memory> ::= {0 | SGM}
<Mask Test> ::= {0 | MASK}
<Bandwidth> ::= {0 | BW20 | BW50}
<I2S Serial> ::= {0 | AUDIO}
<Waveform Generator> ::= {0 | WAVEGEN}
<value> ::= {0 | 1 | 4 | 5 | 6 | 7 | 8 | 9} See *RST (Reset) (see page 182)
<value> ::= {0 | 1 | 4 | 5 | 6 | 7 | 8 | 9}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

81

4 Commands Quick Reference

Table 2 Common (*) Commands Summary (continued)

Command
*SRE <mask> (see page 186)

Query *SRE? (see page 187)

n/a

*STB? (see page 188)

*TRG (see page 190) n/a
*WAI (see page 192)

n/a *TST? (see page 191)
n/a

Options and Query Returns

<mask> ::= sum of all bits that are set, 0 to 255; an integer in NR1 format. <mask> ::= following values:

Bit Weight Name Enables

--- ------ ---- ----------

7 128 OPER Operation Status Reg

6

64 ---- (Not used.)

5

32 ESB Event Status Bit

4

16 MAV Message Available

3

8 ---- (Not used.)

2

4 MSG Message

1

2 USR User

0

1 TRG Trigger

<value> ::= 0 to 255; an integer in NR1 format, as shown in the following:

Bit Weight Name "1" Indicates

--- ------ ---- ---------------

7 128 OPER Operation status

condition occurred.

6

64 RQS/ Instrument is

MSS requesting service.

5

32 ESB Enabled event status

condition occurred.

4

16 MAV Message available.

3

8 ---- (Not used.)

2

4 MSG Message displayed.

1

2 USR User event

condition occurred.

0

1 TRG A trigger occurred.

n/a

<result> ::= 0 or non-zero value; an integer in NR1 format

n/a

82

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 3 Root (:) Commands Summary

Command

Query

:ACTivity (see page 197)

:ACTivity? (see page 197)

n/a

:AER? (see page 198)

:AUToscale

n/a

[<source>[,..,<source >]] (see page 199)

:AUToscale:AMODE

:AUToscale:AMODE?

<value> (see page 201) (see page 201)

:AUToscale:CHANnels :AUToscale:CHANnels? <value> (see page 202) (see page 202)

:AUToscale:FDEBug {{0
| OFF} | {1 | ON}} (see page 203)

:AUToscale:FDEBug? (see page 203)

:BLANk [<source>]

n/a

(see page 204)

Options and Query Returns
<return value> ::= <edges>,<levels> <edges> ::= presence of edges (32-bit integer in NR1 format) <levels> ::= logical highs or lows (32-bit integer in NR1 format)
{0 | 1}; an integer in NR1 format
<source> ::= CHANnel<n> for DSO models <source> ::= {CHANnel<n> | DIGital<d> | POD1 | POD2} for MSO models <source> can be repeated up to 5 times <n> ::= 1 to (# analog channels) in NR1 format <d> ::= 0 to (# digital channels - 1) in NR1 format
<value> ::= {NORMal | CURRent}}
<value> ::= {ALL | DISPlayed}}
{0 | 1}
<source> ::= {CHANnel<n>} | FUNCtion | MATH | SBUS{1 | 2} | WMEMory<r>} for DSO models <source> ::= {CHANnel<n> | DIGital<d> | POD{1 | 2} | BUS{1 | 2} | FUNCtion | MATH | SBUS{1 | 2} | WMEMory<r>} for MSO models <n> ::= 1 to (# analog channels) in NR1 format <d> ::= 0 to (# digital channels - 1) in NR1 format <r> ::= 1 to (# ref waveforms) in NR1 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

83

4 Commands Quick Reference

Table 3 Root (:) Commands Summary (continued)

Command

Query

Options and Query Returns

:DIGitize

n/a

[<source>[,..,<source >]] (see page 205)

<source> ::= {CHANnel<n> | FUNCtion | MATH | SBUS{1 | 2}} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | POD{1 | 2} | BUS{1 | 2} | FUNCtion | MATH | SBUS{1 | 2}} for MSO models
<source> can be repeated up to 5 times
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:MTEenable <n> (see page 207)

:MTEenable? (see page 207)

<n> ::= 16-bit integer in NR1 format

n/a
:OPEE <n> (see page 211)

:MTERegister[:EVENt]? (see page 209)
:OPEE? (see page 212)

<n> ::= 16-bit integer in NR1 format
<n> ::= 15-bit integer in NR1 format

n/a

:OPERregister:CONDiti <n> ::= 15-bit integer in NR1

on? (see page 213)

format

n/a

:OPERegister[:EVENt]? <n> ::= 15-bit integer in NR1

(see page 215)

format

:OVLenable <mask> (see page 217)

:OVLenable? (see page 218)

<mask> ::= 16-bit integer in NR1 format as shown:

Bit Weight Input

--- ------ ----------

10 1024 Ext Trigger Fault

9 512 Channel 4 Fault

8 256 Channel 3 Fault

7 128 Channel 2 Fault

6

64 Channel 1 Fault

4

16 Ext Trigger OVL

3

8 Channel 4 OVL

2

4 Channel 3 OVL

1

2 Channel 2 OVL

0

1 Channel 1 OVL

n/a

:OVLRegister? (see

<value> ::= integer in NR1

page 219)

format. See OVLenable for <value>

84

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 3 Root (:) Commands Summary (continued)

Command

Query

Options and Query Returns

:PRINt [<options>]

n/a

(see page 221)

<options> ::= [<print option>][,..,<print option>]
<print option> ::= {COLor | GRAYscale | PRINter0 | PRINter1 | BMP8bit | BMP | PNG | NOFactors | FACTors}
<print option> can be repeated up to 5 times.

:PWRenable <n> (see page 222)

:PWRenable? (see page 222)

<n> ::= 16-bit integer in NR1 format

n/a :RUN (see page 225) n/a :SINGle (see page 227)

:PWRRegister[:EVENt]? (see page 224) n/a :SERial (see page 226)
n/a

<n> ::= 16-bit integer in NR1 format
n/a
<return value> ::= unquoted string containing serial number
n/a

n/a

:STATus? <display>

(see page 228)

:STOP (see page 229)

n/a

{0 | 1}
<display> ::= {CHANnel<n> | DIGital<d> | POD{1 | 2} | BUS{1 | 2} | FUNCtion | MATH | SBUS{1 | 2} | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<r> ::= 1 to (# ref waveforms) in NR1 format
n/a

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

85

4 Commands Quick Reference

Table 3 Root (:) Commands Summary (continued)

Command n/a

Query :TER? (see page 230)

:VIEW <source> (see n/a page 231)

Options and Query Returns
{0 | 1}
<source> ::= {CHANnel<n> | FUNCtion | MATH | SBUS{1 | 2} | WMEMory<r>} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | POD{1 | 2} | BUS{1 | 2} | FUNCtion | MATH | SBUS{1 | 2} | WMEMory<r>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<r> ::= 1 to (# ref waveforms) in NR1 format

Table 4 :ACQuire Commands Summary

Command

Query

Options and Query Returns

:ACQuire:COMPlete
<complete> (see page 235)

:ACQuire:COMPlete? (see page 235)

<complete> ::= 100; an integer in NR1 format

:ACQuire:COUNt

:ACQuire:COUNt? (see <count> ::= an integer from 2 to

<count> (see page 236) page 236)

65536 in NR1 format

:ACQuire:MODE <mode> :ACQuire:MODE? (see

(see page 237)

page 237)

<mode> ::= {RTIMe | SEGMented}

n/a

:ACQuire:POINts? (see <# points> ::= an integer in NR1

page 238)

format

:ACQuire:SEGMented:AN n/a ALyze (see page 239)

n/a (with Option SGM)

:ACQuire:SEGMented:CO :ACQuire:SEGMented:CO <count> ::= an integer from 2 to

UNt <count> (see

UNt? (see page 240)

1000 in NR1 format (with Option

page 240)

SGM)

:ACQuire:SEGMented:IN :ACQuire:SEGMented:IN <index> ::= an integer from 1 to

Dex <index> (see

Dex? (see page 241)

1000 in NR1 format (with Option

page 241)

SGM)

n/a

:ACQuire:SRATe? (see <sample_rate> ::= sample rate

page 244)

(samples/s) in NR3 format

:ACQuire:TYPE <type> :ACQuire:TYPE? (see

(see page 245)

page 245)

<type> ::= {NORMal | AVERage | HRESolution | PEAK}

86

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 5 :BUS<n> Commands Summary

Command

Query

Options and Query Returns

:BUS<n>:BIT<m> {{0 |
OFF} | {1 | ON}} (see page 249)

:BUS<n>:BIT<m>? (see page 249)

{0 | 1}
<n> ::= 1 or 2; an integer in NR1 format
<m> ::= 0-15; an integer in NR1 format

:BUS<n>:BITS
<channel_list>, {{0 |
OFF} | {1 | ON}} (see page 250)

:BUS<n>:BITS? (see page 250)

<channel_list>, {0 | 1}
<channel_list> ::= (@<m>,<m>:<m> ...) where "," is separator and ":" is range
<n> ::= 1 or 2; an integer in NR1 format
<m> ::= 0-15; an integer in NR1 format

:BUS<n>:CLEar (see

n/a

page 252)

<n> ::= 1 or 2; an integer in NR1 format

:BUS<n>:DISPlay {{0 |
OFF} | {1 | ON}} (see page 253)

:BUS<n>:DISPlay? (see page 253)

{0 | 1}
<n> ::= 1 or 2; an integer in NR1 format

:BUS<n>:LABel
<string> (see page 254)

:BUS<n>:LABel? (see page 254)

<string> ::= quoted ASCII string up to 10 characters
<n> ::= 1 or 2; an integer in NR1 format

:BUS<n>:MASK <mask> (see page 255)

:BUS<n>:MASK? (see page 255)

<mask> ::= 32-bit integer in decimal, <nondecimal>, or <string>
<nondecimal> ::= #Hnn...n where n ::= {0,..,9 | A,..,F} for hexadecimal
<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary
<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F} for hexadecimal
<n> ::= 1 or 2; an integer in NR1 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

87

4 Commands Quick Reference

Table 6 :CALibrate Commands Summary

Command

Query

Options and Query Returns

n/a

:CALibrate:DATE? (see <return value> ::=

page 259)

<year>,<month>,<day>; all in NR1

format

:CALibrate:LABel
<string> (see page 260)

:CALibrate:LABel? (see page 260)

<string> ::= quoted ASCII string up to 32 characters

:CALibrate:OUTPut
<signal> (see page 261)

:CALibrate:OUTPut? (see page 261)

<signal> ::= {TRIGgers | MASK | WAVEgen}

n/a

:CALibrate:PROTected? {"PROTected" | "UNPRotected"}

(see page 262)

:CALibrate:STARt (see n/a

n/a

page 263)

n/a

:CALibrate:STATus?

<return value> ::=

(see page 264)

<status_code>,<status_string>

<status_code> ::= an integer status code

<status_string> ::= an ASCII status string

n/a

:CALibrate:TEMPeratur <return value> ::= degrees C

e? (see page 265)

delta since last cal in NR3

format

n/a

:CALibrate:TIME? (see <return value> ::=

page 266)

<hours>,<minutes>,<seconds>; all

in NR1 format

Table 7 :CHANnel<n> Commands Summary

Command

Query

Options and Query Returns

:CHANnel<n>:BANDwidth :CHANnel<n>:BANDwidth <limit> ::= 25E6 in NR3 format

<limit> (see page 270) ? [MAXimum] (see page 270)

<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:BWLimit
{{0 | OFF} | {1 | ON}} (see page 271)

:CHANnel<n>:BWLimit? (see page 271)

{0 | 1}
<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:COUPling
<coupling> (see page 272)

:CHANnel<n>:COUPling? <coupling> ::= {AC | DC}

(see page 272)

<n> ::= 1 to (# analog channels)

in NR1 format

88

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 7 :CHANnel<n> Commands Summary (continued)

Command

Query

Options and Query Returns

:CHANnel<n>:DISPlay
{{0 | OFF} | {1 | ON}} (see page 273)

:CHANnel<n>:DISPlay? (see page 273)

{0 | 1}
<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:IMPedance :CHANnel<n>:IMPedance <impedance> ::= {ONEMeg | FIFTy}

<impedance> (see page 274)

? (see page 274)

<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:INVert
{{0 | OFF} | {1 | ON}} (see page 275)

:CHANnel<n>:INVert? (see page 275)

{0 | 1}
<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:LABel
<string> (see page 276)

:CHANnel<n>:LABel? (see page 276)

<string> ::= any series of 10 or less ASCII characters enclosed in quotation marks
<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:OFFSet
<offset>[suffix] (see page 277)

:CHANnel<n>:OFFSet? (see page 277)

<offset> ::= Vertical offset value in NR3 format [suffix] ::= {V | mV} <n> ::= 1-2 or 1-4; in NR1 format

:CHANnel<n>:PROBe
<attenuation> (see page 278)

:CHANnel<n>:PROBe? (see page 278)

<attenuation> ::= Probe attenuation ratio in NR3 format
<n> ::= 1-2 or 1-4; in NR1 format

:CHANnel<n>:PROBe:HEA
D[:TYPE] <head_param> (see page 279)

:CHANnel<n>:PROBe:HEA
D[:TYPE]? (see page 279)

<head_param> ::= {SEND0 | SEND6 | SEND12 | SEND20 | DIFF0 | DIFF6 | DIFF12 | DIFF20 | NONE}
<n> ::= 1 to (# analog channels) in NR1 format

n/a

:CHANnel<n>:PROBe:ID? <probe id> ::= unquoted ASCII

(see page 280)

string up to 11 characters

<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:PROBe:SKE
W <skew_value> (see page 281)

:CHANnel<n>:PROBe:SKE W? (see page 281)

<skew_value> ::= -100 ns to +100 ns in NR3 format
<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:PROBe:STY
Pe <signal type> (see page 282)

:CHANnel<n>:PROBe:STY Pe? (see page 282)

<signal type> ::= {DIFFerential | SINGle}
<n> ::= 1 to (# analog channels) in NR1 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

89

4 Commands Quick Reference

Table 7 :CHANnel<n> Commands Summary (continued)

Command

Query

Options and Query Returns

:CHANnel<n>:PROTectio :CHANnel<n>:PROTectio {NORM | TRIP}

n (see page 283)

n? (see page 283)

<n> ::= 1 to (# analog channels)

in NR1 format

:CHANnel<n>:RANGe
<range>[suffix] (see page 284)

:CHANnel<n>:RANGe? (see page 284)

<range> ::= Vertical full-scale range value in NR3 format
[suffix] ::= {V | mV}
<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:SCALe
<scale>[suffix] (see page 285)

:CHANnel<n>:SCALe? (see page 285)

<scale> ::= Vertical units per division value in NR3 format
[suffix] ::= {V | mV}
<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:UNITs

:CHANnel<n>:UNITs?

<units> (see page 286) (see page 286)

<units> ::= {VOLT | AMPere}
<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:VERNier
{{0 | OFF} | {1 | ON}} (see page 287)

:CHANnel<n>:VERNier? (see page 287)

{0 | 1}
<n> ::= 1 to (# analog channels) in NR1 format

Table 8 :DEMO Commands Summary

Command

Query

Options and Query Returns

:DEMO:FUNCtion
<signal> (see page 290)

:DEMO:FUNCtion? (see page 293)

<signal> ::= {SINusoid | NOISy | PHASe | LFSine | AM | RFBurst | FMBurst | HARMonics | COUPling | RINGing | SINGle | CLK | RUNT | TRANsition | SHOLd | MSO | BURSt | GLITch | ETE | I2C | UART | SPI | I2S | CAN | LIN | CANLin | FLEXray | ARINc | MIL | MIL2}

:DEMO:FUNCtion:PHASe: :DEMO:FUNCtion:PHASe: <angle> ::= angle in degrees from

PHASe <angle> (see

PHASe? (see page 294) 0 to 360 in NR3 format

page 294)

:DEMO:OUTPut {{0 |
OFF} | {1 | ON}} (see page 295)

:DEMO:OUTPut? (see page 295)

{0 | 1}

90

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 9 :DIGital<d> Commands Summary

Command

Query

Options and Query Returns

:DIGital<d>:DISPlay
{{0 | OFF} | {1 | ON}} (see page 299)

:DIGital<d>:DISPlay? (see page 299)

<d> ::= 0 to (# digital channels - 1) in NR1 format
{0 | 1}

:DIGital<d>:LABel
<string> (see page 300)

:DIGital<d>:LABel? (see page 300)

<d> ::= 0 to (# digital channels - 1) in NR1 format
<string> ::= any series of 10 or less ASCII characters enclosed in quotation marks

:DIGital<d>:POSition
<position> (see page 301)

:DIGital<d>:POSition? (see page 301)

<d> ::= 0 to (# digital channels - 1) in NR1 format
<position> ::= 0-7 if display size = large, 0-15 if size = medium, 0-31 if size = small
Returns -1 when there is no space to display the digital waveform.

:DIGital<d>:SIZE

:DIGital<d>:SIZE?

<value> (see page 302) (see page 302)

<d> ::= 0 to (# digital channels - 1) in NR1 format
<value> ::= {SMALl | MEDium | LARGe}

:DIGital<d>:THReshold
<value>[suffix] (see page 303)

:DIGital<d>:THReshold ? (see page 303)

<d> ::= 0 to (# digital channels - 1) in NR1 format
<value> ::= {CMOS | ECL | TTL | <user defined value>}
<user defined value> ::= value in NR3 format from -8.00 to +8.00
[suffix] ::= {V | mV | uV}

Table 10 :DISPlay Commands Summary

Command

Query

Options and Query Returns

:DISPlay:ANNotation
{{0 | OFF} | {1 | ON}} (see page 307)

:DISPlay:ANNotation? {0 | 1} (see page 307)

:DISPlay:ANNotation:B :DISPlay:ANNotation:B <mode> ::= {OPAQue | INVerted |

ACKground <mode> (see ACKground? (see

page 308)

page 308)

TRANsparent}

:DISPlay:ANNotation:C :DISPlay:ANNotation:C <color> ::= {CH1 | CH2 | CH3 |

OLor <color> (see

OLor? (see page 309)

CH4 | DIG | MATH | REF | MARKer |

page 309)

WHITe | RED}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

91

4 Commands Quick Reference

Table 10 :DISPlay Commands Summary (continued)

Command

Query

Options and Query Returns

:DISPlay:ANNotation:T :DISPlay:ANNotation:T <string> ::= quoted ASCII string

EXT <string> (see

EXT? (see page 310)

(up to 254 characters)

page 310)

:DISPlay:CLEar (see n/a

n/a

page 311)

n/a

:DISPlay:DATA?

<format> ::= {BMP | BMP8bit |

[<format>][,][<palett PNG}

e>] (see page 312)

<palette> ::= {COLor | GRAYscale}

<display data> ::= data in IEEE 488.2 # format

:DISPlay:INTensity:WA :DISPlay:INTensity:WA <value> ::= an integer from 0 to Veform <value> (see Veform? (see page 314) 100 in NR1 format. page 314)

:DISPlay:LABel {{0 |
OFF} | {1 | ON}} (see page 315)

:DISPlay:LABel? (see page 315)

{0 | 1}

:DISPlay:LABList
<binary block> (see page 316)

:DISPlay:LABList? (see page 316)

<binary block> ::= an ordered list of up to 75 labels, each 10 characters maximum, separated by newline characters

:DISPlay:PERSistence <value> (see page 317)

:DISPlay:PERSistence? (see page 317)

<value> ::= {MINimum | INFinite | <time>}
<time> ::= seconds in in NR3 format from 100E-3 to 60E0

:DISPlay:VECTors {1 | :DISPlay:VECTors?

1

ON} (see page 318)

(see page 318)

Table 11 :DVM Commands Summary

Command

Query

:DVM:ARANge {{0 |
OFF} | {1 | ON}} (see page 320)

:DVM:ARANge? (see page 320)

n/a

:DVM:CURRent? (see

page 321)

:DVM:ENABle {{0 |
OFF} | {1 | ON}} (see page 322)

:DVM:ENABle? (see page 322)

Options and Query Returns {0 | 1}
<dvm_value> ::= floating-point number in NR3 format {0 | 1}

92

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 11 :DVM Commands Summary (continued)

Command

Query

n/a

:DVM:FREQuency? (see

page 321)

:DVM:MODE <mode> (see :DVM:MODE? (see

page 324)

page 324)

:DVM:SOURce <source> :DVM:SOURce? (see

(see page 325)

page 325)

Options and Query Returns <freq_value> ::= floating-point number in NR3 format
<dvm_mode> ::= {ACRMs | DC | DCRMs | FREQuency}
<source> ::= {CHANnel<n>} <n> ::= 1-2 or 1-4 in NR1 format

Table 12 :EXTernal Trigger Commands Summary

Command

Query

Options and Query Returns

:EXTernal:BWLimit
<bwlimit> (see page 328)

:EXTernal:BWLimit? (see page 328)

<bwlimit> ::= {0 | OFF}

:EXTernal:PROBe
<attenuation> (see page 329)

:EXTernal:PROBe? (see <attenuation> ::= probe

page 329)

attenuation ratio in NR3 format

:EXTernal:RANGe
<range>[<suffix>] (see page 330)

:EXTernal:RANGe? (see page 330)

<range> ::= vertical full-scale range value in NR3 format
<suffix> ::= {V | mV}

:EXTernal:UNITs

:EXTernal:UNITs? (see <units> ::= {VOLT | AMPere}

<units> (see page 331) page 331)

Table 13 :FUNCtion Commands Summary

Command

Query

Options and Query Returns

:FUNCtion:BUS:CLOCk
<source> (see page 338)

:FUNCtion:BUS:CLOCk? (see page 338)

<source> ::= {CHANnel<n> | DIGital<d>}
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:FUNCtion:BUS:SLOPe :FUNCtion:BUS:SLOPe? <slope> ::= {NEGative | POSitive

<slope> (see page 339) (see page 339)

| EITHer}

:FUNCtion:BUS:YINCrem :FUNCtion:BUS:YINCrem <value> ::= value per bus code,

ent <value> (see

ent? (see page 340)

in NR3 format

page 340)

:FUNCtion:BUS:YORigin :FUNCtion:BUS:YORigin <value> ::= value at bus code =

<value> (see page 341) ? (see page 341)

0, in NR3 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

93

4 Commands Quick Reference

Table 13 :FUNCtion Commands Summary (continued)

Command

Query

Options and Query Returns

:FUNCtion:BUS:YUNits :FUNCtion:BUS:YUNits? <units> ::= {VOLT | AMPere |

<units> (see page 342) (see page 342)

NONE}

:FUNCtion:DISPlay {{0
| OFF} | {1 | ON}} (see page 343)

:FUNCtion:DISPlay? (see page 343)

{0 | 1}

:FUNCtion[:FFT]:CENTe
r <frequency> (see page 344)

:FUNCtion[:FFT]:CENTe r? (see page 344)

<frequency> ::= the current center frequency in NR3 format. The range of legal values is from 0 Hz to 25 GHz.

:FUNCtion[:FFT]:SPAN <span> (see page 345)

:FUNCtion[:FFT]:SPAN? <span> ::= the current frequency

(see page 345)

span in NR3 format.

Legal values are 1 Hz to 100 GHz.

:FUNCtion[:FFT]:VTYPe :FUNCtion[:FFT]:VTYPe <units> ::= {DECibel | VRMS} <units> (see page 346) ? (see page 346)

:FUNCtion[:FFT]:WINDo :FUNCtion[:FFT]:WINDo <window> ::= {RECTangular |

w <window> (see

w? (see page 347)

HANNing | FLATtop | BHARris}

page 347)

:FUNCtion:FREQuency:H :FUNCtion:FREQuency:H <3dB_freq> ::= 3dB cutoff

IGHpass <3dB_freq> (see page 348)

IGHpass? (see page 348)

frequency value in NR3 format

:FUNCtion:FREQuency:L :FUNCtion:FREQuency:L <3dB_freq> ::= 3dB cutoff

OWPass <3dB_freq>

OWPass? (see page 349) frequency value in NR3 format

(see page 349)

:FUNCtion:GOFT:OPERat :FUNCtion:GOFT:OPERat <operation> ::= {ADD | SUBTract |

ion <operation> (see ion? (see page 350)

MULTiply}

page 350)

:FUNCtion:GOFT:SOURce
1 <source> (see page 351)

:FUNCtion:GOFT:SOURce 1? (see page 351)

<source> ::= CHANnel<n> <n> ::= {1 | 2 | 3 | 4} for 4ch models <n> ::= {1 | 2} for 2ch models

:FUNCtion:GOFT:SOURce
2 <source> (see page 352)

:FUNCtion:GOFT:SOURce 2? (see page 352)

<source> ::= CHANnel<n> <n> ::= {1 | 2 | 3 | 4} for 4ch models <n> ::= {1 | 2} for 2ch models

:FUNCtion:INTegrate:I :FUNCtion:INTegrate:I <input_offset> ::= DC offset OFFset <input_offset> OFFset? (see page 353) correction in NR3 format. (see page 353)

:FUNCtion:LINear:GAIN :FUNCtion:LINear:GAIN <value> ::= 'A' in Ax + B, value

<value> (see page 354) ? (see page 354)

in NR3 format

94

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 13 :FUNCtion Commands Summary (continued)

Command

Query

Options and Query Returns

:FUNCtion:LINear:OFFS :FUNCtion:LINear:OFFS <value> ::= 'B' in Ax + B, value

et <value> (see

et? (see page 355)

in NR3 format

page 355)

:FUNCtion:OFFSet
<offset> (see page 356)

:FUNCtion:OFFSet? (see page 356)

<offset> ::= the value at center screen in NR3 format.
The range of legal values is +/-10 times the current sensitivity of the selected function.

:FUNCtion:OPERation
<operation> (see page 357)

:FUNCtion:OPERation? (see page 358)

<operation> ::= {ADD | SUBTract | MULTiply | INTegrate | DIFF | FFT | SQRT | MAGNify | ABSolute | SQUare | LN | LOG | EXP | TEN | LOWPass | HIGHpass | DIVide | LINear | TRENd | BTIMing | BSTate}

:FUNCtion:RANGe <range> (see page 359)

:FUNCtion:RANGe? (see page 359)

<range> ::= the full-scale vertical axis value in NR3 format.
The range for ADD, SUBT, MULT is 8E-6 to 800E+3. The range for the INTegrate function is 8E-9 to 400E+3.
The range for the DIFF function is 80E-3 to 8.0E12 (depends on current sweep speed).
The range for the FFT function is 8 to 800 dBV.

:FUNCtion:REFerence :FUNCtion:REFerence? <level> (see page 360) (see page 360)

<level> ::= the value at center screen in NR3 format.
The range of legal values is +/-10 times the current sensitivity of the selected function.

:FUNCtion:SCALe
<scale
value>[<suffix>] (see page 361)

:FUNCtion:SCALe? (see page 361)

<scale value> ::= integer in NR1 format
<suffix> ::= {V | dB}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

95

4 Commands Quick Reference

Table 13 :FUNCtion Commands Summary (continued)

Command

Query

Options and Query Returns

:FUNCtion:SOURce1
<source> (see page 362)

:FUNCtion:SOURce1? (see page 362)

<source> ::= {CHANnel<n> | GOFT | BUS<m>}
<n> ::= {1 | 2 | 3 | 4} for 4ch models
<n> ::= {1 | 2} for 2ch models
<m> ::= {1 | 2}
GOFT is only for FFT, INTegrate, DIFF, and SQRT operations.

:FUNCtion:SOURce2
<source> (see page 364)

:FUNCtion:SOURce2? (see page 364)

<source> ::= {CHANnel<n> | NONE} <n> ::= {1 | 2 | 3 | 4} for 4ch models <n> ::= {1 | 2} for 2ch models

:FUNCtion:TRENd:MEASu
rement <type> (see page 365)

:FUNCtion:TRENd:MEASu rement? (see page 365)

<type> ::= {VAVerage | ACRMs | VRATio | PERiod | FREQuency | PWIDth | NWIDth | DUTYcycle | RISetime | FALLtime}

Table 14 :HARDcopy Commands Summary

Command

Query

Options and Query Returns

:HARDcopy:AREA <area> :HARDcopy:AREA? (see <area> ::= SCReen

(see page 369)

page 369)

:HARDcopy:APRinter
<active_printer> (see page 370)

:HARDcopy:APRinter? (see page 370)

<active_printer> ::= {<index> | <name>}
<index> ::= integer index of printer in list
<name> ::= name of printer in list

:HARDcopy:FACTors {{0
| OFF} | {1 | ON}} (see page 371)

:HARDcopy:FACTors? (see page 371)

{0 | 1}

:HARDcopy:FFEed {{0 |
OFF} | {1 | ON}} (see page 372)

:HARDcopy:FFEed? (see page 372)

{0 | 1}

:HARDcopy:INKSaver
{{0 | OFF} | {1 | ON}} (see page 373)

:HARDcopy:INKSaver? (see page 373)

{0 | 1}

96

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 14 :HARDcopy Commands Summary (continued)

Command

Query

Options and Query Returns

:HARDcopy:LAYout
<layout> (see page 374)

:HARDcopy:LAYout? (see page 374)

<layout> ::= {LANDscape | PORTrait}

:HARDcopy:NETWork:ADD :HARDcopy:NETWork:ADD <address> ::= quoted ASCII string Ress <address> (see Ress? (see page 375) page 375)

:HARDcopy:NETWork:APP n/a

n/a

Ly (see page 376)

:HARDcopy:NETWork:DOM :HARDcopy:NETWork:DOM <domain> ::= quoted ASCII string

ain <domain> (see

ain? (see page 377)

page 377)

:HARDcopy:NETWork:PAS n/a
Sword <password> (see page 378)

<password> ::= quoted ASCII string

:HARDcopy:NETWork:SLO :HARDcopy:NETWork:SLO <slot> ::= {NET0 | NET1}

T <slot> (see

T? (see page 379)

page 379)

:HARDcopy:NETWork:USE :HARDcopy:NETWork:USE <username> ::= quoted ASCII Rname <username> (see Rname? (see page 380) string page 380)

:HARDcopy:PALette
<palette> (see page 381)

:HARDcopy:PALette? (see page 381)

<palette> ::= {COLor | GRAYscale | NONE}

n/a

:HARDcopy:PRINter:LIS <list> ::= [<printer_spec>] ...

T? (see page 382)

[printer_spec>]

<printer_spec> ::= "<index>,<active>,<name>;"

<index> ::= integer index of printer

<active> ::= {Y | N}

<name> ::= name of printer

:HARDcopy:STARt (see n/a

n/a

page 383)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

97

4 Commands Quick Reference

Table 15 :LISTer Commands Summary

Command

Query

Options and Query Returns

n/a

:LISTer:DATA? (see

<binary_block> ::=

page 386)

comma-separated data with

newlines at the end of each row

:LISTer:DISPlay {{OFF
| 0} | {SBUS1 | ON |
1} | {SBUS2 | 2} | ALL} (see page 387)

:LISTer:DISPlay? (see page 387)

{OFF | SBUS1 | SBUS2 | ALL}

:LISTer:REFerence
<time_ref> (see page 388)

:LISTer:REFerence? (see page 388)

<time_ref> ::= {TRIGger | PREVious}

Table 16 :MARKer Commands Summary

Command

Query

:MARKer:MODE <mode> (see page 391)

:MARKer:MODE? (see page 391)

:MARKer:X1Position
<position>[suffix] (see page 392)

:MARKer:X1Position? (see page 392)

:MARKer:X1Y1source
<source> (see page 393)

:MARKer:X1Y1source? (see page 393)

:MARKer:X2Position
<position>[suffix] (see page 394)

:MARKer:X2Position? (see page 394)

Options and Query Returns
<mode> ::= {OFF | MEASurement | MANual | WAVeform}
<position> ::= X1 cursor position value in NR3 format [suffix] ::= {s | ms | us | ns | ps | Hz | kHz | MHz} <return_value> ::= X1 cursor position value in NR3 format
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# analog channels) in NR1 format <r> ::= 1-2 in NR1 format <return_value> ::= <source>
<position> ::= X2 cursor position value in NR3 format [suffix] ::= {s | ms | us | ns | ps | Hz | kHz | MHz} <return_value> ::= X2 cursor position value in NR3 format

98

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 16 :MARKer Commands Summary (continued)

Command

Query

:MARKer:X2Y2source
<source> (see page 395)

:MARKer:X2Y2source? (see page 395)

n/a
:MARKer:XUNits <mode> (see page 397)
:MARKer:XUNits:USE (see page 398)
:MARKer:Y1Position <position>[suffix] (see page 399)

:MARKer:XDELta? (see page 396)
:MARKer:XUNits? (see page 397)
n/a
:MARKer:Y1Position? (see page 399)

:MARKer:Y2Position
<position>[suffix] (see page 401)

:MARKer:Y2Position? (see page 401)

n/a
:MARKer:YUNits <mode> (see page 404) :MARKer:YUNits:USE (see page 405)

:MARKer:YDELta? (see page 403)
:MARKer:YUNits? (see page 404)
n/a

Options and Query Returns <source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# analog channels) in NR1 format <r> ::= 1-2 in NR1 format <return_value> ::= <source>
<return_value> ::= X cursors delta value in NR3 format
<units> ::= {SEConds | HERTz | DEGRees | PERCent}
n/a
<position> ::= Y1 cursor position value in NR3 format [suffix] ::= {V | mV | dB} <return_value> ::= Y1 cursor position value in NR3 format
<position> ::= Y2 cursor position value in NR3 format [suffix] ::= {V | mV | dB} <return_value> ::= Y2 cursor position value in NR3 format
<return_value> ::= Y cursors delta value in NR3 format
<units> ::= {BASE | PERCent}
n/a

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

99

4 Commands Quick Reference

Table 17 :MEASure Commands Summary

Command

Query

Options and Query Returns

:MEASure:ALL (see

n/a

n/a

page 422)

:MEASure:AREa
[<interval>][,][<sour ce>] (see page 423)

:MEASure:AREa?
[<interval>][,][<sour ce>] (see page 423)

<interval> ::= {CYCLe | DISPlay}
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= area in volt-seconds, NR3 format

:MEASure:BRATe
[<source>] (see page 424)

:MEASure:BRATe?
[<source>] (see page 424)

<source> ::= {<digital channels> | CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<digital channels> ::= DIGital<d> for the MSO models
<d> ::= 0 to (# digital channels - 1) in NR1 format
<n> ::= 1 to (# of analog channels) in NR1 format
<r> ::= 1 to (# ref waveforms) in NR1 format
<return_value> ::= bit rate in Hz, NR3 format

:MEASure:BWIDth
[<source>] (see page 425)

:MEASure:BWIDth?
[<source>] (see page 425)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= burst width in seconds, NR3 format

:MEASure:CLEar (see n/a

n/a

page 426)

100

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 17 :MEASure Commands Summary (continued)

Command

Query

Options and Query Returns

:MEASure:COUNter
[<source>] (see page 427)

:MEASure:COUNter?
[<source>] (see page 427)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | EXTernal} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<return_value> ::= counter frequency in Hertz in NR3 format

:MEASure:DEFine
DELay, <delay
spec>[,<source>] (see page 428)

:MEASure:DEFine?
DELay[,<source>] (see page 429)

<delay spec> ::= <edge_spec1>,<edge_spec2>
edge_spec1 ::= [<slope>]<occurrence>
edge_spec2 ::= [<slope>]<occurrence>
<slope> ::= {+ | -}
<occurrence> ::= integer
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}

:MEASure:DEFine
THResholds,
<threshold
spec>[,<source>] (see page 428)

:MEASure:DEFine?
THResholds[,<source>] (see page 429)

<threshold spec> ::= {STANdard} | {<threshold mode>,<upper>, <middle>,<lower>}
<threshold mode> ::= {PERCent | ABSolute}
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}

:MEASure:DELay
[<source1>]
[,<source2>] (see page 431)

:MEASure:DELay?
[<source1>]
[,<source2>] (see page 431)

<source1,2> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= floating-point number delay time in seconds in NR3 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

101

4 Commands Quick Reference

Table 17 :MEASure Commands Summary (continued)

Command

Query

Options and Query Returns

:MEASure:DUAL:CHARge
[<interval>]
[,<source1>][,<source 2>] (see page 433)

:MEASure:DUAL:CHARge?
[<interval>]
[,<source1>][,<source 2>] (see page 433)

<interval> ::= {CYCLe | DISPlay}
<source1>,<source2> ::= CHANnel<n> with N2820A probe connected}
<n> ::= 1 to (# analog channels) in NR1 format
<return_value> ::= area in Amp-hours, NR3 format

:MEASure:DUAL:VAMPlit
ude
[<source1>][,<source2 >] (see page 434)

:MEASure:DUAL:VAMPlit
ude?
[<source1>][,<source2 >] (see page 434)

<source1>,<source2> ::= CHANnel<n> with N2820A probe connected
<n> ::= 1 to (# analog channels) in NR1 format
<return_value> ::= the amplitude of the selected waveform in volts in NR3 format

:MEASure:DUAL:VAVerag
e [<interval>]
[,<source1>][,<source 2>] (see page 435)

:MEASure:DUAL:VAVerag
e? [<interval>]
[,<source1>][,<source 2>] (see page 435)

<interval> ::= {CYCLe | DISPlay}
<source1>,<source2> ::= CHANnel<n> with N2820A probe connected
<n> ::= 1 to (# analog channels) in NR1 format
<return_value> ::= calculated average voltage in NR3 format

:MEASure:DUAL:VBASe
[<source1>][,<source2 >] (see page 436)

:MEASure:DUAL:VBASe?
[<source1>][,<source2 >] (see page 436)

<source1>,<source2> ::= CHANnel<n> with N2820A probe connected
<n> ::= 1 to (# analog channels) in NR1 format
<base_voltage> ::= voltage at the base of the selected waveform in NR3 format

:MEASure:DUAL:VPP
[<source1>][,<source2 >] (see page 437)

:MEASure:DUAL:VPP?
[<source1>][,<source2 >] (see page 437)

<source1>,<source2> ::= CHANnel<n> with N2820A probe connected
<n> ::= 1 to (# analog channels) in NR1 format
<return_value> ::= voltage peak-to-peak of the selected waveform in NR3 format

102

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 17 :MEASure Commands Summary (continued)

Command

Query

Options and Query Returns

:MEASure:DUAL:VRMS
[<interval>]
[,<type>]
[,<source1>][,<source 2>] (see page 438)

:MEASure:DUAL:VRMS?
[<interval>]
[,<type>]
[,<source1>][,<source 2>] (see page 438)

<interval> ::= {CYCLe | DISPlay}
<type> ::= {AC | DC}
<source1>,<source2> ::= CHANnel<n> with N2820A probe connected
<n> ::= 1 to (# analog channels) in NR1 format
<return_value> ::= calculated RMS voltage in NR3 format

:MEASure:DUTYcycle
[<source>] (see page 439)

:MEASure:DUTYcycle?
[<source>] (see page 439)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<return_value> ::= ratio of positive pulse width to period in NR3 format

:MEASure:FALLtime
[<source>] (see page 440)

:MEASure:FALLtime?
[<source>] (see page 440)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<return_value> ::= time in seconds between the lower and upper thresholds in NR3 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

103

4 Commands Quick Reference

Table 17 :MEASure Commands Summary (continued)

Command

Query

:MEASure:FREQuency
[<source>] (see page 441)

:MEASure:FREQuency?
[<source>] (see page 441)

:MEASure:NDUTy
[<source>] (see page 442)

:MEASure:NDUTy?
[<source>] (see page 442)

:MEASure:NEDGes
[<source>] (see page 443)

:MEASure:NEDGes?
[<source>] (see page 443)

Options and Query Returns
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<return_value> ::= frequency in Hertz in NR3 format
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1 to (# ref waveforms) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<return_value> ::= ratio of negative pulse width to period in NR3 format
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the falling edge count in NR3 format

104

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 17 :MEASure Commands Summary (continued)

Command

Query

:MEASure:NPULses
[<source>] (see page 444)

:MEASure:NPULses?
[<source>] (see page 444)

:MEASure:NWIDth
[<source>] (see page 445)

:MEASure:NWIDth?
[<source>] (see page 445)

:MEASure:OVERshoot
[<source>] (see page 446)

:MEASure:OVERshoot?
[<source>] (see page 446)

:MEASure:PEDGes
[<source>] (see page 448)

:MEASure:PEDGes?
[<source>] (see page 448)

Options and Query Returns
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the falling pulse count in NR3 format
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<return_value> ::= negative pulse width in seconds-NR3 format
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the percent of the overshoot of the selected waveform in NR3 format
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the rising edge count in NR3 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

105

4 Commands Quick Reference

Table 17 :MEASure Commands Summary (continued)

Command

Query

:MEASure:PERiod
[<source>] (see page 449)

:MEASure:PERiod?
[<source>] (see page 449)

:MEASure:PHASe
[<source1>]
[,<source2>] (see page 450)

:MEASure:PHASe?
[<source1>]
[,<source2>] (see page 450)

:MEASure:PPULses
[<source>] (see page 451)

:MEASure:PPULses?
[<source>] (see page 451)

:MEASure:PREShoot
[<source>] (see page 452)

:MEASure:PREShoot?
[<source>] (see page 452)

Options and Query Returns
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<return_value> ::= waveform period in seconds in NR3 format
<source1,2> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the phase angle value in degrees in NR3 format
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the rising pulse count in NR3 format
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the percent of preshoot of the selected waveform in NR3 format

106

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 17 :MEASure Commands Summary (continued)

Command

Query

:MEASure:PWIDth
[<source>] (see page 453)

:MEASure:PWIDth?
[<source>] (see page 453)

n/a
:MEASure:RISetime [<source>] (see page 457)

:MEASure:RESults? <result_list> (see page 454)
:MEASure:RISetime? [<source>] (see page 457)

:MEASure:SDEViation
[<source>] (see page 458)

:MEASure:SDEViation?
[<source>] (see page 458)

:MEASure:SHOW {1 | ON} (see page 459)

:MEASure:SHOW? (see page 459)

Options and Query Returns
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<return_value> ::= width of positive pulse in seconds in NR3 format
<result_list> ::= comma-separated list of measurement results
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= rise time in seconds in NR3 format
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= calculated std deviation in NR3 format
{1}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

107

4 Commands Quick Reference

Table 17 :MEASure Commands Summary (continued)

Command

Query

Options and Query Returns

:MEASure:SOURce
<source1>
[,<source2>] (see page 460)

:MEASure:SOURce? (see page 460)

<source1,2> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r> | EXTernal} for DSO models
<source1,2> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r> | EXTernal} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<return_value> ::= {<source> | NONE}

:MEASure:STATistics <type> (see page 462)

:MEASure:STATistics? (see page 462)

<type> ::= {{ON | 1} | CURRent | MEAN | MINimum | MAXimum | STDDev | COUNt}
ON ::= all statistics returned

:MEASure:STATistics:D
ISPlay {{0 | OFF} |
{1 | ON}} (see page 463)

:MEASure:STATistics:D ISPlay? (see page 463)

{0 | 1}

:MEASure:STATistics:I n/a

n/a

NCRement (see page 464)

:MEASure:STATistics:M
COunt <setting> (see page 465)

:MEASure:STATistics:M COunt? (see page 465)

<setting> ::= {INFinite | <count>}
<count> ::= 2 to 2000 in NR1 format

:MEASure:STATistics:R n/a

n/a

ESet (see page 466)

:MEASure:STATistics:R
SDeviation {{0 | OFF}
| {1 | ON}} (see page 467)

:MEASure:STATistics:R
SDeviation? (see page 467)

{0 | 1}

108

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 17 :MEASure Commands Summary (continued)

Command

Query

Options and Query Returns

n/a

:MEASure:TEDGe?

<slope> ::= direction of the

<slope><occurrence>[, waveform

<source>] (see page 468)

<occurrence> ::= the transition to be reported

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} for DSO models

<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models

<n> ::= 1 to (# analog channels) in NR1 format

<r> ::= 1-2 in NR1 format

<d> ::= 0 to (# digital channels - 1) in NR1 format

<return_value> ::= time in seconds of the specified transition

n/a

:MEASure:TVALue?

<value> ::= voltage level that

<value>,

the waveform must cross.

[<slope>]<occurrence>
[,<source>] (see page 470)

<slope> ::= direction of the waveform when <value> is crossed.
<occurrence> ::= transitions

reported.

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} for DSO models

<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models

<n> ::= 1 to (# analog channels) in NR1 format

<r> ::= 1-2 in NR1 format

<d> ::= 0 to (# digital channels - 1) in NR1 format

<return_value> ::= time in seconds of specified voltage crossing in NR3 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

109

4 Commands Quick Reference

Table 17 :MEASure Commands Summary (continued)

Command

Query

Options and Query Returns

:MEASure:VAMPlitude
[<source>] (see page 472)

:MEASure:VAMPlitude?
[<source>] (see page 472)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the amplitude of the selected waveform in volts in NR3 format

:MEASure:VAVerage
[<interval>][,][<sour ce>] (see page 473)

:MEASure:VAVerage?
[<interval>][,][<sour ce>] (see page 473)

<interval> ::= {CYCLe | DISPlay}
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= calculated average voltage in NR3 format

:MEASure:VBASe
[<source>] (see page 474)

:MEASure:VBASe?
[<source>] (see page 474)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<base_voltage> ::= voltage at the base of the selected waveform in NR3 format

:MEASure:VMAX
[<source>] (see page 475)

:MEASure:VMAX?
[<source>] (see page 475)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= maximum voltage of the selected waveform in NR3 format

:MEASure:VMIN
[<source>] (see page 476)

:MEASure:VMIN?
[<source>] (see page 476)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= minimum voltage of the selected waveform in NR3 format

110

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 17 :MEASure Commands Summary (continued)

Command

Query

Options and Query Returns

:MEASure:VPP
[<source>] (see page 477)

:MEASure:VPP?
[<source>] (see page 477)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= voltage peak-to-peak of the selected waveform in NR3 format

:MEASure:VRATio
[<interval>][,][<sour
ce1>] [,<source2>] (see page 478)

:MEASure:VRATio?
[<interval>][,][<sour
ce1>] [,<source2>] (see page 478)

<interval> ::= {CYCLe | DISPlay}
<source1,2> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the ratio value in dB in NR3 format

:MEASure:VRMS
[<interval>][,]
[<type>][,]
[<source>] (see page 479)

:MEASure:VRMS?
[<interval>][,]
[<type>][,]
[<source>] (see page 479)

<interval> ::= {CYCLe | DISPlay} <type> ::= {AC | DC} <source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# analog channels) in NR1 format <r> ::= 1-2 in NR1 format <return_value> ::= calculated dc RMS voltage in NR3 format

n/a

:MEASure:VTIMe?

<vtime> ::= displayed time from

<vtime>[,<source>] (see page 480)

trigger in seconds in NR3 format <source> ::= {CHANnel<n> |

FUNCtion | MATH | WMEMory<r>} for

DSO models

<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models

<n> ::= 1 to (# analog channels) in NR1 format

<r> ::= 1-2 in NR1 format

<d> ::= 0 to (# digital channels - 1) in NR1 format

<return_value> ::= voltage at the specified time in NR3 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

111

4 Commands Quick Reference

Table 17 :MEASure Commands Summary (continued)

Command

Query

Options and Query Returns

:MEASure:VTOP
[<source>] (see page 481)

:MEASure:VTOP?
[<source>] (see page 481)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= voltage at the top of the waveform in NR3 format

:MEASure:WINDow

:MEASure:WINDow? (see <type> ::= {MAIN | ZOOM | AUTO}

<type> (see page 482) page 482)

:MEASure:XMAX
[<source>] (see page 483)

:MEASure:XMAX?
[<source>] (see page 483)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= horizontal value of the maximum in NR3 format

:MEASure:XMIN
[<source>] (see page 484)

:MEASure:XMIN?
[<source>] (see page 484)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= horizontal value of the maximum in NR3 format

Table 18 :MTESt Commands Summary

Command

Query

:MTESt:ALL {{0 | OFF}
| {1 | ON}} (see page 510)

:MTESt:ALL? (see page 510)

:MTESt:AMASk:CREate n/a (see page 511)

:MTESt:AMASk:SOURce
<source> (see page 512)

:MTESt:AMASk:SOURce? (see page 512)

Options and Query Returns {0 | 1}
n/a
<source> ::= CHANnel<n> <n> ::= {1 | 2 | 3 | 4} for 4ch models <n> ::= {1 | 2} for 2ch models

112

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 18 :MTESt Commands Summary (continued)

Command

Query

Options and Query Returns

:MTESt:AMASk:UNITs

:MTESt:AMASk:UNITs?

<units> (see page 513) (see page 513)

<units> ::= {CURRent | DIVisions}

:MTESt:AMASk:XDELta :MTESt:AMASk:XDELta? <value> ::= X delta value in NR3

<value> (see page 514) (see page 514)

format

:MTESt:AMASk:YDELta :MTESt:AMASk:YDELta? <value> ::= Y delta value in NR3

<value> (see page 515) (see page 515)

format

n/a

:MTESt:COUNt:FWAVefor <failed> ::= number of failed

ms? [CHANnel<n>] (see waveforms in NR1 format page 516)

:MTESt:COUNt:RESet

n/a

n/a

(see page 517)

n/a

:MTESt:COUNt:TIME?

<time> ::= elapsed seconds in NR3

(see page 518)

format

n/a

:MTESt:COUNt:WAVeform <count> ::= number of waveforms

s? (see page 519)

in NR1 format

:MTESt:DATA <mask> (see page 520)

:MTESt:DATA? (see page 520)

<mask> ::= data in IEEE 488.2 # format.

:MTESt:DELete (see

n/a

n/a

page 521)

:MTESt:ENABle {{0 |
OFF} | {1 | ON}} (see page 522)

:MTESt:ENABle? (see page 522)

{0 | 1}

:MTESt:LOCK {{0 |
OFF} | {1 | ON}} (see page 523)

:MTESt:LOCK? (see page 523)

{0 | 1}

:MTESt:RMODe <rmode> :MTESt:RMODe? (see

(see page 524)

page 524)

<rmode> ::= {FORever | TIME | SIGMa | WAVeforms}

:MTESt:RMODe:FACTion:
MEASure {{0 | OFF} |
{1 | ON}} (see page 525)

:MTESt:RMODe:FACTion:
MEASure? (see page 525)

{0 | 1}

:MTESt:RMODe:FACTion: :MTESt:RMODe:FACTion: {0 | 1} PRINt {{0 | OFF} | {1 PRINt? (see page 526) | ON}} (see page 526)

:MTESt:RMODe:FACTion: :MTESt:RMODe:FACTion: {0 | 1} SAVE {{0 | OFF} | {1 SAVE? (see page 527) | ON}} (see page 527)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

113

4 Commands Quick Reference

Table 18 :MTESt Commands Summary (continued)

Command

Query

Options and Query Returns

:MTESt:RMODe:FACTion: :MTESt:RMODe:FACTion: {0 | 1} STOP {{0 | OFF} | {1 STOP? (see page 528) | ON}} (see page 528)

:MTESt:RMODe:SIGMa

:MTESt:RMODe:SIGMa?

<level> (see page 529) (see page 529)

<level> ::= from 0.1 to 9.3 in NR3 format

:MTESt:RMODe:TIME
<seconds> (see page 530)

:MTESt:RMODe:TIME? (see page 530)

<seconds> ::= from 1 to 86400 in NR3 format

:MTESt:RMODe:WAVeform :MTESt:RMODe:WAVeform <count> ::= number of waveforms

s <count> (see

s? (see page 531)

in NR1 format

page 531)

:MTESt:SCALe:BIND {{0
| OFF} | {1 | ON}} (see page 532)

:MTESt:SCALe:BIND? (see page 532)

{0 | 1}

:MTESt:SCALe:X1
<x1_value> (see page 533)

:MTESt:SCALe:X1? (see <x1_value> ::= X1 value in NR3

page 533)

format

:MTESt:SCALe:XDELta
<xdelta_value> (see page 534)

:MTESt:SCALe:XDELta? <xdelta_value> ::= X delta value

(see page 534)

in NR3 format

:MTESt:SCALe:Y1
<y1_value> (see page 535)

:MTESt:SCALe:Y1? (see <y1_value> ::= Y1 value in NR3

page 535)

format

:MTESt:SCALe:Y2
<y2_value> (see page 536)

:MTESt:SCALe:Y2? (see <y2_value> ::= Y2 value in NR3

page 536)

format

:MTESt:SOURce
<source> (see page 537)

:MTESt:SOURce? (see page 537)

<source> ::= {CHANnel<n> | NONE} <n> ::= {1 | 2 | 3 | 4} for 4ch models <n> ::= {1 | 2} for 2ch models

n/a

:MTESt:TITLe? (see

<title> ::= a string of up to 128

page 538)

ASCII characters

114

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 19 :POD<n> Commands Summary

Command

Query

Options and Query Returns

:POD<n>:DISPlay {{0 |
OFF} | {1 | ON}} (see page 541)

:POD<n>:DISPlay? (see page 541)

{0 | 1} <n> ::= 1-2 in NR1 format

:POD<n>:SIZE <value> :POD<n>:SIZE? (see

(see page 542)

page 542)

<value> ::= {SMALl | MEDium | LARGe}

:POD<n>:THReshold
<type>[suffix] (see page 543)

:POD<n>:THReshold? (see page 543)

<n> ::= 1-2 in NR1 format
<type> ::= {CMOS | ECL | TTL | <user defined value>}
<user defined value> ::= value in NR3 format
[suffix] ::= {V | mV | uV }

Table 20 :POWer Commands Summary

Command

Query

Options and Query Returns

:POWer:DESKew (see

n/a

n/a

page 551)

:POWer:EFFiciency:APP n/a

n/a

Ly (see page 552)

:POWer:ENABle {{0 |
OFF} | {1 | ON}} (see page 553)

:POWer:ENABle? (see page 553)

{0 | 1}

:POWer:HARMonics:APPL n/a

n/a

y (see page 554)

n/a

:POWer:HARMonics:DATA <binary_block> ::=

? (see page 555)

comma-separated data with

newlines at the end of each row

:POWer:HARMonics:DISP :POWer:HARMonics:DISP <display> ::= {TABLe | BAR | OFF}

lay <display> (see

lay? (see page 556)

page 556)

n/a

:POWer:HARMonics:FAIL <count> ::= integer in NR1 format

count? (see page 557)

:POWer:HARMonics:LINE :POWer:HARMonics:LINE <frequency> ::= {F50 | F60 |

<frequency> (see

? (see page 558)

F400}

page 558)

n/a

:POWer:HARMonics:POWe <value> ::= Class C power factor

rfactor? (see page 559)

in NR3 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

115

4 Commands Quick Reference

Table 20 :POWer Commands Summary (continued)

Command

Query

Options and Query Returns

n/a

:POWer:HARMonics:RUNC <count> ::= integer in NR1 format

ount? (see page 560)

:POWer:HARMonics:STAN :POWer:HARMonics:STAN <class> ::= {A | B | C | D}

dard <class> (see

dard? (see page 561)

page 561)

n/a

:POWer:HARMonics:STAT <status> ::= {PASS | FAIL |

us? (see page 562)

UNTested}

n/a

:POWer:HARMonics:THD? <value> ::= Total Harmonics

(see page 563)

Distortion in NR3 format

:POWer:INRush:APPLy n/a

n/a

(see page 564)

:POWer:INRush:EXIT

n/a

n/a

(see page 565)

:POWer:INRush:NEXT

n/a

n/a

(see page 566)

:POWer:MODulation:APP n/a

n/a

Ly (see page 567)

:POWer:MODulation:SOU :POWer:MODulation:SOU <source> ::= {V | I}

Rce <source> (see

Rce? (see page 568)

page 568)

:POWer:MODulation:TYP
E <modulation> (see page 569)

:POWer:MODulation:TYP E? (see page 569)

<modulation> ::= {VAVerage | ACRMs | VRATio | PERiod | FREQuency | PWIDith | NWIDth | DUTYcycle | RISetime | FALLtime}

:POWer:ONOFf:APPLy

n/a

n/a

(see page 570)

:POWer:ONOFf:EXIT

n/a

n/a

(see page 571)

:POWer:ONOFf:NEXT

n/a

n/a

(see page 572)

:POWer:ONOFf:TEST {{0
| OFF} | {1 | ON}} (see page 573)

:POWer:ONOFf:TEST? (see page 573)

{0 | 1}

:POWer:PSRR:APPLy

n/a

n/a

(see page 574)

:POWer:PSRR:FREQuency
:MAXimum
<value>[suffix] (see page 575)

:POWer:PSRR:FREQuency
:MAXimum? (see page 575)

<value> ::= {10 | 100 | 1000 | 10000 | 100000 | 1000000 | 10000000 | 20000000}
[suffix] ::= {Hz | kHz| MHz}

116

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 20 :POWer Commands Summary (continued)

Command

Query

Options and Query Returns

:POWer:PSRR:FREQuency
:MINimum
<value>[suffix] (see page 576)

:POWer:PSRR:FREQuency
:MINimum? (see page 576)

<value> ::= {1 | 10 | 100 | 1000 | 10000 | 100000 | 1000000 | 10000000}
[suffix] ::= {Hz | kHz| MHz}

:POWer:PSRR:RMAXimum :POWer:PSRR:RMAXimum? <value> ::= Maximum ratio value

<value> (see page 577) (see page 577)

in NR1 format

:POWer:QUALity:APPLy n/a

n/a

(see page 578)

:POWer:QUALity:TYPE
<quality> (see page 579)

:POWer:QUALity:TYPE? (see page 579)

<quality> ::= {FACTor | REAL | APParent | REACtive | CRESt | ANGLe}

:POWer:RIPPle:APPLy n/a

n/a

(see page 580)

:POWer:SIGNals:AUTose n/a
tup <analysis> (see page 581)

<analysis> ::= {HARMonics | EFFiciency | RIPPle | MODulation | QUALity | SLEW | SWITch}

:POWer:SIGNals:CYCLes :POWer:SIGNals:CYCLes <count> ::= integer in NR1 format

:HARMonics <count> (see page 582)

:HARMonics? (see page 582)

Legal values are 1 to 100.

:POWer:SIGNals:CYCLes :POWer:SIGNals:CYCLes <count> ::= integer in NR1 format

:QUALity <count> (see :QUALity? (see

page 583)

page 583)

Legal values are 1 to 100.

:POWer:SIGNals:DURati
on:EFFiciency
<value>[suffix] (see page 584)

:POWer:SIGNals:DURati
on:EFFiciency? (see page 584)

<value> ::= value in NR3 format [suffix] ::= {s | ms | us | ns}

:POWer:SIGNals:DURati
on:MODulation
<value>[suffix] (see page 585)

:POWer:SIGNals:DURati
on:MODulation? (see page 585)

<value> ::= value in NR3 format [suffix] ::= {s | ms | us | ns}

:POWer:SIGNals:DURati
on:ONOFf:OFF
<value>[suffix] (see page 586)

:POWer:SIGNals:DURati
on:ONOFf:OFF? (see page 586)

<value> ::= value in NR3 format [suffix] ::= {s | ms | us | ns}

:POWer:SIGNals:DURati
on:ONOFf:ON
<value>[suffix] (see page 587)

:POWer:SIGNals:DURati
on:ONOFf:ON? (see page 587)

<value> ::= value in NR3 format [suffix] ::= {s | ms | us | ns}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

117

4 Commands Quick Reference

Table 20 :POWer Commands Summary (continued)

Command

Query

Options and Query Returns

:POWer:SIGNals:DURati
on:RIPPle
<value>[suffix] (see page 588)

:POWer:SIGNals:DURati
on:RIPPle? (see page 588)

<value> ::= value in NR3 format [suffix] ::= {s | ms | us | ns}

:POWer:SIGNals:DURati
on:TRANsient
<value>[suffix] (see page 589)

:POWer:SIGNals:DURati
on:TRANsient? (see page 589)

<value> ::= value in NR3 format [suffix] ::= {s | ms | us | ns}

:POWer:SIGNals:IEXPec :POWer:SIGNals:IEXPec <value> ::= Expected current

ted <value>[suffix] ted? (see page 590)

value in NR3 format

(see page 590)

[suffix] ::= {A | mA}

:POWer:SIGNals:OVERsh :POWer:SIGNals:OVERsh <percent> ::= percent of

oot <percent> (see

oot? (see page 591)

overshoot value in NR1 format

page 591)

[suffix] ::= {V | mV}}

:POWer:SIGNals:VMAXim
um:INRush
<value>[suffix] (see page 592)

:POWer:SIGNals:VMAXim
um:INRush? (see page 592)

<value> ::= Maximum expected input Voltage in NR3 format
[suffix] ::= {V | mV}

:POWer:SIGNals:VMAXim
um:ONOFf:OFF
<value>[suffix] (see page 593)

:POWer:SIGNals:VMAXim
um:ONOFf:OFF? (see page 593)

<value> ::= Maximum expected input Voltage in NR3 format
[suffix] ::= {V | mV}

:POWer:SIGNals:VMAXim
um:ONOFf:ON
<value>[suffix] (see page 594)

:POWer:SIGNals:VMAXim
um:ONOFf:ON? (see page 594)

<value> ::= Maximum expected input Voltage in NR3 format
[suffix] ::= {V | mV}

:POWer:SIGNals:VSTead
y:ONOFf:OFF
<value>[suffix] (see page 595)

:POWer:SIGNals:VSTead
y:ONOFf:OFF? (see page 595)

<value> ::= Expected steady stage output Voltage value in NR3 format
[suffix] ::= {V | mV}

:POWer:SIGNals:VSTead
y:ONOFf:ON
<value>[suffix] (see page 596)

:POWer:SIGNals:VSTead
y:ONOFf:ON? (see page 596)

<value> ::= Expected steady stage output Voltage value in NR3 format
[suffix] ::= {V | mV}

:POWer:SIGNals:VSTead
y:TRANsient
<value>[suffix] (see page 597)

:POWer:SIGNals:VSTead
y:TRANsient? (see page 597)

<value> ::= Expected steady stage output Voltage value in NR3 format
[suffix] ::= {V | mV}

118

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 20 :POWer Commands Summary (continued)

Command

Query

Options and Query Returns

:POWer:SIGNals:SOURce
:CURRent<i> <source> (see page 598)

:POWer:SIGNals:SOURce
:CURRent<i>? (see page 598)

<i> ::= 1, 2 in NR1 format <source> ::= CHANnel<n> <n> ::= 1 to (# analog channels) in NR1 format

:POWer:SIGNals:SOURce
:VOLTage<i> <source> (see page 599)

:POWer:SIGNals:SOURce
:VOLTage<i>? (see page 599)

<i> ::= 1, 2 in NR1 format <source> ::= CHANnel<n> <n> ::= 1 to (# analog channels) in NR1 format

:POWer:SLEW:APPLy

n/a

n/a

(see page 600)

:POWer:SLEW:SOURce
<source> (see page 601)

:POWer:SLEW:SOURce? (see page 601)

<source> ::= {V | I}

:POWer:SWITch:APPLy n/a

n/a

(see page 602)

:POWer:SWITch:CONDuct :POWer:SWITch:CONDuct <conduction> ::= {WAVeform | RDS

ion <conduction> (see ion? (see page 603)

| VCE}

page 603)

:POWer:SWITch:IREFere :POWer:SWITch:IREFere <percent> ::= percent in NR1

nce <percent> (see

nce? (see page 604)

format

page 604)

:POWer:SWITch:RDS
<value>[suffix] (see page 605)

:POWer:SWITch:RDS? (see page 605)

<value> ::= Rds(on) value in NR3 format
[suffix] ::= {OHM | mOHM}

:POWer:SWITch:VCE
<value>[suffix] (see page 606)

:POWer:SWITch:VCE? (see page 606)

<value> ::= Vce(sat) value in NR3 format
[suffix] ::= {V | mV}

:POWer:SWITch:VREFere :POWer:SWITch:VREFere <percent> ::= percent in NR1

nce <percent> (see

nce? (see page 607)

format

page 607)

:POWer:TRANsient:APPL n/a

n/a

y (see page 608)

:POWer:TRANsient:EXIT n/a

n/a

(see page 609)

:POWer:TRANsient:IINi :POWer:TRANsient:IINi <value> ::= Initial current value

tial <value>[suffix] tial? (see page 610)

in NR3 format

(see page 610)

[suffix] ::= {A | mA}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

119

4 Commands Quick Reference

Table 20 :POWer Commands Summary (continued)

Command

Query

Options and Query Returns

:POWer:TRANsient:INEW :POWer:TRANsient:INEW <value> ::= New current value in

<value>[suffix] (see ? (see page 611)

NR3 format

page 611)

[suffix] ::= {A | mA}

:POWer:TRANsient:NEXT n/a

n/a

(see page 612)

Table 21 :RECall Commands Summary

Command

Query

:RECall:ARBitrary:[ST n/a
ARt] [<file_spec>][,
<column>] (see page 615)

:RECall:FILename <base_name> (see page 616)
:RECall:MASK[:STARt] [<file_spec>] (see page 617)

:RECall:FILename? (see page 616)
n/a

:RECall:PWD
<path_name> (see page 618)

:RECall:PWD? (see page 618)

Options and Query Returns
<file_spec> ::= {<internal_loc> | <file_name>} <column> ::= Column in CSV file to load. Column number starts from 1. <internal_loc> ::= 0-3; an integer in NR1 format <file_name> ::= quoted ASCII string
<base_name> ::= quoted ASCII string
<file_spec> ::= {<internal_loc> | <file_name>} <internal_loc> ::= 0-3; an integer in NR1 format <file_name> ::= quoted ASCII string
<path_name> ::= quoted ASCII string

120

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 21 :RECall Commands Summary (continued)

Command

Query

:RECall:SETup[:STARt] n/a
[<file_spec>] (see page 619)

:RECall:WMEMory<r>[:S n/a
TARt] [<file_name>] (see page 620)

Options and Query Returns
<file_spec> ::= {<internal_loc> | <file_name>} <internal_loc> ::= 0-9; an integer in NR1 format <file_name> ::= quoted ASCII string
<r> ::= 1-2 in NR1 format <file_name> ::= quoted ASCII string If extension included in file name, it must be ".h5".

Table 22 :SAVE Commands Summary

Command

Query

Options and Query Returns

:SAVE:ARBitrary:[STAR n/a
t] [<file_spec>] (see page 624)

<file_spec> ::= {<internal_loc> | <file_name>}
<internal_loc> ::= 0-3; an integer in NR1 format
<file_name> ::= quoted ASCII string

:SAVE:FILename
<base_name> (see page 625)

:SAVE:FILename? (see <base_name> ::= quoted ASCII

page 625)

string

:SAVE:IMAGe[:STARt] n/a
[<file_name>] (see page 626)

<file_name> ::= quoted ASCII string

:SAVE:IMAGe:FACTors
{{0 | OFF} | {1 | ON}} (see page 627)

:SAVE:IMAGe:FACTors? {0 | 1} (see page 627)

:SAVE:IMAGe:FORMat
<format> (see page 628)

:SAVE:IMAGe:FORMat? (see page 628)

<format> ::= {{BMP | BMP24bit} | BMP8bit | PNG | NONE}

:SAVE:IMAGe:INKSaver
{{0 | OFF} | {1 | ON}} (see page 629)

:SAVE:IMAGe:INKSaver? {0 | 1} (see page 629)

:SAVE:IMAGe:PALette
<palette> (see page 630)

:SAVE:IMAGe:PALette? <palette> ::= {COLor | GRAYscale} (see page 630)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

121

4 Commands Quick Reference

Table 22 :SAVE Commands Summary (continued)

Command

Query

Options and Query Returns

:SAVE:LISTer[:STARt] n/a
[<file_name>] (see page 631)

<file_name> ::= quoted ASCII string

:SAVE:MASK[:STARt]

n/a

[<file_spec>] (see page 632)

<file_spec> ::= {<internal_loc> | <file_name>}
<internal_loc> ::= 0-3; an integer in NR1 format
<file_name> ::= quoted ASCII string

:SAVE:MULTi[:STARt] n/a
[<file_name>] (see page 633)

<file_name> ::= quoted ASCII string

:SAVE:POWer[:STARt] n/a
[<file_name>] (see page 634)

<file_name> ::= quoted ASCII string

:SAVE:PWD <path_name> :SAVE:PWD? (see

(see page 635)

page 635)

<path_name> ::= quoted ASCII string

:SAVE:SETup[:STARt] n/a
[<file_spec>] (see page 636)

<file_spec> ::= {<internal_loc> | <file_name>}
<internal_loc> ::= 0-9; an integer in NR1 format
<file_name> ::= quoted ASCII string

:SAVE:WAVeform[:STARt n/a
] [<file_name>] (see page 637)

<file_name> ::= quoted ASCII string

:SAVE:WAVeform:FORMat :SAVE:WAVeform:FORMat <format> ::= {ASCiixy | CSV |

<format> (see

? (see page 638)

BINary | NONE}

page 638)

:SAVE:WAVeform:LENGth :SAVE:WAVeform:LENGth <length> ::= 100 to max. length;

<length> (see

? (see page 639)

an integer in NR1 format

page 639)

:SAVE:WAVeform:LENGth :SAVE:WAVeform:LENGth {0 | 1} :MAX {{0 | OFF} | {1 :MAX? (see page 640) | ON}} (see page 640)

:SAVE:WAVeform:SEGMen :SAVE:WAVeform:SEGMen <option> ::= {ALL | CURRent}

ted <option> (see

ted? (see page 641)

page 641)

122

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 22 :SAVE Commands Summary (continued)

Command

Query

Options and Query Returns

:SAVE:WMEMory:SOURce
<source> (see page 642)

:SAVE:WMEMory:SOURce? (see page 642)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
NOTE: Only ADD or SUBtract math operations can be saved as reference waveforms.
<return_value> ::= <source>

:SAVE:WMEMory[:STARt] n/a
[<file_name>] (see page 643)

<file_name> ::= quoted ASCII string
If extension included in file name, it must be ".h5".

Table 23 General :SBUS<n> Commands Summary

Command

Query

:SBUS<n>:DISPlay {{0
| OFF} | {1 | ON}} (see page 648)

:SBUS<n>:DISPlay? (see page 648)

:SBUS<n>:MODE <mode> :SBUS<n>:MODE? (see

(see page 649)

page 649)

Options and Query Returns {0 | 1}
<mode> ::= {A429 | CAN | FLEXray | I2S | IIC | LIN | M1553 | SPI | UART}

Table 24 :SBUS<n>:A429 Commands Summary

Command

Query

Options and Query Returns

:SBUS<n>:A429:AUToset n/a

n/a

up (see page 652)

:SBUS<n>:A429:BASE

:SBUS<n>:A429:BASE?

<base> (see page 653) (see page 653)

<base> ::= {BINary | HEX}

n/a

:SBUS<n>:A429:COUNt:E <error_count> ::= integer in NR1

RRor? (see page 654)

format

:SBUS<n>:A429:COUNt:R n/a

n/a

ESet (see page 655)

n/a

:SBUS<n>:A429:COUNt:W <word_count> ::= integer in NR1

ORD? (see page 656)

format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

123

4 Commands Quick Reference

Table 24 :SBUS<n>:A429 Commands Summary (continued)

Command

Query

Options and Query Returns

:SBUS<n>:A429:FORMat
<format> (see page 657)

:SBUS<n>:A429:FORMat? <format> ::= {LDSDi | LDSSm |

(see page 657)

LDATa}

:SBUS<n>:A429:SIGNal
<signal> (see page 658)

:SBUS<n>:A429:SIGNal? <signal> ::= {A | B |

(see page 658)

DIFFerential}

:SBUS<n>:A429:SOURce
<source> (see page 659)

:SBUS<n>:A429:SOURce? <source> ::= {CHANnel<n>}

(see page 659)

<n> ::= 1 to (# analog channels)

in NR1 format

:SBUS<n>:A429:SPEed :SBUS<n>:A429:SPEed? <speed> ::= {LOW | HIGH} <speed> (see page 660) (see page 660)

:SBUS<n>:A429:TRIGger
:LABel <value> (see page 661)

:SBUS<n>:A429:TRIGger :LABel? (see page 661)

<value> ::= 8-bit integer in decimal, <hex>, <octal>, or <string> from 0-255 or "0xXX" (don't care)
<hex> ::= #Hnn where n ::= {0,..,9 | A,..,F}
<octal> ::= #Qnnn where n ::= {0,..,7}
<string> ::= "0xnn" where n::= {0,..,9 | A,..,F}

:SBUS<n>:A429:TRIGger
:PATTern:DATA
<string> (see page 662)

:SBUS<n>:A429:TRIGger
:PATTern:DATA? (see page 662)

<string> ::= "nn...n" where n ::= {0 | 1 | X}, length depends on FORMat

:SBUS<n>:A429:TRIGger :SBUS<n>:A429:TRIGger <string> ::= "nn" where n ::= {0

:PATTern:SDI <string> :PATTern:SDI? (see

(see page 663)

page 663)

| 1 | X}, length always 2 bits

:SBUS<n>:A429:TRIGger :SBUS<n>:A429:TRIGger <string> ::= "nn" where n ::= {0

:PATTern:SSM <string> :PATTern:SSM? (see

(see page 664)

page 664)

| 1 | X}, length always 2 bits

124

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 24 :SBUS<n>:A429 Commands Summary (continued)

Command

Query

Options and Query Returns

:SBUS<n>:A429:TRIGger
:RANGe <min>,<max> (see page 665)

:SBUS<n>:A429:TRIGger :RANGe? (see page 665)

<min> ::= 8-bit integer in decimal, <hex>, <octal>, or <string> from 0-255
<max> ::= 8-bit integer in decimal, <hex>, <octal>, or <string> from 0-255
<hex> ::= #Hnn where n ::= {0,..,9 | A,..,F}
<octal> ::= #Qnnn where n ::= {0,..,7}
<string> ::= "0xnn" where n::= {0,..,9 | A,..,F}

:SBUS<n>:A429:TRIGger
:TYPE <condition> (see page 666)

:SBUS<n>:A429:TRIGger :TYPE? (see page 666)

<condition> ::= {WSTArt | WSTOp | LABel | LBITs | PERRor | WERRor | GERRor | WGERrors | ALLerrors | LRANge | ABITs | AOBits | AZBits}

Table 25 :SBUS<n>:CAN Commands Summary

Command

Query

Options and Query Returns

n/a

:SBUS<n>:CAN:COUNt:ER <frame_count> ::= integer in NR1

Ror? (see page 670)

format

n/a

:SBUS<n>:CAN:COUNt:OV <frame_count> ::= integer in NR1

ERload? (see page 671) format

:SBUS<n>:CAN:COUNt:RE n/a

n/a

Set (see page 672)

n/a

:SBUS<n>:CAN:COUNt:TO <frame_count> ::= integer in NR1

Tal? (see page 673)

format

n/a

:SBUS<n>:CAN:COUNt:UT <percent> ::= floating-point in

ILization? (see page 674)

NR3 format

:SBUS<n>:CAN:SAMPlepo :SBUS<n>:CAN:SAMPlepo <value> ::= {60 | 62.5 | 68 | 70

int <value> (see

int? (see page 675)

| 75 | 80 | 87.5} in NR3 format

page 675)

:SBUS<n>:CAN:SIGNal:B :SBUS<n>:CAN:SIGNal:B <baudrate> ::= integer from 10000

AUDrate <baudrate> (see page 676)

AUDrate? (see page 676)

to 4000000 in 100 b/s increments, or 5000000

:SBUS<n>:CAN:SIGNal:D :SBUS<n>:CAN:SIGNal:D <value> ::= {CANH | CANL | RX |

EFinition <value> (see page 677)

EFinition? (see page 677)

TX | DIFFerential | DIFL | DIFH}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

125

4 Commands Quick Reference

Table 25 :SBUS<n>:CAN Commands Summary (continued)

Command

Query

Options and Query Returns

:SBUS<n>:CAN:SOURce
<source> (see page 678)

:SBUS<n>:CAN:SOURce? (see page 678)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> |} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:CAN:TRIGger
<condition> (see page 679)

:SBUS<n>:CAN:TRIGger? (see page 680)

<condition> ::= {SOF | DATA | ERRor | IDData | IDEither | IDRemote | ALLerrors | OVERload | ACKerror}

:SBUS<n>:CAN:TRIGger:
PATTern:DATA <string> (see page 681)

:SBUS<n>:CAN:TRIGger:
PATTern:DATA? (see page 681)

<string> ::= "nn...n" where n ::= {0 | 1 | X | $}
<string ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $}

:SBUS<n>:CAN:TRIGger:
PATTern:DATA:LENGth
<length> (see page 682)

:SBUS<n>:CAN:TRIGger:
PATTern:DATA:LENGth? (see page 682)

<length> ::= integer from 1 to 8 in NR1 format

:SBUS<n>:CAN:TRIGger:
PATTern:ID <string> (see page 683)

:SBUS<n>:CAN:TRIGger:
PATTern:ID? (see page 683)

<string> ::= "nn...n" where n ::= {0 | 1 | X | $}
<string ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $}

:SBUS<n>:CAN:TRIGger: :SBUS<n>:CAN:TRIGger: <value> ::= {STANdard | EXTended}

PATTern:ID:MODE

PATTern:ID:MODE? (see

<value> (see page 684) page 684)

Table 26 :SBUS<n>:FLEXray Commands Summary

Command

Query

Options and Query Returns

:SBUS<n>:FLEXray:AUTo n/a

n/a

setup (see page 687)

:SBUS<n>:FLEXray:BAUD :SBUS<n>:FLEXray:BAUD <baudrate> ::= {2500000 | 5000000

rate <baudrate> (see rate? (see page 688)

| 10000000}

page 688)

:SBUS<n>:FLEXray:CHAN :SBUS<n>:FLEXray:CHAN <channel> ::= {A | B}

nel <channel> (see

nel? (see page 689)

page 689)

126

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 26 :SBUS<n>:FLEXray Commands Summary (continued)

Command

Query

Options and Query Returns

n/a

:SBUS<n>:FLEXray:COUN <frame_count> ::= integer in NR1

t:NULL? (see page 690) format

:SBUS<n>:FLEXray:COUN n/a

n/a

t:RESet (see page 691)

n/a

:SBUS<n>:FLEXray:COUN <frame_count> ::= integer in NR1

t:SYNC? (see page 692) format

n/a

:SBUS<n>:FLEXray:COUN <frame_count> ::= integer in NR1

t:TOTal? (see page 693)

format

:SBUS<n>:FLEXray:SOUR :SBUS<n>:FLEXray:SOUR <source> ::= {CHANnel<n>}

ce <source> (see page 694)

ce? (see page 694)

<n> ::= 1-2 or 1-4 in NR1 format

:SBUS<n>:FLEXray:TRIG :SBUS<n>:FLEXray:TRIG <condition> ::= {FRAMe | ERRor |

ger <condition> (see ger? (see page 695)

EVENt}

page 695)

:SBUS<n>:FLEXray:TRIG
ger:ERRor:TYPE
<error_type> (see page 696)

:SBUS<n>:FLEXray:TRIG
ger:ERRor:TYPE? (see page 696)

<error_type> ::= {ALL | HCRC | FCRC}

:SBUS<n>:FLEXray:TRIG n/a

n/a

ger:EVENt:AUToset (see page 697)

:SBUS<n>:FLEXray:TRIG
ger:EVENt:BSS:ID
<frame_id> (see page 698)

:SBUS<n>:FLEXray:TRIG
ger:EVENt:BSS:ID? (see page 698)

<frame_id> ::= {ALL | <frame #>} <frame #> ::= integer from 1-2047

:SBUS<n>:FLEXray:TRIG :SBUS<n>:FLEXray:TRIG <event> ::= {WAKeup | TSS | {FES

ger:EVENt:TYPE

ger:EVENt:TYPE? (see | DTS} | BSS}

<event> (see page 699) page 699)

:SBUS<n>:FLEXray:TRIG
ger:FRAMe:CCBase
<cycle_count_base> (see page 700)

:SBUS<n>:FLEXray:TRIG
ger:FRAMe:CCBase? (see page 700)

<cycle_count_base> ::= integer from 0-63

:SBUS<n>:FLEXray:TRIG
ger:FRAMe:CCRepetitio
n
<cycle_count_repetiti on> (see page 701)

:SBUS<n>:FLEXray:TRIG
ger:FRAMe:CCRepetitio n? (see page 701)

<cycle_count_repetition> ::= {ALL | <rep #>}
<rep #> ::= integer values 2, 4, 8, 16, 32, or 64

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

127

4 Commands Quick Reference

Table 26 :SBUS<n>:FLEXray Commands Summary (continued)

Command

Query

Options and Query Returns

:SBUS<n>:FLEXray:TRIG
ger:FRAMe:ID
<frame_id> (see page 702)

:SBUS<n>:FLEXray:TRIG
ger:FRAMe:ID? (see page 702)

<frame_id> ::= {ALL | <frame #>} <frame #> ::= integer from 1-2047

:SBUS<n>:FLEXray:TRIG
ger:FRAMe:TYPE
<frame_type> (see page 703)

:SBUS<n>:FLEXray:TRIG
ger:FRAMe:TYPE? (see page 703)

<frame_type> ::= {NORMal | STARtup | NULL | SYNC | NSTArtup | NNULl | NSYNc | ALL}

Table 27 :SBUS<n>:I2S Commands Summary

Command

Query

Options and Query Returns

:SBUS<n>:I2S:ALIGnmen :SBUS<n>:I2S:ALIGnmen <setting> ::= {I2S | LJ | RJ}

t <setting> (see

t? (see page 707)

page 707)

:SBUS<n>:I2S:BASE

:SBUS<n>:I2S:BASE?

<base> (see page 708) (see page 708)

<base> ::= {DECimal | HEX}

:SBUS<n>:I2S:CLOCk:SL :SBUS<n>:I2S:CLOCk:SL <slope> ::= {NEGative | POSitive}

OPe <slope> (see

OPe? (see page 709)

page 709)

:SBUS<n>:I2S:RWIDth
<receiver> (see page 710)

:SBUS<n>:I2S:RWIDth? <receiver> ::= 4-32 in NR1 format (see page 710)

:SBUS<n>:I2S:SOURce:C
LOCk <source> (see page 711)

:SBUS<n>:I2S:SOURce:C LOCk? (see page 711)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> } for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:I2S:SOURce:D
ATA <source> (see page 712)

:SBUS<n>:I2S:SOURce:D ATA? (see page 712)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> } for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

128

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 27 :SBUS<n>:I2S Commands Summary (continued)

Command

Query

Options and Query Returns

:SBUS<n>:I2S:SOURce:W
SELect <source> (see page 713)

:SBUS<n>:I2S:SOURce:W SELect? (see page 713)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> } for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:I2S:TRIGger
<operator> (see page 714)

:SBUS<n>:I2S:TRIGger? (see page 714)

<operator> ::= {EQUal | NOTequal | LESSthan | GREaterthan | INRange | OUTRange | INCReasing | DECReasing}

:SBUS<n>:I2S:TRIGger: :SBUS<n>:I2S:TRIGger: <audio_ch> ::= {RIGHt | LEFT | AUDio <audio_ch> (see AUDio? (see page 716) EITHer} page 716)

:SBUS<n>:I2S:TRIGger:
PATTern:DATA <string> (see page 717)

:SBUS<n>:I2S:TRIGger:
PATTern:DATA? (see page 718)

<string> ::= "n" where n ::= 32-bit integer in signed decimal when <base> = DECimal
<string> ::= "nn...n" where n ::= {0 | 1 | X | $} when <base> = BINary
<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $} when <base> = HEX

:SBUS<n>:I2S:TRIGger: :SBUS<n>:I2S:TRIGger: <base> ::= {BINary | HEX |

PATTern:FORMat <base> PATTern:FORMat? (see DECimal}

(see page 719)

page 719)

:SBUS<n>:I2S:TRIGger:
RANGe <lower>,<upper> (see page 720)

:SBUS<n>:I2S:TRIGger: RANGe? (see page 720)

<lower> ::= 32-bit integer in signed decimal, <nondecimal>, or <string>
<upper> ::= 32-bit integer in signed decimal, <nondecimal>, or <string>
<nondecimal> ::= #Hnn...n where n ::= {0,..,9 | A,..,F} for hexadecimal
<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary
<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F} for hexadecimal

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

129

4 Commands Quick Reference

Table 27 :SBUS<n>:I2S Commands Summary (continued)

Command

Query

:SBUS<n>:I2S:TWIDth
<word_size> (see page 722)

:SBUS<n>:I2S:TWIDth? (see page 722)

:SBUS<n>:I2S:WSLow
<low_def> (see page 723)

:SBUS<n>:I2S:WSLow? (see page 723)

Options and Query Returns <word_size> ::= 4-32 in NR1 format
<low_def> ::= {LEFT | RIGHt}

Table 28 :SBUS<n>:IIC Commands Summary

Command

Query

Options and Query Returns

:SBUS<n>:IIC:ASIZe

:SBUS<n>:IIC:ASIZe?

<size> (see page 726) (see page 726)

<size> ::= {BIT7 | BIT8}

:SBUS<n>:IIC[:SOURce]
:CLOCk <source> (see page 727)

:SBUS<n>:IIC[:SOURce] :CLOCk? (see page 727)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> } for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:IIC[:SOURce]
:DATA <source> (see page 728)

:SBUS<n>:IIC[:SOURce] :DATA? (see page 728)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> } for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:IIC:TRIGger: :SBUS<n>:IIC:TRIGger: <value> ::= integer or <string>

PATTern:ADDRess <value> (see page 729)

PATTern:ADDRess? (see page 729)

<string> ::= "0xnn" n ::= {0,..,9 | A,..,F}

:SBUS<n>:IIC:TRIGger: :SBUS<n>:IIC:TRIGger: <value> ::= integer or <string>

PATTern:DATA <value> PATTern:DATA? (see

(see page 730)

page 730)

<string> ::= "0xnn" n ::= {0,..,9 | A,..,F}

:SBUS<n>:IIC:TRIGger: :SBUS<n>:IIC:TRIGger: <value> ::= integer or <string>

PATTern:DATa2 <value> PATTern:DATa2? (see

(see page 731)

page 731)

<string> ::= "0xnn" n ::= {0,..,9 | A,..,F}

130

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 28 :SBUS<n>:IIC Commands Summary (continued)

Command

Query

Options and Query Returns

:SBUS<n>:IIC:TRIGger: :SBUS<n>:IIC:TRIGger: <value> ::= {EQUal | NOTequal |

QUALifier <value> (see page 732)

QUALifier? (see page 732)

LESSthan | GREaterthan}

:SBUS<n>:IIC:TRIGger[
:TYPE] <type> (see page 733)

:SBUS<n>:IIC:TRIGger[ :TYPE]? (see page 733)

<type> ::= {STARt | STOP | READ7 | READEprom | WRITe7 | WRITe10 | NACKnowledge | ANACk | R7Data2 | W7Data2 | RESTart}

Table 29 :SBUS<n>:LIN Commands Summary

Command

Query

Options and Query Returns

:SBUS<n>:LIN:PARity
{{0 | OFF} | {1 | ON}} (see page 737)

:SBUS<n>:LIN:PARity? {0 | 1} (see page 737)

:SBUS<n>:LIN:SAMPlepo :SBUS<n>:LIN:SAMPlepo <value> ::= {60 | 62.5 | 68 | 70

int <value> (see

int? (see page 738)

| 75 | 80 | 87.5} in NR3 format

page 738)

:SBUS<n>:LIN:SIGNal:B :SBUS<n>:LIN:SIGNal:B <baudrate> ::= integer from 2400

AUDrate <baudrate> (see page 739)

AUDrate? (see page 739)

to 625000 in 100 b/s increments

:SBUS<n>:LIN:SOURce
<source> (see page 740)

:SBUS<n>:LIN:SOURce? (see page 740)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:LIN:STANdard :SBUS<n>:LIN:STANdard <std> ::= {LIN13 | LIN20}

<std> (see page 741)

? (see page 741)

:SBUS<n>:LIN:SYNCbrea :SBUS<n>:LIN:SYNCbrea <value> ::= integer = {11 | 12 |

k <value> (see

k? (see page 742)

13}

page 742)

:SBUS<n>:LIN:TRIGger
<condition> (see page 743)

:SBUS<n>:LIN:TRIGger? <condition> ::= {SYNCbreak | ID |

(see page 743)

DATA}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

131

4 Commands Quick Reference

Table 29 :SBUS<n>:LIN Commands Summary (continued)

Command

Query

Options and Query Returns

:SBUS<n>:LIN:TRIGger:
ID <value> (see page 744)

:SBUS<n>:LIN:TRIGger: ID? (see page 744)

<value> ::= 7-bit integer in decimal, <nondecimal>, or <string> from 0-63 or 0x00-0x3f
<nondecimal> ::= #Hnn where n ::= {0,..,9 | A,..,F} for hexadecimal
<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary
<string> ::= "0xnn" where n ::= {0,..,9 | A,..,F} for hexadecimal

:SBUS<n>:LIN:TRIGger:
PATTern:DATA <string> (see page 745)

:SBUS<n>:LIN:TRIGger:
PATTern:DATA? (see page 745)

<string> ::= "n" where n ::= 32-bit integer in unsigned decimal when <base> = DECimal
<string> ::= "nn...n" where n ::= {0 | 1 | X | $} when <base> = BINary
<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $} when <base> = HEX

:SBUS<n>:LIN:TRIGger:
PATTern:DATA:LENGth
<length> (see page 747)

:SBUS<n>:LIN:TRIGger:
PATTern:DATA:LENGth? (see page 747)

<length> ::= integer from 1 to 8 in NR1 format

:SBUS<n>:LIN:TRIGger: :SBUS<n>:LIN:TRIGger: <base> ::= {BINary | HEX |

PATTern:FORMat <base> PATTern:FORMat? (see DECimal}

(see page 748)

page 748)

Table 30 :SBUS<n>:M1553 Commands Summary

Command

Query

Options and Query Returns

:SBUS<n>:M1553:AUTose n/a

n/a

tup (see page 750)

:SBUS<n>:M1553:BASE :SBUS<n>:M1553:BASE? <base> ::= {BINary | HEX} <base> (see page 751) (see page 751)

:SBUS<n>:M1553:SOURce :SBUS<n>:M1553:SOURce <source> ::= {CHANnel<n>}

<source> (see page 752)

? (see page 752)

<n> ::= 1 to (# analog channels) in NR1 format

:SBUS<n>:M1553:TRIGge
r:PATTern:DATA
<string> (see page 753)

:SBUS<n>:M1553:TRIGge
r:PATTern:DATA? (see page 753)

<string> ::= "nn...n" where n ::= {0 | 1 | X}

132

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 30 :SBUS<n>:M1553 Commands Summary (continued)

Command

Query

Options and Query Returns

:SBUS<n>:M1553:TRIGge
r:RTA <value> (see page 754)

:SBUS<n>:M1553:TRIGge r:RTA? (see page 754)

<value> ::= 5-bit integer in decimal, <nondecimal>, or <string> from 0-31
<nondecimal> ::= #Hnn where n ::= {0,..,9|A,..,F}
<string> ::= "0xnn" where n::= {0,..,9|A,..,F}

:SBUS<n>:M1553:TRIGge :SBUS<n>:M1553:TRIGge <type> ::= {DSTArt | DSTOp |

r:TYPE <type> (see

r:TYPE? (see page 755) CSTArt | CSTOp | RTA | PERRor |

page 755)

SERRor | MERRor | RTA11}

Table 31 :SBUS<n>:SPI Commands Summary

Command

Query

Options and Query Returns

:SBUS<n>:SPI:BITorder :SBUS<n>:SPI:BITorder <order> ::= {LSBFirst | MSBFirst} <order> (see page 758) ? (see page 758)

:SBUS<n>:SPI:CLOCk:SL :SBUS<n>:SPI:CLOCk:SL <slope> ::= {NEGative | POSitive}

OPe <slope> (see

OPe? (see page 759)

page 759)

:SBUS<n>:SPI:CLOCk:TI :SBUS<n>:SPI:CLOCk:TI <time_value> ::= time in seconds

Meout <time_value>

Meout? (see page 760) in NR3 format

(see page 760)

:SBUS<n>:SPI:FRAMing :SBUS<n>:SPI:FRAMing? <value> ::= {CHIPselect |

<value> (see page 761) (see page 761)

{NCHipselect | NOTC} | TIMeout}

:SBUS<n>:SPI:SOURce:C
LOCk <source> (see page 762)

:SBUS<n>:SPI:SOURce:C LOCk? (see page 762)

<value> ::= {CHANnel<n> | EXTernal} for the DSO models
<value> ::= {CHANnel<n> | DIGital<d>} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:SPI:SOURce:F
RAMe <source> (see page 763)

:SBUS<n>:SPI:SOURce:F RAMe? (see page 763)

<value> ::= {CHANnel<n> | EXTernal} for the DSO models
<value> ::= {CHANnel<n> | DIGital<d>} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

133

4 Commands Quick Reference

Table 31 :SBUS<n>:SPI Commands Summary (continued)

Command

Query

Options and Query Returns

:SBUS<n>:SPI:SOURce:M
ISO <source> (see page 764)

:SBUS<n>:SPI:SOURce:M ISO? (see page 764)

<value> ::= {CHANnel<n> | EXTernal} for the DSO models
<value> ::= {CHANnel<n> | DIGital<d>} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:SPI:SOURce:M
OSI <source> (see page 765)

:SBUS<n>:SPI:SOURce:M OSI? (see page 765)

<value> ::= {CHANnel<n> | EXTernal} for the DSO models
<value> ::= {CHANnel<n> | DIGital<d>} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:SPI:TRIGger:
PATTern:MISO:DATA
<string> (see page 766)

:SBUS<n>:SPI:TRIGger:
PATTern:MISO:DATA? (see page 766)

<string> ::= "nn...n" where n ::= {0 | 1 | X | $}
<string ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $}

:SBUS<n>:SPI:TRIGger: :SBUS<n>:SPI:TRIGger: <width> ::= integer from 4 to 64

PATTern:MISO:WIDTh

PATTern:MISO:WIDTh?

<width> (see page 767) (see page 767)

in NR1 format

:SBUS<n>:SPI:TRIGger:
PATTern:MOSI:DATA
<string> (see page 768)

:SBUS<n>:SPI:TRIGger:
PATTern:MOSI:DATA? (see page 768)

<string> ::= "nn...n" where n ::= {0 | 1 | X | $}
<string ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $}

:SBUS<n>:SPI:TRIGger: :SBUS<n>:SPI:TRIGger: <width> ::= integer from 4 to 64

PATTern:MOSI:WIDTh

PATTern:MOSI:WIDTh?

<width> (see page 769) (see page 769)

in NR1 format

:SBUS<n>:SPI:TRIGger: :SBUS<n>:SPI:TRIGger: <value> ::= {MOSI | MISO}

TYPE <value> (see

TYPE? (see page 770)

page 770)

:SBUS<n>:SPI:WIDTh
<word_width> (see page 771)

:SBUS<n>:SPI:WIDTh? (see page 771)

<word_width> ::= integer 4-16 in NR1 format

134

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 32 :SBUS<n>:UART Commands Summary

Command

Query

Options and Query Returns

:SBUS<n>:UART:BASE

:SBUS<n>:UART:BASE?

<base> (see page 775) (see page 775)

<base> ::= {ASCii | BINary | HEX}

:SBUS<n>:UART:BAUDrat :SBUS<n>:UART:BAUDrat <baudrate> ::= integer from 100

e <baudrate> (see

e? (see page 776)

to 8000000

page 776)

:SBUS<n>:UART:BITorde :SBUS<n>:UART:BITorde <bitorder> ::= {LSBFirst |

r <bitorder> (see

r? (see page 777)

MSBFirst}

page 777)

n/a

:SBUS<n>:UART:COUNt:E <frame_count> ::= integer in NR1

RRor? (see page 778)

format

:SBUS<n>:UART:COUNt:R n/a

n/a

ESet (see page 779)

n/a

:SBUS<n>:UART:COUNt:R <frame_count> ::= integer in NR1

XFRames? (see page 780)

format

n/a

:SBUS<n>:UART:COUNt:T <frame_count> ::= integer in NR1

XFRames? (see page 781)

format

:SBUS<n>:UART:FRAMing <value> (see page 782)

:SBUS<n>:UART:FRAMing ? (see page 782)

<value> ::= {OFF | <decimal> | <nondecimal>}
<decimal> ::= 8-bit integer from 0-255 (0x00-0xff)
<nondecimal> ::= #Hnn where n ::= {0,..,9 | A,..,F} for hexadecimal
<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary

:SBUS<n>:UART:PARity
<parity> (see page 783)

:SBUS<n>:UART:PARity? <parity> ::= {EVEN | ODD | NONE} (see page 783)

:SBUS<n>:UART:POLarit :SBUS<n>:UART:POLarit <polarity> ::= {HIGH | LOW}

y <polarity> (see

y? (see page 784)

page 784)

:SBUS<n>:UART:SOURce:
RX <source> (see page 785)

:SBUS<n>:UART:SOURce: RX? (see page 785)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

135

4 Commands Quick Reference

Table 32 :SBUS<n>:UART Commands Summary (continued)

Command

Query

Options and Query Returns

:SBUS<n>:UART:SOURce:
TX <source> (see page 786)

:SBUS<n>:UART:SOURce: TX? (see page 786)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:UART:TRIGger :SBUS<n>:UART:TRIGger <base> ::= {ASCii | HEX}

:BASE <base> (see

:BASE? (see page 787)

page 787)

:SBUS<n>:UART:TRIGger :SBUS<n>:UART:TRIGger <value> ::= {OFF | 1 to 4096 in :BURSt <value> (see :BURSt? (see page 788) NR1 format} page 788)

:SBUS<n>:UART:TRIGger
:DATA <value> (see page 789)

:SBUS<n>:UART:TRIGger :DATA? (see page 789)

<value> ::= 8-bit integer from 0-255 (0x00-0xff) in decimal, <hexadecimal>, <binary>, or <quoted_string> format
<hexadecimal> ::= #Hnn where n ::= {0,..,9 | A,..,F} for hexadecimal
<binary> ::= #Bnn...n where n ::= {0 | 1} for binary
<quoted_string> ::= any of the 128 valid 7-bit ASCII characters (or standard abbreviations)

:SBUS<n>:UART:TRIGger :SBUS<n>:UART:TRIGger <time_value> ::= time from 1 us

:IDLE <time_value>

:IDLE? (see page 790) to 10 s in NR3 format

(see page 790)

:SBUS<n>:UART:TRIGger :SBUS<n>:UART:TRIGger <value> ::= {EQUal | NOTequal |

:QUALifier <value> (see page 791)

:QUALifier? (see page 791)

GREaterthan | LESSthan}

:SBUS<n>:UART:TRIGger
:TYPE <value> (see page 792)

:SBUS<n>:UART:TRIGger :TYPE? (see page 792)

<value> ::= {RSTArt | RSTOp | RDATa | RD1 | RD0 | RDX | PARityerror | TSTArt | TSTOp | TDATa | TD1 | TD0 | TDX}

:SBUS<n>:UART:WIDTh :SBUS<n>:UART:WIDTh? <width> ::= {5 | 6 | 7 | 8 | 9} <width> (see page 793) (see page 793)

136

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 33 General :SEARch Commands Summary

Command

Query

n/a

:SEARch:COUNt? (see

page 797)

:SEARch:MODE <value> :SEARch:MODE? (see

(see page 798)

page 798)

:SEARch:STATe <value> :SEARch:STATe? (see

(see page 799)

page 799)

Options and Query Returns
<count> ::= an integer count value
<value> ::= {EDGE | GLITch | RUNT | TRANsition | SERial{1 | 2}}
<value> ::= {{0 | OFF} | {1 | ON}}

Table 34 :SEARch:EDGE Commands Summary

Command

Query

:SEARch:EDGE:SLOPe

:SEARch:EDGE:SLOPe?

<slope> (see page 801) (see page 801)

:SEARch:EDGE:SOURce
<source> (see page 802)

:SEARch:EDGE:SOURce? (see page 802)

Options and Query Returns
<slope> ::= {POSitive | NEGative | EITHer}
<source> ::= CHANnel<n> <n> ::= 1 to (# analog channels) in NR1 format

Table 35 :SEARch:GLITch Commands Summary

Command

Query

Options and Query Returns

:SEARch:GLITch:GREate
rthan
<greater_than_time>[s uffix] (see page 804)

:SEARch:GLITch:GREate rthan? (see page 804)

<greater_than_time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

:SEARch:GLITch:LESSth
an
<less_than_time>[suff ix] (see page 805)

:SEARch:GLITch:LESSth an? (see page 805)

<less_than_time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

:SEARch:GLITch:POLari :SEARch:GLITch:POLari <polarity> ::= {POSitive |

ty <polarity> (see

ty? (see page 806)

NEGative}

page 806)

:SEARch:GLITch:QUALif :SEARch:GLITch:QUALif <qualifier> ::= {GREaterthan |

ier <qualifier> (see ier? (see page 807)

LESSthan | RANGe}

page 807)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

137

4 Commands Quick Reference

Table 35 :SEARch:GLITch Commands Summary (continued)

Command

Query

Options and Query Returns

:SEARch:GLITch:RANGe
<less_than_time>[suff
ix],
<greater_than_time>[s uffix] (see page 808)

:SEARch:GLITch:RANGe? (see page 808)

<less_than_time> ::= 15 ns to 10 seconds in NR3 format
<greater_than_time> ::= 10 ns to 9.99 seconds in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

:SEARch:GLITch:SOURce :SEARch:GLITch:SOURce <source> ::= CHANnel<n>

<source> (see page 809)

? (see page 809)

<n> ::= 1 to (# analog channels) in NR1 format

Table 36 :SEARch:RUNT Commands Summary

Command

Query

Options and Query Returns

:SEARch:RUNT:POLarity :SEARch:RUNT:POLarity <polarity> ::= {POSitive |

<polarity> (see

? (see page 811)

NEGative | EITHer}

page 811)

:SEARch:RUNT:QUALifie :SEARch:RUNT:QUALifie <qualifier> ::= {GREaterthan |

r <qualifier> (see

r? (see page 812)

LESSthan | NONE}

page 812)

:SEARch:RUNT:SOURce
<source> (see page 813)

:SEARch:RUNT:SOURce? (see page 813)

<source> ::= CHANnel<n>
<n> ::= 1 to (# analog channels) in NR1 format

:SEARch:RUNT:TIME
<time>[suffix] (see page 814)

:SEARch:RUNT:TIME? (see page 814)

<time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

Table 37 :SEARch:TRANsition Commands Summary

Command

Query

Options and Query Returns

:SEARch:TRANsition:QU :SEARch:TRANsition:QU <qualifier> ::= {GREaterthan |

ALifier <qualifier> (see page 816)

ALifier? (see page 816)

LESSthan}

:SEARch:TRANsition:SL :SEARch:TRANsition:SL <slope> ::= {NEGative | POSitive}

OPe <slope> (see

OPe? (see page 817)

page 817)

138

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 37 :SEARch:TRANsition Commands Summary (continued)

Command

Query

Options and Query Returns

:SEARch:TRANsition:SO :SEARch:TRANsition:SO <source> ::= CHANnel<n>

URce <source> (see page 818)

URce? (see page 818)

<n> ::= 1 to (# analog channels) in NR1 format

:SEARch:TRANsition:TI
ME <time>[suffix] (see page 819)

:SEARch:TRANsition:TI ME? (see page 819)

<time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

Table 38 :SEARch:SERial:A429 Commands Summary

Command

Query

Options and Query Returns

:SEARch:SERial:A429:L
ABel <value> (see page 821)

:SEARch:SERial:A429:L ABel? (see page 821)

<value> ::= 8-bit integer in decimal, <hex>, <octal>, or <string> from 0-255
<hex> ::= #Hnn where n ::= {0,..,9 | A,..,F}
<octal> ::= #Qnnn where n ::= {0,..,7}
<string> ::= "0xnn" where n::= {0,..,9 | A,..,F}

:SEARch:SERial:A429:M :SEARch:SERial:A429:M <condition> ::= {LABel | LBITs |

ODE <condition> (see ODE? (see page 822)

PERRor | WERRor | GERRor |

page 822)

WGERrors | ALLerrors}

:SEARch:SERial:A429:P :SEARch:SERial:A429:P <string> ::= "nn...n" where n ::=

ATTern:DATA <string> ATTern:DATA? (see

(see page 823)

page 823)

{0 | 1}, length depends on FORMat

:SEARch:SERial:A429:P :SEARch:SERial:A429:P <string> ::= "nn" where n ::= {0

ATTern:SDI <string> (see page 824)

ATTern:SDI? (see page 824)

| 1}, length always 2 bits

:SEARch:SERial:A429:P :SEARch:SERial:A429:P <string> ::= "nn" where n ::= {0

ATTern:SSM <string> (see page 825)

ATTern:SSM? (see page 825)

| 1}, length always 2 bits

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

139

4 Commands Quick Reference

Table 39 :SEARch:SERial:CAN Commands Summary

Command

Query

Options and Query Returns

:SEARch:SERial:CAN:MO :SEARch:SERial:CAN:MO <value> ::= {DATA | IDData |

DE <value> (see

DE? (see page 827)

IDEither | IDRemote | ALLerrors |

page 827)

OVERload | ERRor}

:SEARch:SERial:CAN:PA :SEARch:SERial:CAN:PA <string> ::= "0xnn...n" where n

TTern:DATA <string> (see page 828)

TTern:DATA? (see page 828)

::= {0,..,9 | A,..,F | X} for hexadecimal

:SEARch:SERial:CAN:PA
TTern:DATA:LENGth
<length> (see page 829)

:SEARch:SERial:CAN:PA
TTern:DATA:LENGth? (see page 829)

<length> ::= integer from 1 to 8 in NR1 format

:SEARch:SERial:CAN:PA :SEARch:SERial:CAN:PA <string> ::= "0xnn...n" where n

TTern:ID <string> (see page 830)

TTern:ID? (see page 830)

::= {0,..,9 | A,..,F | X} for hexadecimal

:SEARch:SERial:CAN:PA :SEARch:SERial:CAN:PA <value> ::= {STANdard | EXTended}

TTern:ID:MODE <value> TTern:ID:MODE? (see

(see page 831)

page 831)

Table 40 :SEARch:SERial:FLEXray Commands Summary

Command

Query

Options and Query Returns

:SEARch:SERial:FLEXra :SEARch:SERial:FLEXra <cycle> ::= {ALL | <cycle #>}

y:CYCLe <cycle> (see y:CYCLe? (see

page 833)

page 833)

<cycle #> ::= integer from 0-63

:SEARch:SERial:FLEXra :SEARch:SERial:FLEXra <string> ::= "0xnn...n" where n y:DATA <string> (see y:DATA? (see page 834) ::= {0,..,9 | A,..,F | X } page 834)

:SEARch:SERial:FLEXra
y:DATA:LENGth
<length> (see page 835)

:SEARch:SERial:FLEXra
y:DATA:LENGth? (see page 835)

<length> ::= integer from 1 to 12 in NR1 format

:SEARch:SERial:FLEXra :SEARch:SERial:FLEXra <frame_id> ::= {ALL | <frame #>}

y:FRAMe <frame id> (see page 836)

y:FRAMe? (see page 836)

<frame #> ::= integer from 1-2047

:SEARch:SERial:FLEXra :SEARch:SERial:FLEXra <value> := {FRAMe | CYCLe | DATA y:MODE <value> (see y:MODE? (see page 837) | HERRor | FERRor | AERRor} page 837)

140

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 41 :SEARch:SERial:I2S Commands Summary

Command

Query

Options and Query Returns

:SEARch:SERial:I2S:AU :SEARch:SERial:I2S:AU <audio_ch> ::= {RIGHt | LEFT |

Dio <audio_ch> (see Dio? (see page 839)

EITHer}

page 839)

:SEARch:SERial:I2S:MO :SEARch:SERial:I2S:MO <value> ::= {EQUal | NOTequal |

DE <value> (see

DE? (see page 840)

LESSthan | GREaterthan | INRange

page 840)

| OUTRange}

:SEARch:SERial:I2S:PA
TTern:DATA <string> (see page 841)

:SEARch:SERial:I2S:PA
TTern:DATA? (see page 841)

<string> ::= "n" where n ::= 32-bit integer in signed decimal when <base> = DECimal
<string> ::= "nn...n" where n ::= {0 | 1 | X} when <base> = BINary
<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X} when <base> = HEX

:SEARch:SERial:I2S:PA :SEARch:SERial:I2S:PA <base> ::= {BINary | HEX |

TTern:FORMat <base> (see page 842)

TTern:FORMat? (see page 842)

DECimal}

:SEARch:SERial:I2S:RA
NGe <lower>, <upper> (see page 843)

:SEARch:SERial:I2S:RA NGe? (see page 843)

<lower> ::= 32-bit integer in signed decimal, <nondecimal>, or <string>
<upper> ::= 32-bit integer in signed decimal, <nondecimal>, or <string>
<nondecimal> ::= #Hnn...n where n ::= {0,..,9 | A,..,F} for hexadecimal
<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary
<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F} for hexadecimal

Table 42 :SEARch:SERial:IIC Commands Summary

Command

Query

Options and Query Returns

:SEARch:SERial:IIC:MO :SEARch:SERial:IIC:MO <value> ::= { READ7 | WRITE7 |

DE <value> (see

DE? (see page 845)

NACKnowledge | ANACk | R7Data2 |

page 845)

W7Data2 | RESTart | READEprom}

:SEARch:SERial:IIC:PA :SEARch:SERial:IIC:PA <value> ::= integer or <string>

TTern:ADDRess <value> TTern:ADDRess? (see

(see page 847)

page 847)

<string> ::= "0xnn" n ::= {0,..,9 | A,..,F}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

141

4 Commands Quick Reference

Table 42 :SEARch:SERial:IIC Commands Summary (continued)

Command

Query

Options and Query Returns

:SEARch:SERial:IIC:PA :SEARch:SERial:IIC:PA <value> ::= integer or <string>

TTern:DATA <value> (see page 848)

TTern:DATA? (see page 848)

<string> ::= "0xnn" n ::= {0,..,9 | A,..,F}

:SEARch:SERial:IIC:PA :SEARch:SERial:IIC:PA <value> ::= integer or <string>

TTern:DATA2 <value> (see page 849)

TTern:DATA2? (see page 849)

<string> ::= "0xnn" n ::= {0,..,9 | A,..,F}

:SEARch:SERial:IIC:QU :SEARch:SERial:IIC:QU <value> ::= {EQUal | NOTequal |

ALifier <value> (see ALifier? (see

page 850)

page 850)

LESSthan | GREaterthan}

Table 43 :SEARch:SERial:LIN Commands Summary

Command

Query

Options and Query Returns

:SEARch:SERial:LIN:ID <value> (see page 852)

:SEARch:SERial:LIN:ID ? (see page 852)

<value> ::= 7-bit integer in decimal, <nondecimal>, or <string> from 0-63 or 0x00-0x3f (with Option AMS)
<nondecimal> ::= #Hnn where n ::= {0,..,9 | A,..,F} for hexadecimal
<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary
<string> ::= "0xnn" where n ::= {0,..,9 | A,..,F} for hexadecimal

:SEARch:SERial:LIN:MO :SEARch:SERial:LIN:MO <value> ::= {ID | DATA | ERRor}

DE <value> (see

DE? (see page 853)

page 853)

:SEARch:SERial:LIN:PA
TTern:DATA <string> (see page 854)

:SEARch:SERial:LIN:PA
TTern:DATA? (see page 854)

When :SEARch:SERial:LIN:PATTern:FORMa t DECimal, <string> ::= "n" where n ::= 32-bit integer in unsigned decimal, returns "$" if data has any don't cares
When :SEARch:SERial:LIN:PATTern:FORMa t HEX, <string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X }

142

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 43 :SEARch:SERial:LIN Commands Summary (continued)

Command

Query

Options and Query Returns

:SEARch:SERial:LIN:PA
TTern:DATA:LENGth
<length> (see page 855)

:SEARch:SERial:LIN:PA
TTern:DATA:LENGth? (see page 855)

<length> ::= integer from 1 to 8 in NR1 format

:SEARch:SERial:LIN:PA :SEARch:SERial:LIN:PA <base> ::= {HEX | DECimal}

TTern:FORMat <base> (see page 856)

TTern:FORMat? (see page 856)

Table 44 :SEARch:SERial:M1553 Commands Summary

Command

Query

Options and Query Returns

:SEARch:SERial:M1553: :SEARch:SERial:M1553: <value> ::= {DSTArt | CSTArt |

MODE <value> (see

MODE? (see page 858)

RTA | RTA11 | PERRor | SERRor |

page 858)

MERRor}

:SEARch:SERial:M1553: :SEARch:SERial:M1553: <string> ::= "nn...n" where n ::=

PATTern:DATA <string> PATTern:DATA? (see

(see page 859)

page 859)

{0 | 1}

:SEARch:SERial:M1553:
RTA <value> (see page 860)

:SEARch:SERial:M1553: RTA? (see page 860)

<value> ::= 5-bit integer in decimal, <hexadecimal>, <binary>, or <string> from 0-31
< hexadecimal > ::= #Hnn where n ::= {0,..,9|A,..,F}
<binary> ::= #Bnn...n where n ::= {0 | 1} for binary
<string> ::= "0xnn" where n::= {0,..,9|A,..,F}

Table 45 :SEARch:SERial:SPI Commands Summary

Command

Query

Options and Query Returns

:SEARch:SERial:SPI:MO :SEARch:SERial:SPI:MO <value> ::= {MOSI | MISO}

DE <value> (see

DE? (see page 862)

page 862)

:SEARch:SERial:SPI:PA :SEARch:SERial:SPI:PA <string> ::= "0xnn...n" where n

TTern:DATA <string> (see page 863)

TTern:DATA? (see page 863)

::= {0,..,9 | A,..,F | X}

:SEARch:SERial:SPI:PA :SEARch:SERial:SPI:PA <width> ::= integer from 1 to 10

TTern:WIDTh <width> (see page 864)

TTern:WIDTh? (see page 864)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

143

4 Commands Quick Reference

Table 46 :SEARch:SERial:UART Commands Summary

Command

Query

Options and Query Returns

:SEARch:SERial:UART:D
ATA <value> (see page 866)

:SEARch:SERial:UART:D ATA? (see page 866)

<value> ::= 8-bit integer from 0-255 (0x00-0xff) in decimal, <hexadecimal>, <binary>, or <quoted_string> format
<hexadecimal> ::= #Hnn where n ::= {0,..,9| A,..,F} for hexadecimal
<binary> ::= #Bnn...n where n ::= {0 | 1} for binary
<quoted_string> ::= any of the 128 valid 7-bit ASCII characters (or standard abbreviations)

:SEARch:SERial:UART:M :SEARch:SERial:UART:M <value> ::= {RDATa | RD1 | RD0 |

ODE <value> (see

ODE? (see page 867)

RDX | TDATa | TD1 | TD0 | TDX |

page 867)

PARityerror | AERRor}

:SEARch:SERial:UART:Q :SEARch:SERial:UART:Q <value> ::= {EQUal | NOTequal |

UALifier <value> (see UALifier? (see

page 868)

page 868)

GREaterthan | LESSthan}

Table 47 :SYSTem Commands Summary

Command

Query

:SYSTem:DATE <date> (see page 871)

:SYSTem:DATE? (see page 871)

n/a
:SYSTem:DSP <string> (see page 873) n/a

:SYSTem:DIDentifier? (see page 872) n/a
:SYSTem:ERRor? (see page 874)

Options and Query Returns
<date> ::= <year>,<month>,<day> <year> ::= 4-digit year in NR1 format <month> ::= {1,..,12 | JANuary | FEBruary | MARch | APRil | MAY | JUNe | JULy | AUGust | SEPtember | OCTober | NOVember | DECember} <day> ::= {1,..31}
n/a
<string> ::= up to 75 characters as a quoted ASCII string
<error> ::= an integer error code <error string> ::= quoted ASCII string. See Error Messages (see page 1123).

144

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 47 :SYSTem Commands Summary (continued)

Command

Query

Options and Query Returns

:SYSTem:LOCK <value> :SYSTem:LOCK? (see

(see page 875)

page 875)

<value> ::= {{1 | ON} | {0 | OFF}}

:SYSTem:MENU <menu> n/a (see page 876)
:SYSTem:PRESet (see n/a page 877)

<menu> ::= {MASK | MEASure | SEGMented | LISTer | POWer}
See :SYSTem:PRESet (see page 877)

:SYSTem:PROTection:LO :SYSTem:PROTection:LO <value> ::= {{1 | ON} | {0 |

CK <value> (see

CK? (see page 880)

OFF}}

page 880)

:SYSTem:RLOGger

n/a

<setting>[,<file_name

>[,<write_mode>]] (see page 881)

<setting> ::= {{0 | OFF} | {1 | ON}}
<file_name> ::= quoted ASCII string
<write_mode> ::= {CREate | APPend}

:SYSTem:RLOGger:DESTi :SYSTem:RLOGger:DESTi <dest> ::= {FILE | SCReen | BOTH}

nation <dest> (see

nation? (see page 882)

page 882)

:SYSTem:RLOGger:DISPl :SYSTem:RLOGger:DISPl <setting> ::= {0 | 1} ay {{0 | OFF} | {1 | ay? (see page 883) ON}} (see page 883)

:SYSTem:RLOGger:FNAMe :SYSTem:RLOGger:FNAMe <file_name> ::= quoted ASCII

<file_name> (see

? (see page 884)

string

page 884)

:SYSTem:RLOGger:STATe :SYSTem:RLOGger:STATe <setting> ::= {0 | 1}

{{0 | OFF} | {1 |

? (see page 885)

ON}} (see page 885)

:SYSTem:RLOGger:TRANs
parent {{0 | OFF} |
{1 | ON}} (see page 886)

:SYSTem:RLOGger:TRANs parent? (see page 886)

<setting> ::= {0 | 1}

:SYSTem:RLOGger:WMODe :SYSTem:RLOGger:WMODe <write_mode> ::= {CREate |

<write_mode> (see

? (see page 887)

APPend}

page 887)

:SYSTem:SETup
<setup_data> (see page 888)

:SYSTem:SETup? (see page 888)

<setup_data> ::= data in IEEE 488.2 # format.

:SYSTem:TIME <time> (see page 890)

:SYSTem:TIME? (see page 890)

<time> ::= hours,minutes,seconds in NR1 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

145

4 Commands Quick Reference

Table 48 :TIMebase Commands Summary

Command

Query

Options and Query Returns

:TIMebase:MODE

:TIMebase:MODE? (see <value> ::= {MAIN | WINDow | XY |

<value> (see page 893) page 893)

ROLL}

:TIMebase:POSition <pos> (see page 894)

:TIMebase:POSition? (see page 894)

<pos> ::= time from the trigger event to the display reference point in NR3 format

:TIMebase:RANGe
<range_value> (see page 895)

:TIMebase:RANGe? (see <range_value> ::= time for 10 div

page 895)

in seconds in NR3 format

:TIMebase:REFerence
{LEFT | CENTer | RIGHt} (see page 896)

:TIMebase:REFerence? (see page 896)

<return_value> ::= {LEFT | CENTer | RIGHt}

:TIMebase:SCALe
<scale_value> (see page 897)

:TIMebase:SCALe? (see <scale_value> ::= time/div in

page 897)

seconds in NR3 format

:TIMebase:VERNier {{0
| OFF} | {1 | ON}} (see page 898)

:TIMebase:VERNier? (see page 898)

{0 | 1}

:TIMebase:WINDow:POSi :TIMebase:WINDow:POSi <pos> ::= time from the trigger

tion <pos> (see

tion? (see page 899)

event to the zoomed view

page 899)

reference point in NR3 format

:TIMebase:WINDow:RANG :TIMebase:WINDow:RANG <range value> ::= range value in

e <range_value> (see e? (see page 900)

seconds in NR3 format for the

page 900)

zoomed window

:TIMebase:WINDow:SCAL :TIMebase:WINDow:SCAL <scale_value> ::= scale value in

e <scale_value> (see e? (see page 901)

seconds in NR3 format for the

page 901)

zoomed window

Table 49 General :TRIGger Commands Summary

Command

Query

:TRIGger:FORCe (see n/a page 906)

:TRIGger:HFReject {{0
| OFF} | {1 | ON}} (see page 907)

:TRIGger:HFReject? (see page 907)

:TRIGger:HOLDoff
<holdoff_time> (see page 908)

:TRIGger:HOLDoff? (see page 908)

:TRIGger:LEVel:ASETup n/a (see page 909)

Options and Query Returns n/a {0 | 1}
<holdoff_time> ::= 40 ns to 10 s in NR3 format n/a

146

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 49 General :TRIGger Commands Summary (continued)

Command

Query

:TRIGger:LEVel:HIGH
<level>, <source> (see page 910)

:TRIGger:LEVel:HIGH?
<source> (see page 910)

:TRIGger:LEVel:LOW
<level>, <source> (see page 911)

:TRIGger:LEVel:LOW?
<source> (see page 911)

:TRIGger:MODE <mode> :TRIGger:MODE? (see

(see page 912)

page 912)

:TRIGger:NREJect {{0
| OFF} | {1 | ON}} (see page 913)

:TRIGger:NREJect? (see page 913)

:TRIGger:SWEep

:TRIGger:SWEep? (see

<sweep> (see page 914) page 914)

Options and Query Returns
<level> ::= .75 x full-scale voltage from center screen in NR3 format. <source> ::= CHANnel<n> <n> ::= 1 to (# analog channels) in NR1 format
<level> ::= .75 x full-scale voltage from center screen in NR3 format. <source> ::= CHANnel<n> <n> ::= 1 to (# analog channels) in NR1 format
<mode> ::= {EDGE | GLITch | PATTern | TV | DELay | EBURst | OR | RUNT | SHOLd | TRANsition | SBUS{1 | 2} | USB} <return_value> ::= {<mode> | <none>} <none> ::= query returns "NONE" if the :TIMebase:MODE is ROLL or XY
{0 | 1}
<sweep> ::= {AUTO | NORMal}

Table 50 :TRIGger:DELay Commands Summary

Command

Query

Options and Query Returns

:TRIGger:DELay:ARM:SL :TRIGger:DELay:ARM:SL <slope> ::= {NEGative | POSitive}

OPe <slope> (see

OPe? (see page 916)

page 916)

:TRIGger:DELay:ARM:SO
URce <source> (see page 917)

:TRIGger:DELay:ARM:SO URce? (see page 917)

<source> ::= {CHANnel<n> | DIGital<d>}
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

147

4 Commands Quick Reference

Table 50 :TRIGger:DELay Commands Summary (continued)

Command

Query

Options and Query Returns

:TRIGger:DELay:TDELay :TRIGger:DELay:TDELay <time_value> ::= time in seconds

:TIME <time_value>

:TIME? (see page 918) in NR3 format

(see page 918)

:TRIGger:DELay:TRIGge :TRIGger:DELay:TRIGge <count> ::= integer in NR1 format

r:COUNt <count> (see r:COUNt? (see

page 919)

page 919)

:TRIGger:DELay:TRIGge :TRIGger:DELay:TRIGge <slope> ::= {NEGative | POSitive}

r:SLOPe <slope> (see r:SLOPe? (see

page 920)

page 920)

:TRIGger:DELay:TRIGge
r:SOURce <source> (see page 921)

:TRIGger:DELay:TRIGge
r:SOURce? (see page 921)

<source> ::= {CHANnel<n> | DIGital<d>}
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

Table 51 :TRIGger:EBURst Commands Summary

Command

Query

Options and Query Returns

:TRIGger:EBURst:COUNt :TRIGger:EBURst:COUNt <count> ::= integer in NR1 format <count> (see page 923) ? (see page 923)

:TRIGger:EBURst:IDLE
<time_value> (see page 924)

:TRIGger:EBURst:IDLE? <time_value> ::= time in seconds

(see page 924)

in NR3 format

:TRIGger:EBURst:SLOPe :TRIGger:EBURst:SLOPe <slope> ::= {NEGative | POSitive} <slope> (see page 925) ? (see page 925)

:TRIGger:EBURst:SOURc
e <source> (see page 926)

:TRIGger:EBURst:SOURc e? (see page 926)

<source> ::= {CHANnel<n> | DIGital<d>}
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

148

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 52 :TRIGger[:EDGE] Commands Summary

Command

Query

Options and Query Returns

:TRIGger[:EDGE]:COUPl
ing {AC | DC |
LFReject} (see page 928)

:TRIGger[:EDGE]:COUPl ing? (see page 928)

{AC | DC | LFReject}

:TRIGger[:EDGE]:LEVel
<level> [,<source>] (see page 929)

:TRIGger[:EDGE]:LEVel
? [<source>] (see page 929)

For internal triggers, <level> ::= .75 x full-scale voltage from center screen in NR3 format.
For external triggers, <level> ::= ±(external range setting) in NR3 format.
For digital channels (MSO models), <level> ::= ±8 V.
<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | EXTernal } for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:TRIGger[:EDGE]:REJec
t {OFF | LFReject |
HFReject} (see page 930)

:TRIGger[:EDGE]:REJec t? (see page 930)

{OFF | LFReject | HFReject}

:TRIGger[:EDGE]:SLOPe :TRIGger[:EDGE]:SLOPe <polarity> ::= {POSitive |

<polarity> (see

? (see page 931)

NEGative | EITHer | ALTernate}

page 931)

:TRIGger[:EDGE]:SOURc
e <source> (see page 932)

:TRIGger[:EDGE]:SOURc e? (see page 932)

<source> ::= {CHANnel<n> | EXTernal | LINE | WGEN} for the DSO models
<source> ::= {CHANnel<n> | DIGital<d> | EXTernal | LINE | WGEN} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

149

4 Commands Quick Reference

Table 53 :TRIGger:GLITch Commands Summary

Command

Query

Options and Query Returns

:TRIGger:GLITch:GREat
erthan
<greater_than_time>[s uffix] (see page 935)

:TRIGger:GLITch:GREat erthan? (see page 935)

<greater_than_time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

:TRIGger:GLITch:LESSt
han
<less_than_time>[suff ix] (see page 936)

:TRIGger:GLITch:LESSt han? (see page 936)

<less_than_time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

:TRIGger:GLITch:LEVel
<level> [<source>] (see page 937)

:TRIGger:GLITch:LEVel ? (see page 937)

For internal triggers, <level> ::= .75 x full-scale voltage from center screen in NR3 format.
For external triggers (DSO models), <level> ::= ±(external range setting) in NR3 format.
For digital channels (MSO models), <level> ::= ±8 V.
<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:TRIGger:GLITch:POLar :TRIGger:GLITch:POLar <polarity> ::= {POSitive |

ity <polarity> (see ity? (see page 938)

NEGative}

page 938)

:TRIGger:GLITch:QUALi :TRIGger:GLITch:QUALi <qualifier> ::= {GREaterthan |

fier <qualifier> (see fier? (see page 939)

LESSthan | RANGe}

page 939)

150

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 53 :TRIGger:GLITch Commands Summary (continued)

Command

Query

Options and Query Returns

:TRIGger:GLITch:RANGe
<less_than_time>[suff
ix],
<greater_than_time>[s uffix] (see page 940)

:TRIGger:GLITch:RANGe ? (see page 940)

<less_than_time> ::= 15 ns to 10 seconds in NR3 format
<greater_than_time> ::= 10 ns to 9.99 seconds in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

:TRIGger:GLITch:SOURc
e <source> (see page 941)

:TRIGger:GLITch:SOURc e? (see page 941)

<source> ::= {CHANnel<n> | DIGital<d>}
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

Table 54 :TRIGger:OR Commands Summary

Command

Query

:TRIGger:OR <string> :TRIGger:OR? (see

(see page 943)

page 943)

Options and Query Returns
<string> ::= "nn...n" where n ::= {R | F | E | X}
R = rising edge, F = falling edge, E = either edge, X = don't care.
Each character in the string is for an analog or digital channel as shown on the front panel display.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

151

4 Commands Quick Reference

Table 55 :TRIGger:PATTern Commands Summary

Command

Query

Options and Query Returns

:TRIGger:PATTern
<string>[,<edge_sourc
e>,<edge>] (see page 945)

:TRIGger:PATTern? (see page 946)

<string> ::= "nn...n" where n ::= {0 | 1 | X | R | F} when <base> = ASCii <string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $} when <base> = HEX
<edge_source> ::= {CHANnel<n> | NONE} for DSO models
<edge_source> ::= {CHANnel<n> | DIGital<d> | NONE} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<edge> ::= {POSitive | NEGative}

:TRIGger:PATTern:FORM :TRIGger:PATTern:FORM <base> ::= {ASCii | HEX}

at <base> (see

at? (see page 947)

page 947)

:TRIGger:PATTern:GREa
terthan
<greater_than_time>[s uffix] (see page 948)

:TRIGger:PATTern:GREa
terthan? (see page 948)

<greater_than_time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

:TRIGger:PATTern:LESS
than
<less_than_time>[suff ix] (see page 949)

:TRIGger:PATTern:LESS than? (see page 949)

<less_than_time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

:TRIGger:PATTern:QUAL :TRIGger:PATTern:QUAL <qualifier> ::= {ENTered |

ifier <qualifier>

ifier? (see page 950) GREaterthan | LESSthan | INRange

(see page 950)

| OUTRange | TIMeout}

:TRIGger:PATTern:RANG e <less_than_time>[suff ix], <greater_than_time>[s uffix] (see page 951)

:TRIGger:PATTern:RANG e? (see page 951)

<less_than_time> ::= 15 ns to 10 seconds in NR3 format
<greater_than_time> ::= 10 ns to 9.99 seconds in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

152

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 56 :TRIGger:RUNT Commands Summary

Command

Query

Options and Query Returns

:TRIGger:RUNT:POLarit :TRIGger:RUNT:POLarit <polarity> ::= {POSitive |

y <polarity> (see

y? (see page 953)

NEGative | EITHer}

page 953)

:TRIGger:RUNT:QUALifi :TRIGger:RUNT:QUALifi <qualifier> ::= {GREaterthan |

er <qualifier> (see er? (see page 954)

LESSthan | NONE}

page 954)

:TRIGger:RUNT:SOURce
<source> (see page 955)

:TRIGger:RUNT:SOURce? <source> ::= CHANnel<n>

(see page 955)

<n> ::= 1 to (# analog channels)

in NR1 format

:TRIGger:RUNT:TIME
<time>[suffix] (see page 956)

:TRIGger:RUNT:TIME? (see page 956)

<time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

Table 57 :TRIGger:SHOLd Commands Summary

Command

Query

Options and Query Returns

:TRIGger:SHOLd:SLOPe :TRIGger:SHOLd:SLOPe? <slope> ::= {NEGative | POSitive} <slope> (see page 958) (see page 958)

:TRIGger:SHOLd:SOURce
:CLOCk <source> (see page 959)

:TRIGger:SHOLd:SOURce :CLOCk? (see page 959)

<source> ::= {CHANnel<n> | DIGital<d>}
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:TRIGger:SHOLd:SOURce
:DATA <source> (see page 960)

:TRIGger:SHOLd:SOURce :DATA? (see page 960)

<source> ::= {CHANnel<n> | DIGital<d>}
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:TRIGger:SHOLd:TIME:H
OLD <time>[suffix] (see page 961)

:TRIGger:SHOLd:TIME:H OLD? (see page 961)

<time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

:TRIGger:SHOLd:TIME:S
ETup <time>[suffix] (see page 962)

:TRIGger:SHOLd:TIME:S ETup? (see page 962)

<time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

153

4 Commands Quick Reference

Table 58 :TRIGger:TRANsition Commands Summary

Command

Query

Options and Query Returns

:TRIGger:TRANsition:Q :TRIGger:TRANsition:Q <qualifier> ::= {GREaterthan |

UALifier <qualifier> UALifier? (see

(see page 964)

page 964)

LESSthan}

:TRIGger:TRANsition:S :TRIGger:TRANsition:S <slope> ::= {NEGative | POSitive}

LOPe <slope> (see

LOPe? (see page 965)

page 965)

:TRIGger:TRANsition:S :TRIGger:TRANsition:S <source> ::= CHANnel<n>

OURce <source> (see page 966)

OURce? (see page 966)

<n> ::= 1 to (# analog channels) in NR1 format

:TRIGger:TRANsition:T
IME <time>[suffix] (see page 967)

:TRIGger:TRANsition:T IME? (see page 967)

<time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

Table 59 :TRIGger:TV Commands Summary

Command

Query

Options and Query Returns

:TRIGger:TV:LINE
<line number> (see page 969)

:TRIGger:TV:LINE? (see page 969)

<line number> ::= integer in NR1 format

:TRIGger:TV:MODE <tv :TRIGger:TV:MODE?

mode> (see page 970)

(see page 970)

<tv mode> ::= {FIEld1 | FIEld2 | AFIelds | ALINes | LINE | LFIeld1 | LFIeld2 | LALTernate}

:TRIGger:TV:POLarity
<polarity> (see page 971)

:TRIGger:TV:POLarity? <polarity> ::= {POSitive |

(see page 971)

NEGative}

:TRIGger:TV:SOURce
<source> (see page 972)

:TRIGger:TV:SOURce? (see page 972)

<source> ::= {CHANnel<n>}
<n> ::= 1 to (# analog channels) in NR1 format

:TRIGger:TV:STANdard
<standard> (see page 973)

:TRIGger:TV:STANdard? (see page 973)

<standard> ::= {NTSC | PAL | PALM | SECam}
<standard> ::= {GENeric | {P480L60HZ | P480} | {P720L60HZ | P720} | {P1080L24HZ | P1080} | P1080L25HZ | P1080L50HZ | P1080L60HZ | {I1080L50HZ | I1080} | I1080L60HZ} with extended video triggering license

154

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 59 :TRIGger:TV Commands Summary (continued)

Command

Query

Options and Query Returns

:TRIGger:TV:UDTV:ENUM :TRIGger:TV:UDTV:ENUM <count> ::= edge number in NR1

ber <count> (see

ber? (see page 974)

format

page 974)

:TRIGger:TV:UDTV:HSYN :TRIGger:TV:UDTV:HSYN {0 | 1} c {{0 | OFF} | {1 | c? (see page 975) ON}} (see page 975)

:TRIGger:TV:UDTV:HTIM :TRIGger:TV:UDTV:HTIM <time> ::= seconds in NR3 format

e <time> (see

e? (see page 976)

page 976)

:TRIGger:TV:UDTV:PGTH :TRIGger:TV:UDTV:PGTH <min_time> ::= seconds in NR3

an <min_time> (see

an? (see page 977)

format

page 977)

Table 60 :TRIGger:USB Commands Summary

Command

Query

Options and Query Returns

:TRIGger:USB:SOURce:D
MINus <source> (see page 979)

:TRIGger:USB:SOURce:D MINus? (see page 979)

<source> ::= {CHANnel<n> | EXTernal} for the DSO models
<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:TRIGger:USB:SOURce:D
PLus <source> (see page 980)

:TRIGger:USB:SOURce:D PLus? (see page 980)

<source> ::= {CHANnel<n> | EXTernal} for the DSO models
<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:TRIGger:USB:SPEed

:TRIGger:USB:SPEed?

<value> (see page 981) (see page 981)

<value> ::= {LOW | FULL}

:TRIGger:USB:TRIGger :TRIGger:USB:TRIGger? <value> ::= {SOP | EOP |

<value> (see page 982) (see page 982)

ENTersuspend | EXITsuspend |

RESet}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

155

4 Commands Quick Reference

Table 61 :WAVeform Commands Summary

Command

Query

Options and Query Returns

:WAVeform:BYTeorder :WAVeform:BYTeorder? <value> ::= {LSBFirst | MSBFirst} <value> (see page 991) (see page 991)

n/a

:WAVeform:COUNt? (see <count> ::= an integer from 1 to

page 992)

65536 in NR1 format

n/a

:WAVeform:DATA? (see <binary block length bytes>,

page 993)

<binary data>

For example, to transmit 1000 bytes of data, the syntax would be: #800001000<1000 bytes of data><NL>

8 is the number of digits that follow

00001000 is the number of bytes to be transmitted

<1000 bytes of data> is the actual data

:WAVeform:FORMat

:WAVeform:FORMat?

<value> (see page 995) (see page 995)

<value> ::= {WORD | BYTE | ASCII}

:WAVeform:POINts
<# points> (see page 996)

:WAVeform:POINts? (see page 996)

<# points> ::= {100 | 250 | 500 | 1000 | <points_mode>} if waveform points mode is NORMal
<# points> ::= {100 | 250 | 500 | 1000 | 2000 ... 8000000 in 1-2-5 sequence | <points_mode>} if waveform points mode is MAXimum or RAW
<points_mode> ::= {NORMal | MAXimum | RAW}

:WAVeform:POINts:MODE :WAVeform:POINts:MODE <points_mode> ::= {NORMal |

<points_mode> (see

? (see page 999)

MAXimum | RAW}

page 998)

156

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 61 :WAVeform Commands Summary (continued)

Command

Query

Options and Query Returns

n/a

:WAVeform:PREamble? <preamble_block> ::= <format

(see page 1000)

NR1>, <type NR1>,<points

NR1>,<count NR1>, <xincrement

NR3>, <xorigin NR3>, <xreference

NR1>,<yincrement NR3>, <yorigin

NR3>, <yreference NR1>

<format> ::= an integer in NR1 format:

· 0 for BYTE format · 1 for WORD format · 2 for ASCii format
<type> ::= an integer in NR1 format:

· 0 for NORMal type · 1 for PEAK detect type · 3 for AVERage type · 4 for HRESolution type
<count> ::= Average count, or 1 if PEAK detect type or NORMal; an integer in NR1 format

n/a

:WAVeform:SEGMented:C <count> ::= an integer from 2 to

OUNt? (see page 1003) 1000 in NR1 format (with Option

SGM)

n/a

:WAVeform:SEGMented:T <time_tag> ::= in NR3 format

TAG? (see page 1004)

(with Option SGM)

:WAVeform:SOURce
<source> (see page 1005)

:WAVeform:SOURce? (see page 1005)

<source> ::= {CHANnel<n> | FUNCtion | MATH | SBUS{1 | 2}} for DSO models
<source> ::= {CHANnel<n> | POD{1 | 2} | BUS{1 | 2} | FUNCtion | MATH | SBUS{1 | 2}} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format

:WAVeform:SOURce:SUBS :WAVeform:SOURce:SUBS <subsource> ::= {{SUB0 | RX |

ource <subsource>

ource? (see page 1009) MOSI} | {SUB1 | TX | MISO}}

(see page 1009)

n/a

:WAVeform:TYPE? (see <return_mode> ::= {NORM | PEAK |

page 1010)

AVER | HRES}

:WAVeform:UNSigned
{{0 | OFF} | {1 | ON}} (see page 1011)

:WAVeform:UNSigned? (see page 1011)

{0 | 1}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

157

4 Commands Quick Reference

Table 61 :WAVeform Commands Summary (continued)

Command

Query

Options and Query Returns

:WAVeform:VIEW <view> :WAVeform:VIEW? (see <view> ::= {MAIN}

(see page 1012)

page 1012)

n/a

:WAVeform:XINCrement? <return_value> ::= x-increment

(see page 1013)

in the current preamble in NR3

format

n/a

:WAVeform:XORigin?

<return_value> ::= x-origin

(see page 1014)

value in the current preamble in

NR3 format

n/a

:WAVeform:XREFerence? <return_value> ::= 0

(see page 1015)

(x-reference value in the current

preamble in NR1 format)

n/a

:WAVeform:YINCrement? <return_value> ::= y-increment

(see page 1016)

value in the current preamble in

NR3 format

n/a

:WAVeform:YORigin?

<return_value> ::= y-origin in

(see page 1017)

the current preamble in NR3

format

n/a

:WAVeform:YREFerence? <return_value> ::= y-reference

(see page 1018)

value in the current preamble in

NR1 format

Table 62 :WGEN Commands Summary

Command

Query

Options and Query Returns

:WGEN:ARBitrary:BYTeo :WGEN:ARBitrary:BYTeo <order> ::= {MSBFirst | LSBFirst}

rder <order> (see

rder? (see page 1023)

page 1023)

:WGEN:ARBitrary:DATA n/a
{<binary> | <value>,
<value> ...} (see page 1024)

<binary> ::= single-presision floating point values between -1.0 to +1.0 in IEEE 488.2 binary block format
<value> ::= floating point values between -1.0 to +1.0 in comma-separated format

n/a

:WGEN:ARBitrary:DATA: <points> ::= number of points in

ATTRibute:POINts? (see page 1027)

NR1 format

:WGEN:ARBitrary:DATA: n/a

n/a

CLEar (see page 1028)

158

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 62 :WGEN Commands Summary (continued)

Command

Query

Options and Query Returns

:WGEN:ARBitrary:DATA: n/a
DAC {<binary> |
<value>, <value> ...} (see page 1029)

<binary> ::= decimal 16-bit integer values between -512 to +511 in IEEE 488.2 binary block format
<value> ::= decimal integer values between -512 to +511 in comma-separated NR1 format

:WGEN:ARBitrary:INTer
polate {{0 | OFF} |
{1 | ON}} (see page 1030)

:WGEN:ARBitrary:INTer
polate? (see page 1030)

{0 | 1}

:WGEN:ARBitrary:STORe n/a
<source> (see page 1031)

<source> ::= {CHANnel<n> | WMEMory<r> | FUNCtion | MATH}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format

:WGEN:FREQuency
<frequency> (see page 1032)

:WGEN:FREQuency? (see <frequency> ::= frequency in Hz

page 1032)

in NR3 format

:WGEN:FUNCtion
<signal> (see page 1033)

:WGEN:FUNCtion? (see page 1036)

<signal> ::= {SINusoid | SQUare | RAMP | PULSe | NOISe | DC | SINC | EXPRise | EXPFall | CARDiac | GAUSsian | ARBitrary}

:WGEN:FUNCtion:PULSe: :WGEN:FUNCtion:PULSe: <width> ::= pulse width in

WIDTh <width> (see

WIDTh? (see page 1037) seconds in NR3 format

page 1037)

:WGEN:FUNCtion:RAMP:S :WGEN:FUNCtion:RAMP:S <percent> ::= symmetry

YMMetry <percent> (see page 1038)

YMMetry? (see page 1038)

percentage from 0% to 100% in NR1 format

:WGEN:FUNCtion:SQUare :WGEN:FUNCtion:SQUare <percent> ::= duty cycle

:DCYCle <percent> (see page 1039)

:DCYCle? (see page 1039)

percentage from 20% to 80% in NR1 format

:WGEN:MODulation:AM:D :WGEN:MODulation:AM:D <percent> ::= AM depth percentage EPTh <percent> (see EPTh? (see page 1040) from 0% to 100% in NR1 format page 1040)

:WGEN:MODulation:AM:F :WGEN:MODulation:AM:F <frequency> ::= modulating

REQuency <frequency> REQuency? (see

(see page 1041)

page 1041)

waveform frequency in Hz in NR3 format

:WGEN:MODulation:FM:D :WGEN:MODulation:FM:D <frequency> ::= frequency

EViation <frequency> EViation? (see

(see page 1042)

page 1042)

deviation in Hz in NR3 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

159

4 Commands Quick Reference

Table 62 :WGEN Commands Summary (continued)

Command

Query

Options and Query Returns

:WGEN:MODulation:FM:F :WGEN:MODulation:FM:F <frequency> ::= modulating

REQuency <frequency> REQuency? (see

(see page 1043)

page 1043)

waveform frequency in Hz in NR3 format

:WGEN:MODulation:FSKe :WGEN:MODulation:FSKe <frequency> ::= hop frequency in

y:FREQuency <percent> y:FREQuency? (see

(see page 1044)

page 1044)

Hz in NR3 format

:WGEN:MODulation:FSKe :WGEN:MODulation:FSKe <rate> ::= FSK modulation rate in

y:RATE <rate> (see page 1045)

y:RATE? (see page 1045)

Hz in NR3 format

:WGEN:MODulation:FUNC :WGEN:MODulation:FUNC <shape> ::= {SINusoid | SQUare|

tion <shape> (see

tion? (see page 1046) RAMP}

page 1046)

:WGEN:MODulation:FUNC
tion:RAMP:SYMMetry
<percent> (see page 1047)

:WGEN:MODulation:FUNC
tion:RAMP:SYMMetry? (see page 1047)

<percent> ::= symmetry percentage from 0% to 100% in NR1 format

:WGEN:MODulation:NOIS :WGEN:MODulation:NOIS <percent> ::= 0 to 100

e <percent> (see

e? (see page 1048)

page 1048)

:WGEN:MODulation:STAT :WGEN:MODulation:STAT {0 | 1} e {{0 | OFF} | {1 | e? (see page 1049) ON}} (see page 1049)

:WGEN:MODulation:TYPE :WGEN:MODulation:TYPE <type> ::= {AM | FM | FSK} <type> (see page 1050) ? (see page 1050)

:WGEN:OUTPut {{0 |
OFF} | {1 | ON}} (see page 1052)

:WGEN:OUTPut? (see page 1052)

{0 | 1}

:WGEN:OUTPut:LOAD
<impedance> (see page 1053)

:WGEN:OUTPut:LOAD? (see page 1053)

<impedance> ::= {ONEMeg | FIFTy}

:WGEN:PERiod <period> :WGEN:PERiod? (see

(see page 1054)

page 1054)

<period> ::= period in seconds in NR3 format

:WGEN:RST (see

n/a

n/a

page 1055)

:WGEN:VOLTage
<amplitude> (see page 1056)

:WGEN:VOLTage? (see page 1056)

<amplitude> ::= amplitude in volts in NR3 format

:WGEN:VOLTage:HIGH

:WGEN:VOLTage:HIGH?

<high> (see page 1057) (see page 1057)

<high> ::= high-level voltage in volts, in NR3 format

160

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Table 62 :WGEN Commands Summary (continued)

Command

Query

Options and Query Returns

:WGEN:VOLTage:LOW

:WGEN:VOLTage:LOW?

<low> (see page 1058) (see page 1058)

<low> ::= low-level voltage in volts, in NR3 format

:WGEN:VOLTage:OFFSet
<offset> (see page 1059)

:WGEN:VOLTage:OFFSet? <offset> ::= offset in volts in

(see page 1059)

NR3 format

Table 63 :WMEMory<r> Commands Summary

Command

Query

:WMEMory<r>:CLEar

n/a

(see page 1063)

:WMEMory<r>:DISPlay
{{0 | OFF} | {1 | ON}} (see page 1064)

:WMEMory<r>:DISPlay? (see page 1064)

:WMEMory<r>:LABel
<string> (see page 1065)

:WMEMory<r>:LABel? (see page 1065)

:WMEMory<r>:SAVE

n/a

<source> (see page 1066)

:WMEMory<r>:SKEW

:WMEMory<r>:SKEW?

<skew> (see page 1067) (see page 1067)

:WMEMory<r>:YOFFset
<offset>[suffix] (see page 1068)

:WMEMory<r>:YOFFset? (see page 1068)

Options and Query Returns <r> ::= 1-2 in NR1 format
<r> ::= 1-2 in NR1 format {0 | 1}
<r> ::= 1-2 in NR1 format <string> ::= any series of 10 or less ASCII characters enclosed in quotation marks
<r> ::= 1-2 in NR1 format <source> ::= {CHANnel<n> | FUNCtion | MATH} <n> ::= 1 to (# analog channels) in NR1 format NOTE: Only ADD or SUBtract math operations can be saved as reference waveforms.
<r> ::= 1-2 in NR1 format <skew> ::= time in seconds in NR3 format
<r> ::= 1-2 in NR1 format <offset> ::= vertical offset value in NR3 format [suffix] ::= {V | mV}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

161

4 Commands Quick Reference

Table 63 :WMEMory<r> Commands Summary (continued)

Command

Query

:WMEMory<r>:YRANge
<range>[suffix] (see page 1069)

:WMEMory<r>:YRANge? (see page 1069)

:WMEMory<r>:YSCale
<scale>[suffix] (see page 1070)

:WMEMory<r>:YSCale? (see page 1070)

Options and Query Returns
<r> ::= 1-2 in NR1 format <range> ::= vertical full-scale range value in NR3 format [suffix] ::= {V | mV}
<r> ::= 1-2 in NR1 format <scale> ::= vertical units per division value in NR3 format [suffix] ::= {V | mV}

162

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Commands Quick Reference 4

Syntax Elements
· "Number Format" on page 163 · "<NL> (Line Terminator)" on page 163 · "[ ] (Optional Syntax Terms)" on page 163 · "{ } (Braces)" on page 163 · "::= (Defined As)" on page 163 · "< > (Angle Brackets)" on page 164 · "... (Ellipsis)" on page 164 · "n,..,p (Value Ranges)" on page 164 · "d (Digits)" on page 164 · "Quoted ASCII String" on page 164 · "Definite-Length Block Response Data" on page 164
Number Format
NR1 specifies integer data. NR3 specifies exponential data in floating point format (for example, -1.0E-3).
<NL> (Line Terminator)
<NL> = new line or linefeed (ASCII decimal 10). The line terminator, or a leading colon, will send the parser to the "root" of the command tree.
[ ] (Optional Syntax Terms)
Items enclosed in square brackets, [ ], are optional.
{ } (Braces)
When several items are enclosed by braces, { }, only one of these elements may be selected. Vertical line ( | ) indicates "or". For example, {ON | OFF} indicates that only ON or OFF may be selected, not both.
::= (Defined As)
::= means "defined as". For example, <A> ::= <B> indicates that <A> can be replaced by <B> in any statement containing <A>.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

163

4 Commands Quick Reference

< > (Angle Brackets)
< > Angle brackets enclose words or characters that symbolize a program code parameter or an interface command.
... (Ellipsis)
... An ellipsis (trailing dots) indicates that the preceding element may be repeated one or more times.
n,..,p (Value Ranges)
n,..,p ::= all integers between n and p inclusive.
d (Digits)
d ::= A single ASCII numeric character 0 - 9.
Quoted ASCII String
A quoted ASCII string is a string delimited by either double quotes (") or single quotes ('). Some command parameters require a quoted ASCII string. For example, when using the Keysight VISA COM library in Visual Basic, the command:
myScope.WriteString ":CHANNEL1:LABEL 'One'"
has a quoted ASCII string of:
'One'
In order to read quoted ASCII strings from query return values, some programming languages require special handling or syntax.
Definite-Length Block Response Data
Definite-length block response data allows any type of device-dependent data to be transmitted over the system interface as a series of 8-bit binary data bytes. This is particularly useful for sending large quantities of data or 8-bit extended ASCII codes. This syntax is a pound sign (#) followed by a non-zero digit representing the number of digits in the decimal integer. After the non-zero digit is the decimal integer that states the number of 8-bit data bytes being sent. This is followed by the actual data. For example, for transmitting 1000 bytes of data, the syntax would be
#800001000<1000 bytes of data> <NL>
8 is the number of digits that follow 00001000 is the number of bytes to be transmitted

164

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

<1000 bytes of data> is the actual data

Commands Quick Reference 4

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

165

4 Commands Quick Reference

166

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
5 Common (*) Commands

Commands defined by IEEE 488.2 standard that are common to all instruments. See "Introduction to Common (*) Commands" on page 169.

Table 64 Common (*) Commands Summary

Command *CLS (see page 171)
*ESE <mask> (see page 172)

Query n/a *ESE? (see page 172)

n/a

*ESR? (see page 174)

n/a

*IDN? (see page 174)

n/a

*LRN? (see page 177)

Options and Query Returns

n/a

<mask> ::= 0 to 255; an integer in NR1 format:

Bit Weight Name Enables

--- ------ ---- ----------

7 128 PON Power On

6

64 URQ User Request

5

32 CME Command Error

4

16 EXE Execution Error

3

8 DDE Dev. Dependent Error

2

4 QYE Query Error

1

2 RQL Request Control

0

1 OPC Operation Complete

<status> ::= 0 to 255; an integer in NR1 format

AGILENT TECHNOLOGIES,<model>,<serial number>,X.XX.XX
<model> ::= the model number of the instrument
<serial number> ::= the serial number of the instrument
<X.XX.XX> ::= the software revision of the instrument

<learn_string> ::= current instrument setup as a block of data in IEEE 488.2 # format

167

5 Common (*) Commands

Table 64 Common (*) Commands Summary (continued)

Command *OPC (see page 178)

Query *OPC? (see page 178)

n/a

*OPT? (see page 179)

*RCL <value> (see

n/a

page 181)

*RST (see page 182)

n/a

Options and Query Returns
ASCII "1" is placed in the output queue when all pending device operations have completed.
<return_value> ::= 0,0,<license info>
<license info> ::= <All field>, <reserved>, <MSO>, <reserved>, <Memory>, <Low Speed Serial>, <Automotive Serial>, <reserved>, <reserved>, <Power Measurements>, <RS-232/UART Serial>, <Segmented Memory>, <Mask Test>, <reserved>, <Bandwidth>, <reserved>, <reserved>, <reserved>, <I2S Serial>, <reserved>, <reserved>, <Waveform Generator>, <reserved>, <reserved>
<All field> ::= {0 | All}
<reserved> ::= 0
<MSO> ::= {0 | MSO}
<Memory> ::= {0 | MEMUP}
<Low Speed Serial> ::= {0 | EMBD}
<Automotive Serial> ::= {0 | AUTO}
<Power Measurements> ::= {0 | PWR}
<RS-232/UART Serial> ::= {0 | COMP}
<Segmented Memory> ::= {0 | SGM}
<Mask Test> ::= {0 | MASK}
<Bandwidth> ::= {0 | BW20 | BW50}
<I2S Serial> ::= {0 | AUDIO}
<Waveform Generator> ::= {0 | WAVEGEN}
<value> ::= {0 | 1 | 4 | 5 | 6 | 7 | 8 | 9} See *RST (Reset) (see page 182)

168

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Common (*) Commands 5

Table 64 Common (*) Commands Summary (continued)

Command

Query

*SAV <value> (see page 185)
*SRE <mask> (see page 186)

n/a *SRE? (see page 187)

n/a

*STB? (see page 188)

*TRG (see page 190) n/a
*WAI (see page 192)

n/a *TST? (see page 191)
n/a

Options and Query Returns

<value> ::= {0 | 1 | 4 | 5 | 6 | 7 | 8 | 9}

<mask> ::= sum of all bits that are set, 0 to 255; an integer in NR1 format. <mask> ::= following values:

Bit Weight Name Enables

--- ------ ---- ----------

7 128 OPER Operation Status Reg

6

64 ---- (Not used.)

5

32 ESB Event Status Bit

4

16 MAV Message Available

3

8 ---- (Not used.)

2

4 MSG Message

1

2 USR User

0

1 TRG Trigger

<value> ::= 0 to 255; an integer in NR1 format, as shown in the following:

Bit Weight Name "1" Indicates

--- ------ ---- ---------------

7 128 OPER Operation status

condition occurred.

6

64 RQS/ Instrument is

MSS requesting service.

5

32 ESB Enabled event status

condition occurred.

4

16 MAV Message available.

3

8 ---- (Not used.)

2

4 MSG Message displayed.

1

2 USR User event

condition occurred.

0

1 TRG A trigger occurred.

n/a

<result> ::= 0 or non-zero value; an integer in NR1 format

n/a

Introduction to Common (*) Commands

The common commands are defined by the IEEE 488.2 standard. They are implemented by all instruments that comply with the IEEE 488.2 standard. They provide some of the basic instrument functions, such as instrument identification and reset, reading the instrument setup, and determining how status is read and cleared.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

169

5 Common (*) Commands

NOTE

Common commands can be received and processed by the instrument whether they are sent over the interface as separate program messages or within other program messages. If an instrument subsystem has been selected and a common command is received by the instrument, the instrument remains in the selected subsystem. For example, if the program message ":ACQuire:TYPE AVERage; *CLS; COUNt 256" is received by the instrument, the instrument sets the acquire type, then clears the status information and sets the average count. In contrast, if a root level command or some other subsystem command is within the program message, you must re-enter the original subsystem after the command. For example, the program message ":ACQuire:TYPE AVERage; :AUToscale; :ACQuire:COUNt 256" sets the acquire type, completes the autoscale, then sets the acquire count. In this example, :ACQuire must be sent again after the :AUToscale command in order to re-enter the ACQuire subsystem and set the count.
Each of the status registers has an enable (mask) register. By setting the bits in the enable register, you can select the status information you want to use.

170

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Common (*) Commands 5

*CLS (Clear Status)

Command Syntax

(see page 1164)
*CLS
The *CLS common command clears the status data structures, the device-defined error queue, and the Request-for-OPC flag.

NOTE

If the *CLS command immediately follows a program message terminator, the output queue and the MAV (message available) bit are cleared.

See Also

· "Introduction to Common (*) Commands" on page 169 · "*STB (Read Status Byte)" on page 188 · "*ESE (Standard Event Status Enable)" on page 172 · "*ESR (Standard Event Status Register)" on page 174 · "*SRE (Service Request Enable)" on page 186 · ":SYSTem:ERRor" on page 874

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

171

5 Common (*) Commands

*ESE (Standard Event Status Enable)

(see page 1164) Command Syntax *ESE <mask_argument>
<mask_argument> ::= integer from 0 to 255
The *ESE common command sets the bits in the Standard Event Status Enable Register. The Standard Event Status Enable Register contains a mask value for the bits to be enabled in the Standard Event Status Register. A "1" in the Standard Event Status Enable Register enables the corresponding bit in the Standard Event Status Register. A zero disables the bit.

128 64 32 16 8

4

2

1

PON URQ CME EXE DDE QYE RQL OPC *ESR?

Standard Event Status Register

7

6

5

4

3

2

1

0

* ESE * ESE?

Standard Event Status Enable (Mask) Register

 OR

To ESB bit in Statu s Byte
Register

Table 65 Standard Event Status Enable (ESE)

Bit Name 7 PON 6 URQ 5 CME 4 EXE 3 DDE 2 QYE 1 RQL
0 OPC

Description Power On User Request Command Error Execution Error Device Dependent Error Query Error Request Control
Operation Complete

When Set (1 = High = True), Enables: Event when an OFF to ON transition occurs. Event when a front-panel key is pressed. Event when a command error is detected. Event when an execution error is detected. Event when a device-dependent error is detected. Event when a query error is detected. Event when the device is requesting control. (Not used.) Event when an operation is complete.

Query Syntax *ESE?

172

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Common (*) Commands 5

Return Format

The *ESE? query returns the current contents of the Standard Event Status Enable Register.
<mask_argument><NL>

See Also

<mask_argument> ::= 0,..,255; an integer in NR1 format.
· "Introduction to Common (*) Commands" on page 169 · "*ESR (Standard Event Status Register)" on page 174 · "*OPC (Operation Complete)" on page 178 · "*CLS (Clear Status)" on page 171

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

173

5 Common (*) Commands

*ESR (Standard Event Status Register)

Query Syntax

(see page 1164)
*ESR?
The *ESR? query returns the contents of the Standard Event Status Register. When you read the Event Status Register, the value returned is the total bit weights of all of the bits that are high at the time you read the byte. Reading the register clears the Event Status Register. The following table shows bit weight, name, and condition for each bit.

128 64 32 16 8

4

2

1

PON URQ CME EXE DDE QYE RQL OPC *ESR?

Standard Event Status Register

7

6

5

4

3

2

1

0

* ESE * ESE?

Standard Event Status Enable (Mask) Register

 OR

To ESB bit in Statu s Byte
Register

Table 66 Standard Event Status Register (ESR)

Bit Name 7 PON 6 URQ 5 CME 4 EXE 3 DDE 2 QYE 1 RQL 0 OPC

Description Power On User Request Command Error Execution Error Device Dependent Error Query Error Request Control Operation Complete

When Set (1 = High = True), Indicates: An OFF to ON transition has occurred. A front-panel key has been pressed. A command error has been detected. An execution error has been detected. A device-dependent error has been detected. A query error has been detected. The device is requesting control. (Not used.) Operation is complete.

Return Format

<status><NL> <status> ::= 0,..,255; an integer in NR1 format.

174

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Common (*) Commands 5

NOTE

Reading the Standard Event Status Register clears it. High or 1 indicates the bit is true.

See Also

· "Introduction to Common (*) Commands" on page 169 · "*ESE (Standard Event Status Enable)" on page 172 · "*OPC (Operation Complete)" on page 178 · "*CLS (Clear Status)" on page 171 · ":SYSTem:ERRor" on page 874

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

175

5 Common (*) Commands

*IDN (Identification Number)

Query Syntax Return Format

(see page 1164)
*IDN?
The *IDN? query identifies the instrument type and software version.
AGILENT TECHNOLOGIES,<model>,<serial number>,X.XX.XX <NL>

<model> ::= the model number of the instrument

<serial number> ::= the serial number of the instrument

See Also

X.XX.XX ::= the software revision of the instrument
· "Introduction to Common (*) Commands" on page 169 · "*OPT (Option Identification)" on page 179

176

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Common (*) Commands 5

*LRN (Learn Device Setup)

(see page 1164)

Query Syntax Return Format

*LRN?
The *LRN? query result contains the current state of the instrument. This query is similar to the :SYSTem:SETup? (see page 888) query, except that it contains ":SYST:SET " before the binary block data. The query result is a valid command that can be used to restore instrument settings at a later time.
<learn_string><NL>

<learn_string> ::= :SYST:SET <setup_data>

<setup_data> ::= binary block data in IEEE 488.2 # format
<learn string> specifies the current instrument setup. The block size is subject to change with different firmware revisions.

NOTE

The *LRN? query return format has changed from previous Keysight oscilloscopes to match the IEEE 488.2 specification which says that the query result must contain ":SYST:SET " before the binary block data.

See Also

· "Introduction to Common (*) Commands" on page 169 · "*RCL (Recall)" on page 181 · "*SAV (Save)" on page 185 · ":SYSTem:SETup" on page 888

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

177

5 Common (*) Commands

*OPC (Operation Complete)

(see page 1164)

Command Syntax Query Syntax Return Format

*OPC
The *OPC command sets the operation complete bit in the Standard Event Status Register when all pending device operations have finished.
*OPC?
The *OPC? query places an ASCII "1" in the output queue when all pending device operations have completed. The interface hangs until this query returns.
<complete><NL>

See Also

<complete> ::= 1
· "Introduction to Common (*) Commands" on page 169 · "*ESE (Standard Event Status Enable)" on page 172 · "*ESR (Standard Event Status Register)" on page 174 · "*CLS (Clear Status)" on page 171

178

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Common (*) Commands 5

*OPT (Option Identification)

Query Syntax Return Format

(see page 1164)
*OPT?
The *OPT? query reports the options installed in the instrument. This query returns a string that identifies the module and its software revision level.
0,0,<license info>

<license info> ::= <All field>, <reserved>, <MSO>, <reserved>, <Memory>, <Low Speed Serial>, <Automotive Serial>, <reserved>, <FlexRay Serial>
, <Power Measurements>, <RS-232/UART Serial>, <Segmented Memory>, <Mask Test>, <reserved>, <reserved>, <Bandwidth>, <reserved>, <reserved>, <I2S Serial>, <reserved>, <Educator's Kit>, <Waveform Generator>, <MIL-1553/ARINC 429 Serial>, <Extended Video>, <Advanced Math>, <reserved>, <reserved>, <reserved>, <Digital Voltmeter>, <reserved>, <reserved>, <reserved>, <Remote Command Logging>, <reserved>, <reserved>, <reserved>, <reserved>, <reserved>, <Automotive Software>, <General Purpose Softw
are>, <Aerospace Software>, <Power Supply Test Software>, <Software Bundle>

<All field> ::= {0 | All}

<reserved> ::= 0

<MSO> ::= {0 | MSO}

<Memory> ::= {0 | MEMUP}

<Low Speed Serial> ::= {0 | EMBD}

<Automotive Serial> ::= {0 | AUTO}

<FlexRay Serial> ::= {0 | FLEX}

<Power Measurements> ::= {0 | PWR}

<RS-232/UART Serial> ::= {0 | COMP}

<Segmented Memory> ::= {0 | SGM}

<Mask Test> ::= {0 | MASK}

<Bandwidth> ::= {0 | BW20 | BW50}

<I2S Serial> ::= {0 | AUDIO}

<Educator's Kit> ::= {0 | EDK}

<Waveform Generator> ::= {0 | WAVEGEN}

<MIL-1553/ARINC 429 Serial> ::= {0 | AERO}

<Extended Video> ::= {0 | VID}

<Advanced Math> ::= {0 | ADVMATH}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

179

5 Common (*) Commands

<Digital Voltmeter> ::= {0 | DVM} <Remote Command Logging> ::= {0 | RML} <Automotive Software> ::= {0 | D3000AUTA} <General Purpose Software> ::= {0 | D3000GENA} <Aerospace Software> ::= {0 | D3000AERA} <Power Supply Test Software> ::= {0 | D3000PWRA} <Software Bundle> ::= {0 | D3000BDLA} The <MSO> field indicates whether the unit is a mixed-signal oscilloscope.
The *OPT? query returns the following:

Module No modules attached

Module Id 0,0,0,0,MSO,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0

See Also · "Introduction to Common (*) Commands" on page 169 · "*IDN (Identification Number)" on page 176

180

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Common (*) Commands 5
*RCL (Recall)
(see page 1164) Command Syntax *RCL <value>
<value> ::= {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}
The *RCL command restores the state of the instrument from the specified save/recall register. See Also · "Introduction to Common (*) Commands" on page 169 · "*SAV (Save)" on page 185

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

181

5 Common (*) Commands

*RST (Reset)

Command Syntax

(see page 1164)
*RST
The *RST command places the instrument in a known state. This is the same as pressing [Save/Recall] > Default/Erase > Factory Default on the front panel. When you perform a factory default setup, there are no user settings that remain unchanged. To perform the equivalent of the front panel's [Default Setup] key, where some user settings (like preferences) remain unchanged, use the :SYSTem:PRESet command. Reset conditions are:

Acquire Menu Mode Averaging # Averages

Normal Off 8

Analog Channel Menu Channel 1 Channel 2 Volts/division Offset Coupling Probe attenuation
Vernier Invert BW limit Impedance Units Skew

On Off 5.00 V 0.00 DC AutoProbe (if AutoProbe is connected), otherwise 1.0:1 Off Off Off 1 M Ohm Volts 0

Cursor Menu Source

Channel 1

182

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Common (*) Commands 5

Digital Channel Menu (MSO models only) Channel 0 - 15 Labels Threshold
Display Menu Persistence Grid
Quick Meas Menu Source
Run Control
Time Base Menu Main time/division Main time base delay Delay time/division Delay time base delay Reference Mode Vernier
Trigger Menu Type Mode Coupling Source Level Slope

Off Off TTL (1.4 V)
Off 20%
Channel 1
Scope is running
100 us 0.00 s 500 ns 0.00 s center main Off
Edge Auto dc Channel 1 0.0 V Positive

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

183

5 Common (*) Commands

Trigger Menu HF Reject and noise reject Holdoff External probe attenuation External Units External Impedance

Off 40 ns 10:1 Volts 1 M Ohm (cannot be changed)

See Also Example Code

· "Introduction to Common (*) Commands" on page 169 · ":SYSTem:PRESet" on page 877
' RESET - This command puts the oscilloscope into a known state. ' This statement is very important for programs to work as expected. ' Most of the following initialization commands are initialized by ' *RST. It is not necessary to reinitialize them unless the default ' setting is not suitable for your application. myScope.WriteString "*RST" ' Reset the oscilloscope to the defaults.
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

184

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Common (*) Commands 5
*SAV (Save)
(see page 1164) Command Syntax *SAV <value>
<value> ::= {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}
The *SAV command stores the current state of the instrument in a save register. The data parameter specifies the register where the data will be saved. See Also · "Introduction to Common (*) Commands" on page 169 · "*RCL (Recall)" on page 181

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

185

5 Common (*) Commands

*SRE (Service Request Enable)

(see page 1164) Command Syntax *SRE <mask>
<mask> ::= integer with values defined in the following table.
The *SRE command sets the bits in the Service Request Enable Register. The Service Request Enable Register contains a mask value for the bits to be enabled in the Status Byte Register. A one in the Service Request Enable Register enables the corresponding bit in the Status Byte Register. A zero disables the bit.

'SPN 'SPN 4UBOEBSE 0QFSBUJPO &WFOU 4UBUVT 4UBUVT 3FHJTUFST 3FHJTUFST
0VUQVU 2VFVF

53( 3FH

5&3

01&3

324 .44

&4#

."7

.4( 643 53( 45#


43& 43&

5SJHHFS&WFOU3FHJTUFS
4UBUVT#ZUF3FHJTUFS
4FSWJDF3FRVFTU&OBCM .BTL
3FHJTUFS

 03
432 4FSWJDF3FRVFTU

186

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Common (*) Commands 5

Table 67 Service Request Enable Register (SRE)

Bit Name 7 OPER
6 --5 ESB
4 MAV 3 --2 MSG
1 USR
0 TRG

Description Operation Status Register
--Event Status Bit
Message Available --Message
User Event
Trigger

When Set (1 = High = True), Enables: Interrupts when enabled conditions in the Operation Status Register (OPER) occur. (Not used.) Interrupts when enabled conditions in the Standard Event Status Register (ESR) occur. Interrupts when messages are in the Output Queue. (Not used.) Interrupts when an advisory has been displayed on the oscilloscope. Interrupts when enabled user event conditions occur. Interrupts when a trigger occurs.

Query Syntax Return Format

*SRE?
The *SRE? query returns the current value of the Service Request Enable Register.
<mask><NL>

See Also

<mask> ::= sum of all bits that are set, 0,..,255; an integer in NR1 format
· "Introduction to Common (*) Commands" on page 169 · "*STB (Read Status Byte)" on page 188 · "*CLS (Clear Status)" on page 171

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

187

5 Common (*) Commands

*STB (Read Status Byte)

(see page 1164)

Query Syntax Return Format

*STB?
The *STB? query returns the current value of the instrument's status byte. The MSS (Master Summary Status) bit is reported on bit 6 instead of the RQS (request service) bit. The MSS indicates whether or not the device has at least one reason for requesting service.
<value><NL>

<value> ::= 0,..,255; an integer in NR1 format

'SPN 'SPN 4UBOEBSE 0QFSBUJPO &WFOU 4UBUVT 4UBUVT 3FHJTUFST 3FHJTUFST
0VUQVU 2VFVF

53( 3FH

5&3

01&3

324 .44

&4#

."7

.4( 643 53( 45#


43& 43&

5SJHHFS&WFOU3FHJTUFS
4UBUVT#ZUF3FHJTUFS
4FSWJDF3FRVFTU&OBCM .BTL
3FHJTUFS

 03
432 4FSWJDF3FRVFTU

188

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Common (*) Commands 5

NOTE

Table 68 Status Byte Register (STB)

Bit Name 7 OPER

Description Operation Status Register

6 RQS MSS

Request Service Master Summary Status

5 ESB

Event Status Bit

4 MAV 3 --2 MSG

Message Available --Message

1 USR 0 TRG

User Event Trigger

When Set (1 = High = True), Indicates: An enabled condition in the Operation Status Register (OPER) has occurred. When polled, that the device is requesting service. When read (by *STB?), whether the device has a reason for requesting service. An enabled condition in the Standard Event Status Register (ESR) has occurred. There are messages in the Output Queue. (Not used, always 0.) An advisory has been displayed on the oscilloscope. An enabled user event condition has occurred. A trigger has occurred.

To read the instrument's status byte with RQS reported on bit 6, use the interface Serial Poll.

See Also · "Introduction to Common (*) Commands" on page 169 · "*SRE (Service Request Enable)" on page 186

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

189

5 Common (*) Commands

*TRG (Trigger)

Command Syntax See Also

(see page 1164)
*TRG
The *TRG command has the same effect as the :DIGitize command with no parameters. · "Introduction to Common (*) Commands" on page 169 · ":DIGitize" on page 205 · ":RUN" on page 225 · ":STOP" on page 229

190

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Common (*) Commands 5

*TST (Self Test)

(see page 1164)

Query Syntax Return Format

*TST?
The *TST? query performs a self-test on the instrument. The result of the test is placed in the output queue. A zero indicates the test passed and a non-zero indicates the test failed. If the test fails, refer to the troubleshooting section of the Service Guide.
<result><NL>

<result> ::= 0 or non-zero value; an integer in NR1 format
See Also · "Introduction to Common (*) Commands" on page 169

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

191

5 Common (*) Commands

*WAI (Wait To Continue)

Command Syntax See Also

(see page 1164)
*WAI
The *WAI command has no function in the oscilloscope, but is parsed for compatibility with other instruments. · "Introduction to Common (*) Commands" on page 169

192

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
6 Root (:) Commands

Control many of the basic functions of the oscilloscope and reside at the root level of the command tree. See "Introduction to Root (:) Commands" on page 196.

Table 69 Root (:) Commands Summary

Command

Query

:ACTivity (see page 197)

:ACTivity? (see page 197)

n/a

:AER? (see page 198)

:AUToscale

n/a

[<source>[,..,<source >]] (see page 199)

:AUToscale:AMODE

:AUToscale:AMODE?

<value> (see page 201) (see page 201)

:AUToscale:CHANnels :AUToscale:CHANnels? <value> (see page 202) (see page 202)

:AUToscale:FDEBug {{0
| OFF} | {1 | ON}} (see page 203)

:AUToscale:FDEBug? (see page 203)

Options and Query Returns <return value> ::= <edges>,<levels> <edges> ::= presence of edges (32-bit integer in NR1 format) <levels> ::= logical highs or lows (32-bit integer in NR1 format)
{0 | 1}; an integer in NR1 format
<source> ::= CHANnel<n> for DSO models <source> ::= {CHANnel<n> | DIGital<d> | POD1 | POD2} for MSO models <source> can be repeated up to 5 times <n> ::= 1 to (# analog channels) in NR1 format <d> ::= 0 to (# digital channels - 1) in NR1 format
<value> ::= {NORMal | CURRent}}
<value> ::= {ALL | DISPlayed}}
{0 | 1}

193

6 Root (:) Commands

Table 69 Root (:) Commands Summary (continued)

Command

Query

Options and Query Returns

:BLANk [<source>]

n/a

(see page 204)

<source> ::= {CHANnel<n>} | FUNCtion | MATH | SBUS{1 | 2} | WMEMory<r>} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | POD{1 | 2} | BUS{1 | 2} | FUNCtion | MATH | SBUS{1 | 2} | WMEMory<r>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<r> ::= 1 to (# ref waveforms) in NR1 format

:DIGitize

n/a

[<source>[,..,<source >]] (see page 205)

<source> ::= {CHANnel<n> | FUNCtion | MATH | SBUS{1 | 2}} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | POD{1 | 2} | BUS{1 | 2} | FUNCtion | MATH | SBUS{1 | 2}} for MSO models
<source> can be repeated up to 5 times
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:MTEenable <n> (see page 207)

:MTEenable? (see page 207)

<n> ::= 16-bit integer in NR1 format

n/a
:OPEE <n> (see page 211)

:MTERegister[:EVENt]? (see page 209)
:OPEE? (see page 212)

<n> ::= 16-bit integer in NR1 format
<n> ::= 15-bit integer in NR1 format

n/a

:OPERregister:CONDiti <n> ::= 15-bit integer in NR1

on? (see page 213)

format

n/a

:OPERegister[:EVENt]? <n> ::= 15-bit integer in NR1

(see page 215)

format

194

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Root (:) Commands 6

Table 69 Root (:) Commands Summary (continued)

Command

Query

Options and Query Returns

:OVLenable <mask> (see page 217)

:OVLenable? (see page 218)

<mask> ::= 16-bit integer in NR1 format as shown:

Bit Weight Input

--- ------ ----------

10 1024 Ext Trigger Fault

9 512 Channel 4 Fault

8 256 Channel 3 Fault

7 128 Channel 2 Fault

6

64 Channel 1 Fault

4

16 Ext Trigger OVL

3

8 Channel 4 OVL

2

4 Channel 3 OVL

1

2 Channel 2 OVL

0

1 Channel 1 OVL

n/a

:OVLRegister? (see

<value> ::= integer in NR1

page 219)

format. See OVLenable for <value>

:PRINt [<options>]

n/a

(see page 221)

<options> ::= [<print option>][,..,<print option>]
<print option> ::= {COLor | GRAYscale | PRINter0 | PRINter1 | BMP8bit | BMP | PNG | NOFactors | FACTors}
<print option> can be repeated up to 5 times.

:PWRenable <n> (see page 222)

:PWRenable? (see page 222)

<n> ::= 16-bit integer in NR1 format

n/a :RUN (see page 225) n/a :SINGle (see page 227)

:PWRRegister[:EVENt]? (see page 224) n/a :SERial (see page 226)
n/a

<n> ::= 16-bit integer in NR1 format
n/a
<return value> ::= unquoted string containing serial number
n/a

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

195

6 Root (:) Commands

Table 69 Root (:) Commands Summary (continued)

Command

Query

n/a

:STATus? <display>

(see page 228)

:STOP (see page 229)
n/a
:VIEW <source> (see page 231)

n/a :TER? (see page 230) n/a

Options and Query Returns
{0 | 1}
<display> ::= {CHANnel<n> | DIGital<d> | POD{1 | 2} | BUS{1 | 2} | FUNCtion | MATH | SBUS{1 | 2} | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<r> ::= 1 to (# ref waveforms) in NR1 format
n/a
{0 | 1}
<source> ::= {CHANnel<n> | FUNCtion | MATH | SBUS{1 | 2} | WMEMory<r>} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | POD{1 | 2} | BUS{1 | 2} | FUNCtion | MATH | SBUS{1 | 2} | WMEMory<r>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<r> ::= 1 to (# ref waveforms) in NR1 format

Introduction to Root (:)
Commands

Root level commands control many of the basic operations of the instrument. These commands are always recognized by the parser if they are prefixed with a colon, regardless of current command tree position. After executing a root-level command, the parser is positioned at the root of the command tree.

196

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Root (:) Commands 6

:ACTivity

Command Syntax Query Syntax

(see page 1164)
:ACTivity
The :ACTivity command clears the cumulative edge variables for the next activity query.
:ACTivity?
The :ACTivity? query returns whether there has been activity (edges) on the digital channels since the last query, and returns the current logic levels.

NOTE

Because the :ACTivity? query returns edge activity since the last :ACTivity? query, you must send this query twice before the edge activity result is valid.

Return Format

<edges>,<levels><NL> <edges> ::= presence of edges (16-bit integer in NR1 format). <levels> ::= logical highs or lows (16-bit integer in NR1 format). bit 0 ::= DIGital 0 bit 15 ::= DIGital 15

NOTE

A bit = 0 (zero) in the <edges> result indicates that no edges were detected on that channel (across the specified threshold voltage) since the last query. A bit = 1 (one) in the <edges> result indicates that edges have been detected on that channel (across the specified threshold voltage) since the last query. (The threshold voltage must be set appropriately for the logic levels of the signals being probed.)

See Also

· "Introduction to Root (:) Commands" on page 196 · ":POD<n>:THReshold" on page 543 · ":DIGital<d>:THReshold" on page 303

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

197

6 Root (:) Commands

:AER (Arm Event Register)

(see page 1164)

Query Syntax

:AER?
The AER query reads the Arm Event Register. After the Arm Event Register is read, it is cleared. A "1" indicates the trigger system is in the armed state, ready to accept a trigger. The Armed Event Register is summarized in the Wait Trig bit of the Operation Status Event Register. A Service Request can be generated when the Wait Trig bit transitions and the appropriate enable bits have been set in the Operation Status Enable Register (OPEE) and the Service Request Enable Register (SRE).

Return Format <value><NL>

See Also

<value> ::= {0 | 1}; an integer in NR1 format.
· "Introduction to Root (:) Commands" on page 196 · ":OPEE (Operation Status Enable Register)" on page 211 · ":OPERegister:CONDition (Operation Status Condition Register)" on page 213 · ":OPERegister[:EVENt] (Operation Status Event Register)" on page 215 · "*STB (Read Status Byte)" on page 188 · "*SRE (Service Request Enable)" on page 186

198

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Root (:) Commands 6

:AUToscale

(see page 1164) Command Syntax :AUToscale
:AUToscale [<source>[,..,<source>]]
<source> ::= CHANnel<n> for the DSO models
<source> ::= {DIGital<d> | POD1 | POD2 | CHANnel<n>} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
The <source> parameter may be repeated up to 5 times.
The :AUToscale command evaluates all input signals and sets the correct conditions to display the signals. This is the same as pressing the [Auto Scale] key on the front panel. If one or more sources are specified, those specified sources will be enabled and all others blanked. The autoscale channels mode (see ":AUToscale:CHANnels" on page 202) is set to DISPlayed channels. Then, the autoscale is performed. When the :AUToscale command is sent, the following conditions are affected and actions are taken: · Thresholds. · Channels with activity around the trigger point are turned on, others are turned
off. · Channels are reordered on screen; analog channel 1 first, followed by the
remaining analog channels, then the digital channels 0-15. · Delay is set to 0 seconds. · Time/Div. The :AUToscale command does not affect the following conditions: · Label names. · Trigger conditioning. The :AUToscale command turns off the following items: · Cursors. · Measurements. · Math waveforms. · Reference waveforms. · Zoomed (delayed) time base mode. For further information on :AUToscale, see the User's Guide.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

199

6 Root (:) Commands

See Also Example Code

· "Introduction to Root (:) Commands" on page 196 · ":AUToscale:CHANnels" on page 202 · ":AUToscale:AMODE" on page 201
' AUTOSCALE - This command evaluates all the input signals and sets ' the correct conditions to display all of the active signals. myScope.WriteString ":AUToscale" ' Same as pressing Auto Scale key.
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

200

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Root (:) Commands 6

:AUToscale:AMODE

(see page 1164)

Command Syntax :AUToscale:AMODE <value>

Query Syntax Return Format

<value> ::= {NORMal | CURRent}
The :AUTOscale:AMODE command specifies the acquisition mode that is set by subsequent :AUToscales. · When NORMal is selected, an :AUToscale command sets the NORMal
acquisition type and the RTIMe (real-time) acquisition mode. · When CURRent is selected, the current acquisition type and mode are kept on
subsequent :AUToscales. Use the :ACQuire:TYPE and :ACQuire:MODE commands to set the acquisition type and mode.
:AUToscale:AMODE?
The :AUToscale:AMODE? query returns the autoscale acquire mode setting.
<value><NL>

See Also

<value> ::= {NORM | CURR}
· "Introduction to Root (:) Commands" on page 196 · ":AUToscale" on page 199 · ":AUToscale:CHANnels" on page 202 · ":ACQuire:TYPE" on page 245 · ":ACQuire:MODE" on page 237

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

201

6 Root (:) Commands

:AUToscale:CHANnels

(see page 1164)

Command Syntax :AUToscale:CHANnels <value>

Query Syntax Return Format

<value> ::= {ALL | DISPlayed}
The :AUTOscale:CHANnels command specifies which channels will be displayed on subsequent :AUToscales. · When ALL is selected, all channels that meet the requirements of :AUToscale
will be displayed. · When DISPlayed is selected, only the channels that are turned on are
autoscaled. Use the :VIEW or :BLANk root commands to turn channels on or off.
:AUToscale:CHANnels?
The :AUToscale:CHANnels? query returns the autoscale channels setting.
<value><NL>

See Also

<value> ::= {ALL | DISP}
· "Introduction to Root (:) Commands" on page 196 · ":AUToscale" on page 199 · ":AUToscale:AMODE" on page 201 · ":VIEW" on page 231 · ":BLANk" on page 204

202

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Root (:) Commands 6

:AUToscale:FDEBug

(see page 1164)

Command Syntax :AUToscale:FDEBug <on_off>

<on_off> ::= {{1 | ON} | {0 | OFF}}
The :AUToscale:FDEBug command turns fast debug auto scaling on or off.

Query Syntax

The Fast Debug option changes the behavior of :AUToscale to let you make quick visual comparisons to determine whether the signal being probed is a DC voltage, ground, or an active AC signal. Channel coupling is maintained for easy viewing of oscillating signals.
:AUToscale:FDEBug?
The :AUToscale:FDEBug? query returns the current autoscale fast debug setting.

Return Format <on_off><NL>

See Also

<on_off> ::= {1 | 0}
· "Introduction to Root (:) Commands" on page 196 · ":AUToscale" on page 199

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

203

6 Root (:) Commands

:BLANk

(see page 1164) Command Syntax :BLANk [<source>]
<source> ::= {CHANnel<n> | FUNCtion | MATH | SBUS{1 | 2} | WMEMory<r>} for the DSO models
<source> ::= {CHANnel<n> | DIGital<d> | POD{1 | 2} | BUS{1 | 2} | FUNCtion | MATH | SBUS{1 | 2} | WMEMory<r>} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<r> ::= 1 to (# ref waveforms) in NR1 format
The :BLANk command turns off (stops displaying) the specified channel, digital pod, math function, or serial decode bus. The :BLANk command with no parameter turns off all sources.

NOTE

To turn on (start displaying) a channel, etc., use the :VIEW command. The DISPlay commands, :CHANnel<n>:DISPlay, :FUNCtion:DISPlay, :POD<n>:DISPlay, :DIGital<n>:DISPlay, :SBUS<n>:DISPlay, or :WMEMory<r>:DISPlay, are the preferred method to turn on/off a channel, etc.

NOTE

MATH is an alias for FUNCtion.

See Also Example Code

· "Introduction to Root (:) Commands" on page 196 · ":DISPlay:CLEar" on page 311 · ":CHANnel<n>:DISPlay" on page 273 · ":DIGital<d>:DISPlay" on page 299 · ":FUNCtion:DISPlay" on page 343 · ":POD<n>:DISPlay" on page 541 · ":WMEMory<r>:DISPlay" on page 1064 · ":STATus" on page 228 · ":VIEW" on page 231
· "Example Code" on page 231

204

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Root (:) Commands 6

:DIGitize

(see page 1164) Command Syntax :DIGitize [<source>[,..,<source>]]
<source> ::= {CHANnel<n> | FUNCtion | MATH | SBUS{1 | 2}} for the DSO models
<source> ::= {CHANnel<n> | DIGital<d> | POD{1 | 2} | BUS{1 | 2} | FUNCtion | MATH | SBUS{1 | 2}} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
The <source> parameter may be repeated up to 5 times.
The :DIGitize command is a specialized RUN command. It causes the instrument to acquire waveforms according to the settings of the :ACQuire commands subsystem. When the acquisition is complete, the instrument is stopped. If no argument is given, :DIGitize acquires the channels currently displayed. If no channels are displayed, all channels are acquired.

NOTE

The :DIGitize command is only executed when the :TIMebase:MODE is MAIN or WINDow.

NOTE

To halt a :DIGitize in progress, use the device clear command.

NOTE

MATH is an alias for FUNCtion.

See Also

· "Introduction to Root (:) Commands" on page 196 · ":RUN" on page 225 · ":SINGle" on page 227 · ":STOP" on page 229 · ":TIMebase:MODE" on page 893 · Chapter 7, ":ACQuire Commands," starting on page 233 · Chapter 32, ":WAVeform Commands," starting on page 983

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

205

6 Root (:) Commands

Example Code

' Capture an acquisition using :DIGitize. ' ----------------------------------------------------------------myScope.WriteString ":DIGitize CHANnel1"
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

206

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Root (:) Commands 6

:MTEenable (Mask Test Event Enable Register)
(see page 1164) Command Syntax :MTEenable <mask>
<mask> ::= 16-bit integer
The :MTEenable command sets a mask in the Mask Test Event Enable register. Set any of the following bits to "1" to enable bit 9 in the Operation Status Condition Register and potentially cause an SRQ (Service Request interrupt to be generated.

"VUP .BTL

4UBSUFE

'BJM

$PN QMFUF

.5&3FHJTUFS<&7&/U> .BTL5FTU&WFOU&WFOU3FHJTUFS

      



















..55&&FFOOBBCCMMFF

.BTL5FTU&WFOU&OBCMF .BTL
3FH

 03
5P.5&CJUJO 0QFSBUJPO4UBUVT $POEJUJPO3FHJTUFS

Table 70 Mask Test Event Enable Register (MTEenable)

Bit 15-11 10
9 8 7-2 1 0

Name Description

---

---

Auto Mask

Auto Mask Created

---

---

Started Mask Testing Started

---

---

Fail

Mask Test Fail

Complet Mask Test Complete e

When Set (1 = High = True), Enables: (Not used.) Auto mask creation completed.
(Not used.) Mask testing started. (Not used.) Mask test failed. Mask test is complete.

Query Syntax Return Format

:MTEenable?
The :MTEenable? query returns the current value contained in the Mask Test Event Enable register as an integer number.
<value><NL>

<value> ::= integer in NR1 format.
See Also · "Introduction to Root (:) Commands" on page 196

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

207

6 Root (:) Commands
· ":AER (Arm Event Register)" on page 198 · ":CHANnel<n>:PROTection" on page 283 · ":OPERegister[:EVENt] (Operation Status Event Register)" on page 215 · ":OVLenable (Overload Event Enable Register)" on page 217 · ":OVLRegister (Overload Event Register)" on page 219 · "*STB (Read Status Byte)" on page 188 · "*SRE (Service Request Enable)" on page 186

208

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Root (:) Commands 6

:MTERegister[:EVENt] (Mask Test Event Event Register)

Query Syntax

(see page 1164)
:MTERegister[:EVENt]?
The :MTERegister[:EVENt]? query returns the integer value contained in the Mask Test Event Event Register and clears the register.

"VUP .BTL

4UBSUFE

'BJM

$PN QMFUF

.5&3FHJTUFS<&7&/U> .BTL5FTU&WFOU&WFOU3FHJTUFS

      



















..55&&FFOOBBCCMMFF

.BTL5FTU&WFOU&OBCMF .BTL
3FH

 03
5P.5&CJUJO 0QFSBUJPO4UBUVT $POEJUJPO3FHJTUFS

Table 71 Mask Test Event Event Register

Bit 15-11 10
9 8 7-2 1 0

Name Description

---

---

Auto Mask

Auto Mask Created

---

---

Started Mask Testing Started

---

---

Fail

Mask Test Fail

Complet Mask Test Complete e

When Set (1 = High = True), Indicates: (Not used.) Auto mask creation completed.
(Not used.) Mask testing started. (Not used.) The mask test failed. The mask test is complete.

Return Format <value><NL>

See Also

<value> ::= integer in NR1 format.
· "Introduction to Root (:) Commands" on page 196 · ":CHANnel<n>:PROTection" on page 283 · ":OPEE (Operation Status Enable Register)" on page 211 · ":OPERegister:CONDition (Operation Status Condition Register)" on page 213 · ":OVLenable (Overload Event Enable Register)" on page 217 · ":OVLRegister (Overload Event Register)" on page 219

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

209

6 Root (:) Commands
· "*STB (Read Status Byte)" on page 188 · "*SRE (Service Request Enable)" on page 186

210

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Root (:) Commands 6

:OPEE (Operation Status Enable Register)
(see page 1164) Command Syntax :OPEE <mask>
<mask> ::= 15-bit integer
The :OPEE command sets a mask in the Operation Status Enable register. Set any of the following bits to "1" to enable bit 7 in the Status Byte Register and potentially cause an SRQ (Service Request interrupt to be generated.

From Overload Event Registers

From Mask Test From Power Event Registers Event Registers

Arm Reg

AER?

Run bit set if oscilloscope not stopped

OVLR

MTE

PWR

Wait Trig

Run

:OPEReration:CONDition? Operation Status Condition Register

11

9

7

5

3

OVLR

MTE

PWR

Wait Trig

Run

:OPERation[:EVENt]? Operation Status Event Register

14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

:OPEE :OPEE? Operation Status Enable (Mask) Register

+ OR
To OPER bit in Status Byte Register

Table 72 Operation Status Enable Register (OPEE)

Bit 14-12 11 10 9 8 7

Name --OVLR --MTE --PWR

Description --Overload --Mask Test Event --Power Event

6

---

---

5

Wait

Wait Trig

Trig

4

---

---

When Set (1 = High = True), Enables: (Not used.) Event when 50 input overload occurs. (Not used.) Event when mask test event occurs. (Not used.) A power measurements application event has occurred. (Not used.) Event when the trigger is armed.
(Not used.)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

211

6 Root (:) Commands

Table 72 Operation Status Enable Register (OPEE) (continued)

Bit

Name Description

3

Run

Running

2-0

---

---

When Set (1 = High = True), Enables: Event when the oscilloscope is running (not stopped). (Not used.)

Query Syntax

:OPEE?
The :OPEE? query returns the current value contained in the Operation Status Enable register as an integer number.

Return Format <value><NL>

See Also

<value> ::= integer in NR1 format.
· "Introduction to Root (:) Commands" on page 196 · ":AER (Arm Event Register)" on page 198 · ":CHANnel<n>:PROTection" on page 283 · ":OPERegister[:EVENt] (Operation Status Event Register)" on page 215 · ":OVLenable (Overload Event Enable Register)" on page 217 · ":OVLRegister (Overload Event Register)" on page 219 · "*STB (Read Status Byte)" on page 188 · "*SRE (Service Request Enable)" on page 186

212

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Root (:) Commands 6

:OPERegister:CONDition (Operation Status Condition Register)

Query Syntax

(see page 1164)
:OPERegister:CONDition?
The :OPERegister:CONDition? query returns the integer value contained in the Operation Status Condition Register.

From Overload Event Registers

From Mask Test From Power Event Registers Event Registers

Arm Reg

AER?

Run bit set if oscilloscope not stopped

OVLR

MTE

PWR

Wait Trig

Run

:OPEReration:CONDition? Operation Status Condition Register

11

9

7

5

3

OVLR

MTE

Wait

PWR

Trig

Run

:OPERation[:EVENt]? Operation Status Event Register

14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

:OPEE :OPEE? Operation Status Enable (Mask) Register

+ OR
To OPER bit in Status Byte Register

Table 73 Operation Status Condition Register

Bit 14-12 11 10 9 8 7

Name --OVLR --MTE --PWR

Description --Overload --Mask Test Event --Power Event

6

---

---

5

Wait

Wait Trig

Trig

4

---

---

3

Run

Running

2-0

---

---

When Set (1 = High = True), Indicates: (Not used.) A 50 input overload has occurred. (Not used.) A mask test event has occurred. (Not used.) A power measurements application event has occurred. (Not used.) The trigger is armed (set by the Trigger Armed Event Register (TER)). (Not used.) The oscilloscope is running (not stopped). (Not used.)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

213

6 Root (:) Commands

Return Format <value><NL>

See Also

<value> ::= integer in NR1 format.
· "Introduction to Root (:) Commands" on page 196 · ":CHANnel<n>:PROTection" on page 283 · ":OPEE (Operation Status Enable Register)" on page 211 · ":OPERegister[:EVENt] (Operation Status Event Register)" on page 215 · ":OVLenable (Overload Event Enable Register)" on page 217 · ":OVLRegister (Overload Event Register)" on page 219 · "*STB (Read Status Byte)" on page 188 · "*SRE (Service Request Enable)" on page 186 · ":MTERegister[:EVENt] (Mask Test Event Event Register)" on page 209 · ":MTEenable (Mask Test Event Enable Register)" on page 207

214

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Root (:) Commands 6

:OPERegister[:EVENt] (Operation Status Event Register)

Query Syntax

(see page 1164)
:OPERegister[:EVENt]?
The :OPERegister[:EVENt]? query returns the integer value contained in the Operation Status Event Register.

From Overload Event Registers

From Mask Test From Power Event Registers Event Registers

Arm Reg

AER?

Run bit set if oscilloscope not stopped

OVLR

MTE

PWR

Wait Trig

Run

:OPEReration:CONDition? Operation Status Condition Register

11

9

7

5

3

OVLR

MTE

Wait

PWR

Trig

Run

:OPERation[:EVENt]? Operation Status Event Register

14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

:OPEE :OPEE? Operation Status Enable (Mask) Register

+ OR
To OPER bit in Status Byte Register

Table 74 Operation Status Event Register

Bit 14-12 11 10 9 8 7

Name --OVLR --MTE --PWR

Description --Overload --Mask Test Event --Power Event

6

---

---

5

Wait

Wait Trig

Trig

4

---

---

3

Run

Running

2-0

---

---

When Set (1 = High = True), Indicates: (Not used.) A 50 input overload has occurred. (Not used.) A mask test event has occurred. (Not used.) A power measurements application event has occurred. (Not used.) The trigger is armed (set by the Trigger Armed Event Register (TER)). (Not used.) The oscilloscope has gone from a stop state to a single or running state. (Not used.)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

215

6 Root (:) Commands

Return Format <value><NL>

See Also

<value> ::= integer in NR1 format.
· "Introduction to Root (:) Commands" on page 196 · ":CHANnel<n>:PROTection" on page 283 · ":OPEE (Operation Status Enable Register)" on page 211 · ":OPERegister:CONDition (Operation Status Condition Register)" on page 213 · ":OVLenable (Overload Event Enable Register)" on page 217 · ":OVLRegister (Overload Event Register)" on page 219 · "*STB (Read Status Byte)" on page 188 · "*SRE (Service Request Enable)" on page 186 · ":MTERegister[:EVENt] (Mask Test Event Event Register)" on page 209 · ":MTEenable (Mask Test Event Enable Register)" on page 207

216

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Root (:) Commands 6

:OVLenable (Overload Event Enable Register)

(see page 1164) Command Syntax :OVLenable <enable_mask>
<enable_mask> ::= 16-bit integer
The overload enable mask is an integer representing an input as described in the following table. The :OVLenable command sets the mask in the Overload Event Enable Register and enables the reporting of the Overload Event Register. If an overvoltage is sensed on a 50 input, the input will automatically switch to 1 M input impedance. If enabled, such an event will set bit 11 in the Operation Status Register.

NOTE

You can set analog channel input impedance to 50 on the 300 MHz, 500 MHz, and 1 GHz bandwidth oscilloscope models. On these same bandwidth models, if there are only two analog channels, you can also set external trigger input impedance to 50.

Chan4 Chan3 Chan2 Chan1 Fault Fault Fault Fault
15 14 13 12 11 10 9 8 7 6 5

Chan4 Chan3 Chan2 Chan1 :OVLR? OVL OVL OVL OVL Overload Event Register
43210
:OVL :OVL? Overload Event Enable (Mask) Register

 OR

To OVLR bit in Operati on Status
Register

Table 75 Overload Event Enable Register (OVL)

Bit 15-10 9 8 7 6 5-4 3

Description --Channel 4 Fault Channel 3 Fault Channel 2 Fault Channel 1 Fault --Channel 4 OVL

When Set (1 = High = True), Enables: (Not used.) Event when fault occurs on Channel 4 input. Event when fault occurs on Channel 3 input. Event when fault occurs on Channel 2 input. Event when fault occurs on Channel 1 input. (Not used.) Event when overload occurs on Channel 4 input.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

217

6 Root (:) Commands

Table 75 Overload Event Enable Register (OVL) (continued)

Bit

Description

2

Channel 3 OVL

1

Channel 2 OVL

0

Channel 1 OVL

When Set (1 = High = True), Enables: Event when overload occurs on Channel 3 input. Event when overload occurs on Channel 2 input. Event when overload occurs on Channel 1 input.

Query Syntax Return Format

:OVLenable?
The :OVLenable query returns the current enable mask value contained in the Overload Event Enable Register.
<enable_mask><NL>

See Also

<enable_mask> ::= integer in NR1 format.
· "Introduction to Root (:) Commands" on page 196 · ":CHANnel<n>:PROTection" on page 283 · ":OPEE (Operation Status Enable Register)" on page 211 · ":OPERegister:CONDition (Operation Status Condition Register)" on page 213 · ":OPERegister[:EVENt] (Operation Status Event Register)" on page 215 · ":OVLRegister (Overload Event Register)" on page 219 · "*STB (Read Status Byte)" on page 188 · "*SRE (Service Request Enable)" on page 186

218

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Root (:) Commands 6

:OVLRegister (Overload Event Register)

Query Syntax

(see page 1164)
:OVLRegister?
The :OVLRegister query returns the overload protection value stored in the Overload Event Register (OVLR). If an overvoltage is sensed on a 50 input, the input will automatically switch to 1 M input impedance. A "1" indicates an overload has occurred.

NOTE

You can set analog channel input impedance to 50 on the 300 MHz, 500 MHz, and 1 GHz bandwidth oscilloscope models. On these same bandwidth models, if there are only two analog channels, you can also set external trigger input impedance to 50.

Chan4 Chan3 Chan2 Chan1 Fault Fault Fault Fault
15 14 13 12 11 10 9 8 7 6 5

Chan4 Chan3 Chan2 Chan1 :OVLR? OVL OVL OVL OVL Overload Event Register
43210
:OVL :OVL? Overload Event Enable (Mask) Register

 OR

To OVLR bit in Operati on Status
Register

Table 76 Overload Event Register (OVLR)

Bit 15-10 9 8 7 6 5-4 3 2 1 0

Description --Channel 4 Fault Channel 3 Fault Channel 2 Fault Channel 1 Fault --Channel 4 OVL Channel 3 OVL Channel 2 OVL Channel 1 OVL

When Set (1 = High = True), Indicates: (Not used.) Fault has occurred on Channel 4 input. Fault has occurred on Channel 3 input. Fault has occurred on Channel 2 input. Fault has occurred on Channel 1 input. (Not used.) Overload has occurred on Channel 4 input. Overload has occurred on Channel 3 input. Overload has occurred on Channel 2 input. Overload has occurred on Channel 1 input.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

219

6 Root (:) Commands

Return Format <value><NL>

See Also

<value> ::= integer in NR1 format.
· "Introduction to Root (:) Commands" on page 196 · ":CHANnel<n>:PROTection" on page 283 · ":OPEE (Operation Status Enable Register)" on page 211 · ":OVLenable (Overload Event Enable Register)" on page 217 · "*STB (Read Status Byte)" on page 188 · "*SRE (Service Request Enable)" on page 186

220

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Root (:) Commands 6

:PRINt

(see page 1164)

Command Syntax :PRINt [<options>]

<options> ::= [<print option>][,..,<print option>]

<print option> ::= {COLor | GRAYscale | PRINter0 | PRINter1 | BMP8bit | BMP | PNG | NOFactors | FACTors}

See Also

The <print option> parameter may be repeated up to 5 times.
The PRINt command formats the output according to the currently selected format (device). If an option is not specified, the value selected in the Print Config menu is used.
· "Introduction to Root (:) Commands" on page 196 · "Introduction to :HARDcopy Commands" on page 368 · ":HARDcopy:FACTors" on page 371 · ":HARDcopy:GRAYscale" on page 1091 · ":DISPlay:DATA" on page 312

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

221

6 Root (:) Commands

:PWRenable (Power Event Enable Register)
(see page 1164) Command Syntax :PWRenable <mask>
<mask> ::= 16-bit integer
The :PWRenable command sets a mask in the Power Event Enable register. Set any of the following bits to "1" to enable bit 7 in the Operation Status Condition Register and potentially cause an SRQ (Service Request) interrupt to be generated.

%FTLFX "QQMZ 4FUVQ

1833FHJTUFS<&7&/U> 1PXFS&WFOU&WFOU3FHJTUFS

      



















118833FFOOBBCCMMFF

1PXFS&WFOU&OBCMF .BTL
3FHJTUF

 03
5P183CJUJO 0QFSBUJPO4UBUVT $POEJUJPO3FHJTUFS

Table 77 Power Event Enable Register (PWRenable)

Bit

Name Description

15-3

---

---

2

Deskew Deskew Complete

1

Apply Apply Complete

0

Setup Setup Complete

When Set (1 = High = True), Enables: (Not used.) Power analysis deskew is complete. Power analysis apply feature is complete. Power analysis auto setup feature is complete.

Query Syntax Return Format

:PWRenable?
The :PWRenable? query returns the current value contained in the Power Event Enable register as an integer number.
<value><NL>

See Also

<value> ::= integer in NR1 format.
· "Introduction to Root (:) Commands" on page 196 · ":AER (Arm Event Register)" on page 198 · ":CHANnel<n>:PROTection" on page 283 · ":OPERegister[:EVENt] (Operation Status Event Register)" on page 215 · ":OVLenable (Overload Event Enable Register)" on page 217

222

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Root (:) Commands 6
· ":OVLRegister (Overload Event Register)" on page 219 · "*STB (Read Status Byte)" on page 188 · "*SRE (Service Request Enable)" on page 186

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

223

6 Root (:) Commands

:PWRRegister[:EVENt] (Power Event Event Register)

Query Syntax

(see page 1164)
:PWRRegister[:EVENt]?
The :PWRRegister[:EVENt]? query returns the integer value contained in the Power Event Event Register and clears the register.

%FTLFX "QQMZ 4FUVQ

1833FHJTUFS<&7&/U> 1PXFS&WFOU&WFOU3FHJTUFS

      



















118833FFOOBBCCMMFF

1PXFS&WFOU&OBCMF .BTL
3FHJTUF

 03
5P183CJUJO 0QFSBUJPO4UBUVT $POEJUJPO3FHJTUFS

Table 78 Power Event Event Register

Bit

Name Description

15-3

---

---

2

Deskew Deskew Complete

1

Apply Apply Complete

0

Setup Setup Complete

When Set (1 = High = True), Indicates: (Not used.) Power analysis deskew is complete. Power analysis apply feature is complete. Power analysis auto setup feature is complete.

Return Format <value><NL>

See Also

<value> ::= integer in NR1 format.
· "Introduction to Root (:) Commands" on page 196 · ":CHANnel<n>:PROTection" on page 283 · ":OPEE (Operation Status Enable Register)" on page 211 · ":OPERegister:CONDition (Operation Status Condition Register)" on page 213 · ":OVLenable (Overload Event Enable Register)" on page 217 · ":OVLRegister (Overload Event Register)" on page 219 · "*STB (Read Status Byte)" on page 188 · "*SRE (Service Request Enable)" on page 186

224

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Root (:) Commands 6

:RUN

Command Syntax See Also
Example Code

(see page 1164)
:RUN
The :RUN command starts repetitive acquisitions. This is the same as pressing the Run key on the front panel. · "Introduction to Root (:) Commands" on page 196 · ":SINGle" on page 227 · ":STOP" on page 229
' RUN_STOP - (not executed in this example) ' - RUN starts the data acquisition for the active waveform display. ' - STOP stops the data acquisition and turns off AUTOSTORE. ' myScope.WriteString ":RUN" ' Start data acquisition. ' myScope.WriteString ":STOP" ' Stop the data acquisition.
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

225

6 Root (:) Commands

:SERial

Query Syntax
Return Format: See Also

(see page 1164)
:SERial?
The :SERial? query returns the serial number of the instrument.
Unquoted string<NL>
· "Introduction to Root (:) Commands" on page 196

226

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Root (:) Commands 6

:SINGle

Command Syntax See Also

(see page 1164)
:SINGle
The :SINGle command causes the instrument to acquire a single trigger of data. This is the same as pressing the Single key on the front panel. · "Introduction to Root (:) Commands" on page 196 · ":RUN" on page 225 · ":STOP" on page 229

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

227

6 Root (:) Commands

:STATus

(see page 1164) Query Syntax :STATus? <source>
<source> ::= {CHANnel<n> | FUNCtion | MATH | SBUS{1 | 2} | WMEMory<r>} for the DSO models
<source> ::= {CHANnel<n> | DIGital<d> | POD{1 | 2} | BUS{1 | 2} | FUNCtion | MATH | SBUS{1 | 2} | WMEMory<r>} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<r> ::= 1 to (# ref waveforms) in NR1 format
The :STATus? query reports whether the channel, function, or serial decode bus specified by <source> is displayed.

NOTE

MATH is an alias for FUNCtion.

Return Format <value><NL>

See Also

<value> ::= {1 | 0}
· "Introduction to Root (:) Commands" on page 196 · ":BLANk" on page 204 · ":CHANnel<n>:DISPlay" on page 273 · ":DIGital<d>:DISPlay" on page 299 · ":FUNCtion:DISPlay" on page 343 · ":POD<n>:DISPlay" on page 541 · ":WMEMory<r>:DISPlay" on page 1064 · ":VIEW" on page 231

228

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Root (:) Commands 6

:STOP

Command Syntax See Also
Example Code

(see page 1164)
:STOP
The :STOP command stops the acquisition. This is the same as pressing the Stop key on the front panel. · "Introduction to Root (:) Commands" on page 196 · ":RUN" on page 225 · ":SINGle" on page 227 · "Example Code" on page 225

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

229

6 Root (:) Commands

:TER (Trigger Event Register)

(see page 1164)

Query Syntax Return Format

:TER?
The :TER? query reads the Trigger Event Register. After the Trigger Event Register is read, it is cleared. A one indicates a trigger has occurred. A zero indicates a trigger has not occurred. The Trigger Event Register is summarized in the TRG bit of the Status Byte Register (STB). A Service Request (SRQ) can be generated when the TRG bit of the Status Byte transitions, and the TRG bit is set in the Service Request Enable register. The Trigger Event Register must be cleared each time you want a new service request to be generated.
<value><NL>

See Also

<value> ::= {1 | 0}; a 16-bit integer in NR1 format.
· "Introduction to Root (:) Commands" on page 196 · "*SRE (Service Request Enable)" on page 186 · "*STB (Read Status Byte)" on page 188

230

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Root (:) Commands 6

:VIEW

(see page 1164) Command Syntax :VIEW <source>
<source> ::= {CHANnel<n> | FUNCtion | MATH | SBUS{1 | 2} | WMEMory<r>} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | POD{1 | 2} | BUS{1 | 2} | FUNCtion | MATH | SBUS{1 | 2} | WMEMory<r>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<r> ::= 1 to (# ref waveforms) in NR1 format
The :VIEW command turns on the specified channel, function, or serial decode bus.

NOTE

MATH is an alias for FUNCtion.

See Also Example Code

· "Introduction to Root (:) Commands" on page 196 · ":BLANk" on page 204 · ":CHANnel<n>:DISPlay" on page 273 · ":DIGital<d>:DISPlay" on page 299 · ":FUNCtion:DISPlay" on page 343 · ":POD<n>:DISPlay" on page 541 · ":WMEMory<r>:DISPlay" on page 1064 · ":STATus" on page 228
' VIEW_BLANK - (not executed in this example) ' - VIEW turns on (starts displaying) a channel. ' - BLANK turns off (stops displaying) a channel. ' myScope.WriteString ":BLANk CHANnel1" ' Turn channel 1 off. ' myScope.WriteString ":VIEW CHANnel1" ' Turn channel 1 on.
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

231

6 Root (:) Commands

232

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
7 :ACQuire Commands

Set the parameters for acquiring and storing data. See "Introduction to :ACQuire Commands" on page 233.

Table 79 :ACQuire Commands Summary

Command

Query

Options and Query Returns

:ACQuire:COMPlete
<complete> (see page 235)

:ACQuire:COMPlete? (see page 235)

<complete> ::= 100; an integer in NR1 format

:ACQuire:COUNt

:ACQuire:COUNt? (see <count> ::= an integer from 2 to

<count> (see page 236) page 236)

65536 in NR1 format

:ACQuire:MODE <mode> :ACQuire:MODE? (see

(see page 237)

page 237)

<mode> ::= {RTIMe | SEGMented}

n/a

:ACQuire:POINts? (see <# points> ::= an integer in NR1

page 238)

format

:ACQuire:SEGMented:AN n/a ALyze (see page 239)

n/a (with Option SGM)

:ACQuire:SEGMented:CO :ACQuire:SEGMented:CO <count> ::= an integer from 2 to

UNt <count> (see

UNt? (see page 240)

1000 in NR1 format (with Option

page 240)

SGM)

:ACQuire:SEGMented:IN :ACQuire:SEGMented:IN <index> ::= an integer from 1 to

Dex <index> (see

Dex? (see page 241)

1000 in NR1 format (with Option

page 241)

SGM)

n/a

:ACQuire:SRATe? (see <sample_rate> ::= sample rate

page 244)

(samples/s) in NR3 format

:ACQuire:TYPE <type> :ACQuire:TYPE? (see

(see page 245)

page 245)

<type> ::= {NORMal | AVERage | HRESolution | PEAK}

Introduction to :ACQuire
Commands

The ACQuire subsystem controls the way in which waveforms are acquired. These acquisition types are available: normal, averaging, peak detect, and high resolution.

Normal

233

7 :ACQuire Commands
The :ACQuire:TYPE NORMal command sets the oscilloscope in the normal acquisition mode. For the majority of user models and signals, NORMal mode yields the best oscilloscope picture of the waveform. Averaging The :ACQuire:TYPE AVERage command sets the oscilloscope in the averaging mode. You can set the count by sending the :ACQuire:COUNt command followed by the number of averages. In this mode, the value for averages is an integer from 2 to 65536. The COUNt value determines the number of averages that must be acquired. High-Resolution The :ACQuire:TYPE HRESolution command sets the oscilloscope in the high-resolution mode (also known as smoothing). This mode is used to reduce noise at slower sweep speeds where the digitizer samples faster than needed to fill memory for the displayed time range. Instead of decimating samples, they are averaged together to provide the value for one display point. The slower the sweep speed, the greater the number of samples that are averaged together for each display point. Peak Detect The :ACQuire:TYPE PEAK command sets the oscilloscope in the peak detect mode. In this mode, :ACQuire:COUNt has no meaning. Reporting the Setup Use :ACQuire? to query setup information for the ACQuire subsystem. Return Format The following is a sample response from the :ACQuire? query. In this case, the query was issued following a *RST command.
:ACQ:MODE RTIM;TYPE NORM;COMP 100;COUNT 8;SEGM:COUN 2

234

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:ACQuire Commands 7

:ACQuire:COMPlete

(see page 1164)

Command Syntax :ACQuire:COMPlete <complete>

Query Syntax Return Format

<complete> ::= 100; an integer in NR1 format
The :ACQuire:COMPlete command affects the operation of the :DIGitize command. It specifies the minimum completion criteria for an acquisition. The parameter determines the percentage of the time buckets that must be "full" before an acquisition is considered complete. If :ACQuire:TYPE is NORMal, it needs only one sample per time bucket for that time bucket to be considered full. The only legal value for the :COMPlete command is 100. All time buckets must contain data for the acquisition to be considered complete.
:ACQuire:COMPlete?
The :ACQuire:COMPlete? query returns the completion criteria (100) for the currently selected mode.
<completion_criteria><NL>

See Also

<completion_criteria> ::= 100; an integer in NR1 format
· "Introduction to :ACQuire Commands" on page 233 · ":ACQuire:TYPE" on page 245 · ":DIGitize" on page 205 · ":WAVeform:POINts" on page 996

Example Code

' AQUIRE_COMPLETE - Specifies the minimum completion criteria for ' an acquisition. The parameter determines the percentage of time ' buckets needed to be "full" before an acquisition is considered ' to be complete. myScope.WriteString ":ACQuire:COMPlete 100"
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

235

7 :ACQuire Commands

:ACQuire:COUNt

(see page 1164) Command Syntax :ACQuire:COUNt <count>
<count> ::= integer in NR1 format
In averaging mode, the :ACQuire:COUNt command specifies the number of values to be averaged for each time bucket before the acquisition is considered to be complete for that time bucket. When :ACQuire:TYPE is set to AVERage, the count can be set to any value from 2 to 65536.

NOTE

The :ACQuire:COUNt 1 command has been deprecated. The AVERage acquisition type with a count of 1 is functionally equivalent to the HRESolution acquisition type; however, you should select the high-resolution acquisition mode with the :ACQuire:TYPE HRESolution command instead.

Query Syntax Return Format

:ACQuire:COUNT?
The :ACQuire:COUNT? query returns the currently selected count value for averaging mode.
<count_argument><NL>

See Also

<count_argument> ::= an integer from 2 to 65536 in NR1 format
· "Introduction to :ACQuire Commands" on page 233 · ":ACQuire:TYPE" on page 245 · ":DIGitize" on page 205 · ":WAVeform:COUNt" on page 992

236

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:ACQuire Commands 7

:ACQuire:MODE

(see page 1164) Command Syntax :ACQuire:MODE <mode>
<mode> ::= {RTIMe | SEGMented}
The :ACQuire:MODE command sets the acquisition mode of the oscilloscope. · The :ACQuire:MODE RTIMe command sets the oscilloscope in real time mode.

NOTE

The obsolete command ACQuire:TYPE:REALtime is functionally equivalent to sending ACQuire:MODE RTIMe; TYPE NORMal.

Query Syntax Return Format

· The :ACQuire:MODE SEGMented command sets the oscilloscope in segmented memory mode.
:ACQuire:MODE?
The :ACQuire:MODE? query returns the acquisition mode of the oscilloscope.
<mode_argument><NL>

See Also

<mode_argument> ::= {RTIM | SEGM}
· "Introduction to :ACQuire Commands" on page 233 · ":ACQuire:TYPE" on page 245

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

237

7 :ACQuire Commands

:ACQuire:POINts

(see page 1164)

Query Syntax Return Format

:ACQuire:POINts?
The :ACQuire:POINts? query returns the number of data points that the hardware will acquire from the input signal. The number of points acquired is not directly controllable. To set the number of points to be transferred from the oscilloscope, use the command :WAVeform:POINts. The :WAVeform:POINts? query will return the number of points available to be transferred from the oscilloscope.
<points_argument><NL>

See Also

<points_argument> ::= an integer in NR1 format
· "Introduction to :ACQuire Commands" on page 233 · ":DIGitize" on page 205 · ":WAVeform:POINts" on page 996

238

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:ACQuire Commands 7

:ACQuire:SEGMented:ANALyze

Command Syntax

(see page 1164)
:ACQuire:SEGMented:ANALyze

NOTE

This command is available when the segmented memory license (SGM) is enabled.

See Also

This command calculates measurement statistics and/or infinite persistence over all segments that have been acquired. It corresponds to the front panel Analyze Segments softkey which appears in both the Measurement Statistics and Segmented Memory Menus.
In order to use this command, the oscilloscope must be stopped and in segmented acquisition mode, with either quick measurements or infinite persistence on. · ":ACQuire:MODE" on page 237 · ":ACQuire:SEGMented:COUNt" on page 240 · "Introduction to :ACQuire Commands" on page 233

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

239

7 :ACQuire Commands

:ACQuire:SEGMented:COUNt

(see page 1164) Command Syntax :ACQuire:SEGMented:COUNt <count>
<count> ::= an integer from 2 to 1000 (w/4M memory) in NR1 format

NOTE

This command is available when the segmented memory option (Option SGM) is enabled.

The :ACQuire:SEGMented:COUNt command sets the number of memory segments to acquire. The segmented memory acquisition mode is enabled with the :ACQuire:MODE command, and data is acquired using the :DIGitize, :SINGle, or :RUN commands. The number of memory segments in the current acquisition is returned by the :WAVeform:SEGMented:COUNt? query. The maximum number of segments may be limited by the memory depth of your oscilloscope. For example, an oscilloscope with 1M memory allows a maximum of 250 segments.

Query Syntax Return Format

:ACQuire:SEGMented:COUNt?
The :ACQuire:SEGMented:COUNt? query returns the current count setting.
<count><NL>

See Also

<count> ::= an integer from 2 to 1000 (w/4M memory) in NR1 format
· ":ACQuire:MODE" on page 237 · ":DIGitize" on page 205 · ":SINGle" on page 227 · ":RUN" on page 225 · ":WAVeform:SEGMented:COUNt" on page 1003 · ":ACQuire:SEGMented:ANALyze" on page 239 · "Introduction to :ACQuire Commands" on page 233

Example Code · "Example Code" on page 241

240

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:ACQuire Commands 7

:ACQuire:SEGMented:INDex

(see page 1164) Command Syntax :ACQuire:SEGMented:INDex <index>
<index> ::= an integer from 1 to 1000 (w/4M memory) in NR1 format

NOTE

This command is available when the segmented memory option (Option SGM) is enabled.

Query Syntax Return Format

The :ACQuire:SEGMented:INDex command sets the index into the memory segments that have been acquired. The segmented memory acquisition mode is enabled with the :ACQuire:MODE command. The number of segments to acquire is set using the :ACQuire:SEGMented:COUNt command, and data is acquired using the :DIGitize, :SINGle, or :RUN commands. The number of memory segments that have been acquired is returned by the :WAVeform:SEGMented:COUNt? query. The time tag of the currently indexed memory segment is returned by the :WAVeform:SEGMented:TTAG? query. The maximum number of segments may be limited by the memory depth of your oscilloscope. For example, an oscilloscope with 1M memory allows a maximum of 250 segments.
:ACQuire:SEGMented:INDex?
The :ACQuire:SEGMented:INDex? query returns the current segmented memory index setting.
<index><NL>

See Also Example Code

<index> ::= an integer from 1 to 1000 (w/4M memory) in NR1 format
· ":ACQuire:MODE" on page 237 · ":ACQuire:SEGMented:COUNt" on page 240 · ":DIGitize" on page 205 · ":SINGle" on page 227 · ":RUN" on page 225 · ":WAVeform:SEGMented:COUNt" on page 1003 · ":WAVeform:SEGMented:TTAG" on page 1004 · ":ACQuire:SEGMented:ANALyze" on page 239 · "Introduction to :ACQuire Commands" on page 233
' Segmented memory commands example. ' -------------------------------------------------------------------

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

241

7 :ACQuire Commands

Option Explicit
Public myMgr As VisaComLib.ResourceManager Public myScope As VisaComLib.FormattedIO488 Public varQueryResult As Variant Public strQueryResult As String
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Sub Main()
On Error GoTo VisaComError
' Create the VISA COM I/O resource. Set myMgr = New VisaComLib.ResourceManager Set myScope = New VisaComLib.FormattedIO488 Set myScope.IO = _
myMgr.Open("USB0::0x0957::0x17A6::US50210029::0::INSTR") myScope.IO.Clear ' Clear the interface.
' Turn on segmented memory acquisition mode. myScope.WriteString ":ACQuire:MODE SEGMented" myScope.WriteString ":ACQuire:MODE?" strQueryResult = myScope.ReadString Debug.Print "Acquisition mode: " + strQueryResult
' Set the number of segments to 25. myScope.WriteString ":ACQuire:SEGMented:COUNt 25" myScope.WriteString ":ACQuire:SEGMented:COUNt?" strQueryResult = myScope.ReadString Debug.Print "Acquisition memory segments: " + strQueryResult
' If data will be acquired within the IO timeout: 'myScope.IO.Timeout = 10000 'myScope.WriteString ":DIGitize" 'Debug.Print ":DIGitize blocks until all segments acquired." 'myScope.WriteString ":WAVeform:SEGMented:COUNt?" 'varQueryResult = myScope.ReadNumber
' Or, to poll until the desired number of segments acquired: myScope.WriteString ":SINGle" Debug.Print ":SINGle does not block until all segments acquired." Do
Sleep 100 ' Small wait to prevent excessive queries. myScope.WriteString ":WAVeform:SEGMented:COUNt?" varQueryResult = myScope.ReadNumber Loop Until varQueryResult = 25
Debug.Print "Number of segments in acquired data: " _ + FormatNumber(varQueryResult)
Dim lngSegments As Long lngSegments = varQueryResult
' For each segment: Dim dblTimeTag As Double

242

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:ACQuire Commands 7
Dim lngI As Long
For lngI = lngSegments To 1 Step -1
' Set the segmented memory index. myScope.WriteString ":ACQuire:SEGMented:INDex " + CStr(lngI) myScope.WriteString ":ACQuire:SEGMented:INDex?" strQueryResult = myScope.ReadString Debug.Print "Acquisition memory segment index: " + strQueryResult
' Display the segment time tag. myScope.WriteString ":WAVeform:SEGMented:TTAG?" dblTimeTag = myScope.ReadNumber Debug.Print "Segment " + CStr(lngI) + " time tag: " _
+ FormatNumber(dblTimeTag, 12)
Next lngI
Exit Sub
VisaComError: MsgBox "VISA COM Error:" + vbCrLf + Err.Description
End Sub

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

243

7 :ACQuire Commands

:ACQuire:SRATe

(see page 1164)

Query Syntax Return Format

:ACQuire:SRATe?
The :ACQuire:SRATe? query returns the current oscilloscope acquisition sample rate. The sample rate is not directly controllable.
<sample_rate><NL>

See Also

<sample_rate> ::= sample rate in NR3 format
· "Introduction to :ACQuire Commands" on page 233 · ":ACQuire:POINts" on page 238

244

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:ACQuire Commands 7

:ACQuire:TYPE

(see page 1164) Command Syntax :ACQuire:TYPE <type>
<type> ::= {NORMal | AVERage | HRESolution | PEAK}
The :ACQuire:TYPE command selects the type of data acquisition that is to take place. The acquisition types are: · NORMal -- sets the oscilloscope in the normal mode. · AVERage -- sets the oscilloscope in the averaging mode. You can set the count
by sending the :ACQuire:COUNt command followed by the number of averages. In this mode, the value for averages is an integer from 1 to 65536. The COUNt value determines the number of averages that must be acquired. The AVERage type is not available when in segmented memory mode (:ACQuire:MODE SEGMented). · HRESolution -- sets the oscilloscope in the high-resolution mode (also known as smoothing). This mode is used to reduce noise at slower sweep speeds where the digitizer samples faster than needed to fill memory for the displayed time range. For example, if the digitizer samples at 200 MSa/s, but the effective sample rate is 1 MSa/s (because of a slower sweep speed), only 1 out of every 200 samples needs to be stored. Instead of storing one sample (and throwing others away), the 200 samples are averaged together to provide the value for one display point. The slower the sweep speed, the greater the number of samples that are averaged together for each display point. · PEAK -- sets the oscilloscope in the peak detect mode. In this mode, :ACQuire:COUNt has no meaning. The AVERage and HRESolution types can give you extra bits of vertical resolution. See the User's Guide for an explanation. When getting waveform data acquired using the AVERage and HRESolution types, be sure to use the WORD or ASCii waveform data formats to get the extra bits of vertical resolution.

NOTE

The obsolete command ACQuire:TYPE:REALtime is functionally equivalent to sending ACQuire:MODE RTIME; TYPE NORMal.

Query Syntax Return Format

:ACQuire:TYPE?
The :ACQuire:TYPE? query returns the current acquisition type.
<acq_type><NL> <acq_type> ::= {NORM | AVER | HRES | PEAK}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

245

7 :ACQuire Commands

See Also Example Code

· "Introduction to :ACQuire Commands" on page 233 · ":ACQuire:COUNt" on page 236 · ":ACQuire:MODE" on page 237 · ":DIGitize" on page 205 · ":WAVeform:FORMat" on page 995 · ":WAVeform:TYPE" on page 1010 · ":WAVeform:PREamble" on page 1000
' AQUIRE_TYPE - Sets the acquisition mode, which can be NORMAL, ' PEAK, or AVERAGE. myScope.WriteString ":ACQuire:TYPE NORMal"
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

246

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
8 :BUS<n> Commands

Control all oscilloscope functions associated with buses made up of digital channels. See "Introduction to :BUS<n> Commands" on page 248.

Table 80 :BUS<n> Commands Summary

Command

Query

Options and Query Returns

:BUS<n>:BIT<m> {{0 |
OFF} | {1 | ON}} (see page 249)

:BUS<n>:BIT<m>? (see page 249)

{0 | 1}
<n> ::= 1 or 2; an integer in NR1 format
<m> ::= 0-15; an integer in NR1 format

:BUS<n>:BITS
<channel_list>, {{0 |
OFF} | {1 | ON}} (see page 250)

:BUS<n>:BITS? (see page 250)

<channel_list>, {0 | 1}
<channel_list> ::= (@<m>,<m>:<m> ...) where "," is separator and ":" is range
<n> ::= 1 or 2; an integer in NR1 format
<m> ::= 0-15; an integer in NR1 format

:BUS<n>:CLEar (see

n/a

page 252)

<n> ::= 1 or 2; an integer in NR1 format

:BUS<n>:DISPlay {{0 |
OFF} | {1 | ON}} (see page 253)

:BUS<n>:DISPlay? (see page 253)

{0 | 1}
<n> ::= 1 or 2; an integer in NR1 format

247

8 :BUS<n> Commands

Table 80 :BUS<n> Commands Summary (continued)

Command

Query

:BUS<n>:LABel
<string> (see page 254)

:BUS<n>:LABel? (see page 254)

:BUS<n>:MASK <mask> (see page 255)

:BUS<n>:MASK? (see page 255)

Options and Query Returns
<string> ::= quoted ASCII string up to 10 characters
<n> ::= 1 or 2; an integer in NR1 format
<mask> ::= 32-bit integer in decimal, <nondecimal>, or <string>
<nondecimal> ::= #Hnn...n where n ::= {0,..,9 | A,..,F} for hexadecimal
<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary
<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F} for hexadecimal
<n> ::= 1 or 2; an integer in NR1 format

Introduction to :BUS<n>
Commands

<n> ::= {1 | 2}
The BUS subsystem commands control the viewing, labeling, and digital channel makeup of two possible buses.

NOTE

These commands are only valid for the MSO models.

Reporting the Setup Use :BUS<n>? to query setup information for the BUS subsystem.
Return Format The following is a sample response from the :BUS1? query. In this case, the query was issued following a *RST command.
:BUS1:DISP 0;LAB "BUS1";MASK +255

248

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:BUS<n> Commands 8

:BUS<n>:BIT<m>

(see page 1164) Command Syntax :BUS<n>:BIT<m> <display>
<display> ::= {{1 | ON} | {0 | OFF}}
<n> ::= An integer, 1 or 2, is attached as a suffix to BUS and defines the bus that is affected by the command.
<m> ::= An integer, 0,..,15, is attached as a suffix to BIT and defines the digital channel that is affected by the command.
The :BUS<n>:BIT<m> command includes or excludes the selected bit as part of the definition for the selected bus. If the parameter is a 1 (ON), the bit is included in the definition. If the parameter is a 0 (OFF), the bit is excluded from the definition. Note: BIT0-15 correspond to DIGital0-15.

NOTE

This command is only valid for the MSO models.

Query Syntax

:BUS<n>:BIT<m>?
The :BUS<n>:BIT<m>? query returns the value indicating whether the specified bit is included or excluded from the specified bus definition.

Return Format <display><NL>

See Also

<display> ::= {0 | 1}
· "Introduction to :BUS<n> Commands" on page 248 · ":BUS<n>:BITS" on page 250 · ":BUS<n>:CLEar" on page 252 · ":BUS<n>:DISPlay" on page 253 · ":BUS<n>:LABel" on page 254 · ":BUS<n>:MASK" on page 255

Example Code ' Include digital channel 1 in bus 1:
myScope.WriteString ":BUS1:BIT1 ON"

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

249

8 :BUS<n> Commands

:BUS<n>:BITS

(see page 1164) Command Syntax :BUS<n>:BITS <channel_list>, <display>
<channel_list> ::= (@<m>,<m>:<m>, ...) where commas separate bits and colons define bit ranges.
<m> ::= An integer, 0,..,15, defines a digital channel affected by the command.
<display> ::= {{1 | ON} | {0 | OFF}}
<n> ::= An integer, 1 or 2, is attached as a suffix to BUS and defines the bus that is affected by the command.
The :BUS<n>:BITS command includes or excludes the selected bits in the channel list in the definition of the selected bus. If the parameter is a 1 (ON) then the bits in the channel list are included as part of the selected bus definition. If the parameter is a 0 (OFF) then the bits in the channel list are excluded from the definition of the selected bus.

NOTE

This command is only valid for the MSO models.

Query Syntax Return Format

:BUS<n>:BITS?
The :BUS<n>:BITS? query returns the definition for the specified bus.
<channel_list>, <display><NL>

<channel_list> ::= (@<m>,<m>:<m>, ...) where commas separate bits and colons define bit ranges.

See Also Example Code

<display> ::= {0 | 1}
· "Introduction to :BUS<n> Commands" on page 248 · ":BUS<n>:BIT<m>" on page 249 · ":BUS<n>:CLEar" on page 252 · ":BUS<n>:DISPlay" on page 253 · ":BUS<n>:LABel" on page 254 · ":BUS<n>:MASK" on page 255
' Include digital channels 1, 2, 4, 5, 6, 7, 8, and 9 in bus 1: myScope.WriteString ":BUS1:BITS (@1,2,4:9), ON"

' Include digital channels 1, 5, 7, and 9 in bus 1: myScope.WriteString ":BUS1:BITS (@1,5,7,9), ON"

' Include digital channels 1 through 15 in bus 1:

250

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:BUS<n> Commands 8
myScope.WriteString ":BUS1:BITS (@1:15), ON" ' Include digital channels 1 through 5, 8, and 14 in bus 1: myScope.WriteString ":BUS1:BITS (@1:5,8,14), ON"

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

251

8 :BUS<n> Commands

:BUS<n>:CLEar

(see page 1164) Command Syntax :BUS<n>:CLEar
<n> ::= An integer, 1 or 2, is attached as a suffix to BUS and defines the bus that is affected by the command.
The :BUS<n>:CLEar command excludes all of the digital channels from the selected bus definition.

NOTE

This command is only valid for the MSO models.

See Also

· "Introduction to :BUS<n> Commands" on page 248 · ":BUS<n>:BIT<m>" on page 249 · ":BUS<n>:BITS" on page 250 · ":BUS<n>:DISPlay" on page 253 · ":BUS<n>:LABel" on page 254 · ":BUS<n>:MASK" on page 255

252

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:BUS<n> Commands 8

:BUS<n>:DISPlay

(see page 1164) Command Syntax :BUS<n>:DISplay <value>
<value> ::= {{1 | ON} | {0 | OFF}}
<n> ::= An integer, 1 or 2, is attached as a suffix to BUS and defines the bus that is affected by the command.
The :BUS<n>:DISPlay command enables or disables the view of the selected bus.

NOTE

This command is only valid for the MSO models.

Query Syntax Return Format

:BUS<n>:DISPlay?
The :BUS<n>:DISPlay? query returns the display value of the selected bus.
<value><NL>

See Also

<value> ::= {0 | 1}
· "Introduction to :BUS<n> Commands" on page 248 · ":BUS<n>:BIT<m>" on page 249 · ":BUS<n>:BITS" on page 250 · ":BUS<n>:CLEar" on page 252 · ":BUS<n>:LABel" on page 254 · ":BUS<n>:MASK" on page 255

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

253

8 :BUS<n> Commands

:BUS<n>:LABel

(see page 1164) Command Syntax :BUS<n>:LABel <quoted_string>
<quoted_string> ::= any series of 10 or less characters as a quoted ASCII string.
<n> ::= An integer, 1 or 2, is attached as a suffix to BUS and defines the bus that is affected by the command.
The :BUS<n>:LABel command sets the bus label to the quoted string. Setting a label for a bus will also result in the name being added to the label list.

NOTE

This command is only valid for the MSO models.

NOTE

Label strings are 10 characters or less, and may contain any commonly used ASCII characters. Labels with more than 10 characters are truncated to 10 characters.

Query Syntax Return Format

:BUS<n>:LABel?
The :BUS<n>:LABel? query returns the name of the specified bus.
<quoted_string><NL>

See Also Example Code

<quoted_string> ::= any series of 10 or less characters as a quoted ASCII string.
· "Introduction to :BUS<n> Commands" on page 248 · ":BUS<n>:BIT<m>" on page 249 · ":BUS<n>:BITS" on page 250 · ":BUS<n>:CLEar" on page 252 · ":BUS<n>:DISPlay" on page 253 · ":BUS<n>:MASK" on page 255 · ":CHANnel<n>:LABel" on page 276 · ":DISPlay:LABList" on page 316 · ":DIGital<d>:LABel" on page 300
' Set the bus 1 label to "Data": myScope.WriteString ":BUS1:LABel 'Data'"

254

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:BUS<n> Commands 8

:BUS<n>:MASK

(see page 1164) Command Syntax :BUS<n>:MASK <mask>
<mask> ::= 32-bit integer in decimal, <nondecimal>, or <string> <nondecimal> ::= #Hnn...n where n ::= {0,..,9 | A,..,F} for hexadecimal <nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary <string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F} for hexadecimal <n> ::= An integer, 1 or 2, is attached as a suffix to BUS and defines the bus that is affected by the command.
The :BUS<n>:MASK command defines the bits included and excluded in the selected bus according to the mask. Set a mask bit to a "1" to include that bit in the selected bus, and set a mask bit to a "0" to exclude it.

NOTE

This command is only valid for the MSO models.

Query Syntax
Return Format See Also

:BUS<n>:MASK?
The :BUS<n>:MASK? query returns the mask value for the specified bus.
<mask><NL> in decimal format
· "Introduction to :BUS<n> Commands" on page 248 · ":BUS<n>:BIT<m>" on page 249 · ":BUS<n>:BITS" on page 250 · ":BUS<n>:CLEar" on page 252 · ":BUS<n>:DISPlay" on page 253 · ":BUS<n>:LABel" on page 254

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

255

8 :BUS<n> Commands

256

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
9 :CALibrate Commands

Utility commands for viewing calibration status and for starting the user calibration procedure. See "Introduction to :CALibrate Commands" on page 258.

Table 81 :CALibrate Commands Summary

Command

Query

Options and Query Returns

n/a

:CALibrate:DATE? (see <return value> ::=

page 259)

<year>,<month>,<day>; all in NR1

format

:CALibrate:LABel
<string> (see page 260)

:CALibrate:LABel? (see page 260)

<string> ::= quoted ASCII string up to 32 characters

:CALibrate:OUTPut
<signal> (see page 261)

:CALibrate:OUTPut? (see page 261)

<signal> ::= {TRIGgers | MASK | WAVEgen}

n/a

:CALibrate:PROTected? {"PROTected" | "UNPRotected"}

(see page 262)

:CALibrate:STARt (see n/a

n/a

page 263)

n/a

:CALibrate:STATus?

<return value> ::=

(see page 264)

<status_code>,<status_string>

<status_code> ::= an integer status code

<status_string> ::= an ASCII status string

n/a

:CALibrate:TEMPeratur <return value> ::= degrees C

e? (see page 265)

delta since last cal in NR3

format

n/a

:CALibrate:TIME? (see <return value> ::=

page 266)

<hours>,<minutes>,<seconds>; all

in NR1 format

257

9 :CALibrate Commands

Introduction to :CALibrate Commands

The CALibrate subsystem provides utility commands for: · Determining the state of the calibration factor protection switch
(CAL PROTECT). · Saving and querying the calibration label string. · Reporting the calibration time and date. · Reporting changes in the temperature since the last calibration. · Starting the user calibration procedure.

258

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:CALibrate Commands 9

:CALibrate:DATE

(see page 1164)

Query Syntax Return Format

:CALibrate:DATE?
The :CALibrate:DATE? query returns the date of the last calibration.
<date><NL>

<date> ::= year,month,day in NR1 format<NL>
See Also · "Introduction to :CALibrate Commands" on page 258

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

259

9 :CALibrate Commands

:CALibrate:LABel

(see page 1164)

Command Syntax :CALibrate:LABel <string>

Query Syntax Return Format

<string> ::= quoted ASCII string of up to 32 characters in length, not including the quotes
The CALibrate:LABel command saves a string that is up to 32 characters in length into the instrument's non-volatile memory. The string may be used to record calibration dates or other information as needed.
:CALibrate:LABel?
The :CALibrate:LABel? query returns the contents of the calibration label string.
<string><NL>

<string>::= unquoted ASCII string of up to 32 characters in length
See Also · "Introduction to :CALibrate Commands" on page 258

260

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:CALibrate Commands 9

:CALibrate:OUTPut

(see page 1164) Command Syntax :CALibrate:OUTPut <signal>
<signal> ::= {TRIGgers | MASK | WAVEgen}
The CALibrate:OUTPut command sets the signal that is available on the rear panel TRIG OUT BNC: · TRIGgers -- pulse when a trigger event occurs. · MASK -- signal from mask test indicating a failure. · WAVEgen -- waveform generator sync output signal. This signal depends on
the :WGEN:FUNCtion setting:

Waveform Type SINusoid, SQUare, RAMP, PULSe, SINC, EXPRise, EXPFall, GAUSsian DC, NOISe, CARDiac

Sync Signal Characteristics The Sync signal is a TTL positive pulse that occurs when the waveform rises above zero volts (or the DC offset value).
N/A

Query Syntax Return Format

:CALibrate:OUTPut?
The :CALibrate:OUTPut query returns the current source of the TRIG OUT BNC signal.
<signal><NL>

See Also

<signal> ::= {TRIG | MASK | WAVE}
· "Introduction to :CALibrate Commands" on page 258 · ":WGEN:FUNCtion" on page 1033

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

261

9 :CALibrate Commands

:CALibrate:PROTected

(see page 1164)

Query Syntax Return Format

:CALibrate:PROTected?
The :CALibrate:PROTected? query returns the rear-panel calibration protect (CAL PROTECT) button state. The value "PROTected" indicates calibration is disabled, and "UNPRotected" indicates calibration is enabled.
<switch><NL>

<switch> ::= {"PROTected" | "UNPRotected"}
See Also · "Introduction to :CALibrate Commands" on page 258

262

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:CALibrate Commands 9

:CALibrate:STARt

Command Syntax

(see page 1164)
:CALibrate:STARt
The CALibrate:STARt command starts the user calibration procedure.

NOTE

Before starting the user calibration procedure, you must set the rear panel CALIBRATION switch to UNPROTECTED, and you must connect BNC cables from the TRIG OUT connector to the analog channel inputs. See the User's Guide for details.

See Also · "Introduction to :CALibrate Commands" on page 258 · ":CALibrate:PROTected" on page 262

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

263

9 :CALibrate Commands

:CALibrate:STATus

(see page 1164)

Query Syntax Return Format

:CALibrate:STATus?
The :CALibrate:STATus? query returns the summary results of the last user calibration procedure.
<return value><NL>

<return value> ::= <status_code>,<status_string>

<status_code> ::= an integer status code

<status_string> ::= an ASCII status string
See Also · "Introduction to :CALibrate Commands" on page 258

264

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:CALibrate Commands 9

:CALibrate:TEMPerature

(see page 1164)

Query Syntax Return Format

:CALibrate:TEMPerature?
The :CALibrate:TEMPerature? query returns the change in temperature since the last user calibration procedure.
<return value><NL>

<return value> ::= degrees C delta since last cal in NR3 format
See Also · "Introduction to :CALibrate Commands" on page 258

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

265

9 :CALibrate Commands

:CALibrate:TIME

(see page 1164)

Query Syntax Return Format

:CALibrate:TIME?
The :CALibrate:TIME? query returns the time of the last calibration.
<date><NL>

<date> ::= hour,minutes,seconds in NR1 format
See Also · "Introduction to :CALibrate Commands" on page 258

266

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
10 :CHANnel<n> Commands

Control all oscilloscope functions associated with individual analog channels or groups of channels. See "Introduction to :CHANnel<n> Commands" on page 269.

Table 82 :CHANnel<n> Commands Summary

Command

Query

Options and Query Returns

:CHANnel<n>:BANDwidth :CHANnel<n>:BANDwidth <limit> ::= 25E6 in NR3 format

<limit> (see page 270) ? [MAXimum] (see page 270)

<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:BWLimit
{{0 | OFF} | {1 | ON}} (see page 271)

:CHANnel<n>:BWLimit? (see page 271)

{0 | 1}
<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:COUPling
<coupling> (see page 272)

:CHANnel<n>:COUPling? <coupling> ::= {AC | DC}

(see page 272)

<n> ::= 1 to (# analog channels)

in NR1 format

:CHANnel<n>:DISPlay
{{0 | OFF} | {1 | ON}} (see page 273)

:CHANnel<n>:DISPlay? (see page 273)

{0 | 1}
<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:IMPedance :CHANnel<n>:IMPedance <impedance> ::= {ONEMeg | FIFTy}

<impedance> (see page 274)

? (see page 274)

<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:INVert
{{0 | OFF} | {1 | ON}} (see page 275)

:CHANnel<n>:INVert? (see page 275)

{0 | 1}
<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:LABel
<string> (see page 276)

:CHANnel<n>:LABel? (see page 276)

<string> ::= any series of 10 or less ASCII characters enclosed in quotation marks
<n> ::= 1 to (# analog channels) in NR1 format

267

10 :CHANnel<n> Commands

Table 82 :CHANnel<n> Commands Summary (continued)

Command

Query

Options and Query Returns

:CHANnel<n>:OFFSet
<offset>[suffix] (see page 277)

:CHANnel<n>:OFFSet? (see page 277)

<offset> ::= Vertical offset value in NR3 format [suffix] ::= {V | mV} <n> ::= 1-2 or 1-4; in NR1 format

:CHANnel<n>:PROBe
<attenuation> (see page 278)

:CHANnel<n>:PROBe? (see page 278)

<attenuation> ::= Probe attenuation ratio in NR3 format
<n> ::= 1-2 or 1-4; in NR1 format

:CHANnel<n>:PROBe:HEA
D[:TYPE] <head_param> (see page 279)

:CHANnel<n>:PROBe:HEA
D[:TYPE]? (see page 279)

<head_param> ::= {SEND0 | SEND6 | SEND12 | SEND20 | DIFF0 | DIFF6 | DIFF12 | DIFF20 | NONE}
<n> ::= 1 to (# analog channels) in NR1 format

n/a

:CHANnel<n>:PROBe:ID? <probe id> ::= unquoted ASCII

(see page 280)

string up to 11 characters

<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:PROBe:SKE
W <skew_value> (see page 281)

:CHANnel<n>:PROBe:SKE W? (see page 281)

<skew_value> ::= -100 ns to +100 ns in NR3 format
<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:PROBe:STY
Pe <signal type> (see page 282)

:CHANnel<n>:PROBe:STY Pe? (see page 282)

<signal type> ::= {DIFFerential | SINGle}
<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:PROTectio :CHANnel<n>:PROTectio {NORM | TRIP}

n (see page 283)

n? (see page 283)

<n> ::= 1 to (# analog channels)

in NR1 format

:CHANnel<n>:RANGe
<range>[suffix] (see page 284)

:CHANnel<n>:RANGe? (see page 284)

<range> ::= Vertical full-scale range value in NR3 format
[suffix] ::= {V | mV}
<n> ::= 1 to (# analog channels) in NR1 format

:CHANnel<n>:SCALe
<scale>[suffix] (see page 285)

:CHANnel<n>:SCALe? (see page 285)

<scale> ::= Vertical units per division value in NR3 format
[suffix] ::= {V | mV}
<n> ::= 1 to (# analog channels) in NR1 format

268

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:CHANnel<n> Commands 10

Table 82 :CHANnel<n> Commands Summary (continued)

Command

Query

:CHANnel<n>:UNITs

:CHANnel<n>:UNITs?

<units> (see page 286) (see page 286)

:CHANnel<n>:VERNier
{{0 | OFF} | {1 | ON}} (see page 287)

:CHANnel<n>:VERNier? (see page 287)

Options and Query Returns
<units> ::= {VOLT | AMPere} <n> ::= 1 to (# analog channels) in NR1 format
{0 | 1} <n> ::= 1 to (# analog channels) in NR1 format

Introduction to :CHANnel<n>
Commands

<n> ::= 1 to (# analog channels) in NR1 format
The CHANnel<n> subsystem commands control an analog channel (vertical or Y-axis of the oscilloscope). Channels are independently programmable for all offset, probe, coupling, bandwidth limit, inversion, vernier, and range (scale) functions. The channel number (1, 2, 3, or 4) specified in the command selects the analog channel that is affected by the command. A label command provides identifying annotations of up to 10 characters. You can toggle the channel displays on and off with the :CHANnel<n>:DISPlay command as well as with the root level commands :VIEW and :BLANk.

NOTE

The obsolete CHANnel subsystem is supported.

Reporting the Setup Use :CHANnel1?, :CHANnel2?, :CHANnel3? or :CHANnel4? to query setup information for the CHANnel<n> subsystem.
Return Format The following are sample responses from the :CHANnel<n>? query. In this case, the query was issued following a *RST command.
:CHAN1:RANG +40.0E+00;OFFS +0.00000E+00;COUP DC;IMP ONEM;DISP 1;BWL 0; INV 0;LAB "1";UNIT VOLT;PROB +10E+00;PROB:SKEW +0.00E+00;STYP SING

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

269

10 :CHANnel<n> Commands

:CHANnel<n>:BANDwidth

(see page 1164)

Command Syntax :CHANnel<n>:BANDwidth <limit>

<limit> ::= 25E6 in NR3 format

<n> ::= 1 to (# analog channels) in NR1 format
The :CHANnel<n>:BANDwidth command sets the bandwidth limit value and turns on bandwidth limiting (see the :CHANnel<n>:BWLimit command). For waveforms with frequencies below the bandwidth limit, turning the bandwidth limit on removes unwanted high frequency noise from the waveform. Bandwidth limit also limits the trigger signal path of the channel. While you can request any limit; the oscilloscope will choose the only bandwidth limit available, 25 MHz.

Query Syntax Return Format

:CHANnel<n>:BANDwidth? [MAXimum]
The :CHANnel<n>:BANDwidth? query returns the current setting of the low-pass filter. If the bandwidth limit is off, the query returns the full bandwidth of the oscilloscope. When the MAXimum parameter is used, the oscilloscope's maximum possible bandwidth is returned.
<limit><NL>

<limit> ::= 25E6 or full bandwidth in NR3 format
See Also · ":CHANnel<n>:BWLimit" on page 271

270

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:CHANnel<n> Commands 10

:CHANnel<n>:BWLimit

(see page 1164)

Command Syntax :CHANnel<n>:BWLimit <bwlimit>

<bwlimit> ::= {{1 | ON} | {0 | OFF}

<n> ::= 1 to (# analog channels) in NR1 format
The :CHANnel<n>:BWLimit command controls an internal low-pass filter. When the filter is on, the bandwidth of the specified channel is limited to approximately 25 MHz.

Query Syntax Return Format

:CHANnel<n>:BWLimit?
The :CHANnel<n>:BWLimit? query returns the current setting of the low-pass filter.
<bwlimit><NL>

<bwlimit> ::= {1 | 0}
See Also · "Introduction to :CHANnel<n> Commands" on page 269

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

271

10 :CHANnel<n> Commands

:CHANnel<n>:COUPling

(see page 1164)

Command Syntax :CHANnel<n>:COUPling <coupling>

<coupling> ::= {AC | DC}

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :CHANnel<n>:COUPling command selects the input coupling for the specified channel. The coupling for each analog channel can be set to AC or DC.
:CHANnel<n>:COUPling?
The :CHANnel<n>:COUPling? query returns the current coupling for the specified channel.
<coupling value><NL>

<coupling value> ::= {AC | DC}
See Also · "Introduction to :CHANnel<n> Commands" on page 269

272

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:CHANnel<n> Commands 10

:CHANnel<n>:DISPlay

(see page 1164)

Command Syntax :CHANnel<n>:DISPlay <display value>

<display value> ::= {{1 | ON} | {0 | OFF}}

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :CHANnel<n>:DISPlay command turns the display of the specified channel on or off.
:CHANnel<n>:DISPlay?
The :CHANnel<n>:DISPlay? query returns the current display setting for the specified channel.
<display value><NL>

See Also

<display value> ::= {1 | 0}
· "Introduction to :CHANnel<n> Commands" on page 269 · ":VIEW" on page 231 · ":BLANk" on page 204 · ":STATus" on page 228 · ":POD<n>:DISPlay" on page 541 · ":DIGital<d>:DISPlay" on page 299

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

273

10 :CHANnel<n> Commands

:CHANnel<n>:IMPedance

(see page 1164)

Command Syntax :CHANnel<n>:IMPedance <impedance>

<impedance> ::= {ONEMeg | FIFTy}

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :CHANnel<n>:IMPedance command selects the input impedance setting for the specified analog channel. The legal values for this command are ONEMeg (1 M) and FIFTy (50).
:CHANnel<n>:IMPedance?
The :CHANnel<n>:IMPedance? query returns the current input impedance setting for the specified channel.
<impedance value><NL>

<impedance value> ::= {ONEM | FIFT}
See Also · "Introduction to :CHANnel<n> Commands" on page 269

274

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:CHANnel<n> Commands 10

:CHANnel<n>:INVert

(see page 1164)

Command Syntax :CHANnel<n>:INVert <invert value>

<invert value> ::= {{1 | ON} | {0 | OFF}

<n> ::= 1 to (# analog channels) in NR1 format
The :CHANnel<n>:INVert command selects whether or not to invert the input signal for the specified channel. The inversion may be 1 (ON/inverted) or 0 (OFF/not inverted).

Query Syntax Return Format

:CHANnel<n>:INVert?
The :CHANnel<n>:INVert? query returns the current state of the channel inversion.
<invert value><NL>

<invert value> ::= {0 | 1}
See Also · "Introduction to :CHANnel<n> Commands" on page 269

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

275

10 :CHANnel<n> Commands

:CHANnel<n>:LABel

(see page 1164) Command Syntax :CHANnel<n>:LABel <string>
<string> ::= quoted ASCII string <n> ::= 1 to (# analog channels) in NR1 format

NOTE

Label strings are 10 characters or less, and may contain any commonly used ASCII characters. Labels with more than 10 characters are truncated to 10 characters. Lower case characters are converted to upper case.

Query Syntax Return Format

The :CHANnel<n>:LABel command sets the analog channel label to the string that follows. Setting a label for a channel also adds the name to the label list in non-volatile memory (replacing the oldest label in the list).
:CHANnel<n>:LABel?
The :CHANnel<n>:LABel? query returns the label associated with a particular analog channel.
<string><NL>

See Also

<string> ::= quoted ASCII string
· "Introduction to :CHANnel<n> Commands" on page 269 · ":DISPlay:LABel" on page 315 · ":DIGital<d>:LABel" on page 300 · ":DISPlay:LABList" on page 316 · ":BUS<n>:LABel" on page 254

Example Code

' LABEL - This command allows you to write a name (10 characters ' maximum) next to the channel number. It is not necessary, but ' can be useful for organizing the display. myScope.WriteString ":CHANnel1:LABel ""CAL 1""" ' Label ch1 "CAL 1". myScope.WriteString ":CHANnel2:LABel ""CAL2""" ' Label ch1 "CAL2".
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

276

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:CHANnel<n> Commands 10

:CHANnel<n>:OFFSet

(see page 1164)

Command Syntax :CHANnel<n>:OFFSet <offset> [<suffix>]

<offset> ::= Vertical offset value in NR3 format

<suffix> ::= {V | mV}

<n> ::= 1 to (# analog channels) in NR1 format
The :CHANnel<n>:OFFSet command sets the value that is represented at center screen for the selected channel. The range of legal values varies with the value set by the :CHANnel<n>:RANGe and :CHANnel<n>:SCALe commands. If you set the offset to a value outside of the legal range, the offset value is automatically set to the nearest legal value. Legal values are affected by the probe attenuation setting.

Query Syntax Return Format

:CHANnel<n>:OFFSet?
The :CHANnel<n>:OFFSet? query returns the current offset value for the selected channel.
<offset><NL>

See Also

<offset> ::= Vertical offset value in NR3 format
· "Introduction to :CHANnel<n> Commands" on page 269 · ":CHANnel<n>:RANGe" on page 284 · ":CHANnel<n>:SCALe" on page 285 · ":CHANnel<n>:PROBe" on page 278

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

277

10 :CHANnel<n> Commands

:CHANnel<n>:PROBe

(see page 1164)

Command Syntax :CHANnel<n>:PROBe <attenuation>

<attenuation> ::= probe attenuation ratio in NR3 format

<n> ::= 1 to (# analog channels) in NR1 format

The obsolete attenuation values X1, X10, X20, X100 are also supported.
The :CHANnel<n>:PROBe command specifies the probe attenuation factor for the selected channel. The probe attenuation factor may be 0.001 to 10000. This command does not change the actual input sensitivity of the oscilloscope. It changes the reference constants for scaling the display factors, for making automatic measurements, and for setting trigger levels.

Query Syntax Return Format

If an AutoProbe probe is connected to the oscilloscope, the attenuation value cannot be changed from the sensed value. Attempting to set the oscilloscope to an attenuation value other than the sensed value produces an error.
:CHANnel<n>:PROBe?
The :CHANnel<n>:PROBe? query returns the current probe attenuation factor for the selected channel.
<attenuation><NL>

See Also Example Code

<attenuation> ::= probe attenuation ratio in NR3 format
· "Introduction to :CHANnel<n> Commands" on page 269 · ":CHANnel<n>:RANGe" on page 284 · ":CHANnel<n>:SCALe" on page 285 · ":CHANnel<n>:OFFSet" on page 277
' CHANNEL_PROBE - Sets the probe attenuation factor for the selected ' channel. The probe attenuation factor may be set from 0.001 to 100 00. myScope.WriteString ":CHANnel1:PROBe 10" ' Set Probe to 10:1.
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

278

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:CHANnel<n> Commands 10

:CHANnel<n>:PROBe:HEAD[:TYPE]

Command Syntax
NOTE

(see page 1164) This command is valid only for the 113xA Series probes.

:CHANnel<n>:PROBe:HEAD[:TYPE] <head_param>

<head_param> ::= {SEND0 | SEND6 | SEND12 | SEND20 | DIFF0 | DIFF6 | DIFF12 | DIFF20 | NONE}

Query Syntax Return Format

<n> ::= {1 | 2 | 3 | 4}
The :CHANnel<n>:PROBe:HEAD[:TYPE] command sets an analog channel probe head type and dB value. You can choose from: · SEND0 -- Single-ended, 0dB. · SEND6 -- Single-ended, 6dB. · SEND12 -- Single-ended, 12dB. · SEND20 -- Single-ended, 20dB. · DIFF0 -- Differential, 0dB. · DIFF6 -- Differential, 6dB. · DIFF12 -- Differential, 12dB. · DIFF20 -- Differential, 20dB.
:CHANnel<n>:PROBe:HEAD[:TYPE]?
The :CHANnel<n>:PROBe:HEAD[:TYPE]? query returns the current probe head type setting for the selected channel.
<head_param><NL>

See Also

<head_param> ::= {SEND0 | SEND6 | SEND12 | SEND20 | DIFF0 | DIFF6 | DIFF12 | DIFF20 | NONE}
· "Introduction to :CHANnel<n> Commands" on page 269 · ":CHANnel<n>:PROBe" on page 278 · ":CHANnel<n>:PROBe:ID" on page 280 · ":CHANnel<n>:PROBe:SKEW" on page 281 · ":CHANnel<n>:PROBe:STYPe" on page 282

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

279

10 :CHANnel<n> Commands
:CHANnel<n>:PROBe:ID
(see page 1164) Query Syntax :CHANnel<n>:PROBe:ID?
<n> ::= 1 to (# analog channels) in NR1 format
The :CHANnel<n>:PROBe:ID? query returns the type of probe attached to the specified oscilloscope channel. Return Format <probe id><NL>
<probe id> ::= unquoted ASCII string up to 11 characters
Some of the possible returned values are: · 1131A · 1132A · 1134A · 1147A · 1153A · 1154A · 1156A · 1157A · 1158A · 1159A · AutoProbe · E2621A · E2622A · E2695A · E2697A · HP1152A · HP1153A · NONE · Probe · Unknown · Unsupported See Also · "Introduction to :CHANnel<n> Commands" on page 269

280

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:CHANnel<n> Commands 10

:CHANnel<n>:PROBe:SKEW

(see page 1164)

Command Syntax :CHANnel<n>:PROBe:SKEW <skew value>

<skew value> ::= skew time in NR3 format

<skew value> ::= -100 ns to +100 ns

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :CHANnel<n>:PROBe:SKEW command sets the channel-to-channel skew factor for the specified channel. Each analog channel can be adjusted + or -100 ns for a total of 200 ns difference between channels. You can use the oscilloscope's probe skew control to remove cable-delay errors between channels.
:CHANnel<n>:PROBe:SKEW?
The :CHANnel<n>:PROBe:SKEW? query returns the current probe skew setting for the selected channel.
<skew value><NL>

<skew value> ::= skew value in NR3 format
See Also · "Introduction to :CHANnel<n> Commands" on page 269

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

281

10 :CHANnel<n> Commands

:CHANnel<n>:PROBe:STYPe

Command Syntax
NOTE

(see page 1164) This command is valid only for the 113xA Series probes.

:CHANnel<n>:PROBe:STYPe <signal type>

<signal type> ::= {DIFFerential | SINGle}

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :CHANnel<n>:PROBe:STYPe command sets the channel probe signal type (STYPe) to differential or single-ended when using the 113xA Series probes and determines how offset is applied. When single-ended is selected, the :CHANnel<n>:OFFset command changes the offset value of the probe amplifier. When differential is selected, the :CHANnel<n>:OFFset command changes the offset value of the channel amplifier.
:CHANnel<n>:PROBe:STYPe?
The :CHANnel<n>:PROBe:STYPe? query returns the current probe signal type setting for the selected channel.
<signal type><NL>

See Also

<signal type> ::= {DIFF | SING}
· "Introduction to :CHANnel<n> Commands" on page 269 · ":CHANnel<n>:OFFSet" on page 277

282

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:CHANnel<n> Commands 10

:CHANnel<n>:PROTection

(see page 1164)

Command Syntax :CHANnel<n>:PROTection[:CLEar]

Query Syntax
Return Format See Also

<n> ::= 1 to (# analog channels) in NR1 format| 4}
When the analog channel input impedance is set to 50, the input channels are protected against overvoltage. When an overvoltage condition is sensed, the input impedance for the channel is automatically changed to 1 M. The :CHANnel<n>:PROTection[:CLEar] command is used to clear (reset) the overload protection. It allows the channel to be used again in 50 mode after the signal that caused the overload has been removed from the channel input. Reset the analog channel input impedance to 50 (see ":CHANnel<n>:IMPedance" on page 274) after clearing the overvoltage protection.
:CHANnel<n>:PROTection?
The :CHANnel<n>:PROTection query returns the state of the input protection for CHANnel<n>. If a channel input has experienced an overload, TRIP (tripped) will be returned; otherwise NORM (normal) is returned.
{NORM | TRIP}<NL>
· "Introduction to :CHANnel<n> Commands" on page 269 · ":CHANnel<n>:COUPling" on page 272 · ":CHANnel<n>:IMPedance" on page 274 · ":CHANnel<n>:PROBe" on page 278

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

283

10 :CHANnel<n> Commands

:CHANnel<n>:RANGe

(see page 1164)

Command Syntax :CHANnel<n>:RANGe <range>[<suffix>]

<range> ::= vertical full-scale range value in NR3 format

<suffix> ::= {V | mV}

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :CHANnel<n>:RANGe command defines the full-scale vertical axis of the selected channel. When using 1:1 probe attenuation, legal values for the range are from 8 mV to 40 V. If the probe attenuation is changed, the range value is multiplied by the probe attenuation factor.
:CHANnel<n>:RANGe?
The :CHANnel<n>:RANGe? query returns the current full-scale range setting for the specified channel.
<range_argument><NL>

See Also Example Code

<range_argument> ::= vertical full-scale range value in NR3 format
· "Introduction to :CHANnel<n> Commands" on page 269 · ":CHANnel<n>:SCALe" on page 285 · ":CHANnel<n>:PROBe" on page 278
' CHANNEL_RANGE - Sets the full scale vertical range in volts. The ' range value is 8 times the volts per division. myScope.WriteString ":CHANnel1:RANGe 8" ' Set the vertical range to 8 volts.
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

284

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:CHANnel<n> Commands 10

:CHANnel<n>:SCALe

(see page 1164)

Command Syntax :CHANnel<n>:SCALe <scale>[<suffix>]

<scale> ::= vertical units per division in NR3 format

<suffix> ::= {V | mV}

<n> ::= 1 to (# analog channels) in NR1 format
The :CHANnel<n>:SCALe command sets the vertical scale, or units per division, of the selected channel. If the probe attenuation is changed, the scale value is multiplied by the probe's attenuation factor.

Query Syntax Return Format

:CHANnel<n>:SCALe?
The :CHANnel<n>:SCALe? query returns the current scale setting for the specified channel.
<scale value><NL>

See Also

<scale value> ::= vertical units per division in NR3 format
· "Introduction to :CHANnel<n> Commands" on page 269 · ":CHANnel<n>:RANGe" on page 284 · ":CHANnel<n>:PROBe" on page 278

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

285

10 :CHANnel<n> Commands

:CHANnel<n>:UNITs

(see page 1164)

Command Syntax :CHANnel<n>:UNITs <units>

<units> ::= {VOLT | AMPere}

<n> ::= 1 to (# analog channels) in NR1 format
The :CHANnel<n>:UNITs command sets the measurement units for the connected probe. Select VOLT for a voltage probe and select AMPere for a current probe. Measurement results, channel sensitivity, and trigger level will reflect the measurement units you select.

Query Syntax Return Format

:CHANnel<n>:UNITs?
The :CHANnel<n>:UNITs? query returns the current units setting for the specified channel.
<units><NL>

See Also

<units> ::= {VOLT | AMP}
· "Introduction to :CHANnel<n> Commands" on page 269 · ":CHANnel<n>:RANGe" on page 284 · ":CHANnel<n>:PROBe" on page 278 · ":EXTernal:UNITs" on page 331

286

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:CHANnel<n> Commands 10

:CHANnel<n>:VERNier

(see page 1164)

Command Syntax :CHANnel<n>:VERNier <vernier value>

<vernier value> ::= {{1 | ON} | {0 | OFF}

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :CHANnel<n>:VERNier command specifies whether the channel's vernier (fine vertical adjustment) setting is ON (1) or OFF (0).
:CHANnel<n>:VERNier?
The :CHANnel<n>:VERNier? query returns the current state of the channel's vernier setting.
<vernier value><NL>

<vernier value> ::= {0 | 1}
See Also · "Introduction to :CHANnel<n> Commands" on page 269

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

287

10 :CHANnel<n> Commands

288

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
11 :DEMO Commands

When the education kit is licensed (Option EDU), you can output demonstration signals on the oscilloscope's Demo 1 and Demo 2 terminals. See "Introduction to :DEMO Commands" on page 289.

Table 83 :DEMO Commands Summary

Command

Query

Options and Query Returns

:DEMO:FUNCtion
<signal> (see page 290)

:DEMO:FUNCtion? (see page 293)

<signal> ::= {SINusoid | NOISy | PHASe | LFSine | AM | RFBurst | FMBurst | HARMonics | COUPling | RINGing | SINGle | CLK | RUNT | TRANsition | SHOLd | MSO | BURSt | GLITch | ETE | I2C | UART | SPI | I2S | CAN | LIN | CANLin | FLEXray | ARINc | MIL | MIL2}

:DEMO:FUNCtion:PHASe: :DEMO:FUNCtion:PHASe: <angle> ::= angle in degrees from

PHASe <angle> (see

PHASe? (see page 294) 0 to 360 in NR3 format

page 294)

:DEMO:OUTPut {{0 |
OFF} | {1 | ON}} (see page 295)

:DEMO:OUTPut? (see page 295)

{0 | 1}

Introduction to The :DEMO subsystem provides commands to output demonstration signals on :DEMO Commands the oscillosope's Demo 1 and Demo 2 terminals.
Reporting the Setup Use :DEMO? to query setup information for the DEMO subsystem. Return Format The following is a sample response from the :DEMO? query. In this case, the query was issued following the *RST command.
:DEMO:FUNC SIN;OUTP 0

289

11 :DEMO Commands

:DEMO:FUNCtion

(see page 1164) Command Syntax :DEMO:FUNCtion <signal>
<signal> ::= {SINusoid | NOISy | PHASe | LFSine | AM | RFBurst | FMBurst | HARMonics | COUPling | RINGing | SINGle | CLK | RUNT | TRANsition | SHOLd | MSO | BURSt | GLITch | ETE | I2C | UART | SPI | I2S | CAN | LIN | CANLin | FLEXray | ARINc | MIL | MIL2}
The :DEMO:FUNCtion command selects the type of demo signal:

Demo Signal Function SINusoid NOISy PHAse
LFSine AM RFBurst FMBurst HARMonics COUPling RINGing

Demo 1 Terminal

Demo 2 Terminal

5 MHz sine wave @ ~ 6 Vpp, 0 V offset 1 kHz sine wave @ ~ 2.4 Vpp, 0.0 V offset, with ~ 0.5 Vpp of random noise added 1 kHz sine wave @ 2.4 Vpp, 0.0 V offset
30 Hz sine wave @ ~2.7 Vpp, 0 V offset, with very narrow glitch near each positive peak 26 kHz sine wave, ~ 7 Vpp, 0 V offset
5-cycle burst of a 10 MHz amplitude modulated sine wave @ ~ 2.6 Vpp, 0 V offset occurring once every 4 ms FM burst, modulated from ~100 kHz to ~1 MHz, ~5.0 Vpp, ~600 mV offset. 1 kHz sine wave @ ~3.5 Vpp, 0.0 V offset, with a ~2 kHz sine wave coupled in 1 kHz square wave @ ~1 Vpp, 0.0 V offset, with a ~90 kHz sine wave with ~180 mVpp riding on top 500 kHz digital pulse @ ~ 3 Vpp, 1.5 V offset, and ~500 ns pulse width with ringing

Off Off
1 kHz sine wave @ 2.4 Vpp, 0.0 V offset , phase shifted by the amount entered using the ":DEMO:FUNCtion:PHASe:PHAS e" on page 294 command Off
Amplitude modulated signal, ~ 3 Vpp, 0 V offset, with ~13 MHz carrier and sine envelope Off
Off Off
Off
Off

290

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:DEMO Commands 11

Demo Signal Function SINGle
CLK RUNT TRANsition SHOLd MSO
BURSt GLITch ETE
I2C UART

Demo 1 Terminal

Demo 2 Terminal

~500 ns wide digital pulse with ringing @ ~ 3 Vpp, 1.5 V offset Press the front panel Set Off Single-Shot softkey to cause the selected single-shot signal to be output. 3.6 MHz clock @ ~2 Vpp, 1 V offset, with infrequent glitch (1 glitch per 1,000,000 clocks) Digital pulse train with positive and negative runt pulses @ ~ 3.5 Vpp, 1.75 V offset Digital pulse train with two different edge speeds @ ~ 3.5 Vpp, 1.75 V offset 6.25 MHz digital clock @ ~ 3.5 Vpp, 1.75 V offset 3.1 kHz stair-step sine wave output of DAC @ ~1.5 Vpp, 0.75 V offset DAC input signals are internally routed to digital channels D0 through D7 Burst of digital pulses that occur every 50 µs @ ~ 3.6 Vpp, ~1.5 V offset Burst of 6 digital pulses (plus infrequent glitch) that occurs once every 80 µs @ ~3.6 Vpp, ~1.8 V offset 100 kHz pulse, 400 ns wide @ ~3.3 Vpp, 1.65 V offset
I2C serial clock signal (SCL) @ ~2.8 Vpp, 1.4 V offset Receive data (RX) with odd parity, 19.2 kbps, 8-bit words, LSB out 1st, low idle @ ~2.8 Vpp, 1.4 V offset

Off
Off Off Off Data signal @ ~3.5 Vpp, 1.75 V offset ~3.1 kHz sine wave filtered from DAC output @ ~ 600 mVpp, 300 mV offset Off Off 600 ns analog burst (@ ~3.3 Vpp, 0.7 V offset) followed by 3.6 s digital burst @ ~3.3 Vpp, 1.65 V offset) at a 100 kHz repetitive rate I2C serial data signal (SDA) @ ~ 2.8 Vpp, 1.4 V offset Transmit data (TX) with odd parity, 19.2 kbps, 8-bit words, LSB out 1st, low idle @ ~ 2.8 Vpp, 1.4 V offset

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

291

11 :DEMO Commands

Demo Signal Function SPI
I2S
CAN LIN CANLin FLEXray ARINc MIL MIL2

Demo 1 Terminal

Demo 2 Terminal

Off Signals are internally routed to digital channels D6 through D9:
· D9 -- MOSI, TTL level, with MSB out
1st (internally routed to digital input).
· D8 -- MISO, TTL level, with MSB out
1st (internally routed to digital input).
· D7 -- CLK, TTL level (internally
routed to digital input).
· D6 -- ~CS, low-enable, TTL level
(internally routed to digital input).
Off Signals are internally routed to digital channels D7 through D9:
· D9 -- SDATA, TTL level, with
"standard" alignment (internally routed to digital input).
· D8 -- SCLK, TTL level, (internally
routed to digital input).
· D7 -- WS, TTL level, low for left
channel, high for right channel (internally routed to digital input)
CAN_L, 125 kbps dominant-low, ~2.8 Vpp, ~1.4 V offset
LIN, 19.2 kbs, ~2.8 Vpp, ~1.4 V offset
CAN_L, 250 kbps dominant-low, ~2.8 Vpp, ~1.4 V offset
FlexRay @ 10 Mbps, ~2.8 Vpp, ~0 V offset
ARINC 429, 100 kbps, ~5 Vpp, ~0 V offset.
MIL-STD-1553 RT to RT transfer, received ~1.3 Vpp, transmitted ~4.8 Vpp, 0 V offset
MIL-STD-1553 RT to RT transfer, received ~1.3 Vpp, transmitted ~4.8 Vpp, 0 V offset

Off
Off
Off Off LIN, 19.2 kbps, ~2.8 Vpp, ~1.4 V offset Off Off Off MIL-STD-1553 RT to BC transfer, received ~1.3 Vpp, transmitted ~4.8 Vpp, 0 V offset

292

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:DEMO Commands 11

Query Syntax :DEMO:FUNCtion? The :DEMO:FUNCtion? query returns the currently selected demo signal type.

Return Format <signal><NL>

See Also

<signal> ::= {SIN | NOIS | PHAS | LFS | AM | RFB | FMB | HARM | COUP | RING | SINGl | CLK | RUNT | TRAN | SHOL | MSO | BURS | GLIT | ETE | I2C | UART | SPI | I2S | CAN | LIN | CANL | FLEX | ARINc | MIL | MIL2}
· "Introduction to :DEMO Commands" on page 289

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

293

11 :DEMO Commands

:DEMO:FUNCtion:PHASe:PHASe

(see page 1164)

Command Syntax :DEMO:FUNCtion:PHASe:PHASe <angle>

<angle> ::= angle in degrees from 0 to 360 in NR3 format
For the phase shifted sine demo signals, the :DEMO:FUNCtion:PHASe:PHASe command specifies the phase shift in the second sine waveform.

Query Syntax Return Format

:DEMO:FUNCtion:PHASe:PHASe?
The :DEMO:FUNCtion:PHASe:PHASe? query returns the currently set phase shift.
<angle><NL>

See Also

<angle> ::= angle in degrees from 0 to 360 in NR3 format
· "Introduction to :DEMO Commands" on page 289 · ":DEMO:FUNCtion" on page 290

294

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:DEMO Commands 11

:DEMO:OUTPut

(see page 1164)

Command Syntax :DEMO:OUTPut <on_off>

<on_off> ::= {{1 | ON} | {0 | OFF}
The :DEMO:OUTPut command specifies whether the demo signal output is ON (1) or OFF (0).

Query Syntax Return Format

:DEMO:OUTPut?
The :DEMO:OUTPut? query returns the current state of the demo signal output setting.
<on_off><NL>

See Also

<on_off> ::= {1 | 0}
· "Introduction to :DEMO Commands" on page 289 · ":DEMO:FUNCtion" on page 290

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

295

11 :DEMO Commands

296

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
12 :DIGital<d> Commands

Control all oscilloscope functions associated with individual digital channels. See "Introduction to :DIGital<d> Commands" on page 298.

Table 84 :DIGital<d> Commands Summary

Command

Query

Options and Query Returns

:DIGital<d>:DISPlay
{{0 | OFF} | {1 | ON}} (see page 299)

:DIGital<d>:DISPlay? (see page 299)

<d> ::= 0 to (# digital channels - 1) in NR1 format
{0 | 1}

:DIGital<d>:LABel
<string> (see page 300)

:DIGital<d>:LABel? (see page 300)

<d> ::= 0 to (# digital channels - 1) in NR1 format
<string> ::= any series of 10 or less ASCII characters enclosed in quotation marks

:DIGital<d>:POSition
<position> (see page 301)

:DIGital<d>:POSition? (see page 301)

<d> ::= 0 to (# digital channels - 1) in NR1 format
<position> ::= 0-7 if display size = large, 0-15 if size = medium, 0-31 if size = small
Returns -1 when there is no space to display the digital waveform.

:DIGital<d>:SIZE

:DIGital<d>:SIZE?

<value> (see page 302) (see page 302)

<d> ::= 0 to (# digital channels - 1) in NR1 format
<value> ::= {SMALl | MEDium | LARGe}

:DIGital<d>:THReshold
<value>[suffix] (see page 303)

:DIGital<d>:THReshold ? (see page 303)

<d> ::= 0 to (# digital channels - 1) in NR1 format
<value> ::= {CMOS | ECL | TTL | <user defined value>}
<user defined value> ::= value in NR3 format from -8.00 to +8.00
[suffix] ::= {V | mV | uV}

297

12 :DIGital<d> Commands

Introduction to :DIGital<d> Commands

<d> ::= 0 to (# digital channels - 1) in NR1 format
The DIGital subsystem commands control the viewing, labeling, and positioning of digital channels. They also control threshold settings for groups of digital channels, or pods.

NOTE

These commands are only valid for the MSO models.

Reporting the Setup Use :DIGital<d>? to query setup information for the DIGital subsystem.
Return Format The following is a sample response from the :DIGital0? query. In this case, the query was issued following a *RST command.
:DIG0:DISP 0;THR +1.40E+00;LAB 'D0';POS +0

298

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:DIGital<d> Commands 12

:DIGital<d>:DISPlay

(see page 1164) Command Syntax :DIGital<d>:DISPlay <display>
<d> ::= 0 to (# digital channels - 1) in NR1 format <display> ::= {{1 | ON} | {0 | OFF}}
The :DIGital<d>:DISPlay command turns digital display on or off for the specified channel.

NOTE

This command is only valid for the MSO models.

Query Syntax Return Format

:DIGital<d>:DISPlay?
The :DIGital<d>:DISPlay? query returns the current digital display setting for the specified channel.
<display><NL>

See Also

<display> ::= {0 | 1}
· "Introduction to :DIGital<d> Commands" on page 298 · ":POD<n>:DISPlay" on page 541 · ":CHANnel<n>:DISPlay" on page 273 · ":VIEW" on page 231 · ":BLANk" on page 204 · ":STATus" on page 228

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

299

12 :DIGital<d> Commands

:DIGital<d>:LABel

(see page 1164) Command Syntax :DIGital<d>:LABel <string>
<d> ::= 0 to (# digital channels - 1) in NR1 format <string> ::= any series of 10 or less characters as quoted ASCII string.
The :DIGital<d>:LABel command sets the channel label to the string that follows. Setting a label for a channel also adds the name to the label list in non-volatile memory (replacing the oldest label in the list).

NOTE

This command is only valid for the MSO models.

NOTE

Label strings are 10 characters or less, and may contain any commonly used ASCII characters. Labels with more than 10 characters are truncated to 10 characters.

Query Syntax Return Format

:DIGital<d>:LABel?
The :DIGital<d>:LABel? query returns the name of the specified channel.
<label string><NL>

See Also

<label string> ::= any series of 10 or less characters as a quoted ASCII string.
· "Introduction to :DIGital<d> Commands" on page 298 · ":CHANnel<n>:LABel" on page 276 · ":DISPlay:LABList" on page 316 · ":BUS<n>:LABel" on page 254

300

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:DIGital<d> Commands 12

:DIGital<d>:POSition

(see page 1164) Command Syntax :DIGital<d>:POSition <position>
<d> ::= 0 to (# digital channels - 1) in NR1 format <position> ::= integer in NR1 format.

Channel Size

Position

Top

Large

0-7

7

Medium

0-15

15

Small

0-31

31

Bottom 0 0 0

NOTE

The :DIGital<d>:POSition command sets the position of the specified channel. Note that bottom positions might not be valid depending on whether digital buses, serial decode waveforms, or the zoomed time base are displayed. This command is only valid for the MSO models.

Query Syntax

:DIGital<d>:POSition?
The :DIGital<d>:POSition? query returns the position of the specified channel. If the returned value is "-1", this indicates there is no space to display the digital waveform (for example, when all serial lanes, digital buses, and the zoomed time base are displayed).

Return Format <position><NL>

<position> ::= integer in NR1 format.
See Also · "Introduction to :DIGital<d> Commands" on page 298

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

301

12 :DIGital<d> Commands

:DIGital<d>:SIZE

(see page 1164) Command Syntax :DIGital<d>:SIZE <value>
<d> ::= 0 to (# digital channels - 1) in NR1 format <value> ::= {SMALl | MEDium | LARGe}
The :DIGital<d>:SIZE command specifies the size of digital channels on the display. Sizes are set for all digital channels. Therefore, if you set the size on digital channel 0 (for example), the same size is set on all other as well.

NOTE

This command is only valid for the MSO models.

Query Syntax

:DIGital<d>:SIZE?
The :DIGital<d>:SIZE? query returns the size setting for the specified digital channels.

Return Format <size_value><NL>

See Also

<size_value> ::= {SMAL | MED | LARG}
· "Introduction to :DIGital<d> Commands" on page 298 · ":POD<n>:SIZE" on page 542 · ":DIGital<d>:POSition" on page 301

302

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:DIGital<d> Commands 12

:DIGital<d>:THReshold

(see page 1164) Command Syntax :DIGital<d>:THReshold <value>
<d> ::= 0 to (# digital channels - 1) in NR1 format
<value> ::= {CMOS | ECL | TTL | <user defined value>[<suffix>]}
<user defined value> ::= -8.00 to +8.00 in NR3 format
<suffix> ::= {V | mV | uV}
· TTL = 1.4V · CMOS = 2.5V · ECL = -1.3V The :DIGital<d>:THReshold command sets the logic threshold value for all channels in the same pod as the specified channel. The threshold is used for triggering purposes and for displaying the digital data as high (above the threshold) or low (below the threshold).

NOTE

This command is only valid for the MSO models.

Query Syntax Return Format

:DIGital<d>:THReshold?
The :DIGital<d>:THReshold? query returns the threshold value for the specified channel.
<value><NL>

See Also

<value> ::= threshold value in NR3 format
· "Introduction to :DIGital<d> Commands" on page 298 · ":POD<n>:THReshold" on page 543 · ":TRIGger[:EDGE]:LEVel" on page 929

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

303

12 :DIGital<d> Commands

304

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
13 :DISPlay Commands

Control how waveforms, graticule, and text are displayed and written on the screen. See "Introduction to :DISPlay Commands" on page 306.

Table 85 :DISPlay Commands Summary

Command

Query

Options and Query Returns

:DISPlay:ANNotation
{{0 | OFF} | {1 | ON}} (see page 307)

:DISPlay:ANNotation? {0 | 1} (see page 307)

:DISPlay:ANNotation:B :DISPlay:ANNotation:B <mode> ::= {OPAQue | INVerted |

ACKground <mode> (see ACKground? (see

page 308)

page 308)

TRANsparent}

:DISPlay:ANNotation:C :DISPlay:ANNotation:C <color> ::= {CH1 | CH2 | CH3 |

OLor <color> (see

OLor? (see page 309)

CH4 | DIG | MATH | REF | MARKer |

page 309)

WHITe | RED}

:DISPlay:ANNotation:T :DISPlay:ANNotation:T <string> ::= quoted ASCII string

EXT <string> (see

EXT? (see page 310)

(up to 254 characters)

page 310)

:DISPlay:CLEar (see n/a

n/a

page 311)

n/a

:DISPlay:DATA?

<format> ::= {BMP | BMP8bit |

[<format>][,][<palett PNG}

e>] (see page 312)

<palette> ::= {COLor | GRAYscale}

<display data> ::= data in IEEE 488.2 # format

:DISPlay:INTensity:WA :DISPlay:INTensity:WA <value> ::= an integer from 0 to Veform <value> (see Veform? (see page 314) 100 in NR1 format. page 314)

:DISPlay:LABel {{0 |
OFF} | {1 | ON}} (see page 315)

:DISPlay:LABel? (see page 315)

{0 | 1}

305

13 :DISPlay Commands

Table 85 :DISPlay Commands Summary (continued)

Command

Query

Options and Query Returns

:DISPlay:LABList
<binary block> (see page 316)

:DISPlay:LABList? (see page 316)

<binary block> ::= an ordered list of up to 75 labels, each 10 characters maximum, separated by newline characters

:DISPlay:PERSistence <value> (see page 317)

:DISPlay:PERSistence? (see page 317)

<value> ::= {MINimum | INFinite | <time>}
<time> ::= seconds in in NR3 format from 100E-3 to 60E0

:DISPlay:VECTors {1 | :DISPlay:VECTors?

1

ON} (see page 318)

(see page 318)

Introduction to :DISPlay
Commands

The DISPlay subsystem is used to control the display storage and retrieval of waveform data, labels, and text. This subsystem allows the following actions: · Clear the waveform area on the display. · Turn vectors on or off. · Set waveform persistence. · Specify labels. · Save and Recall display data.

Reporting the Setup Use :DISPlay? to query the setup information for the DISPlay subsystem.

Return Format The following is a sample response from the :DISPlay? query. In this case, the query was issued following a *RST command.

:DISP:LAB 0;VECT 1;PERS MIN

306

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:DISPlay Commands 13

:DISPlay:ANNotation

(see page 1164)

Command Syntax :DISPlay:ANNotation <setting>

<setting> ::= {{1 | ON} | {0 | OFF}}
The :DISPlay:ANNotation command turns the annotation on and off. When on, the annotation appears in the upper left corner of the oscilloscope's display.

Query Syntax Return Format

The annotation is useful for documentation purposes, to add notes before capturing screens.
:DISPlay:ANNotation?
The :DISPlay:ANNotation? query returns the annotation setting.
<value><NL>

See Also

<value> ::= {0 | 1}
· ":DISPlay:ANNotation:TEXT" on page 310 · ":DISPlay:ANNotation:COLor" on page 309 · ":DISPlay:ANNotation:BACKground" on page 308 · "Introduction to :DISPlay Commands" on page 306

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

307

13 :DISPlay Commands

:DISPlay:ANNotation:BACKground

(see page 1164)

Command Syntax :DISPlay:ANNotation:BACKground <mode>

<mode> ::= {OPAQue | INVerted | TRANsparent}
The :DISPlay:ANNotation:BACKground command specifies the background of the annotation: · OPAQue -- the annotation has a solid background. · INVerted -- the annotation's foreground and background colors are switched. · TRANsparent -- the annotation has a transparent background.

Query Syntax Return Format

:DISPlay:ANNotation:BACKground?
The :DISPlay:ANNotation:BACKground? query returns the specified annotation background mode.
<mode><NL>

See Also

<mode> ::= {OPAQ | INV | TRAN}
· ":DISPlay:ANNotation" on page 307 · ":DISPlay:ANNotation:TEXT" on page 310 · ":DISPlay:ANNotation:COLor" on page 309 · "Introduction to :DISPlay Commands" on page 306

308

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:DISPlay Commands 13

:DISPlay:ANNotation:COLor

(see page 1164)

Command Syntax :DISPlay:ANNotation:COLor <color>

Query Syntax Return Format

<color> ::= {CH1 | CH2 | CH3 | CH4 | DIG | MATH | REF | MARKer | WHITe | RED}
The :DISPlay:ANNotation:COLor command specifies the annotation color. You can choose white, red, or colors that match analog channels, digital channels, math waveforms, reference waveforms, or markers.
:DISPlay:ANNotation:COLor?
The :DISPlay:ANNotation:COLor? query returns the specified annotation color.
<color><NL>

See Also

<color> ::= {CH1 | CH2 | CH3 | CH4 | DIG | MATH | REF | MARK | WHIT | RED}
· ":DISPlay:ANNotation" on page 307 · ":DISPlay:ANNotation:TEXT" on page 310 · ":DISPlay:ANNotation:BACKground" on page 308 · "Introduction to :DISPlay Commands" on page 306

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

309

13 :DISPlay Commands

:DISPlay:ANNotation:TEXT

(see page 1164)

Command Syntax :DISPlay:ANNotation:TEXT <string>

Query Syntax Return Format

<string> ::= quoted ASCII string (up to 254 characters)
The :DISPlay:ANNotation:TEXT command specifies the annotation string. The annotation string can contain as many characters as will fit in the Edit Annotation box on the oscilloscope's screen, up to 254 characters. You can include a carriage return in the annotation string using the characters "\ n". Note that this is not a new line character but the actual "\" (backslash) and "n" characters in the string. Carriage returns lessen the number of characters available for the annotation string. Use :DISPlay:ANNotation:TEXT "" to remotely clear the annotation text. (Two sets of quote marks without a space between them creates a NULL string.)
:DISPlay:ANNotation:TEXT?
The :DISPlay:ANNotation:TEXT? query returns the specified annotation text. When carriage returns are present in the annotation text, they are returned as the actual carriage return character (ASCII 0x0D).
<string><NL>

See Also

<string> ::= quoted ASCII string
· ":DISPlay:ANNotation" on page 307 · ":DISPlay:ANNotation:COLor" on page 309 · ":DISPlay:ANNotation:BACKground" on page 308 · "Introduction to :DISPlay Commands" on page 306

310

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:DISPlay Commands 13

:DISPlay:CLEar

Command Syntax See Also

(see page 1164)
:DISPlay:CLEar
The :DISPlay:CLEar command clears the display and resets all associated measurements. If the oscilloscope is stopped, all currently displayed data is erased. If the oscilloscope is running, all of the data for active channels and functions is erased; however, new data is displayed on the next acquisition. · "Introduction to :DISPlay Commands" on page 306

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

311

13 :DISPlay Commands

:DISPlay:DATA

(see page 1164)

Query Syntax :DISPlay:DATA? [<format>][,][<palette>]

<format> ::= {BMP | BMP8bit | PNG}

Return Format

<palette> ::= {COLor | GRAYscale}
The :DISPlay:DATA? query reads screen image data. You can choose 24-bit BMP, 8-bit BMP8bit, or 24-bit PNG formats in color or grayscale. Note that the returned image is also affected by the :HARDcopy:INKSaver command, which is ON by default and returns an inverted image. To get a non-inverted image, send the ":HARDcopy:INKSaver OFF" command before the DATA? query. If no format or palette option is specified, the screen image is returned in whatever image format is selected by the front panel's [Save/Recall] > Save > Format softkey. If the Format sotkey does not select an image format (in other words, it selects a setup or data format), the BMP, COLor format is used. Screen image data is returned in the IEEE-488.2 # binary block data format.
<display data><NL>

See Also Example Code

<display data> ::= binary block data in IEEE-488.2 # format.
· "Introduction to :DISPlay Commands" on page 306 · ":HARDcopy:INKSaver" on page 373 · ":PRINt" on page 221 · "*RCL (Recall)" on page 181 · "*SAV (Save)" on page 185 · ":VIEW" on page 231
' IMAGE_TRANSFER - In this example, we will query for the image data ' with ":DISPlay:DATA?", read the data, and then save it to a file. Dim byteData() As Byte myScope.IO.Timeout = 15000 myScope.WriteString ":DISPlay:DATA? BMP, COLOR" byteData = myScope.ReadIEEEBlock(BinaryType_UI1) ' Output display data to a file: strPath = "c:\scope\data\screen.bmp" ' Remove file if it exists. If Len(Dir(strPath)) Then
Kill strPath End If Close #1 ' If #1 is open, close it. Open strPath For Binary Access Write Lock Write As #1 ' Open file f or output. Put #1, , byteData ' Write data.

312

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:DISPlay Commands 13
Close #1 ' Close file. myScope.IO.Timeout = 5000
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

313

13 :DISPlay Commands

:DISPlay:INTensity:WAVeform

(see page 1164)

Command Syntax :DISPlay:INTensity:WAVeform <value>

<value> ::= an integer from 0 to 100 in NR1 format.
The :DISPlay:INTensity:WAVeform command sets the waveform intensity.

Query Syntax Return Format

This is the same as adjusting the front panel [Intensity] knob.
:DISPlay:INTensity:WAVeform?
The :DISPlay:INTensity:WAVeform? query returns the waveform intensity setting.
<value><NL>

<value> ::= an integer from 0 to 100 in NR1 format.
See Also · "Introduction to :DISPlay Commands" on page 306

314

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:DISPlay Commands 13

:DISPlay:LABel

(see page 1164)

Command Syntax :DISPlay:LABel <value>

<value> ::= {{1 | ON} | {0 | OFF}}
The :DISPlay:LABel command turns the analog and digital channel labels on and off.

Query Syntax Return Format

:DISPlay:LABel?
The :DISPlay:LABel? query returns the display mode of the analog and digital labels.
<value><NL>

See Also Example Code

<value> ::= {0 | 1}
· "Introduction to :DISPlay Commands" on page 306 · ":CHANnel<n>:LABel" on page 276
' DISP_LABEL ' - Turns label names ON or OFF on the analyzer display. myScope.WriteString ":DISPlay:LABel ON" ' Turn on labels.
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

315

13 :DISPlay Commands

:DISPlay:LABList

(see page 1164) Command Syntax :DISPlay:LABList <binary block data>
<binary block> ::= an ordered list of up to 75 labels, a maximum of 10 characters each, separated by newline characters.
The :DISPlay:LABList command adds labels to the label list. Labels are added in alphabetical order.

NOTE

Labels that begin with the same alphabetic base string followed by decimal digits are considered duplicate labels. Duplicate labels are not added to the label list. For example, if label "A0" is in the list and you try to add a new label called "A123456789", the new label is not added.

Query Syntax Return Format

:DISPlay:LABList?
The :DISPlay:LABList? query returns the label list.
<binary block><NL>

See Also

<binary block> ::= an ordered list of up to 75 labels, a maximum of 10 characters each, separated by newline characters.
· "Introduction to :DISPlay Commands" on page 306 · ":DISPlay:LABel" on page 315 · ":CHANnel<n>:LABel" on page 276 · ":DIGital<d>:LABel" on page 300 · ":BUS<n>:LABel" on page 254

316

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:DISPlay Commands 13

:DISPlay:PERSistence

(see page 1164)

Command Syntax :DISPlay:PERSistence <value>

<value> ::= {MINimum | INFinite | <time>}

Query Syntax Return Format

<time> ::= seconds in in NR3 format from 100E-3 to 60E0
The :DISPlay:PERSistence command specifies the persistence setting: · MINimum -- indicates zero persistence. · INFinite -- indicates infinite persistence. · <time> -- for variable persistence, that is, you can specify how long acquisitions
remain on the screen. Use the :DISPlay:CLEar command to erase points stored by persistence.
:DISPlay:PERSistence?
The :DISPlay:PERSistence? query returns the specified persistence value.
<value><NL>

See Also

<value> ::= {MIN | INF | <time>}
· "Introduction to :DISPlay Commands" on page 306 · ":DISPlay:CLEar" on page 311

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

317

13 :DISPlay Commands

:DISPlay:VECTors

(see page 1164)

Command Syntax :DISPlay:VECTors <vectors>

<vectors> ::= {1 | ON}
The only legal value for the :DISPlay:VECTors command is ON (or 1). This specifies that lines are drawn between acquired data points on the screen.

Query Syntax Return Format

:DISPlay:VECTors?
The :DISPlay:VECTors? query returns the vectors setting.
<vectors><NL>

<vectors> ::= 1
See Also · "Introduction to :DISPlay Commands" on page 306

318

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
14 :DVM Commands

When the optional DSOXDVM digital voltmeter analysis feature is licensed, these commands control the digital voltmeter (DVM) feature.

Table 86 :DVM Commands Summary

Command

Query

:DVM:ARANge {{0 |
OFF} | {1 | ON}} (see page 320)

:DVM:ARANge? (see page 320)

n/a

:DVM:CURRent? (see

page 321)

:DVM:ENABle {{0 |
OFF} | {1 | ON}} (see page 322)

:DVM:ENABle? (see page 322)

n/a

:DVM:FREQuency? (see

page 321)

:DVM:MODE <mode> (see :DVM:MODE? (see

page 324)

page 324)

:DVM:SOURce <source> :DVM:SOURce? (see

(see page 325)

page 325)

Options and Query Returns {0 | 1}
<dvm_value> ::= floating-point number in NR3 format {0 | 1}
<freq_value> ::= floating-point number in NR3 format <dvm_mode> ::= {ACRMs | DC | DCRMs | FREQuency} <source> ::= {CHANnel<n>} <n> ::= 1-2 or 1-4 in NR1 format

319

14 :DVM Commands

:DVM:ARANge

(see page 1164)

Command Syntax :DVM:ARANge <setting>

Query Syntax Return Format

<setting> ::= {{OFF | 0} | {ON | 1}}
If the selected digital voltmeter (DVM) source channel is not used in oscilloscope triggering, the :DVM:ARANge command turns the digital voltmeter's Auto Range capability on or off. · When on, the DVM channel's vertical scale, vertical (ground level) position, and
trigger (threshold voltage) level (used for the counter frequency measurement) are automatically adjusted. The Auto Range capability overrides attempted adjustments of the channel's vertical scale and position. · When off, you can adjust the channel's vertical scale and position normally.
:DVM:ARANge?
The :DVM:ARANge? query returns a flag indicating whether the digital voltmeter's Auto Range capability is on or off.
<setting><NL>

See Also

<setting> ::= {0 | 1}
· ":DVM:SOURce" on page 325 · ":DVM:ENABle" on page 322 · ":DVM:MODE" on page 324

320

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:DVM Commands 14

:DVM:CURRent

Query Syntax

(see page 1164)
:DVM:CURRent?
The :DVM:CURRent? query returns the displayed 3-digit DVM value based on the current mode.

NOTE

It can take up to a few seconds after DVM analysis is enabled before this query starts to produce good results, that is, results other than +9.9E+37. To wait for good values after DVM analysis is enabled, programs should loop until a value less than +9.9E+37 is returned.

Return Format <dvm_value><NL>

See Also

<dvm_value> ::= floating-point number in NR3 format
· ":DVM:SOURce" on page 325 · ":DVM:ENABle" on page 322 · ":DVM:MODE" on page 324 · ":DVM:FREQuency" on page 323

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

321

14 :DVM Commands

:DVM:ENABle

(see page 1164)

Command Syntax :DVM:ENABle <setting>

<setting> ::= {{OFF | 0} | {ON | 1}}
The :DVM:ENABle command turns the digital voltmeter (DVM) analysis feature on or off.

Query Syntax Return Format

:DVM:ENABle?
The :DVM:ENABle? query returns a flag indicating whether the digital voltmeter (DVM) analysis feature is on or off.
<setting><NL>

See Also

<setting> ::= {0 | 1}
· ":DVM:SOURce" on page 325 · ":DVM:MODE" on page 324 · ":DVM:ARANge" on page 320

322

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:DVM Commands 14

:DVM:FREQuency

(see page 1164)

Query Syntax Return Format

:DVM:FREQuency?
The :DVM:FREQuency? query returns the displayed 5-digit frequency value that is displayed below the main DVM value.
<freq_value><NL>

See Also

<freq_value> ::= floating-point number in NR3 format
· ":DVM:SOURce" on page 325 · ":DVM:ENABle" on page 322 · ":DVM:MODE" on page 324 · ":DVM:CURRent" on page 321

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

323

14 :DVM Commands

:DVM:MODE

(see page 1164)

Command Syntax :DVM:MODE <dvm_mode>

<dvm_mode> ::= {ACRMs | DC | DCRMs | FREQuency}
The :DVM:MODE command sets the digital voltmenter (DVM) mode: · ACRMs -- displays the root-mean-square value of the acquired data, with the
DC component removed. · DC -- displays the DC value of the acquired data. · DCRMs -- displays the root-mean-square value of the acquired data. · FREQuency -- displays the frequency counter measurement.

Query Syntax Return Format

:DVM:MODE?
The :DVM:MODE? query returns the selected DVM mode.
<dvm_mode><NL>

See Also

<dvm_mode> ::= {ACRM | DC | DCRM | FREQ}
· ":DVM:ENABle" on page 322 · ":DVM:SOURce" on page 325 · ":DVM:ARANge" on page 320 · ":DVM:CURRent" on page 321 · ":DVM:FREQuency" on page 323

324

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:DVM Commands 14

:DVM:SOURce

(see page 1164)

Command Syntax :DVM:SOURce <source>

<source> ::= {CHANnel<n>}

Query Syntax Return Format

<n> ::= 1-2 or 1-4 in NR1 format
The :DVM:SOURce command sets the select the analog channel on which digital voltmeter (DVM) measurements are made. The selected channel does not have to be on (displaying a waveform) in order for DVM measurements to be made.
:DVM:SOURce?
The :DVM:SOURce? query returns the selected DVM input source.
<source><NL>

<source> ::= {CHAN<n>}

See Also

<n> ::= 1-2 or 1-4 in NR1 format
· ":DVM:ENABle" on page 322 · ":DVM:MODE" on page 324 · ":DVM:ARANge" on page 320 · ":DVM:CURRent" on page 321 · ":DVM:FREQuency" on page 323

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

325

14 :DVM Commands

326

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
15 :EXTernal Trigger Commands

Control the input characteristics of the external trigger input. See "Introduction to :EXTernal Trigger Commands" on page 327.

Table 87 :EXTernal Trigger Commands Summary

Command

Query

Options and Query Returns

:EXTernal:BWLimit
<bwlimit> (see page 328)

:EXTernal:BWLimit? (see page 328)

<bwlimit> ::= {0 | OFF}

:EXTernal:PROBe
<attenuation> (see page 329)

:EXTernal:PROBe? (see <attenuation> ::= probe

page 329)

attenuation ratio in NR3 format

:EXTernal:RANGe
<range>[<suffix>] (see page 330)

:EXTernal:RANGe? (see page 330)

<range> ::= vertical full-scale range value in NR3 format
<suffix> ::= {V | mV}

:EXTernal:UNITs

:EXTernal:UNITs? (see <units> ::= {VOLT | AMPere}

<units> (see page 331) page 331)

Introduction to :EXTernal Trigger
Commands

The EXTernal trigger subsystem commands control the input characteristics of the external trigger input. The probe factor, impedance, input range, input protection state, units, and bandwidth limit settings may all be queried. Depending on the instrument type, some settings may be changeable.

Reporting the Setup Use :EXTernal? to query setup information for the EXTernal subsystem.

Return Format The following is a sample response from the :EXTernal query. In this case, the query was issued following a *RST command.

:EXT:BWL 0;RANG +8E+00;UNIT VOLT;PROB +1.000E+00

327

15 :EXTernal Trigger Commands

:EXTernal:BWLimit

(see page 1164)

Command Syntax :EXTernal:BWLimit <bwlimit>

Query Syntax Return Format

<bwlimit> ::= {0 | OFF}
The :EXTernal:BWLimit command is provided for product compatibility. The only legal value is 0 or OFF. Use the :TRIGger:HFReject command to limit bandwidth on the external trigger input.
:EXTernal:BWLimit?
The :EXTernal:BWLimit? query returns the current setting of the low-pass filter (always 0).
<bwlimit><NL>

See Also

<bwlimit> ::= 0
· "Introduction to :EXTernal Trigger Commands" on page 327 · "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:HFReject" on page 907

328

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:EXTernal Trigger Commands 15

:EXTernal:PROBe

(see page 1164)

Command Syntax :EXTernal:PROBe <attenuation>

Query Syntax Return Format

<attenuation> ::= probe attenuation ratio in NR3 format
The :EXTernal:PROBe command specifies the probe attenuation factor for the external trigger. The probe attenuation factor may be 0.001 to 10000. This command does not change the actual input sensitivity of the oscilloscope. It changes the reference constants for scaling the display factors and for setting trigger levels. If an AutoProbe probe is connected to the oscilloscope, the attenuation value cannot be changed from the sensed value. Attempting to set the oscilloscope to an attenuation value other than the sensed value produces an error.
:EXTernal:PROBe?
The :EXTernal:PROBe? query returns the current probe attenuation factor for the external trigger.
<attenuation><NL>

See Also

<attenuation> ::= probe attenuation ratio in NR3 format
· "Introduction to :EXTernal Trigger Commands" on page 327 · ":EXTernal:RANGe" on page 330 · "Introduction to :TRIGger Commands" on page 903 · ":CHANnel<n>:PROBe" on page 278

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

329

15 :EXTernal Trigger Commands

:EXTernal:RANGe

(see page 1164)

Command Syntax :EXTernal:RANGe <range>[<suffix>]

<range> ::= vertical full-scale range value in NR3 format

Query Syntax Return Format

<suffix> ::= {V | mV}
The :EXTernal:RANGe command is provided for product compatibility. When using 1:1 probe attenuation, the range can only be set to 8.0 V. If the probe attenuation is changed, the range value is multiplied by the probe attenuation factor.
:EXTernal:RANGe?
The :EXTernal:RANGe? query returns the current full-scale range setting for the external trigger.
<range_argument><NL>

See Also

<range_argument> ::= external trigger range value in NR3 format
· "Introduction to :EXTernal Trigger Commands" on page 327 · ":EXTernal:PROBe" on page 329 · "Introduction to :TRIGger Commands" on page 903

330

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:EXTernal Trigger Commands 15

:EXTernal:UNITs

(see page 1164)

Command Syntax :EXTernal:UNITs <units>

Query Syntax Return Format

<units> ::= {VOLT | AMPere}
The :EXTernal:UNITs command sets the measurement units for the probe connected to the external trigger input. Select VOLT for a voltage probe and select AMPere for a current probe. Measurement results, channel sensitivity, and trigger level will reflect the measurement units you select.
:EXTernal:UNITs?
The :CHANnel<n>:UNITs? query returns the current units setting for the external trigger.
<units><NL>

See Also

<units> ::= {VOLT | AMP}
· "Introduction to :EXTernal Trigger Commands" on page 327 · "Introduction to :TRIGger Commands" on page 903 · ":EXTernal:RANGe" on page 330 · ":EXTernal:PROBe" on page 329 · ":CHANnel<n>:UNITs" on page 286

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

331

15 :EXTernal Trigger Commands

332

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
16 :FUNCtion Commands

Control functions in the measurement/storage module. See "Introduction to :FUNCtion Commands" on page 336.

Table 88 :FUNCtion Commands Summary

Command

Query

Options and Query Returns

:FUNCtion:BUS:CLOCk
<source> (see page 338)

:FUNCtion:BUS:CLOCk? (see page 338)

<source> ::= {CHANnel<n> | DIGital<d>}
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:FUNCtion:BUS:SLOPe :FUNCtion:BUS:SLOPe? <slope> ::= {NEGative | POSitive

<slope> (see page 339) (see page 339)

| EITHer}

:FUNCtion:BUS:YINCrem :FUNCtion:BUS:YINCrem <value> ::= value per bus code,

ent <value> (see

ent? (see page 340)

in NR3 format

page 340)

:FUNCtion:BUS:YORigin :FUNCtion:BUS:YORigin <value> ::= value at bus code =

<value> (see page 341) ? (see page 341)

0, in NR3 format

:FUNCtion:BUS:YUNits :FUNCtion:BUS:YUNits? <units> ::= {VOLT | AMPere |

<units> (see page 342) (see page 342)

NONE}

:FUNCtion:DISPlay {{0
| OFF} | {1 | ON}} (see page 343)

:FUNCtion:DISPlay? (see page 343)

{0 | 1}

:FUNCtion[:FFT]:CENTe
r <frequency> (see page 344)

:FUNCtion[:FFT]:CENTe r? (see page 344)

<frequency> ::= the current center frequency in NR3 format. The range of legal values is from 0 Hz to 25 GHz.

:FUNCtion[:FFT]:SPAN <span> (see page 345)

:FUNCtion[:FFT]:SPAN? <span> ::= the current frequency

(see page 345)

span in NR3 format.

Legal values are 1 Hz to 100 GHz.

:FUNCtion[:FFT]:VTYPe :FUNCtion[:FFT]:VTYPe <units> ::= {DECibel | VRMS} <units> (see page 346) ? (see page 346)

333

16 :FUNCtion Commands

Table 88 :FUNCtion Commands Summary (continued)

Command

Query

Options and Query Returns

:FUNCtion[:FFT]:WINDo :FUNCtion[:FFT]:WINDo <window> ::= {RECTangular |

w <window> (see

w? (see page 347)

HANNing | FLATtop | BHARris}

page 347)

:FUNCtion:FREQuency:H :FUNCtion:FREQuency:H <3dB_freq> ::= 3dB cutoff

IGHpass <3dB_freq> (see page 348)

IGHpass? (see page 348)

frequency value in NR3 format

:FUNCtion:FREQuency:L :FUNCtion:FREQuency:L <3dB_freq> ::= 3dB cutoff

OWPass <3dB_freq>

OWPass? (see page 349) frequency value in NR3 format

(see page 349)

:FUNCtion:GOFT:OPERat :FUNCtion:GOFT:OPERat <operation> ::= {ADD | SUBTract |

ion <operation> (see ion? (see page 350)

MULTiply}

page 350)

:FUNCtion:GOFT:SOURce
1 <source> (see page 351)

:FUNCtion:GOFT:SOURce 1? (see page 351)

<source> ::= CHANnel<n> <n> ::= {1 | 2 | 3 | 4} for 4ch models <n> ::= {1 | 2} for 2ch models

:FUNCtion:GOFT:SOURce
2 <source> (see page 352)

:FUNCtion:GOFT:SOURce 2? (see page 352)

<source> ::= CHANnel<n> <n> ::= {1 | 2 | 3 | 4} for 4ch models <n> ::= {1 | 2} for 2ch models

:FUNCtion:INTegrate:I :FUNCtion:INTegrate:I <input_offset> ::= DC offset OFFset <input_offset> OFFset? (see page 353) correction in NR3 format. (see page 353)

:FUNCtion:LINear:GAIN :FUNCtion:LINear:GAIN <value> ::= 'A' in Ax + B, value

<value> (see page 354) ? (see page 354)

in NR3 format

:FUNCtion:LINear:OFFS :FUNCtion:LINear:OFFS <value> ::= 'B' in Ax + B, value

et <value> (see

et? (see page 355)

in NR3 format

page 355)

:FUNCtion:OFFSet
<offset> (see page 356)

:FUNCtion:OFFSet? (see page 356)

<offset> ::= the value at center screen in NR3 format.
The range of legal values is +/-10 times the current sensitivity of the selected function.

334

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:FUNCtion Commands 16

Table 88 :FUNCtion Commands Summary (continued)

Command

Query

Options and Query Returns

:FUNCtion:OPERation
<operation> (see page 357)

:FUNCtion:OPERation? (see page 358)

<operation> ::= {ADD | SUBTract | MULTiply | INTegrate | DIFF | FFT | SQRT | MAGNify | ABSolute | SQUare | LN | LOG | EXP | TEN | LOWPass | HIGHpass | DIVide | LINear | TRENd | BTIMing | BSTate}

:FUNCtion:RANGe <range> (see page 359)

:FUNCtion:RANGe? (see page 359)

<range> ::= the full-scale vertical axis value in NR3 format.
The range for ADD, SUBT, MULT is 8E-6 to 800E+3. The range for the INTegrate function is 8E-9 to 400E+3.
The range for the DIFF function is 80E-3 to 8.0E12 (depends on current sweep speed).
The range for the FFT function is 8 to 800 dBV.

:FUNCtion:REFerence :FUNCtion:REFerence? <level> (see page 360) (see page 360)

<level> ::= the value at center screen in NR3 format.
The range of legal values is +/-10 times the current sensitivity of the selected function.

:FUNCtion:SCALe
<scale
value>[<suffix>] (see page 361)

:FUNCtion:SCALe? (see page 361)

<scale value> ::= integer in NR1 format
<suffix> ::= {V | dB}

:FUNCtion:SOURce1
<source> (see page 362)

:FUNCtion:SOURce1? (see page 362)

<source> ::= {CHANnel<n> | GOFT | BUS<m>}
<n> ::= {1 | 2 | 3 | 4} for 4ch models
<n> ::= {1 | 2} for 2ch models
<m> ::= {1 | 2}
GOFT is only for FFT, INTegrate, DIFF, and SQRT operations.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

335

16 :FUNCtion Commands

Table 88 :FUNCtion Commands Summary (continued)

Command

Query

Options and Query Returns

:FUNCtion:SOURce2
<source> (see page 364)

:FUNCtion:SOURce2? (see page 364)

<source> ::= {CHANnel<n> | NONE} <n> ::= {1 | 2 | 3 | 4} for 4ch models <n> ::= {1 | 2} for 2ch models

:FUNCtion:TRENd:MEASu
rement <type> (see page 365)

:FUNCtion:TRENd:MEASu rement? (see page 365)

<type> ::= {VAVerage | ACRMs | VRATio | PERiod | FREQuency | PWIDth | NWIDth | DUTYcycle | RISetime | FALLtime}

Introduction to :FUNCtion Commands

The FUNCtion subsystem controls the math functions in the oscilloscope. As selected by the OPERation command, these math functions are available: · Operators:
· ADD · SUBTract · MULTiply
Operators perform their function on two analog channel sources. · Transforms:
· DIFF -- Differentiate · INTegrate -- The INTegrate:IOFFset command lets you specify a DC offset
correction factor. · FFT -- The SPAN, CENTer, VTYPe, and WINDow commands are used for FFT
functions. When FFT is selected, the horizontal cursors change from time to frequency (Hz), and the vertical cursors change from volts to decibel (dB). · SQRT -- Square root
Transforms operate on a single analog channel source or on a g(t) function that is the addition, subtraction, or multiplication of analog channel sources (specified by the GOFT commands).
With the DSOX3ADVMATH advanced math measurements license, these additional math functions are available: · Operators:
· DIVide · Transforms:
· LINear -- Ax + B -- The LINear commands set the gain (A) and offset (B) values for this function.
· SQUare · ABSolute -- Absolute Value

336

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:FUNCtion Commands 16
· LOG -- Common Logarithm · LN -- Natural Logarithm · EXP -- Exponential (ex) · TEN -- Base 10 exponential (10x) · Filters: · LOWPass -- Low pass filter -- The FREQuency:LOWPass command sets the
-3 dB cutoff frequency. · HIGHpass -- High pass filter -- The FREQuency:HIGHpass command sets the
-3 dB cutoff frequency. Filters operate on a single analog channel source or on a g(t) function that is the addition, subtraction, or multiplication of analog channel sources (specified by the GOFT commands). · Visualizations: · MAGNify -- Operates on a single analog channel source or on a g(t) function
that is the addition, subtraction, or multiplication of analog channel sources (specified by the GOFT commands). · TRENd -- Measurement trend -- Operates on a single analog channel source. The TRENd:MEASurement command selects the measurement whose trend you want to measure. · BTIMing -- Chart logic bus timing -- Operates on a bus made up of digital channels. The BUS:YINcrement, BUS:YORigin, and BUS:YUNit commands specify function values. · BSTate -- Chart logic bus state -- Operates on a bus made up of digital channels. The BUS:YINcrement, BUS:YORigin, and BUS:YUNit commands specify function values. The BUS:CLOCk and BUS:SLOPe commands specify the clock source and edge. The SOURce1, DISPlay, RANGe, and OFFSet (or REFerence) commands apply to any function.
Reporting the Setup Use :FUNCtion? to query setup information for the FUNCtion subsystem.
Return Format The following is a sample response from the :FUNCtion? queries. In this case, the query was issued following a *RST command.
:FUNC:OPER ADD;DISP 0;SOUR1 CHAN1;SOUR2 CHAN2;RANG +8.00E+00;OFFS +0.0E+00;:FUNC:GOFT:OPER ADD;SOUR1 CHAN1;SOUR2 CHAN2

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

337

16 :FUNCtion Commands

:FUNCtion:BUS:CLOCk

(see page 1164)

Command Syntax :FUNCtion:BUS:CLOCk <source>

<source> ::= {DIGital<d>}

Query Syntax Return Format

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :FUNCtion:BUS:CLOCk command selects the clock signal source for the Chart Logic Bus State operation. This command is available with the DSOX3ADVMATH advanced math license.
:FUNCtion:BUS:CLOCk?
The :FUNCtion:BUS:CLOCk query returns the source selected for the clock signal.
<source><NL>

<source> ::= {DIGital<d>}

<d> ::= 0 to (# digital channels - 1) in NR1 format
See Also · ":FUNCtion:OPERation" on page 357

338

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:FUNCtion Commands 16

:FUNCtion:BUS:SLOPe

(see page 1164)

Command Syntax :FUNCtion:BUS:SLOPe <slope>

<slope> ::= {NEGative | POSitive | EITHer}
The :FUNCtion:BUS:SLOPe command specifies the clock signal edge for the Chart Logic Bus State operation.

Query Syntax Return Format

This command is available with the DSOX3ADVMATH advanced math license.
:FUNCtion:BUS:SLOPe?
The :FUNCtion:BUS:SLOPe query returns the clock edge setting.
<slope><NL>

<slope> ::= {NEGative | POSitive | EITHer}
See Also · ":FUNCtion:OPERation" on page 357

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

339

16 :FUNCtion Commands

:FUNCtion:BUS:YINCrement

(see page 1164)

Command Syntax :FUNCtion:BUS:YINCrement <value>

<value> ::= value per bus code, in NR3 format
The :FUNCtion:BUS:YINCrement command specifies the value associated with each increment in Chart Logic Bus data.

Query Syntax Return Format

This command is available with the DSOX3ADVMATH advanced math license.
:FUNCtion:BUS:YINCrement?
The :FUNCtion:BUS:YINCrement query returns the value associated with each increment in Chart Logic Bus data.
<value><NL>

<value> ::= value per bus code, in NR3 format
See Also · ":FUNCtion:OPERation" on page 357

340

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:FUNCtion Commands 16

:FUNCtion:BUS:YORigin

(see page 1164)

Command Syntax :FUNCtion:BUS:YORigin <value>

<value> ::= value at bus code = 0, in NR3 format
The :FUNCtion:BUS:YORigin command specifies the value associated with Chart Logic Bus data equal to zero.

Query Syntax Return Format

This command is available with the DSOX3ADVMATH advanced math license.
:FUNCtion:BUS:YORigin?
The :FUNCtion:BUS:YORigin query returns the value for associated with data equal to zero.
<value><NL>

<value> ::= value at bus code = 0, in NR3 format
See Also · ":FUNCtion:OPERation" on page 357

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

341

16 :FUNCtion Commands

:FUNCtion:BUS:YUNits

(see page 1164)

Command Syntax :FUNCtion:BUS:YUNits <units>

<units> ::= {VOLT | AMPere | NONE}
The :FUNCtion:BUS:YUNits command specifies the vertical units for the Chart Logic Bus operations.

Query Syntax Return Format

This command is available with the DSOX3ADVMATH advanced math license.
:FUNCtion:BUS:YUNits?
The :FUNCtion:BUS:YUNits query returns the Chart Logic Bus vertical units.
<units><NL>

<units> ::= {VOLT | AMP | NONE}
See Also · ":FUNCtion:OPERation" on page 357

342

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:FUNCtion Commands 16

:FUNCtion:DISPlay

(see page 1164)

Command Syntax :FUNCtion:DISPlay <display>

Query Syntax Return Format

<display> ::= {{1 | ON} | {0 | OFF}}
The :FUNCtion:DISPlay command turns the display of the function on or off. When ON is selected, the function performs as specified using the other FUNCtion commands. When OFF is selected, function is neither calculated nor displayed.
:FUNCtion:DISPlay?
The :FUNCtion:DISPlay? query returns whether the function display is on or off.
<display><NL>

See Also

<display> ::= {1 | 0}
· "Introduction to :FUNCtion Commands" on page 336 · ":VIEW" on page 231 · ":BLANk" on page 204 · ":STATus" on page 228

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

343

16 :FUNCtion Commands

:FUNCtion[:FFT]:CENTer

(see page 1164)

Command Syntax :FUNCtion[:FFT]:CENTer <frequency>

Query Syntax Return Format

<frequency> ::= the current center frequency in NR3 format. The range of legal values is from 0 Hz to 25 GHz.
The :FUNCtion[:FFT]:CENTer command sets the center frequency when FFT (Fast Fourier Transform) is selected.
:FUNCtion[:FFT]:CENTer?
The :FUNCtion[:FFT]:CENTer? query returns the current center frequency in Hertz.
<frequency><NL>

<frequency> ::= the current center frequency in NR3 format. The range of legal values is from 0 Hz to 25 GHz.

NOTE

After a *RST (Reset) or :AUToscale command, the values returned by the :FUNCtion[:FFT]:CENTer? and :FUNCtion:SPAN? queries depend on the current :TIMebase:RANGe value. Once you change either the :FUNCtion[:FFT]:CENTer or :FUNCtion:SPAN value, they no longer track the :TIMebase:RANGe value.

See Also

· "Introduction to :FUNCtion Commands" on page 336 · ":FUNCtion[:FFT]:SPAN" on page 345 · ":TIMebase:RANGe" on page 895 · ":TIMebase:SCALe" on page 897

344

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:FUNCtion Commands 16

:FUNCtion[:FFT]:SPAN

(see page 1164) Command Syntax :FUNCtion[:FFT]:SPAN <span>
<span> ::= the current frequency span in NR3 format. Legal values are 1 Hz to 100 GHz.
If you set the frequency span to a value outside of the legal range, the step size is automatically set to the nearest legal value.
The :FUNCtion[:FFT]:SPAN command sets the frequency span of the display (left graticule to right graticule) when FFT (Fast Fourier Transform) is selected. Query Syntax :FUNCtion[:FFT]:SPAN? The :FUNCtion[:FFT]:SPAN? query returns the current frequency span in Hertz.

NOTE

After a *RST (Reset) or :AUToscale command, the values returned by the :FUNCtion[:FFT]:CENTer? and :FUNCtion:SPAN? queries depend on the current :TIMebase:RANGe value. Once you change either the :FUNCtion[:FFT]:CENTer or :FUNCtion:SPAN value, they no longer track the :TIMebase:RANGe value.

Return Format <span><NL>

See Also

<span> ::= the current frequency span in NR3 format. Legal values are 1 Hz to 100 GHz.
· "Introduction to :FUNCtion Commands" on page 336 · ":FUNCtion[:FFT]:CENTer" on page 344 · ":TIMebase:RANGe" on page 895 · ":TIMebase:SCALe" on page 897

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

345

16 :FUNCtion Commands

:FUNCtion[:FFT]:VTYPe

(see page 1164)

Command Syntax :FUNCtion[:FFT]:VTYPe <units>

<units> ::= {DECibel | VRMS}
The :FUNCtion[:FFT]:VTYPe command specifies FFT vertical units as DECibel or VRMS.

Query Syntax Return Format

:FUNCtion[:FFT]:VTYPe?
The :FUNCtion[:FFT]:VTYPe? query returns the current FFT vertical units.
<units><NL>

See Also

<units> ::= {DEC | VRMS}
· "Introduction to :FUNCtion Commands" on page 336 · ":FUNCtion:OPERation" on page 357

346

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:FUNCtion Commands 16

:FUNCtion[:FFT]:WINDow

(see page 1164)

Command Syntax :FUNCtion[:FFT]:WINDow <window>

<window> ::= {RECTangular | HANNing | FLATtop | BHARris}
The :FUNCtion[:FFT]:WINDow command allows the selection of four different windowing transforms or operations for the FFT (Fast Fourier Transform) function.

Query Syntax

The FFT operation assumes that the time record repeats. Unless an integral number of sampled waveform cycles exist in the record, a discontinuity is created between the end of one record and the beginning of the next. This discontinuity introduces additional frequency components about the peaks into the spectrum. This is referred to as leakage. To minimize leakage, windows that approach zero smoothly at the start and end of the record are employed as filters to the FFTs. Each window is useful for certain classes of input signals. · RECTangular -- useful for transient signals, and signals where there are an
integral number of cycles in the time record. · HANNing -- useful for frequency resolution and general purpose use. It is good
for resolving two frequencies that are close together, or for making frequency measurements. This is the default window. · FLATtop -- best for making accurate amplitude measurements of frequency peaks. · BHARris (Blackman-Harris) -- reduces time resolution compared to the rectangular window, but it improves the capacity to detect smaller impulses due to lower secondary lobes (provides minimal spectral leakage).
:FUNCtion[:FFT]:WINDow?
The :FUNCtion[:FFT]:WINDow? query returns the value of the window selected for the FFT function.

Return Format <window><NL>

<window> ::= {RECT | HANN | FLAT | BHAR}
See Also · "Introduction to :FUNCtion Commands" on page 336

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

347

16 :FUNCtion Commands

:FUNCtion:FREQuency:HIGHpass

(see page 1164)

Command Syntax :FUNCtion:FREQuency:HIGHpass <3dB_freq>

<3dB_freq> ::= -3dB cutoff frequency value in NR3 format
The :FUNCtion:FREQuency:HIGHpass command sets the high-pass filter's -3 dB cutoff frequency.

Query Syntax

The high-pass filter is a single-pole high pass filter. This command is available with the DSOX3ADVMATH advanced math license.
:FUNCtion:FREQuency:HIGHpass?
The :FUNCtion:FREQuency:HIGHpass query returns the high-pass filter's cutoff frequency.

Return Format <3dB_freq><NL>

<3dB_freq> ::= -3dB cutoff frequency value in NR3 format
See Also · ":FUNCtion:OPERation" on page 357

348

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:FUNCtion Commands 16

:FUNCtion:FREQuency:LOWPass

(see page 1164)

Command Syntax :FUNCtion:FREQuency:LOWPass <3dB_freq>

<3dB_freq> ::= -3dB cutoff frequency value in NR3 format
The :FUNCtion:FREQuency:LOWPass command sets the low-pass filter's -3 dB cutoff frequency.

Query Syntax

The low-pass filter is a 4th order Bessel-Thompson filter. This command is available with the DSOX3ADVMATH advanced math license.
:FUNCtion:FREQuency:LOWPass?
The :FUNCtion:FREQuency:LOWPass query returns the low-pass filter's cutoff frequency.

Return Format <3dB_freq><NL>

<3dB_freq> ::= -3dB cutoff frequency value in NR3 format
See Also · ":FUNCtion:OPERation" on page 357

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

349

16 :FUNCtion Commands

:FUNCtion:GOFT:OPERation

(see page 1164)

Command Syntax :FUNCtion:GOFT:OPERation <operation>

<operation> ::= {ADD | SUBTract | MULTiply}
The :FUNCtion:GOFT:OPERation command sets the math operation for the g(t) source that can be used as the input to transform or filter functions (if available): · ADD -- Source1 + source2. · SUBTract -- Source1 - source2. · MULTiply -- Source1 * source2.

Query Syntax Return Format

The :FUNCtion:GOFT:SOURce1 and :FUNCtion:GOFT:SOURce2 commands are used to select source1 and source2.
:FUNCtion:GOFT:OPERation?
The :FUNCtion:GOFT:OPERation? query returns the current g(t) source operation setting.
<operation><NL>

See Also

<operation> ::= {ADD | SUBT | MULT}
· "Introduction to :FUNCtion Commands" on page 336 · ":FUNCtion:GOFT:SOURce1" on page 351 · ":FUNCtion:GOFT:SOURce2" on page 352 · ":FUNCtion:SOURce1" on page 362

350

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:FUNCtion Commands 16

:FUNCtion:GOFT:SOURce1

(see page 1164)

Command Syntax :FUNCtion:GOFT:SOURce1 <value>

<value> ::= CHANnel<n>

<n> ::= {1 | 2 | 3 | 4} for 4ch models

Query Syntax

<n> ::= {1 | 2} for 2ch models
The :FUNCtion:GOFT:SOURce1 command selects the first input channel for the g(t) source that can be used as the input to transform or filter functions (if available).
:FUNCtion:GOFT:SOURce1?
The :FUNCtion:GOFT:SOURce1? query returns the current selection for the first input channel for the g(t) source.

Return Format <value><NL>

<value> ::= CHAN<n>

<n> ::= {1 | 2 | 3 | 4} for the 4ch models

See Also

<n> ::= {1 | 2} for the 2ch models
· "Introduction to :FUNCtion Commands" on page 336 · ":FUNCtion:GOFT:SOURce2" on page 352 · ":FUNCtion:GOFT:OPERation" on page 350

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

351

16 :FUNCtion Commands

:FUNCtion:GOFT:SOURce2

(see page 1164)

Command Syntax :FUNCtion:GOFT:SOURce2 <value>

<value> ::= CHANnel<n>

<n> ::= {1 | 2 | 3 | 4} for 4ch models

Query Syntax

<n> ::= {1 | 2} for 2ch models
The :FUNCtion:GOFT:SOURce2 command selects the second input channel for the g(t) source that can be used as the input to transform or filter functions (if available).
:FUNCtion:GOFT:SOURce2?
The :FUNCtion:GOFT:SOURce2? query returns the current selection for the second input channel for the g(t) source.

Return Format <value><NL>

<value> ::= CHAN<n>

<n> ::= {1 | 2 | 3 | 4} for 4ch models

See Also

<n> ::= {1 | 2} for 2ch models
· "Introduction to :FUNCtion Commands" on page 336 · ":FUNCtion:GOFT:SOURce1" on page 351 · ":FUNCtion:GOFT:OPERation" on page 350

352

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:FUNCtion Commands 16

:FUNCtion:INTegrate:IOFFset

(see page 1164)

Command Syntax :FUNCtion:INTegrate:IOFFset <input_offset>

Query Syntax Return Format

<input_offset> ::= DC offset correction in NR3 format.
The :FUNCtion:INTegrate:IOFFset command lets you enter a DC offset correction factor for the integrate math waveform input signal. This DC offset correction lets you level a "ramp"ed waveform.
:FUNCtion:INTegrate:IOFFset?
The :FUNCtion:INTegrate:IOFFset? query returns the current input offset value.
<input_offset><NL>

See Also

<input_offset> ::= DC offset correction in NR3 format.
· "Introduction to :FUNCtion Commands" on page 336 · ":FUNCtion:OPERation" on page 357

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

353

16 :FUNCtion Commands

:FUNCtion:LINear:GAIN

(see page 1164)

Command Syntax :FUNCtion:LINear:GAIN <value>

<value> ::= 'A' in Ax + B, value in NR3 format
The :FUNCtion:LINear:GAIN command specifies the 'A' value in the Ax + B operation.

Query Syntax Return Format

This command is available with the DSOX3ADVMATH advanced math license.
:FUNCtion:LINear:GAIN?
The :FUNCtion:LINear:GAIN query returns the gain value.
<value><NL>

<value> ::= 'A' in Ax + B, value in NR3 format
See Also · ":FUNCtion:OPERation" on page 357

354

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:FUNCtion Commands 16

:FUNCtion:LINear:OFFSet

(see page 1164)

Command Syntax :FUNCtion:LINear:OFFSet <value>

<value> ::= 'B' in Ax + B, value in NR3 format
The :FUNCtion:LINear:OFFSet command specifies the 'B' value in the Ax + B operation.

Query Syntax Return Format

This command is available with the DSOX3ADVMATH advanced math license.
:FUNCtion:LINear:OFFSet?
The :FUNCtion:LINear:OFFSet query returns the offset value.
<value><NL>

<value> ::= 'B' in Ax + B, value in NR3 format
See Also · ":FUNCtion:OPERation" on page 357

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

355

16 :FUNCtion Commands

:FUNCtion:OFFSet

(see page 1164) Command Syntax :FUNCtion:OFFSet <offset>
<offset> ::= the value at center screen in NR3 format.
The :FUNCtion:OFFSet command sets the voltage or vertical value represented at center screen for the selected function. The range of legal values is generally +/-10 times the current scale of the selected function, but will vary by function. If you set the offset to a value outside of the legal range, the offset value is automatically set to the nearest legal value.

NOTE

The :FUNCtion:OFFset command is equivalent to the :FUNCtion:REFerence command.

Query Syntax Return Format

:FUNCtion:OFFSet?
The :FUNCtion:OFFSet? query outputs the current offset value for the selected function.
<offset><NL>

See Also

<offset> ::= the value at center screen in NR3 format.
· "Introduction to :FUNCtion Commands" on page 336 · ":FUNCtion:RANGe" on page 359 · ":FUNCtion:REFerence" on page 360 · ":FUNCtion:SCALe" on page 361

356

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:FUNCtion Commands 16

:FUNCtion:OPERation

Command Syntax

(see page 1164)
:FUNCtion:OPERation <operation>

<operation> ::= {ADD | SUBTract | MULTiply | INTegrate | DIFF | FFT | SQRT | MAGNify | ABSolute | SQUare | LN | LOG | EXP | TEN | LOWPass | HIGHpass | DIVide | LINear | TRENd | BTIMing | BSTate}
The :FUNCtion:OPERation command sets the desired waveform math operation: · ADD -- Source1 + source2. · SUBTract -- Source1 - source2. · MULTiply -- Source1 * source2. · INTegrate -- Integrate the selected waveform source. · DIFF -- Differentiate the selected waveform source. · FFT -- Fast Fourier Transform on the selected waveform source. · SQRT -- Square root on the selected waveform source.
With the DSOX3ADVMATH advanced math license, these additional operations are available: · MAGNify -- Magnify of the selected waveform source. · ABSolute -- Absolute value of the selected waveform source. · SQUare -- Square of the selected waveform source. · LN -- Natural logarithm on the selected waveform source. · LOG -- Common logarithm on the selected waveform source. · EXP -- Exponential (ex) on the selected waveform source. · TEN -- Base 10 exponential (10x) on the selected waveform source. · LOWPass -- Low-pass filter on the selected waveform source. · HIGHpass -- High-pass filter on the selected waveform source. · DIVide -- Divide operation on the selected waveform source. · LINear -- Ax + B operation on the selected waveform source. · TRENd -- Measurement Trend. The math waveform shows measurement values
for each cycle of a selected waveform source. · BTIMing -- Chart Logic Bus Timing on the on the selected digital bus. · BSTate -- Chart Logic Bus State on the on the selected digital bus.
When the operation is ADD, SUBTract, MULTiply, or DIVide, the :FUNCtion:SOURce1 and :FUNCtion:SOURce2 commands are used to select source1 and source2. For all other operations, the :FUNCtion:SOURce1 command selects the waveform source.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

357

16 :FUNCtion Commands

Query Syntax

:FUNCtion:OPERation?
The :FUNCtion:OPERation? query returns the current operation for the selected function.

Return Format <operation><NL>

See Also

<operation> ::= {ADD | SUBT | MULT | INT | DIFF | FFT | SQRT | MAGN | ABS | SQU | LN | LOG | EXP | TEN | LOWP | HIGH | DIV | LIN | TREN | BTIM | BST}
· "Introduction to :FUNCtion Commands" on page 336 · ":FUNCtion:SOURce1" on page 362 · ":FUNCtion:SOURce2" on page 364

358

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:FUNCtion Commands 16

:FUNCtion:RANGe

(see page 1164)

Command Syntax :FUNCtion:RANGe <range>

<range> ::= the full-scale vertical axis value in NR3 format.
The :FUNCtion:RANGe command defines the full-scale vertical axis for the selected function.

Query Syntax Return Format

:FUNCtion:RANGe?
The :FUNCtion:RANGe? query returns the current full-scale range value for the selected function.
<range><NL>

See Also

<range> ::= the full-scale vertical axis value in NR3 format.
· "Introduction to :FUNCtion Commands" on page 336 · ":FUNCtion:SCALe" on page 361

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

359

16 :FUNCtion Commands

:FUNCtion:REFerence

(see page 1164) Command Syntax :FUNCtion:REFerence <level>
<level> ::= the current reference level in NR3 format.
The :FUNCtion:REFerence command sets the voltage or vertical value represented at center screen for the selected function. The range of legal values is generally +/-10 times the current scale of the selected function, but will vary by function. If you set the reference level to a value outside of the legal range, the level is automatically set to the nearest legal value.

NOTE

The FUNCtion:REFerence command is equivalent to the :FUNCtion:OFFSet command.

Query Syntax Return Format

:FUNCtion:REFerence?
The :FUNCtion:REFerence? query outputs the current reference level value for the selected function.
<level><NL>

See Also

<level> ::= the current reference level in NR3 format.
· "Introduction to :FUNCtion Commands" on page 336 · ":FUNCtion:OFFSet" on page 356 · ":FUNCtion:RANGe" on page 359 · ":FUNCtion:SCALe" on page 361

360

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:FUNCtion Commands 16

:FUNCtion:SCALe

(see page 1164)

Command Syntax :FUNCtion:SCALe <scale value>[<suffix>]

<scale value> ::= integer in NR1 format

Query Syntax Return Format

<suffix> ::= {V | dB}
The :FUNCtion:SCALe command sets the vertical scale, or units per division, of the selected function. Legal values for the scale depend on the selected function.
:FUNCtion:SCALe?
The :FUNCtion:SCALe? query returns the current scale value for the selected function.
<scale value><NL>

See Also

<scale value> ::= integer in NR1 format
· "Introduction to :FUNCtion Commands" on page 336 · ":FUNCtion:RANGe" on page 359

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

361

16 :FUNCtion Commands

:FUNCtion:SOURce1

(see page 1164) Command Syntax :FUNCtion:SOURce1 <value>
<value> ::= {CHANnel<n> | GOFT | BUS<m>} <n> ::= {1 | 2 | 3 | 4} for 4ch models <n> ::= {1 | 2} for 2ch models <m> ::= {1 | 2}
The :FUNCtion:SOURce1 command is used for any :FUNCtion:OPERation selection. This command selects the first source for the operator math functions or the single source for the transform functions, filter functions, or visualization functions. The GOFT parameter is only available for the transform functions, filter functions, and the magnify visualization function (see "Introduction to :FUNCtion Commands" on page 336). The GOFT parameter lets you specify, as the function input source, the addition, subtraction, or multiplication of two channels. When GOFT is used, the g(t) source is specified by the :FUNCtion:GOFT:OPERation, :FUNCtion:GOFT:SOURce1, and :FUNCtion:GOFT:SOURce2 commands. The BUS<m> parameter is available for the bus charting visualization functions available with the DSOX3ADVMATH advanced math license.

NOTE

Another shorthand notation for SOURce1 in this command/query (besides SOUR1) is SOUR.

Query Syntax

:FUNCtion:SOURce1?
The :FUNCtion:SOURce1? query returns the current source1 for function operations.

Return Format <value><NL>

<value> ::= {CHAN<n> | GOFT | BUS<m>}

<n> ::= {1 | 2 | 3 | 4} for 4ch models

<n> ::= {1 | 2} for 2ch models

See Also

<m> ::= {1 | 2}
· "Introduction to :FUNCtion Commands" on page 336 · ":FUNCtion:OPERation" on page 357 · ":FUNCtion:GOFT:OPERation" on page 350 · ":FUNCtion:GOFT:SOURce1" on page 351

362

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

· ":FUNCtion:GOFT:SOURce2" on page 352

:FUNCtion Commands 16

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

363

16 :FUNCtion Commands

:FUNCtion:SOURce2

(see page 1164)

Command Syntax :FUNCtion:SOURce2 <value>

<value> ::= {CHANnel<n> | NONE}

<n> ::= {1 | 2 | 3 | 4} for 4ch models

Query Syntax Return Format

<n> ::= {1 | 2} for 2ch models
The :FUNCtion:SOURce2 command specifies the second source for math operator functions that have two sources. (The :FUNCtion:SOURce1 command specifies the first source.) The :FUNCtion:SOURce2 setting is not used for the transform functions, filter functions, or visualization functions (except when the measurement trend visualization's measurement requires two sources).
:FUNCtion:SOURce2?
The :FUNCtion:SOURce2? query returns the currently specified second source for math operations.
<value><NL>

<value> ::= {CHAN<n> | NONE}

<n> ::= {1 | 2 | 3 | 4} for 4ch models

See Also

<n> ::= {1 | 2} for 2ch models
· "Introduction to :FUNCtion Commands" on page 336 · ":FUNCtion:OPERation" on page 357 · ":FUNCtion:SOURce1" on page 362

364

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:FUNCtion Commands 16

:FUNCtion:TRENd:MEASurement

(see page 1164)

Command Syntax :FUNCtion:TRENd:MEASurement <type>

<type> ::= {VAVerage | ACRMs | VRATio | PERiod | FREQuency | PWIDth | NWIDth | DUTYcycle | RISetime | FALLtime}
The :FUNCtion:TRENd:MEASurement command selects the measurement whose trend is shown in the math waveform. This command is available with the DSOX3ADVMATH advanced math license.

Query Syntax Return Format

:FUNCtion:TRENd:MEASurement?
The :FUNCtion:TRENd:MEASurement query returns the selected measurement.
<type><NL>

See Also

<type> ::= {VAV | ACRM | VRAT | PER | FREQ | PWID | NWID | DUTY | RIS | FALL}
· ":FUNCtion:OPERation" on page 357

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

365

16 :FUNCtion Commands

366

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
17 :HARDcopy Commands

Set and query the selection of hardcopy device and formatting options. See "Introduction to :HARDcopy Commands" on page 368.

Table 89 :HARDcopy Commands Summary

Command

Query

Options and Query Returns

:HARDcopy:AREA <area> :HARDcopy:AREA? (see <area> ::= SCReen

(see page 369)

page 369)

:HARDcopy:APRinter
<active_printer> (see page 370)

:HARDcopy:APRinter? (see page 370)

<active_printer> ::= {<index> | <name>}
<index> ::= integer index of printer in list
<name> ::= name of printer in list

:HARDcopy:FACTors {{0
| OFF} | {1 | ON}} (see page 371)

:HARDcopy:FACTors? (see page 371)

{0 | 1}

:HARDcopy:FFEed {{0 |
OFF} | {1 | ON}} (see page 372)

:HARDcopy:FFEed? (see page 372)

{0 | 1}

:HARDcopy:INKSaver
{{0 | OFF} | {1 | ON}} (see page 373)

:HARDcopy:INKSaver? (see page 373)

{0 | 1}

:HARDcopy:LAYout
<layout> (see page 374)

:HARDcopy:LAYout? (see page 374)

<layout> ::= {LANDscape | PORTrait}

:HARDcopy:NETWork:ADD :HARDcopy:NETWork:ADD <address> ::= quoted ASCII string Ress <address> (see Ress? (see page 375) page 375)

:HARDcopy:NETWork:APP n/a

n/a

Ly (see page 376)

367

17 :HARDcopy Commands

Table 89 :HARDcopy Commands Summary (continued)

Command

Query

Options and Query Returns

:HARDcopy:NETWork:DOM :HARDcopy:NETWork:DOM <domain> ::= quoted ASCII string

ain <domain> (see

ain? (see page 377)

page 377)

:HARDcopy:NETWork:PAS n/a
Sword <password> (see page 378)

<password> ::= quoted ASCII string

:HARDcopy:NETWork:SLO :HARDcopy:NETWork:SLO <slot> ::= {NET0 | NET1}

T <slot> (see

T? (see page 379)

page 379)

:HARDcopy:NETWork:USE :HARDcopy:NETWork:USE <username> ::= quoted ASCII Rname <username> (see Rname? (see page 380) string page 380)

:HARDcopy:PALette
<palette> (see page 381)

:HARDcopy:PALette? (see page 381)

<palette> ::= {COLor | GRAYscale | NONE}

n/a

:HARDcopy:PRINter:LIS <list> ::= [<printer_spec>] ...

T? (see page 382)

[printer_spec>]

<printer_spec> ::= "<index>,<active>,<name>;"

<index> ::= integer index of printer

<active> ::= {Y | N}

<name> ::= name of printer

:HARDcopy:STARt (see n/a

n/a

page 383)

Introduction to :HARDcopy Commands

The HARDcopy subsystem provides commands to set and query the selection of hardcopy device and formatting options such as inclusion of instrument settings (FACTors) and generation of formfeed (FFEed). :HARDC is an acceptable short form for :HARDcopy.

Reporting the Setup Use :HARDcopy? to query setup information for the HARDcopy subsystem.

Return Format The following is a sample response from the :HARDcopy? query. In this case, the query was issued following the *RST command.

:HARD:APR "";AREA SCR;FACT 0;FFE 0;INKS 1;PAL NONE;LAY PORT

368

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:HARDcopy Commands 17

:HARDcopy:AREA

(see page 1164)

Command Syntax :HARDcopy:AREA <area>

<area> ::= SCReen
The :HARDcopy:AREA command controls what part of the display area is printed. Currently, the only legal choice is SCReen.

Query Syntax Return Format

:HARDcopy:AREA?
The :HARDcopy:AREA? query returns the selected display area.
<area><NL>

See Also

<area> ::= SCR
· "Introduction to :HARDcopy Commands" on page 368 · ":HARDcopy:STARt" on page 383 · ":HARDcopy:APRinter" on page 370 · ":HARDcopy:PRINter:LIST" on page 382 · ":HARDcopy:FACTors" on page 371 · ":HARDcopy:FFEed" on page 372 · ":HARDcopy:INKSaver" on page 373 · ":HARDcopy:LAYout" on page 374 · ":HARDcopy:PALette" on page 381

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

369

17 :HARDcopy Commands

:HARDcopy:APRinter

(see page 1164)

Command Syntax :HARDcopy:APRinter <active_printer>

<active_printer> ::= {<index> | <name>}

<index> ::= integer index of printer in list

Query Syntax Return Format

<name> ::= name of printer in list
The :HARDcopy:APRinter command sets the active printer.
:HARDcopy:APRinter?
The :HARDcopy:APRinter? query returns the name of the active printer.
<name><NL>

See Also

<name> ::= name of printer in list
· "Introduction to :HARDcopy Commands" on page 368 · ":HARDcopy:PRINter:LIST" on page 382 · ":HARDcopy:STARt" on page 383

370

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:HARDcopy Commands 17

:HARDcopy:FACTors

(see page 1164)

Command Syntax :HARDcopy:FACTors <factors>

<factors> ::= {{OFF | 0} | {ON | 1}}
The HARDcopy:FACTors command controls whether the scale factors are output on the hardcopy dump.

Query Syntax Return Format

:HARDcopy:FACTors?
The :HARDcopy:FACTors? query returns a flag indicating whether oscilloscope instrument settings are output on the hardcopy.
<factors><NL>

See Also

<factors> ::= {0 | 1}
· "Introduction to :HARDcopy Commands" on page 368 · ":HARDcopy:STARt" on page 383 · ":HARDcopy:FFEed" on page 372 · ":HARDcopy:INKSaver" on page 373 · ":HARDcopy:LAYout" on page 374 · ":HARDcopy:PALette" on page 381

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

371

17 :HARDcopy Commands

:HARDcopy:FFEed

(see page 1164)

Command Syntax :HARDcopy:FFEed <ffeed>

<ffeed> ::= {{OFF | 0} | {ON | 1}}
The HARDcopy:FFEed command controls whether a formfeed is output between the screen image and factors of a hardcopy dump.

Query Syntax Return Format

:HARDcopy:FFEed?
The :HARDcopy:FFEed? query returns a flag indicating whether a formfeed is output at the end of the hardcopy dump.
<ffeed><NL>

See Also

<ffeed> ::= {0 | 1}
· "Introduction to :HARDcopy Commands" on page 368 · ":HARDcopy:STARt" on page 383 · ":HARDcopy:FACTors" on page 371 · ":HARDcopy:INKSaver" on page 373 · ":HARDcopy:LAYout" on page 374 · ":HARDcopy:PALette" on page 381

372

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:HARDcopy Commands 17

:HARDcopy:INKSaver

(see page 1164)

Command Syntax :HARDcopy:INKSaver <value>

<value> ::= {{OFF | 0} | {ON | 1}}
The HARDcopy:INKSaver command controls whether the graticule colors are inverted or not.

Query Syntax Return Format

:HARDcopy:INKSaver?
The :HARDcopy:INKSaver? query returns a flag indicating whether graticule colors are inverted or not.
<value><NL>

See Also

<value> ::= {0 | 1}
· "Introduction to :HARDcopy Commands" on page 368 · ":HARDcopy:STARt" on page 383 · ":HARDcopy:FACTors" on page 371 · ":HARDcopy:FFEed" on page 372 · ":HARDcopy:LAYout" on page 374 · ":HARDcopy:PALette" on page 381

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

373

17 :HARDcopy Commands

:HARDcopy:LAYout

(see page 1164)

Command Syntax :HARDcopy:LAYout <layout>

<layout> ::= {LANDscape | PORTrait}
The :HARDcopy:LAYout command sets the hardcopy layout mode.

Query Syntax Return Format

:HARDcopy:LAYout?
The :HARDcopy:LAYout? query returns the selected hardcopy layout mode.
<layout><NL>

See Also

<layout> ::= {LAND | PORT}
· "Introduction to :HARDcopy Commands" on page 368 · ":HARDcopy:STARt" on page 383 · ":HARDcopy:FACTors" on page 371 · ":HARDcopy:PALette" on page 381 · ":HARDcopy:FFEed" on page 372 · ":HARDcopy:INKSaver" on page 373

374

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:HARDcopy Commands 17

:HARDcopy:NETWork:ADDRess

(see page 1164)

Command Syntax :HARDcopy:NETWork:ADDRess <address>

Query Syntax Return Format

<address> ::= quoted ASCII string
The :HARDcopy:NETWork:ADDRess command sets the address for a network printer slot. The address is the server/computer name and the printer's share name in the \\server\share format. The network printer slot is selected by the :HARDcopy:NETWork:SLOT command. To apply the entered address, use the :HARDcopy:NETWork:APPLy command.
:HARDcopy:NETWork:ADDRess?
The :HARDcopy:NETWork:ADDRess? query returns the specified address for the currently selected network printer slot.
<address><NL>

See Also

<address> ::= quoted ASCII string
· "Introduction to :HARDcopy Commands" on page 368 · ":HARDcopy:NETWork:SLOT" on page 379 · ":HARDcopy:NETWork:APPLy" on page 376 · ":HARDcopy:NETWork:DOMain" on page 377 · ":HARDcopy:NETWork:USERname" on page 380 · ":HARDcopy:NETWork:PASSword" on page 378

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

375

17 :HARDcopy Commands

:HARDcopy:NETWork:APPLy

Command Syntax See Also

(see page 1164)
:HARDcopy:NETWork:APPLy
The :HARDcopy:NETWork:APPLy command applies the network printer settings and makes the printer connection. · "Introduction to :HARDcopy Commands" on page 368 · ":HARDcopy:NETWork:SLOT" on page 379 · ":HARDcopy:NETWork:ADDRess" on page 375 · ":HARDcopy:NETWork:DOMain" on page 377 · ":HARDcopy:NETWork:USERname" on page 380 · ":HARDcopy:NETWork:PASSword" on page 378

376

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:HARDcopy Commands 17

:HARDcopy:NETWork:DOMain

(see page 1164)

Command Syntax :HARDcopy:NETWork:DOMain <domain>

<domain> ::= quoted ASCII string
The :HARDcopy:NETWork:DOMain command sets the Windows network domain name.

Query Syntax Return Format

The domain name setting is a common setting for both network printer slots.
:HARDcopy:NETWork:DOMain?
The :HARDcopy:NETWork:DOMain? query returns the current Windows network domain name.
<domain><NL>

See Also

<domain> ::= quoted ASCII string
· "Introduction to :HARDcopy Commands" on page 368 · ":HARDcopy:NETWork:SLOT" on page 379 · ":HARDcopy:NETWork:APPLy" on page 376 · ":HARDcopy:NETWork:ADDRess" on page 375 · ":HARDcopy:NETWork:USERname" on page 380 · ":HARDcopy:NETWork:PASSword" on page 378

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

377

17 :HARDcopy Commands

:HARDcopy:NETWork:PASSword

(see page 1164)

Command Syntax :HARDcopy:NETWork:PASSword <password>

<password> ::= quoted ASCII string
The :HARDcopy:NETWork:PASSword command sets the password for the specified Windows network domain and user name.

See Also

The password setting is a common setting for both network printer slots.
· "Introduction to :HARDcopy Commands" on page 368 · ":HARDcopy:NETWork:USERname" on page 380 · ":HARDcopy:NETWork:DOMain" on page 377 · ":HARDcopy:NETWork:SLOT" on page 379 · ":HARDcopy:NETWork:APPLy" on page 376 · ":HARDcopy:NETWork:ADDRess" on page 375

378

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:HARDcopy Commands 17

:HARDcopy:NETWork:SLOT

(see page 1164)

Command Syntax :HARDcopy:NETWork:SLOT <slot>

Query Syntax Return Format

<slot> ::= {NET0 | NET1}
The :HARDcopy:NETWork:SLOT command selects the network printer slot used for the address and apply commands. There are two network printer slots to choose from.
:HARDcopy:NETWork:SLOT?
The :HARDcopy:NETWork:SLOT? query returns the currently selected network printer slot.
<slot><NL>

See Also

<slot> ::= {NET0 | NET1}
· "Introduction to :HARDcopy Commands" on page 368 · ":HARDcopy:NETWork:APPLy" on page 376 · ":HARDcopy:NETWork:ADDRess" on page 375 · ":HARDcopy:NETWork:DOMain" on page 377 · ":HARDcopy:NETWork:USERname" on page 380 · ":HARDcopy:NETWork:PASSword" on page 378

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

379

17 :HARDcopy Commands

:HARDcopy:NETWork:USERname

(see page 1164)

Command Syntax :HARDcopy:NETWork:USERname <username>

<username> ::= quoted ASCII string
The :HARDcopy:NETWork:USERname command sets the user name to use when connecting to the Windows network domain.

Query Syntax Return Format

The user name setting is a common setting for both network printer slots.
:HARDcopy:NETWork:USERname?
The :HARDcopy:NETWork:USERname? query returns the currently set user name.
<username><NL>

See Also

<username> ::= quoted ASCII string
· "Introduction to :HARDcopy Commands" on page 368 · ":HARDcopy:NETWork:DOMain" on page 377 · ":HARDcopy:NETWork:PASSword" on page 378 · ":HARDcopy:NETWork:SLOT" on page 379 · ":HARDcopy:NETWork:APPLy" on page 376 · ":HARDcopy:NETWork:ADDRess" on page 375

380

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:HARDcopy Commands 17

:HARDcopy:PALette

(see page 1164)

Command Syntax :HARDcopy:PALette <palette>

<palette> ::= {COLor | GRAYscale | NONE}
The :HARDcopy:PALette command sets the hardcopy palette color.

Query Syntax Return Format

The oscilloscope's print driver cannot print color images to color laser printers, so the COLor option is not available when connected to laser printers.
:HARDcopy:PALette?
The :HARDcopy:PALette? query returns the selected hardcopy palette color.
<palette><NL>

See Also

<palette> ::= {COL | GRAY | NONE}
· "Introduction to :HARDcopy Commands" on page 368 · ":HARDcopy:STARt" on page 383 · ":HARDcopy:FACTors" on page 371 · ":HARDcopy:LAYout" on page 374 · ":HARDcopy:FFEed" on page 372 · ":HARDcopy:INKSaver" on page 373

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

381

17 :HARDcopy Commands

:HARDcopy:PRINter:LIST

(see page 1164)

Query Syntax Return Format

:HARDcopy:PRINter:LIST?
The :HARDcopy:PRINter:LIST? query returns a list of available printers. The list can be empty.
<list><NL>

<list> ::= [<printer_spec>] ... [printer_spec>]

<printer_spec> ::= "<index>,<active>,<name>;"

<index> ::= integer index of printer

<active> ::= {Y | N}

See Also

<name> ::= name of printer (for example "DESKJET 950C")
· "Introduction to :HARDcopy Commands" on page 368 · ":HARDcopy:APRinter" on page 370 · ":HARDcopy:STARt" on page 383

382

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:HARDcopy Commands 17

:HARDcopy:STARt

Command Syntax See Also

(see page 1164)
:HARDcopy:STARt
The :HARDcopy:STARt command starts a print job.
· "Introduction to :HARDcopy Commands" on page 368 · ":HARDcopy:APRinter" on page 370 · ":HARDcopy:PRINter:LIST" on page 382 · ":HARDcopy:FACTors" on page 371 · ":HARDcopy:FFEed" on page 372 · ":HARDcopy:INKSaver" on page 373 · ":HARDcopy:LAYout" on page 374 · ":HARDcopy:PALette" on page 381

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

383

17 :HARDcopy Commands

384

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
18 :LISTer Commands

Table 90 :LISTer Commands Summary

Command

Query

Options and Query Returns

n/a

:LISTer:DATA? (see

<binary_block> ::=

page 386)

comma-separated data with

newlines at the end of each row

:LISTer:DISPlay {{OFF
| 0} | {SBUS1 | ON |
1} | {SBUS2 | 2} | ALL} (see page 387)

:LISTer:DISPlay? (see page 387)

{OFF | SBUS1 | SBUS2 | ALL}

:LISTer:REFerence
<time_ref> (see page 388)

:LISTer:REFerence? (see page 388)

<time_ref> ::= {TRIGger | PREVious}

Introduction to The LISTer subsystem is used to turn on/off the serial decode Lister display and :LISTer Commands return data from the Lister display.

385

18 :LISTer Commands

:LISTer:DATA

(see page 1164)

Query Syntax Return Format

:LISTer:DATA?
The :LISTer:DATA? query returns the lister data.
<binary block><NL>

See Also

<binary_block> ::= comma-separated data with newlines at the end of each row
· "Introduction to :LISTer Commands" on page 385 · ":LISTer:DISPlay" on page 387 · "Definite-Length Block Response Data" on page 164

386

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:LISTer Commands 18

:LISTer:DISPlay

(see page 1164)

Command Syntax :LISTer:DISPlay <value>

<value> ::= {{OFF | 0} | {SBUS1 | ON | 1} | {SBUS2 | 2} | ALL}
The :LISTer:DISPlay command configures which of the serial buses to display in the Lister, or whether the Lister is off. "ON" or "1" is the same as "SBUS1".

Query Syntax

When set to "ALL", the decode information for different buses is interleaved in time. Serial bus decode must be on before it can be displayed in the Lister.
:LISTer:DISPlay?
The :LISTer:DISPlay? query returns the Lister display setting.

Return Format <value><NL>

See Also

<value> ::= {OFF | SBUS1 | SBUS2 | ALL}
· "Introduction to :LISTer Commands" on page 385 · ":SBUS<n>:DISPlay" on page 648 · ":LISTer:DATA" on page 386

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

387

18 :LISTer Commands

:LISTer:REFerence

(see page 1164)

Command Syntax :LISTer:REFerence <time_ref>

<time_ref> ::= {TRIGger | PREVious}
The :LISTer:REFerence command selects whether the time value for a Lister row is relative to the trigger ot the previous Lister row.

Query Syntax Return Format

:LISTer:REFerence?
The :LISTer:REFerence? query returns the Lister time reference setting.
<time_ref><NL>

See Also

<time_ref> ::= {TRIGger | PREVious}
· "Introduction to :LISTer Commands" on page 385 · ":SBUS<n>:DISPlay" on page 648 · ":LISTer:DATA" on page 386 · ":LISTer:DISPlay" on page 387

388

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
19 :MARKer Commands

Set and query the settings of X-axis markers (X1 and X2 cursors) and the Y-axis markers (Y1 and Y2 cursors). See "Introduction to :MARKer Commands" on page 390.

Table 91 :MARKer Commands Summary

Command

Query

:MARKer:MODE <mode> (see page 391)

:MARKer:MODE? (see page 391)

:MARKer:X1Position
<position>[suffix] (see page 392)

:MARKer:X1Position? (see page 392)

:MARKer:X1Y1source
<source> (see page 393)

:MARKer:X1Y1source? (see page 393)

:MARKer:X2Position
<position>[suffix] (see page 394)

:MARKer:X2Position? (see page 394)

:MARKer:X2Y2source
<source> (see page 395)

:MARKer:X2Y2source? (see page 395)

Options and Query Returns
<mode> ::= {OFF | MEASurement | MANual | WAVeform}
<position> ::= X1 cursor position value in NR3 format [suffix] ::= {s | ms | us | ns | ps | Hz | kHz | MHz} <return_value> ::= X1 cursor position value in NR3 format
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# analog channels) in NR1 format <r> ::= 1-2 in NR1 format <return_value> ::= <source>
<position> ::= X2 cursor position value in NR3 format [suffix] ::= {s | ms | us | ns | ps | Hz | kHz | MHz} <return_value> ::= X2 cursor position value in NR3 format
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# analog channels) in NR1 format <r> ::= 1-2 in NR1 format <return_value> ::= <source>

389

19 :MARKer Commands

Table 91 :MARKer Commands Summary (continued)

Command

Query

n/a

:MARKer:XDELta? (see

page 396)

:MARKer:XUNits <mode> :MARKer:XUNits? (see

(see page 397)

page 397)

:MARKer:XUNits:USE

n/a

(see page 398)

:MARKer:Y1Position
<position>[suffix] (see page 399)

:MARKer:Y1Position? (see page 399)

:MARKer:Y2Position
<position>[suffix] (see page 401)

:MARKer:Y2Position? (see page 401)

n/a
:MARKer:YUNits <mode> (see page 404) :MARKer:YUNits:USE (see page 405)

:MARKer:YDELta? (see page 403)
:MARKer:YUNits? (see page 404)
n/a

Options and Query Returns <return_value> ::= X cursors delta value in NR3 format <units> ::= {SEConds | HERTz | DEGRees | PERCent} n/a
<position> ::= Y1 cursor position value in NR3 format [suffix] ::= {V | mV | dB} <return_value> ::= Y1 cursor position value in NR3 format <position> ::= Y2 cursor position value in NR3 format [suffix] ::= {V | mV | dB} <return_value> ::= Y2 cursor position value in NR3 format <return_value> ::= Y cursors delta value in NR3 format <units> ::= {BASE | PERCent}
n/a

Introduction to :MARKer
Commands

The MARKer subsystem commands set and query the settings of X-axis markers (X1 and X2 cursors) and the Y-axis markers (Y1 and Y2 cursors). You can set and query the marker mode and source, the position of the X and Y cursors, and query delta X and delta Y cursor values.

Reporting the Setup Use :MARKer? to query setup information for the MARKer subsystem.

Return Format The following is a sample response from the :MARKer? query. In this case, the query was issued following a *RST and ":MARKer:MODE MANual" command.

:MARK:X1Y1 CHAN1;X2Y2 CHAN1;MODE MAN

390

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MARKer Commands 19

:MARKer:MODE

(see page 1164)

Command Syntax :MARKer:MODE <mode>

<mode> ::= {OFF | MEASurement | MANual | WAVeform}
The :MARKer:MODE command sets the cursors mode: · OFF -- removes the cursor information from the display. · MANual -- enables manual placement of the X and Y cursors.

Query Syntax Return Format

If the front-panel cursors are off, or are set to the front-panel Hex or Binary mode, setting :MARKer:MODE MANual will put the cursors in the front-panel Normal mode. · MEASurement -- cursors track the most recent measurement. Setting the mode to MEASurement sets the marker sources (:MARKer:X1Y1source and :MARKer:X2Y2source) to the measurement source (:MEASure:SOURce). Setting the measurement source remotely always sets the marker sources. · WAVeform -- the Y1 cursor tracks the voltage value at the X1 cursor of the waveform specified by the X1Y1source, and the Y2 cursor does the same for the X2 cursor and its X2Y2source.
:MARKer:MODE?
The :MARKer:MODE? query returns the current cursors mode.
<mode><NL>

See Also

<mode> ::= {OFF | MEAS | MAN | WAV}
· "Introduction to :MARKer Commands" on page 390 · ":MARKer:X1Y1source" on page 393 · ":MARKer:X2Y2source" on page 395 · ":MEASure:SOURce" on page 460 · ":MARKer:X1Position" on page 392 · ":MARKer:X2Position" on page 394 · ":MARKer:Y1Position" on page 399 · ":MARKer:Y2Position" on page 401

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

391

19 :MARKer Commands

:MARKer:X1Position

(see page 1164) Command Syntax :MARKer:X1Position <position> [suffix]
<position> ::= X1 cursor position in NR3 format
<suffix> ::= {s | ms | us | ns | ps | Hz | kHz | MHz}
The :MARKer:X1Position command: · Sets :MARKer:MODE to MANual if it is not currently set to WAVeform (see
":MARKer:MODE" on page 391). · Sets the X1 cursor position to the specified value. X cursor units are set by the :MARKer:XUNits command.

NOTE

:MARKer:X1Position is an overlapped command (see "Sequential vs. Overlapped Commands" on page 1172).

Query Syntax

:MARKer:X1Position?
The :MARKer:X1Position? query returns the current X1 cursor position. This is functionally equivalent to the obsolete :MEASure:TSTArt command/query.

NOTE

If the front-panel cursors are off, the marker position values are not defined and an error is generated. Make sure to set :MARKer:MODE to MANual or WAVeform to put the cursors in the front-panel Normal mode.

Return Format <position><NL>

See Also

<position> ::= X1 cursor position in NR3 format
· "Introduction to :MARKer Commands" on page 390 · ":MARKer:MODE" on page 391 · ":MARKer:X2Position" on page 394 · ":MARKer:X1Y1source" on page 393 · ":MARKer:X2Y2source" on page 395 · ":MARKer:XUNits" on page 397 · ":MEASure:TSTArt" on page 1100

392

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MARKer Commands 19

:MARKer:X1Y1source

(see page 1164) Command Syntax :MARKer:X1Y1source <source>
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= {1 | 2}
The :MARKer:X1Y1source command sets the source for the cursors. The channel you specify must be enabled for cursors to be displayed. If the channel or function is not on, an error message is issued. If the marker mode is not currently WAVeform (see ":MARKer:MODE" on page 391): · Sending a :MARKer:X1Y1source command will put the cursors in the MANual
mode. · Setting the source for one pair of markers (for example, X1Y1) sets the source
for the other (for example, X2Y2). If the marker mode is currently WAVeform, the X1Y1 source can be set separate from the X2Y2 source. If :MARKer:MODE is set to OFF or MANual, setting :MEASure:SOURce to CHANnel<n>, FUNCtion, MATH, or WMEMory<r> will also set :MARKer:X1Y1source and :MARKer:X2Y2source to this value.

NOTE

MATH is an alias for FUNCtion. The query will return FUNC if the source is FUNCtion or MATH.

Query Syntax Return Format

:MARKer:X1Y1source?
The :MARKer:X1Y1source? query returns the current source for the cursors. If all channels are off or if :MARKer:MODE is set to OFF, the query returns NONE.
<source><NL>

See Also

<source> ::= {CHAN<n> | FUNC | WMEM<r> | NONE}
· "Introduction to :MARKer Commands" on page 390 · ":MARKer:MODE" on page 391 · ":MARKer:X2Y2source" on page 395 · ":MEASure:SOURce" on page 460

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

393

19 :MARKer Commands

:MARKer:X2Position

(see page 1164) Command Syntax :MARKer:X2Position <position> [suffix]
<position> ::= X2 cursor position in NR3 format
<suffix> ::= {s | ms | us | ns | ps | Hz | kHz | MHz}
The :MARKer:X2Position command: · Sets :MARKer:MODE to MANual if it is not currently set to WAVeform (see
":MARKer:MODE" on page 391). · Sets the X2 cursor position to the specified value. X cursor units are set by the :MARKer:XUNits command.

NOTE

:MARKer:X2Position is an overlapped command (see "Sequential vs. Overlapped Commands" on page 1172).

Query Syntax

:MARKer:X2Position?
The :MARKer:X2Position? query returns current X2 cursor position. This is functionally equivalent to the obsolete :MEASure:TSTOp command/query.

NOTE

If the front-panel cursors are off, the marker position values are not defined and an error is generated. Make sure to set :MARKer:MODE to MANual or WAVeform to put the cursors in the front-panel Normal mode.

Return Format <position><NL>

See Also

<position> ::= X2 cursor position in NR3 format
· "Introduction to :MARKer Commands" on page 390 · ":MARKer:MODE" on page 391 · ":MARKer:X1Position" on page 392 · ":MARKer:X2Y2source" on page 395 · ":MARKer:XUNits" on page 397 · ":MEASure:TSTOp" on page 1101

394

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MARKer Commands 19

:MARKer:X2Y2source

(see page 1164) Command Syntax :MARKer:X2Y2source <source>
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= {1 | 2}
The :MARKer:X2Y2source command sets the source for the cursors. The channel you specify must be enabled for cursors to be displayed. If the channel or function is not on, an error message is issued. If the marker mode is not currently WAVeform (see ":MARKer:MODE" on page 391): · Sending a :MARKer:X2Y2source command will put the cursors in the MANual
mode. · Setting the source for one pair of markers (for example, X2Y2) sets the source
for the other (for example, X1Y1). If the marker mode is currently WAVeform, the X2Y2 source can be set separate from the X1Y1 source. If :MARKer:MODE is set to OFF or MANual, setting :MEASure:SOURce to CHANnel<n>, FUNCtion, MATH, or WMEMory<r> will also set :MARKer:X1Y1source and :MARKer:X2Y2source to this value.

NOTE

MATH is an alias for FUNCtion. The query will return FUNC if the source is FUNCtion or MATH.

Query Syntax Return Format

:MARKer:X2Y2source?
The :MARKer:X2Y2source? query returns the current source for the cursors. If all channels are off or if :MARKer:MODE is set to OFF, the query returns NONE.
<source><NL>

See Also

<source> ::= {CHAN<n> | FUNC | WMEM<r> | NONE}
· "Introduction to :MARKer Commands" on page 390 · ":MARKer:MODE" on page 391 · ":MARKer:X1Y1source" on page 393 · ":MEASure:SOURce" on page 460

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

395

19 :MARKer Commands

:MARKer:XDELta

Query Syntax

(see page 1164)
:MARKer:XDELta?
The MARKer:XDELta? query returns the value difference between the current X1 and X2 cursor positions. Xdelta = (Value at X2 cursor) - (Value at X1 cursor) X cursor units are set by the :MARKer:XUNits command.

NOTE

If the front-panel cursors are off, the marker position values are not defined. Make sure to set :MARKer:MODE to MANual or WAVeform to put the cursors in the front-panel Normal mode.

Return Format <value><NL>

See Also

<value> ::= difference value in NR3 format.
· "Introduction to :MARKer Commands" on page 390 · ":MARKer:MODE" on page 391 · ":MARKer:X1Position" on page 392 · ":MARKer:X2Position" on page 394 · ":MARKer:X1Y1source" on page 393 · ":MARKer:X2Y2source" on page 395 · ":MARKer:XUNits" on page 397

396

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MARKer Commands 19

:MARKer:XUNits

(see page 1164)

Command Syntax :MARKer:XUNits <units>

Query Syntax

<units> ::= {SEConds | HERTz | DEGRees | PERCent}
The :MARKer:XUNits command sets the X cursors units: · SEConds -- for making time measurements. · HERTz -- for making frequency measurements. · DEGRees -- for making phase measurements. Use the :MARKer:XUNits:USE
command to set the current X1 location as 0 degrees and the current X2 location as 360 degrees. · PERCent -- for making ratio measurements. Use the :MARKer:XUNits:USE command to set the current X1 location as 0 percent and the current X2 location as 100 percent. Changing X units affects the input and output values of the :MARKer:X1Position, :MARKer:X2Position, and :MARKer:XDELta commands/queries.
:MARKer:XUNits?
The :MARKer:XUNits? query returns the current X cursors units.

Return Format <units><NL>

See Also

<units> ::= {SEC | HERT | DEGR | PERC}
· "Introduction to :MARKer Commands" on page 390 · ":MARKer:XUNits:USE" on page 398 · ":MARKer:X1Y1source" on page 393 · ":MARKer:X2Y2source" on page 395 · ":MEASure:SOURce" on page 460 · ":MARKer:X1Position" on page 392 · ":MARKer:X2Position" on page 394

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

397

19 :MARKer Commands

:MARKer:XUNits:USE

Command Syntax See Also

(see page 1164)
:MARKer:XUNits:USE
When DEGRees is selected for :MARKer:XUNits, the :MARKer:XUNits:USE command sets the current X1 location as 0 degrees and the current X2 location as 360 degrees. When PERCent is selected for :MARKer:XUNits, the :MARKer:XUNits:USE command sets the current X1 location as 0 percent and the current X2 location as 100 percent. Once the 0 and 360 degree or 0 and 100 percent locations are set, inputs to and outputs from the :MARKer:X1Position, :MARKer:X2Position, and :MARKer:XDELta commands/queries are relative to the set locations. · "Introduction to :MARKer Commands" on page 390 · ":MARKer:XUNits" on page 397 · ":MARKer:X1Y1source" on page 393 · ":MARKer:X2Y2source" on page 395 · ":MEASure:SOURce" on page 460 · ":MARKer:X1Position" on page 392 · ":MARKer:X2Position" on page 394 · ":MARKer:XDELta" on page 396

398

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MARKer Commands 19

:MARKer:Y1Position

(see page 1164)

Command Syntax :MARKer:Y1Position <position> [suffix]

<position> ::= Y1 cursor position in NR3 format

Query Syntax

<suffix> ::= {mV | V | dB}
If the :MARKer:MODE is not currently set to WAVeform (see ":MARKer:MODE" on page 391), the :MARKer:Y1Position command: · Sets :MARKer:MODE to MANual. · Sets the Y1 cursor position to the specified value. Y cursor units are set by the :MARKer:YUNits command. When the :MARKer:MODE is set to WAVeform, Y positions cannot be set.
:MARKer:Y1Position?
The :MARKer:Y1Position? query returns current Y1 cursor position. This is functionally equivalent to the obsolete :MEASure:VSTArt command/query.

NOTE

When the waveform tracking markers mode is on (:MARKer:MODE WAVeform), use the :MEASure:VTIMe? query to get the vertical value at a horizontal X position. A :MARKer:Y1Position? query immediately following a :MARKer:X1Position command (with no time delay between the command and query) will likely not return the tracked value because :MARKer:X1Position is an overlapping command.

NOTE

If the front-panel cursors are off or are set to Binary or Hex Mode, the marker position values are not defined and an error is generated. Make sure to set :MARKer:MODE to MANual or WAVeform to put the cursors in the front-panel Normal mode.

Return Format <position><NL>

See Also

<position> ::= Y1 cursor position in NR3 format
· "Introduction to :MARKer Commands" on page 390 · ":MARKer:MODE" on page 391 · ":MARKer:X1Y1source" on page 393 · ":MARKer:X2Y2source" on page 395 · ":MARKer:Y2Position" on page 401 · ":MARKer:YUNits" on page 404 · ":MEASure:VTIMe" on page 480 · ":MARKer:X1Position" on page 392

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

399

19 :MARKer Commands
· ":MEASure:VSTArt" on page 1105

400

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MARKer Commands 19

:MARKer:Y2Position

(see page 1164)

Command Syntax :MARKer:Y2Position <position> [suffix]

<position> ::= Y2 cursor position in NR3 format

Query Syntax

<suffix> ::= {mV | V | dB}
If the :MARKer:MODE is not currently set to WAVeform (see ":MARKer:MODE" on page 391), the :MARKer:Y1Position command: · Sets :MARKer:MODE to MANual. · Sets the Y2 cursor position to the specified value. Y cursor units are set by the :MARKer:YUNits command. When the :MARKer:MODE is set to WAVeform, Y positions cannot be set.
:MARKer:Y2Position?
The :MARKer:Y2Position? query returns current Y2 cursor position. This is functionally equivalent to the obsolete :MEASure:VSTOp command/query.

NOTE

When the waveform tracking markers mode is on (:MARKer:MODE WAVeform), use the :MEASure:VTIMe? query to get the vertical value at a horizontal X position. A :MARKer:Y2Position? query immediately following a :MARKer:X2Position command (with no time delay between the command and query) will likely not return the tracked value because :MARKer:X2Position is an overlapping command.

NOTE

If the front-panel cursors are off or are set to Binary or Hex Mode, the marker position values are not defined and an error is generated. Make sure to set :MARKer:MODE to MANual or WAVeform to put the cursors in the front-panel Normal mode.

Return Format <position><NL>

See Also

<position> ::= Y2 cursor position in NR3 format
· "Introduction to :MARKer Commands" on page 390 · ":MARKer:MODE" on page 391 · ":MARKer:X1Y1source" on page 393 · ":MARKer:X2Y2source" on page 395 · ":MARKer:Y1Position" on page 399 · ":MARKer:YUNits" on page 404 · ":MEASure:VTIMe" on page 480 · ":MARKer:X2Position" on page 394

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

401

19 :MARKer Commands
· ":MEASure:VSTOp" on page 1106

402

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MARKer Commands 19

:MARKer:YDELta

Query Syntax

(see page 1164)
:MARKer:YDELta?
The :MARKer:YDELta? query returns the value difference between the current Y1 and Y2 cursor positions. Ydelta = (Value at Y2 cursor) - (Value at Y1 cursor)

NOTE

If the front-panel cursors are off or are set to Binary or Hex Mode, the marker position values are not defined. Make sure to set :MARKer:MODE to MANual or WAVeform to put the cursors in the front-panel Normal mode.

Y cursor units are set by the :MARKer:YUNits command. Return Format <value><NL>

See Also

<value> ::= difference value in NR3 format
· "Introduction to :MARKer Commands" on page 390 · ":MARKer:MODE" on page 391 · ":MARKer:X1Y1source" on page 393 · ":MARKer:X2Y2source" on page 395 · ":MARKer:Y1Position" on page 399 · ":MARKer:Y2Position" on page 401 · ":MARKer:YUNits" on page 404

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

403

19 :MARKer Commands

:MARKer:YUNits

(see page 1164)

Command Syntax :MARKer:YUNits <units>

Query Syntax Return Format

<units> ::= {BASE | PERCent}
The :MARKer:YUNits command sets the Y cursors units: · BASE -- for making measurements in the units associated with the cursors
source. · PERCent -- for making ratio measurements. Use the :MARKer:YUNits:USE
command to set the current Y1 location as 0 percent and the current Y2 location as 100 percent. Changing Y units affects the input and output values of the :MARKer:Y1Position, :MARKer:Y2Position, and :MARKer:YDELta commands/queries.
:MARKer:YUNits?
The :MARKer:YUNits? query returns the current Y cursors units.
<units><NL>

See Also

<units> ::= {BASE | PERC}
· "Introduction to :MARKer Commands" on page 390 · ":MARKer:YUNits:USE" on page 405 · ":MARKer:X1Y1source" on page 393 · ":MARKer:X2Y2source" on page 395 · ":MEASure:SOURce" on page 460 · ":MARKer:Y1Position" on page 399 · ":MARKer:Y2Position" on page 401 · ":MARKer:YDELta" on page 403

404

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MARKer Commands 19

:MARKer:YUNits:USE

Command Syntax See Also

(see page 1164)
:MARKer:YUNits:USE
When PERCent is selected for :MARKer:YUNits, the :MARKer:YUNits:USE command sets the current Y1 location as 0 percent and the current Y2 location as 100 percent. Once the 0 and 100 percent locations are set, inputs to and outputs from the :MARKer:Y1Position, :MARKer:Y2Position, and :MARKer:YDELta commands/queries are relative to the set locations. · "Introduction to :MARKer Commands" on page 390 · ":MARKer:YUNits" on page 404 · ":MARKer:X1Y1source" on page 393 · ":MARKer:X2Y2source" on page 395 · ":MEASure:SOURce" on page 460 · ":MARKer:Y1Position" on page 399 · ":MARKer:Y2Position" on page 401 · ":MARKer:YDELta" on page 403

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

405

19 :MARKer Commands

406

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
20 :MEASure Commands

Select automatic measurements to be made and control time markers. See "Introduction to :MEASure Commands" on page 420.

Table 92 :MEASure Commands Summary

Command

Query

Options and Query Returns

:MEASure:ALL (see

n/a

n/a

page 422)

:MEASure:AREa
[<interval>][,][<sour ce>] (see page 423)

:MEASure:AREa?
[<interval>][,][<sour ce>] (see page 423)

<interval> ::= {CYCLe | DISPlay}
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= area in volt-seconds, NR3 format

:MEASure:BRATe
[<source>] (see page 424)

:MEASure:BRATe?
[<source>] (see page 424)

<source> ::= {<digital channels> | CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<digital channels> ::= DIGital<d> for the MSO models
<d> ::= 0 to (# digital channels - 1) in NR1 format
<n> ::= 1 to (# of analog channels) in NR1 format
<r> ::= 1 to (# ref waveforms) in NR1 format
<return_value> ::= bit rate in Hz, NR3 format

407

20 :MEASure Commands

Table 92 :MEASure Commands Summary (continued)

Command

Query

Options and Query Returns

:MEASure:BWIDth
[<source>] (see page 425)

:MEASure:BWIDth?
[<source>] (see page 425)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= burst width in seconds, NR3 format

:MEASure:CLEar (see n/a

n/a

page 426)

:MEASure:COUNter
[<source>] (see page 427)

:MEASure:COUNter?
[<source>] (see page 427)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | EXTernal} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<return_value> ::= counter frequency in Hertz in NR3 format

:MEASure:DEFine
DELay, <delay
spec>[,<source>] (see page 428)

:MEASure:DEFine?
DELay[,<source>] (see page 429)

<delay spec> ::= <edge_spec1>,<edge_spec2>
edge_spec1 ::= [<slope>]<occurrence>
edge_spec2 ::= [<slope>]<occurrence>
<slope> ::= {+ | -}
<occurrence> ::= integer
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}

:MEASure:DEFine
THResholds,
<threshold
spec>[,<source>] (see page 428)

:MEASure:DEFine?
THResholds[,<source>] (see page 429)

<threshold spec> ::= {STANdard} | {<threshold mode>,<upper>, <middle>,<lower>}
<threshold mode> ::= {PERCent | ABSolute}
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}

408

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

Table 92 :MEASure Commands Summary (continued)

Command

Query

Options and Query Returns

:MEASure:DELay
[<source1>]
[,<source2>] (see page 431)

:MEASure:DELay?
[<source1>]
[,<source2>] (see page 431)

<source1,2> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= floating-point number delay time in seconds in NR3 format

:MEASure:DUAL:CHARge
[<interval>]
[,<source1>][,<source 2>] (see page 433)

:MEASure:DUAL:CHARge?
[<interval>]
[,<source1>][,<source 2>] (see page 433)

<interval> ::= {CYCLe | DISPlay}
<source1>,<source2> ::= CHANnel<n> with N2820A probe connected}
<n> ::= 1 to (# analog channels) in NR1 format
<return_value> ::= area in Amp-hours, NR3 format

:MEASure:DUAL:VAMPlit
ude
[<source1>][,<source2 >] (see page 434)

:MEASure:DUAL:VAMPlit
ude?
[<source1>][,<source2 >] (see page 434)

<source1>,<source2> ::= CHANnel<n> with N2820A probe connected
<n> ::= 1 to (# analog channels) in NR1 format
<return_value> ::= the amplitude of the selected waveform in volts in NR3 format

:MEASure:DUAL:VAVerag
e [<interval>]
[,<source1>][,<source 2>] (see page 435)

:MEASure:DUAL:VAVerag
e? [<interval>]
[,<source1>][,<source 2>] (see page 435)

<interval> ::= {CYCLe | DISPlay}
<source1>,<source2> ::= CHANnel<n> with N2820A probe connected
<n> ::= 1 to (# analog channels) in NR1 format
<return_value> ::= calculated average voltage in NR3 format

:MEASure:DUAL:VBASe
[<source1>][,<source2 >] (see page 436)

:MEASure:DUAL:VBASe?
[<source1>][,<source2 >] (see page 436)

<source1>,<source2> ::= CHANnel<n> with N2820A probe connected
<n> ::= 1 to (# analog channels) in NR1 format
<base_voltage> ::= voltage at the base of the selected waveform in NR3 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

409

20 :MEASure Commands

Table 92 :MEASure Commands Summary (continued)

Command

Query

Options and Query Returns

:MEASure:DUAL:VPP
[<source1>][,<source2 >] (see page 437)

:MEASure:DUAL:VPP?
[<source1>][,<source2 >] (see page 437)

<source1>,<source2> ::= CHANnel<n> with N2820A probe connected
<n> ::= 1 to (# analog channels) in NR1 format
<return_value> ::= voltage peak-to-peak of the selected waveform in NR3 format

:MEASure:DUAL:VRMS
[<interval>]
[,<type>]
[,<source1>][,<source 2>] (see page 438)

:MEASure:DUAL:VRMS?
[<interval>]
[,<type>]
[,<source1>][,<source 2>] (see page 438)

<interval> ::= {CYCLe | DISPlay}
<type> ::= {AC | DC}
<source1>,<source2> ::= CHANnel<n> with N2820A probe connected
<n> ::= 1 to (# analog channels) in NR1 format
<return_value> ::= calculated RMS voltage in NR3 format

:MEASure:DUTYcycle
[<source>] (see page 439)

:MEASure:DUTYcycle?
[<source>] (see page 439)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<return_value> ::= ratio of positive pulse width to period in NR3 format

410

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

Table 92 :MEASure Commands Summary (continued)

Command

Query

:MEASure:FALLtime
[<source>] (see page 440)

:MEASure:FALLtime?
[<source>] (see page 440)

:MEASure:FREQuency
[<source>] (see page 441)

:MEASure:FREQuency?
[<source>] (see page 441)

Options and Query Returns
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<return_value> ::= time in seconds between the lower and upper thresholds in NR3 format
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<return_value> ::= frequency in Hertz in NR3 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

411

20 :MEASure Commands

Table 92 :MEASure Commands Summary (continued)

Command

Query

:MEASure:NDUTy
[<source>] (see page 442)

:MEASure:NDUTy?
[<source>] (see page 442)

:MEASure:NEDGes
[<source>] (see page 443)

:MEASure:NEDGes?
[<source>] (see page 443)

:MEASure:NPULses
[<source>] (see page 444)

:MEASure:NPULses?
[<source>] (see page 444)

Options and Query Returns
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1 to (# ref waveforms) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<return_value> ::= ratio of negative pulse width to period in NR3 format
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the falling edge count in NR3 format
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the falling pulse count in NR3 format

412

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

Table 92 :MEASure Commands Summary (continued)

Command

Query

:MEASure:NWIDth
[<source>] (see page 445)

:MEASure:NWIDth?
[<source>] (see page 445)

:MEASure:OVERshoot
[<source>] (see page 446)

:MEASure:OVERshoot?
[<source>] (see page 446)

:MEASure:PEDGes
[<source>] (see page 448)

:MEASure:PEDGes?
[<source>] (see page 448)

Options and Query Returns
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<return_value> ::= negative pulse width in seconds-NR3 format
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the percent of the overshoot of the selected waveform in NR3 format
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the rising edge count in NR3 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

413

20 :MEASure Commands

Table 92 :MEASure Commands Summary (continued)

Command

Query

:MEASure:PERiod
[<source>] (see page 449)

:MEASure:PERiod?
[<source>] (see page 449)

:MEASure:PHASe
[<source1>]
[,<source2>] (see page 450)

:MEASure:PHASe?
[<source1>]
[,<source2>] (see page 450)

:MEASure:PPULses
[<source>] (see page 451)

:MEASure:PPULses?
[<source>] (see page 451)

:MEASure:PREShoot
[<source>] (see page 452)

:MEASure:PREShoot?
[<source>] (see page 452)

Options and Query Returns
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<return_value> ::= waveform period in seconds in NR3 format
<source1,2> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the phase angle value in degrees in NR3 format
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the rising pulse count in NR3 format
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the percent of preshoot of the selected waveform in NR3 format

414

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

Table 92 :MEASure Commands Summary (continued)

Command

Query

:MEASure:PWIDth
[<source>] (see page 453)

:MEASure:PWIDth?
[<source>] (see page 453)

n/a
:MEASure:RISetime [<source>] (see page 457)

:MEASure:RESults? <result_list> (see page 454)
:MEASure:RISetime? [<source>] (see page 457)

:MEASure:SDEViation
[<source>] (see page 458)

:MEASure:SDEViation?
[<source>] (see page 458)

:MEASure:SHOW {1 | ON} (see page 459)

:MEASure:SHOW? (see page 459)

Options and Query Returns
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<return_value> ::= width of positive pulse in seconds in NR3 format
<result_list> ::= comma-separated list of measurement results
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= rise time in seconds in NR3 format
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= calculated std deviation in NR3 format
{1}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

415

20 :MEASure Commands

Table 92 :MEASure Commands Summary (continued)

Command

Query

Options and Query Returns

:MEASure:SOURce
<source1>
[,<source2>] (see page 460)

:MEASure:SOURce? (see page 460)

<source1,2> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r> | EXTernal} for DSO models
<source1,2> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r> | EXTernal} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<return_value> ::= {<source> | NONE}

:MEASure:STATistics <type> (see page 462)

:MEASure:STATistics? (see page 462)

<type> ::= {{ON | 1} | CURRent | MEAN | MINimum | MAXimum | STDDev | COUNt}
ON ::= all statistics returned

:MEASure:STATistics:D
ISPlay {{0 | OFF} |
{1 | ON}} (see page 463)

:MEASure:STATistics:D ISPlay? (see page 463)

{0 | 1}

:MEASure:STATistics:I n/a

n/a

NCRement (see page 464)

:MEASure:STATistics:M
COunt <setting> (see page 465)

:MEASure:STATistics:M COunt? (see page 465)

<setting> ::= {INFinite | <count>}
<count> ::= 2 to 2000 in NR1 format

:MEASure:STATistics:R n/a

n/a

ESet (see page 466)

:MEASure:STATistics:R
SDeviation {{0 | OFF}
| {1 | ON}} (see page 467)

:MEASure:STATistics:R
SDeviation? (see page 467)

{0 | 1}

416

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

Table 92 :MEASure Commands Summary (continued)

Command

Query

Options and Query Returns

n/a

:MEASure:TEDGe?

<slope> ::= direction of the

<slope><occurrence>[, waveform

<source>] (see page 468)

<occurrence> ::= the transition to be reported

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} for DSO models

<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models

<n> ::= 1 to (# analog channels) in NR1 format

<r> ::= 1-2 in NR1 format

<d> ::= 0 to (# digital channels - 1) in NR1 format

<return_value> ::= time in seconds of the specified transition

n/a

:MEASure:TVALue?

<value> ::= voltage level that

<value>,

the waveform must cross.

[<slope>]<occurrence>
[,<source>] (see page 470)

<slope> ::= direction of the waveform when <value> is crossed.
<occurrence> ::= transitions

reported.

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} for DSO models

<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models

<n> ::= 1 to (# analog channels) in NR1 format

<r> ::= 1-2 in NR1 format

<d> ::= 0 to (# digital channels - 1) in NR1 format

<return_value> ::= time in seconds of specified voltage crossing in NR3 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

417

20 :MEASure Commands

Table 92 :MEASure Commands Summary (continued)

Command

Query

Options and Query Returns

:MEASure:VAMPlitude
[<source>] (see page 472)

:MEASure:VAMPlitude?
[<source>] (see page 472)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the amplitude of the selected waveform in volts in NR3 format

:MEASure:VAVerage
[<interval>][,][<sour ce>] (see page 473)

:MEASure:VAVerage?
[<interval>][,][<sour ce>] (see page 473)

<interval> ::= {CYCLe | DISPlay}
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= calculated average voltage in NR3 format

:MEASure:VBASe
[<source>] (see page 474)

:MEASure:VBASe?
[<source>] (see page 474)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<base_voltage> ::= voltage at the base of the selected waveform in NR3 format

:MEASure:VMAX
[<source>] (see page 475)

:MEASure:VMAX?
[<source>] (see page 475)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= maximum voltage of the selected waveform in NR3 format

:MEASure:VMIN
[<source>] (see page 476)

:MEASure:VMIN?
[<source>] (see page 476)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= minimum voltage of the selected waveform in NR3 format

418

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

Table 92 :MEASure Commands Summary (continued)

Command

Query

Options and Query Returns

:MEASure:VPP
[<source>] (see page 477)

:MEASure:VPP?
[<source>] (see page 477)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= voltage peak-to-peak of the selected waveform in NR3 format

:MEASure:VRATio
[<interval>][,][<sour
ce1>] [,<source2>] (see page 478)

:MEASure:VRATio?
[<interval>][,][<sour
ce1>] [,<source2>] (see page 478)

<interval> ::= {CYCLe | DISPlay}
<source1,2> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the ratio value in dB in NR3 format

:MEASure:VRMS
[<interval>][,]
[<type>][,]
[<source>] (see page 479)

:MEASure:VRMS?
[<interval>][,]
[<type>][,]
[<source>] (see page 479)

<interval> ::= {CYCLe | DISPlay} <type> ::= {AC | DC} <source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# analog channels) in NR1 format <r> ::= 1-2 in NR1 format <return_value> ::= calculated dc RMS voltage in NR3 format

n/a

:MEASure:VTIMe?

<vtime> ::= displayed time from

<vtime>[,<source>] (see page 480)

trigger in seconds in NR3 format <source> ::= {CHANnel<n> |

FUNCtion | MATH | WMEMory<r>} for

DSO models

<source> ::= {CHANnel<n> | DIGital<d> | FUNCtion | MATH | WMEMory<r>} for MSO models

<n> ::= 1 to (# analog channels) in NR1 format

<r> ::= 1-2 in NR1 format

<d> ::= 0 to (# digital channels - 1) in NR1 format

<return_value> ::= voltage at the specified time in NR3 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

419

20 :MEASure Commands

Table 92 :MEASure Commands Summary (continued)

Command

Query

Options and Query Returns

:MEASure:VTOP
[<source>] (see page 481)

:MEASure:VTOP?
[<source>] (see page 481)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= voltage at the top of the waveform in NR3 format

:MEASure:WINDow

:MEASure:WINDow? (see <type> ::= {MAIN | ZOOM | AUTO}

<type> (see page 482) page 482)

:MEASure:XMAX
[<source>] (see page 483)

:MEASure:XMAX?
[<source>] (see page 483)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= horizontal value of the maximum in NR3 format

:MEASure:XMIN
[<source>] (see page 484)

:MEASure:XMIN?
[<source>] (see page 484)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= horizontal value of the maximum in NR3 format

Introduction to :MEASure
Commands

The commands in the MEASure subsystem are used to make parametric measurements on displayed waveforms.
Measurement Setup To make a measurement, the portion of the waveform required for that measurement must be displayed on the oscilloscope screen.

Measurement Type period, duty cycle, or frequency pulse width rise time fall time

Portion of waveform that must be displayed at least one complete cycle the entire pulse rising edge, top and bottom of pulse falling edge, top and bottom of pulse

420

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20
Measurement Error If a measurement cannot be made (typically because the proper portion of the waveform is not displayed), the value +9.9E+37 is returned for that measurement. Making Measurements If more than one waveform, edge, or pulse is displayed, time measurements are made on the portion of the displayed waveform closest to the trigger reference (left, center, or right). When making measurements in the zoomed (delayed) time base mode (:TIMebase:MODE WINDow), the oscilloscope will attempt to make the measurement inside the zoomed sweep window. If the measurement is an average and there are not three edges, the oscilloscope will revert to the mode of making the measurement at the start of the main sweep. When the command form is used, the measurement result is displayed on the instrument. When the query form of these measurements is used, the measurement is made one time, and the measurement result is returned over the bus. Measurements are made on the displayed waveforms specified by the :MEASure:SOURce command. The MATH source is an alias for the FUNCtion source. Not all measurements are available on the digital channels or FFT (Fast Fourier Transform). Reporting the Setup Use the :MEASure? query to obtain setup information for the MEASure subsystem. (Currently, this is only :MEASure:SOURce.) Return Format The following is a sample response from the :MEASure? query. In this case, the query was issued following a *RST command.
:MEAS:SOUR CHAN1,CHAN2;STAT ON

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

421

20 :MEASure Commands

:MEASure:ALL

Command Syntax See Also

(see page 1164)
:MEASure:ALL
This command installs a Snapshot All measurement on the screen. · "Introduction to :MEASure Commands" on page 420

422

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:AREa

(see page 1164) Command Syntax :MEASure:AREa [<interval>][,][<source>]
<interval> ::= {CYCLe | DISPlay} <source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# analog channels) in NR1 format <r> ::= 1-2 in NR1 format
The :MEASure:AREa command installs an area measurement on screen. Area measurements show the area between the waveform and the ground level. The <interval> option lets you specify the measurement interval: either an integral number of cycles, or the full screen. If <interval> is not specified, DISPlay is implied.

NOTE

This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax Return Format

:MEASure:AREa? [<interval>][,][<source>]
The :MEASure:AREa? query measures and returns the area value.
<value><NL>

See Also

<value> ::= the area value in volt-seconds in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

423

20 :MEASure Commands

:MEASure:BRATe

(see page 1164) Command Syntax :MEASure:BRATe [<source>]
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# of analog channels) in NR1 format <r> ::= 1 to (# ref waveforms) in NR1 format
The :MEASure:BRATe command installs a screen measurement and starts the bit rate measurement. If the optional source parameter is specified, the currently specified source is modified.

NOTE

This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax Return Format

:MEASure:BRATe? [<source>]
The :MEASure:BRATe? query measures all positive and negative pulse widths on the waveform, takes the minimum value found of either width type and inverts that minimum width to give a value in Hertz.
<value><NL>

See Also

<value> ::= the bit rate value in Hertz
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460 · ":MEASure:FREQuency" on page 441 · ":MEASure:PERiod" on page 449

424

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:BWIDth

(see page 1164) Command Syntax :MEASure:BWIDth [<source>]
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# analog channels) in NR1 format <r> ::= 1-2 in NR1 format
The :MEASure:BWIDth command installs a burst width measurement on screen. If the optional source parameter is not specified, the current measurement source is used.

NOTE

This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax Return Format

:MEASure:BWIDth? [<source>]
The :MEASure:BWIDth? query measures and returns the width of the burst on the screen. The burst width is calculated as follows:
burst width = (last edge on screen - first edge on screen)
<value><NL>

See Also

<value> ::= burst width in seconds in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

425

20 :MEASure Commands

:MEASure:CLEar

Command Syntax See Also

(see page 1164)
:MEASure:CLEar
This command clears all selected measurements and markers from the screen. · "Introduction to :MEASure Commands" on page 420

426

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:COUNter

(see page 1164) Command Syntax :MEASure:COUNter [<source>]
<source> ::= {<digital channels> | CHANnel<n> | EXTernal}
<digital channels> ::= DIGital<d> for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
The :MEASure:COUNter command installs a screen measurement and starts a counter measurement. If the optional source parameter is specified, the current source is modified. Any channel except Math may be selected for the source. The counter measurement counts trigger level crossings at the selected trigger slope and displays the results in Hz. The gate time for the measurement is automatically adjusted to be 100 ms or twice the current time window, whichever is longer, up to 1 second. The counter measurement can measure frequencies up to 125 MHz. The minimum frequency supported is 1/(2 X gate time). The Y cursor shows the the edge threshold level used in the measurement. Only one counter measurement may be displayed at a time.

NOTE

This command is not available if the source is MATH.

Query Syntax

:MEASure:COUNter? [<source>]
The :MEASure:COUNter? query measures and outputs the counter frequency of the specified source.

NOTE

The :MEASure:COUNter? query times out if the counter measurement is installed on the front panel. Use :MEASure:CLEar to remove the front-panel measurement before executing the :MEASure:COUNter? query.

Return Format <source><NL>

See Also

<source> ::= count in Hertz in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460 · ":MEASure:FREQuency" on page 441 · ":MEASure:CLEar" on page 426

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

427

20 :MEASure Commands

:MEASure:DEFine

(see page 1164) Command Syntax :MEASure:DEFine <meas_spec>[,<source>]
<meas_spec> ::= {DELay | THResholds} <source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# analog channels) in NR1 format <r> ::= {1 | 2}
The :MEASure:DEFine command sets up the definition for measurements by specifying the delta time or threshold values. Changing these values may affect the results of other measure commands. The table below identifies which measurement results that can be affected by redefining the DELay specification or the THResholds values. For example, changing the THResholds definition from the default 10%, 50%, and 90% values may change the returned measurement result.

MEASure Command DUTYcycle DELay FALLtime FREQuency NWIDth OVERshoot PERiod PHASe PREShoot PWIDth RISetime VAVerage VRMS

DELay x

THResholds x x x x x x x x x x x x x

:MEASure:DEFine DELay Command
Syntax

:MEASure:DEFine DELay,<delay spec>[,<source>] <delay spec> ::= <edge_spec1>,<edge_spec2> <edge_spec1> ::= [<slope>]<occurrence>

<edge_spec2> ::= [<slope>]<occurrence>

<slope> ::= {+ | -}

428

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

NOTE

<occurrence> ::= integer
This command defines the behavior of the :MEASure:DELay? query by specifying the start and stop edge to be used. <edge_spec1> specifies the slope and edge number on source1. <edge_spec2> specifies the slope and edge number on source2. The measurement is taken as: delay = t(<edge_spec2>) - t(<edge_spec1>)
The :MEASure:DELay command and the front-panel delay measurement use an auto-edge selection method to determine the actual edge used for the measurement. The :MEASure:DEFine command has no effect on these delay measurements. The edges specified by the :MEASure:DEFine command only define the edges used by the :MEASure:DELay? query.

:MEASure:DEFine THResholds
Command Syntax

:MEASure:DEFine THResholds,<threshold spec>[,<source>]
<threshold spec> ::= {STANdard} | {<threshold mode>,<upper>,<middle>,<lower>}

<threshold mode> ::= {PERCent | ABSolute}
for <threshold mode> = PERCent:

<upper>, <middle>, <lower> ::= A number specifying the upper, middle, and lower threshold percentage values between Vbase and Vtop in NR3 format.
for <threshold mode> = ABSolute:

Query Syntax

<upper>, <middle>, <lower> ::= A number specifying the upper, middle, and lower threshold absolute values in NR3 format.
· STANdard threshold specification sets the lower, middle, and upper measurement thresholds to 10%, 50%, and 90% values between Vbase and Vtop.
· Threshold mode PERCent sets the measurement thresholds to any user-defined percentages between 5% and 95% of values between Vbase and Vtop.
· Threshold mode ABSolute sets the measurement thresholds to absolute values. ABSolute thresholds are dependent on channel scaling (:CHANnel<n>:RANGe or ":CHANnel<n>:SCALe" on page 285:CHANnel<n>:SCALe), probe attenuation (:CHANnel<n>:PROBe), and probe units (:CHANnel<n>:UNITs). Always set these values first before setting ABSolute thresholds.
:MEASure:DEFine? <meas_spec>[,<source>]

Return Format

<meas_spec> ::= {DELay | THResholds}
The :MEASure:DEFine? query returns the current edge specification for the delay measurements setup or the current specification for the thresholds setup. for <meas_spec> = DELay:

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

429

20 :MEASure Commands

{ <edge_spec1> | <edge_spec2> | <edge_spec1>,<edge_spec2>} <NL>
for <meas_spec> = THResholds and <threshold mode> = PERCent:

THR,PERC,<upper>,<middle>,<lower><NL>

<upper>, <middle>, <lower> ::= A number specifying the upper, middle, and lower threshold percentage values between Vbase and Vtop in NR3 format.
for <meas_spec> = THResholds and <threshold mode> = ABSolute:

THR,ABS,<upper>,<middle>,<lower><NL>

<upper>, <middle>, <lower> ::= A number specifying the upper, middle, and lower threshold voltages in NR3 format.
for <threshold spec> = STANdard:

See Also

THR,PERC,+90.0,+50.0,+10.0
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:DELay" on page 431 · ":MEASure:SOURce" on page 460 · ":CHANnel<n>:RANGe" on page 284 · ":CHANnel<n>:SCALe" on page 285 · ":CHANnel<n>:PROBe" on page 278 · ":CHANnel<n>:UNITs" on page 286

430

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:DELay

(see page 1164) Command Syntax :MEASure:DELay [<source1>][,<source2>]
<source1>, <source2> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
The :MEASure:DELay command places the instrument in the continuous measurement mode and starts a delay measurement. The measurement is taken as:
delay = t(<edge spec 2>) - t(<edge spec 1>) where the <edge spec> definitions are set by the :MEASure:DEFine command

NOTE

The :MEASure:DELay command and the front-panel delay measurement differ from the :MEASure:DELay? query.
The delay command or front-panel measurement run the delay measurement in auto-edge select mode. In this mode, you can select the edge polarity, but the instrument will select the edges that will make the best possible delay measurement. The source1 edge chosen will be the edge that meets the polarity specified and is closest to the timebase reference point. The source2 edge selected will be that edge of the specified polarity that gives the first of the following criteria: · The smallest positive delay value that is less than source1 period. · The smallest negative delay that is less than source1 period. · The smallest absolute value of delay. The :MEASure:DELay? query will make the measurement using the edges specified by the :MEASure:DEFine command.

Query Syntax

:MEASure:DELay? [<source1>][,<source2>]
The :MEASure:DELay? query measures and returns the delay between source1 and source2. The delay measurement is made from the user-defined slope and edge count of the signal connected to source1, to the defined slope and edge count of the signal connected to source2. Delay measurement slope and edge parameters are selected using the :MEASure:DEFine command. Also in the :MEASure:DEFine command, you can set upper, middle, and lower threshold values. It is the middle threshold value that is used when performing the delay query. The standard upper, middle, and lower measurement thresholds are

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

431

20 :MEASure Commands

Return Format

90%, 50%, and 10% values between Vbase and Vtop. If you want to move the delay measurement point nearer to Vtop or Vbase, you must change the threshold values with the :MEASure:DEFine THResholds command.
<value><NL>

See Also

<value> ::= floating-point number delay time in seconds in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:DEFine" on page 428 · ":MEASure:PHASe" on page 450

432

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:DUAL:CHARge

(see page 1164)

Overview Command Syntax

This measurement is available with the N2820A high sensitivity current probe when both the Primary and Secondary probe cables are used. This measurement joins the Zoom In waveform data below the probe's clamp level with Zoom Out waveform data above the probe's clamp level to create the waveform on which the measurement is made.
:MEASure:DUAL:CHARge [<interval>][,<source1>][,<source2>]

<interval> ::= {CYCLe | DISPlay}

<source1>,<source2> ::= CHANnel<n> with N2820A probe connected

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :MEASure:DUAL:CHARge command installs a charge measurement on screen. Charge measurements show the area between the waveform and the ground level. The <interval> option lets you specify the measurement interval: either an integral number of cycles, or the full screen. If <interval> is not specified, DISPlay is implied. If the optional source parameter(s) are specified, the currently specified source(s) are modified.
:MEASure:DUAL:CHARge? [<interval>][,<source1>][,<source2>]
The :MEASure:DUAL:CHARge? query measures and returns the charge measurement value.
<value><NL>

See Also

<value> ::= the charge value in Amp-hours in NR3 format
· ":MEASure:DUAL:VAMPlitude" on page 434 · ":MEASure:DUAL:VAVerage" on page 435 · ":MEASure:DUAL:VBASe" on page 436 · ":MEASure:DUAL:VPP" on page 437 · ":MEASure:DUAL:VRMS" on page 438 · "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

433

20 :MEASure Commands

:MEASure:DUAL:VAMPlitude

(see page 1164)

Overview Command Syntax

This measurement is available with the N2820A high sensitivity current probe when both the Primary and Secondary probe cables are used. This measurement joins the Zoom In waveform data below the probe's clamp level with Zoom Out waveform data above the probe's clamp level to create the waveform on which the measurement is made.
:MEASure:DUAL:VAMPlitude [<source1>][,<source2>]

<source1>,<source2> ::= CHANnel<n> with N2820A probe connected

<n> ::= 1 to (# analog channels) in NR1 format
The :MEASure:DUAL:VAMPlitude command installs a screen measurement and starts a vertical amplitude measurement. If the optional source parameter(s) are specified, the currently specified source(s) are modified.

Query Syntax Return Format

:MEASure:DUAL:VAMPlitude? [<source1>][,<source2>]
The :MEASure:DUAL:VAMPlitude? query measures and returns the vertical amplitude of the waveform. To determine the amplitude, the instrument measures Vtop and Vbase, then calculates the amplitude as follows:
vertical amplitude = Vtop - Vbase
<value><NL>

See Also

<value> ::= the amplitude of the selected waveform in NR3 format
· ":MEASure:DUAL:CHARge" on page 433 · ":MEASure:DUAL:VAVerage" on page 435 · ":MEASure:DUAL:VBASe" on page 436 · ":MEASure:DUAL:VPP" on page 437 · ":MEASure:DUAL:VRMS" on page 438 · "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460 · ":MEASure:VTOP" on page 481

434

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:DUAL:VAVerage

(see page 1164)

Overview Command Syntax

This measurement is available with the N2820A high sensitivity current probe when both the Primary and Secondary probe cables are used. This measurement joins the Zoom In waveform data below the probe's clamp level with Zoom Out waveform data above the probe's clamp level to create the waveform on which the measurement is made.
:MEASure:DUAL:VAVerage [<interval>][,<source1>][,<source2>]

<interval> ::= {CYCLe | DISPlay}

<source1>,<source2> ::= CHANnel<n> with N2820A probe connected

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :MEASure:DUAL:VAVerage command installs a screen measurement and starts an average value measurement. The <interval> option lets you specify the measurement interval: either an integral number of cycles, or the full screen. If <interval> is not specified, DISPlay is implied. If the optional source parameter(s) are specified, the currently specified source(s) are modified.
:MEASure:DUAL:VAVerage? [<interval>][,<source1>][,<source2>]
The :MEASure:DUAL:VAVerage? query returns the average value measurement.
<value><NL>

See Also

<value> ::= calculated average value in NR3 format
· ":MEASure:DUAL:CHARge" on page 433 · ":MEASure:DUAL:VAMPlitude" on page 434 · ":MEASure:DUAL:VBASe" on page 436 · ":MEASure:DUAL:VPP" on page 437 · ":MEASure:DUAL:VRMS" on page 438 · "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

435

20 :MEASure Commands

:MEASure:DUAL:VBASe

(see page 1164)

Overview Command Syntax

This measurement is available with the N2820A high sensitivity current probe when both the Primary and Secondary probe cables are used. This measurement joins the Zoom In waveform data below the probe's clamp level with Zoom Out waveform data above the probe's clamp level to create the waveform on which the measurement is made.
:MEASure:DUAL:VBASe [<source1>][,<source2>]

<source1>,<source2> ::= CHANnel<n> with N2820A probe connected

<n> ::= 1 to (# analog channels) in NR1 format
The :MEASure:DUAL:VBASe command installs a screen measurement and starts a waveform base value measurement. If the optional source parameter(s) are specified, the currently specified source(s) are modified.

Query Syntax Return Format

:MEASure:DUAL:VBASe? [<source1>][,<source2>]
The :MEASure:DUAL:VBASe? query returns the vertical value at the base of the waveform. The base value of a pulse is normally not the same as the minimum value.
<base_voltage><NL>

See Also

<base_voltage> ::= value at the base of the selected waveform in NR3 format
· ":MEASure:DUAL:CHARge" on page 433 · ":MEASure:DUAL:VAMPlitude" on page 434 · ":MEASure:DUAL:VAVerage" on page 435 · ":MEASure:DUAL:VPP" on page 437 · ":MEASure:DUAL:VRMS" on page 438 · "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460 · ":MEASure:VTOP" on page 481 · ":MEASure:VMIN" on page 476

436

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:DUAL:VPP

(see page 1164)

Overview Command Syntax

This measurement is available with the N2820A high sensitivity current probe when both the Primary and Secondary probe cables are used. This measurement joins the Zoom In waveform data below the probe's clamp level with Zoom Out waveform data above the probe's clamp level to create the waveform on which the measurement is made.
:MEASure:DUAL:VPP [<source1>][,<source2>]

<source1>,<source2> ::= CHANnel<n> with N2820A probe connected

<n> ::= 1 to (# analog channels) in NR1 format
The :MEASure:DUAL:VPP command installs a screen measurement and starts a vertical peak-to-peak measurement. If the optional source parameter(s) are specified, the currently specified source(s) are modified.

Query Syntax Return Format

:MEASure:DUAL:VPP? [<source1>][,<source2>]
The :MEASure:DUAL:VPP? query measures the maximum and minimum vertical value for the selected source, then calculates the vertical peak-to-peak value and returns that value. The peak-to-peak value (Vpp) is calculated with the following formula:
Vpp = Vmax - Vmin Vmax and Vmin are the vertical maximum and minimum values present on the selected source.
<value><NL>

See Also

<value> ::= vertical peak to peak value in NR3 format
· ":MEASure:DUAL:CHARge" on page 433 · ":MEASure:DUAL:VAMPlitude" on page 434 · ":MEASure:DUAL:VAVerage" on page 435 · ":MEASure:DUAL:VBASe" on page 436 · ":MEASure:DUAL:VRMS" on page 438 · "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460 · ":MEASure:VMAX" on page 475 · ":MEASure:VMIN" on page 476

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

437

20 :MEASure Commands

:MEASure:DUAL:VRMS

(see page 1164)

Overview Command Syntax

This measurement is available with the N2820A high sensitivity current probe when both the Primary and Secondary probe cables are used. This measurement joins the Zoom In waveform data below the probe's clamp level with Zoom Out waveform data above the probe's clamp level to create the waveform on which the measurement is made.
:MEASure:DUAL:VRMS [<interval>][,<type>][,<source1>][,<source2>]

<interval> ::= {CYCLe | DISPlay}

<type> ::= {AC | DC}

<source1>,<source2> ::= CHANnel<n> with N2820A probe connected

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :MEASure:DUAL:VRMS command installs a screen measurement and starts an RMS value measurement. The <interval> option lets you specify the measurement interval: either an integral number of cycles, or the full screen. If <interval> is not specified, DISPlay is implied. The <type> option lets you choose between a DC RMS measurement and an AC RMS measurement. If <type> is not specified, DC is implied. If the optional source parameter(s) are specified, the currently specified source(s) are modified.
:MEASure:DUAL:VRMS? [<interval>][,<type>][,<source1>][,<source2>]
The :MEASure:DUAL:VRMS? query measures and outputs the RMS value measurement.
<value><NL>

See Also

<value> ::= calculated dc RMS value in NR3 format
· ":MEASure:DUAL:CHARge" on page 433 · ":MEASure:DUAL:VAMPlitude" on page 434 · ":MEASure:DUAL:VAVerage" on page 435 · ":MEASure:DUAL:VBASe" on page 436 · ":MEASure:DUAL:VPP" on page 437 · "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460

438

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:DUTYcycle

(see page 1164) Command Syntax :MEASure:DUTYcycle [<source>]
<source> ::= {<digital channels> | CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<digital channels> ::= DIGital<d> for the MSO models <n> ::= 1 to (# of analog channels) in NR1 format <r> ::= 1-2 in NR1 format <d> ::= 0 to (# digital channels - 1) in NR1 format
The :MEASure:DUTYcycle command installs a screen measurement and starts a duty cycle measurement on the current :MEASure:SOURce. If the optional source parameter is specified, the current source is modified.

NOTE

The signal must be displayed to make the measurement. This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax Return Format

:MEASure:DUTYcycle? [<source>]
The :MEASure:DUTYcycle? query measures and outputs the duty cycle of the signal specified by the :MEASure:SOURce command. The value returned for the duty cycle is the ratio of the positive pulse width to the period. The positive pulse width and the period of the specified signal are measured, then the duty cycle is calculated with the following formula:
duty cycle = (+pulse width/period)*100
<value><NL>

See Also Example Code

<value> ::= ratio of positive pulse width to period in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:PERiod" on page 449 · ":MEASure:PWIDth" on page 453 · ":MEASure:SOURce" on page 460
· "Example Code" on page 460

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

439

20 :MEASure Commands

:MEASure:FALLtime

(see page 1164) Command Syntax :MEASure:FALLtime [<source>]
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# analog channels) in NR1 format <r> ::= 1-2 in NR1 format
The :MEASure:FALLtime command installs a screen measurement and starts a fall-time measurement. For highest measurement accuracy, set the sweep speed as fast as possible, while leaving the falling edge of the waveform on the display. If the optional source parameter is specified, the current source is modified.

NOTE

This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax Return Format

:MEASure:FALLtime? [<source>]
The :MEASure:FALLtime? query measures and outputs the fall time of the displayed falling (negative-going) edge closest to the trigger reference. The fall time is determined by measuring the time at the upper threshold of the falling edge, then measuring the time at the lower threshold of the falling edge, and calculating the fall time with the following formula:
fall time = time at lower threshold - time at upper threshold
<value><NL>

See Also

<value> ::= time in seconds between the lower threshold and upper threshold in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:RISetime" on page 457 · ":MEASure:SOURce" on page 460

440

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:FREQuency

(see page 1164) Command Syntax :MEASure:FREQuency [<source>]
<source> ::= {<digital channels> | CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<digital channels> ::= DIGital<d> for the MSO models
<n> ::= 1 to (# of analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
The :MEASure:FREQuency command installs a screen measurement and starts a frequency measurement. If the optional source parameter is specified, the current source is modified. IF the edge on the screen closest to the trigger reference is rising: THEN frequency = 1/(time at trailing rising edge - time at leading rising edge) ELSE frequency = 1/(time at trailing falling edge - time at leading falling edge)

NOTE

This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax Return Format

:MEASure:FREQuency? [<source>]
The :MEASure:FREQuency? query measures and outputs the frequency of the cycle on the screen closest to the trigger reference.
<source><NL>

See Also Example Code

<source> ::= frequency in Hertz in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460 · ":MEASure:PERiod" on page 449 · "Example Code" on page 460

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

441

20 :MEASure Commands

:MEASure:NDUTy

(see page 1164) Command Syntax :MEASure:NDUTy [<source>]
<source> ::= {<digital channels> | CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<digital channels> ::= DIGital<d> for the MSO models <d> ::= 0 to (# digital channels - 1) in NR1 format <n> ::= 1 to (# of analog channels) in NR1 format <r> ::= 1 to (# ref waveforms) in NR1 format
The :MEASure:NDUTy command installs a screen measurement and starts a negative duty cycle measurement on the current :MEASure:SOURce. If the optional source parameter is specified, the current source is modified.

NOTE

The signal must be displayed to make the measurement. This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax Return Format

:MEASure:NDUTy? [<source>]
The :MEASure:NDUTy? query measures and outputs the negative duty cycle of the signal specified by the :MEASure:SOURce command. The value returned for the duty cycle is the ratio of the negative pulse width to the period. The negative pulse width and the period of the specified signal are measured, then the duty cycle is calculated with the following formula:
-duty cycle = (-pulse width/period)*100
<value><NL>

See Also

<value> ::= ratio of negative pulse width to period in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:PERiod" on page 449 · ":MEASure:NWIDth" on page 445 · ":MEASure:SOURce" on page 460 · ":MEASure:DUTYcycle" on page 439

442

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:NEDGes

(see page 1164) Command Syntax :MEASure:NEDGes [<source>]
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# analog channels) in NR1 format <r> ::= 1-2 in NR1 format
The :MEASure:NEDGes command installs a falling edge count measurement on screen. If the optional source parameter is not specified, the current source is measured.

NOTE

This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax Return Format

:MEASure:NEDGes? [<source>]
The :MEASure:NEDGes? query measures and returns the on-screen falling edge count.
<value><NL>

See Also

<value> ::= the falling edge count in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

443

20 :MEASure Commands

:MEASure:NPULses

(see page 1164) Command Syntax :MEASure:NPULses [<source>]
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# analog channels) in NR1 format <r> ::= 1-2 in NR1 format
The :MEASure:NPULses command installs a falling pulse count measurement on screen. If the optional source parameter is not specified, the current source is measured.

NOTE

This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax Return Format

:MEASure:NPULses? [<source>]
The :MEASure:NPULses? query measures and returns the on-screen falling pulse count.
<value><NL>

See Also

<value> ::= the falling pulse count in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460

444

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:NWIDth

(see page 1164) Command Syntax :MEASure:NWIDth [<source>]
<source> ::= {<digital channels> | CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<digital channels> ::= DIGital<d> for the MSO models <n> ::= 1 to (# of analog channels) in NR1 format <r> ::= 1-2 in NR1 format <d> ::= 0 to (# digital channels - 1) in NR1 format
The :MEASure:NWIDth command installs a screen measurement and starts a negative pulse width measurement. If the optional source parameter is not specified, the current source is modified.

NOTE

This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax

:MEASure:NWIDth? [<source>]
The :MEASure:NWIDth? query measures and outputs the width of the negative pulse on the screen closest to the trigger reference using the midpoint between the upper and lower thresholds.

Return Format

FOR the negative pulse closest to the trigger point: width = (time at trailing rising edge - time at leading falling edge)
<value><NL>

See Also

<value> ::= negative pulse width in seconds in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460 · ":MEASure:PWIDth" on page 453 · ":MEASure:PERiod" on page 449

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

445

20 :MEASure Commands

:MEASure:OVERshoot

(see page 1164) Command Syntax :MEASure:OVERshoot [<source>]
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# analog channels) in NR1 format <r> ::= 1-2 in NR1 format
The :MEASure:OVERshoot command installs a screen measurement and starts an overshoot measurement. If the optional source parameter is specified, the current source is modified.

NOTE

This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax

:MEASure:OVERshoot? [<source>]
The :MEASure:OVERshoot? query measures and returns the overshoot of the edge closest to the trigger reference, displayed on the screen. The method used to determine overshoot is to make three different vertical value measurements: Vtop, Vbase, and either Vmax or Vmin, depending on whether the edge is rising or falling. For a rising edge:
overshoot = ((Vmax-Vtop) / (Vtop-Vbase)) x 100 For a falling edge:

Return Format

overshoot = ((Vbase-Vmin) / (Vtop-Vbase)) x 100 Vtop and Vbase are taken from the normal histogram of all waveform vertical values. The extremum of Vmax or Vmin is taken from the waveform interval right after the chosen edge, halfway to the next edge. This more restricted definition is used instead of the normal one, because it is conceivable that a signal may have more preshoot than overshoot, and the normal extremum would then be dominated by the preshoot of the following edge.
<overshoot><NL>

See Also

<overshoot>::= the percent of the overshoot of the selected waveform in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:PREShoot" on page 452 · ":MEASure:SOURce" on page 460 · ":MEASure:VMAX" on page 475

446

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

· ":MEASure:VTOP" on page 481 · ":MEASure:VBASe" on page 474 · ":MEASure:VMIN" on page 476

:MEASure Commands 20

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

447

20 :MEASure Commands

:MEASure:PEDGes

(see page 1164) Command Syntax :MEASure:PEDGes [<source>]
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# analog channels) in NR1 format <r> ::= 1-2 in NR1 format
The :MEASure:PEDGes command installs a rising edge count measurement on screen. If the optional source parameter is not specified, the current source is measured.

NOTE

This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax Return Format

:MEASure:PEDGes? [<source>]
The :MEASure:NEDGes? query measures and returns the on-screen rising edge count.
<value><NL>

See Also

<value> ::= the rising edge count in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460

448

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:PERiod

(see page 1164) Command Syntax :MEASure:PERiod [<source>]
<source> ::= {<digital channels> | CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<digital channels> ::= DIGital<d> for the MSO models <n> ::= 1 to (# of analog channels) in NR1 format <r> ::= 1-2 in NR1 format <d> ::= 0 to (# digital channels - 1) in NR1 format
The :MEASure:PERiod command installs a screen measurement and starts the period measurement. If the optional source parameter is specified, the current source is modified.

NOTE

This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax

:MEASure:PERiod? [<source>]
The :MEASure:PERiod? query measures and outputs the period of the cycle closest to the trigger reference on the screen. The period is measured at the midpoint of the upper and lower thresholds.

IF the edge closest to the trigger reference on screen is rising: THEN period = (time at trailing rising edge - time at leading rising edge) ELSE period = (time at trailing falling edge - time at leading falling edge)

Return Format <value><NL>

See Also Example Code

<value> ::= waveform period in seconds in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460 · ":MEASure:NWIDth" on page 445 · ":MEASure:PWIDth" on page 453 · ":MEASure:FREQuency" on page 441
· "Example Code" on page 460

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

449

20 :MEASure Commands

:MEASure:PHASe

(see page 1164)

Command Syntax :MEASure:PHASe [<source1>][,<source2>]

<source1>, <source2> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax

<r> ::= 1-2 in NR1 format
The :MEASure:PHASe command places the instrument in the continuous measurement mode and starts a phase measurement.
:MEASure:PHASe? [<source1>][,<source2>]
The :MEASure:PHASe? query measures and returns the phase between the specified sources. A phase measurement is a combination of the period and delay measurements. First, the period is measured on source1. Then the delay is measured between source1 and source2. The edges used for delay are the source1 rising edge used for the period measurement closest to the horizontal reference and the rising edge on source 2. See :MEASure:DELay for more detail on selecting the 2nd edge. The phase is calculated as follows:

phase = (delay / period of input 1) x 360 Return Format <value><NL>

See Also

<value> ::= the phase angle value in degrees in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:DELay" on page 431 · ":MEASure:PERiod" on page 449 · ":MEASure:SOURce" on page 460

450

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:PPULses

(see page 1164) Command Syntax :MEASure:PPULses [<source>]
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# analog channels) in NR1 format <r> ::= 1-2 in NR1 format
The :MEASure:PPULses command installs a rising pulse count measurement on screen. If the optional source parameter is not specified, the current source is measured.

NOTE

This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax Return Format

:MEASure:PPULses? [<source>]
The :MEASure:PPULses? query measures and returns the on-screen rising pulse count.
<value><NL>

See Also

<value> ::= the rising pulse count in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

451

20 :MEASure Commands

:MEASure:PREShoot

(see page 1164)

Command Syntax :MEASure:PREShoot [<source>]

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax Return Format

<r> ::= 1-2 in NR1 format
The :MEASure:PREShoot command installs a screen measurement and starts a preshoot measurement. If the optional source parameter is specified, the current source is modified.
:MEASure:PREShoot? [<source>]
The :MEASure:PREShoot? query measures and returns the preshoot of the edge closest to the trigger, displayed on the screen. The method used to determine preshoot is to make three different vertical value measurements: Vtop, Vbase, and either Vmin or Vmax, depending on whether the edge is rising or falling. For a rising edge:
preshoot = ((Vmin-Vbase) / (Vtop-Vbase)) x 100 For a falling edge:
preshoot = ((Vmax-Vtop) / (Vtop-Vbase)) x 100 Vtop and Vbase are taken from the normal histogram of all waveform vertical values. The extremum of Vmax or Vmin is taken from the waveform interval right before the chosen edge, halfway back to the previous edge. This more restricted definition is used instead of the normal one, because it is likely that a signal may have more overshoot than preshoot, and the normal extremum would then be dominated by the overshoot of the preceding edge.
<value><NL>

See Also

<value> ::= the percent of preshoot of the selected waveform in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460 · ":MEASure:VMIN" on page 476 · ":MEASure:VMAX" on page 475 · ":MEASure:VTOP" on page 481 · ":MEASure:VBASe" on page 474

452

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:PWIDth

(see page 1164) Command Syntax :MEASure:PWIDth [<source>]
<source> ::= {<digital channels> | CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<digital channels> ::= DIGital<d> for the MSO models <n> ::= 1 to (# of analog channels) in NR1 format <r> ::= 1-2 in NR1 format <d> ::= 0 to (# digital channels - 1) in NR1 format
The :MEASure:PWIDth command installs a screen measurement and starts the positive pulse width measurement. If the optional source parameter is specified, the current source is modified.

NOTE

This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax

:MEASure:PWIDth? [<source>]
The :MEASure:PWIDth? query measures and outputs the width of the displayed positive pulse closest to the trigger reference. Pulse width is measured at the midpoint of the upper and lower thresholds.

IF the edge on the screen closest to the trigger is falling: THEN width = (time at trailing falling edge - time at leading rising edge) ELSE width = (time at leading falling edge - time at leading rising edge)

Return Format <value><NL>

See Also

<value> ::= width of positive pulse in seconds in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460 · ":MEASure:NWIDth" on page 445 · ":MEASure:PERiod" on page 449

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

453

20 :MEASure Commands

:MEASure:RESults

(see page 1164)

Query Syntax Return Format

:MEASure:RESults?
The :MEASure:RESults? query returns the results of the continuously displayed measurements. The response to the MEASure:RESults? query is a list of comma-separated values. If more than one measurement is running continuously, the :MEASure:RESults return values are duplicated for each continuous measurement from the first to last (left to right) result displayed. Each result returned is separated from the previous result by a comma. There is a maximum of four continuous measurements that can be continuously displayed at a time. When no quick measurements are installed, the :MEASure:RESults? query returns nothing (empty string). When the count for any of the measurements is 0, the value of infinity (9.9E+37) is returned for the min, max, mean, and standard deviation.
<result_list><NL>

<result_list> ::= comma-separated list of measurement results
The following shows the order of values received for a single measurement if :MEASure:STATistics is set to ON.

Measureme current

min

max

mean

std dev

count

nt label

See Also Example Code

Measurement label, current, min, max, mean, std dev, and count are only returned if :MEASure:STATistics is ON. If :MEASure:STATistics is set to CURRent, MIN, MAX, MEAN, STDDev, or COUNt only that particular statistic value is returned for each measurement that is on. · "Introduction to :MEASure Commands" on page 420 · ":MEASure:STATistics" on page 462
' This program shows the InfiniiVision oscilloscopes' measurement ' statistics commands. ' -------------------------------------------------------------------

Option Explicit

Public myMgr As VisaComLib.ResourceManager Public myScope As VisaComLib.FormattedIO488 Public varQueryResult As Variant Public strQueryResult As String

454

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Sub Main()
On Error GoTo VisaComError
' Create the VISA COM I/O resource. Set myMgr = New VisaComLib.ResourceManager Set myScope = New VisaComLib.FormattedIO488 Set myScope.IO = myMgr.Open("TCPIP0::130.29.70.228::inst0::INSTR")
' Initialize. myScope.IO.Clear ' Clear the interface. myScope.WriteString "*RST" ' Reset to the defaults. myScope.WriteString "*CLS" ' Clear the status data structures. myScope.WriteString ":AUToscale"
' Install some measurements. myScope.WriteString ":MEASure:SOURce CHANnel1" ' Input source.
Dim MeasurementArray(3) As String MeasurementArray(0) = "FREQuency" MeasurementArray(1) = "DUTYcycle" MeasurementArray(2) = "VAMPlitude" MeasurementArray(3) = "VPP" Dim Measurement As Variant
For Each Measurement In MeasurementArray myScope.WriteString ":MEASure:" + Measurement myScope.WriteString ":MEASure:" + Measurement + "?" varQueryResult = myScope.ReadNumber ' Read measurement value. Debug.Print Measurement + ": " + FormatNumber(varQueryResult, 4)
Next
myScope.WriteString ":MEASure:STATistics:RESet" ' Reset stats. Sleep 5000 ' Wait for 5 seconds.
' Select the statistics results type. Dim ResultsTypeArray(6) As String ResultsTypeArray(0) = "CURRent" ResultsTypeArray(1) = "MINimum" ResultsTypeArray(2) = "MAXimum" ResultsTypeArray(3) = "MEAN" ResultsTypeArray(4) = "STDDev" ResultsTypeArray(5) = "COUNt" ResultsTypeArray(6) = "ON" ' All results. Dim ResultType As Variant
Dim ResultsList()
Dim ValueColumnArray(6) As String ValueColumnArray(0) = "Meas_Lbl" ValueColumnArray(1) = "Current" ValueColumnArray(2) = "Min" ValueColumnArray(3) = "Max" ValueColumnArray(4) = "Mean" ValueColumnArray(5) = "Std_Dev"

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

455

20 :MEASure Commands
ValueColumnArray(6) = "Count" Dim ValueColumn As Variant
For Each ResultType In ResultsTypeArray myScope.WriteString ":MEASure:STATistics " + ResultType
' Get the statistics results. Dim intCounter As Integer intCounter = 0 myScope.WriteString ":MEASure:RESults?" ResultsList() = myScope.ReadList
For Each Measurement In MeasurementArray
If ResultType = "ON" Then ' All statistics.
For Each ValueColumn In ValueColumnArray If VarType(ResultsList(intCounter)) <> vbString Then Debug.Print "Measure statistics result CH1, " + _ Measurement + ", "; ValueColumn + ": " + _ FormatNumber(ResultsList(intCounter), 4)
Else ' Result is a string (e.g., measurement label). Debug.Print "Measure statistics result CH1, " + _ Measurement + ", "; ValueColumn + ": " + _ ResultsList(intCounter)
End If
intCounter = intCounter + 1
Next
Else ' Specific statistic (e.g., Current, Max, Min, etc.).
Debug.Print "Measure statistics result CH1, " + _ Measurement + ", "; ResultType + ": " + _ FormatNumber(ResultsList(intCounter), 4)
intCounter = intCounter + 1
End If
Next
Next
Exit Sub
VisaComError: MsgBox "VISA COM Error:" + vbCrLf + Err.Description
End Sub

456

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:RISetime

(see page 1164) Command Syntax :MEASure: RISetime [<source>]
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# analog channels) in NR1 format <r> ::= 1-2 in NR1 format
The :MEASure:RISetime command installs a screen measurement and starts a rise-time measurement. If the optional source parameter is specified, the current source is modified.

NOTE

This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax Return Format

:MEASure: RISetime? [<source>]
The :MEASure:RISetime? query measures and outputs the rise time of the displayed rising (positive-going) edge closest to the trigger reference. For maximum measurement accuracy, set the sweep speed as fast as possible while leaving the leading edge of the waveform on the display. The rise time is determined by measuring the time at the lower threshold of the rising edge and the time at the upper threshold of the rising edge, then calculating the rise time with the following formula:
rise time = time at upper threshold - time at lower threshold
<value><NL>

See Also

<value> ::= rise time in seconds in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460 · ":MEASure:FALLtime" on page 440

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

457

20 :MEASure Commands

:MEASure:SDEViation

(see page 1164) Command Syntax :MEASure:SDEViation [<source>]
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1-2 or 1-4 (# of analog channels) in NR1 format <r> ::= 1-2 in NR1 format

NOTE

This ":MEASure:VRMS DISPlay, AC" command is the preferred syntax for making standard deviation measurements.

NOTE

The :MEASure:SDEViation command installs a screen measurement and starts std deviation measurement. If the optional source parameter is specified, the current source is modified. This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax Return Format

:MEASure:SDEViation? [<source>]
The :MEASure:SDEViation? query measures and outputs the std deviation of the selected waveform. The oscilloscope computes the std deviation on all displayed data points.
<value><NL>

See Also

<value> ::= calculated std deviation value in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:VRMS" on page 479 · ":MEASure:SOURce" on page 460

458

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:SHOW

(see page 1164)

Command Syntax :MEASure:SHOW <show>

<show> ::= {1 | ON}
The :MEASure:SHOW command enables markers for tracking measurements on the display. This feature is always on.

Query Syntax Return Format

:MEASure:SHOW?
The :MEASure:SHOW? query returns the current state of the markers.
<show><NL>

<show> ::= 1
See Also · "Introduction to :MEASure Commands" on page 420

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

459

20 :MEASure Commands

:MEASure:SOURce

(see page 1164)

Command Syntax :MEASure:SOURce <source1>[,<source2>]

<source1>,<source2> ::= {<digital channels> | CHANnel<n> | FUNCtion | MATH | WMEMory<r>}

<digital channels> ::= DIGital<d> for the MSO models

<n> ::= 1 to (# of analog channels) in NR1 format

<r> ::= 1-2 in NR1 format

Query Syntax

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :MEASure:SOURce command sets the default sources for measurements. The specified sources are used as the sources for the MEASure subsystem commands if the sources are not explicitly set with the command. If a source is specified for any measurement, the current source is changed to this new value. If :MARKer:MODE is set to OFF or MANual, setting :MEASure:SOURce to CHANnel<n>, FUNCtion, or MATH will also set :MARKer:X1Y1source to source1 and :MARKer:X2Y2source to source2.
:MEASure:SOURce?
The :MEASure:SOURce? query returns the current source selections. Source2 applies only to :MEASure:DELay and :MEASure:PHASe measurements.

NOTE

MATH is an alias for FUNCtion. The query will return FUNC if the source is FUNCtion or MATH.

Return Format <source1>,<source2><NL>

See Also: Example Code

<source1>,<source2> ::= {<digital channels> | CHAN<n> | FUNC | WMEM<r>}
· "Introduction to :MEASure Commands" on page 420 · ":MARKer:MODE" on page 391 · ":MARKer:X1Y1source" on page 393 · ":MARKer:X2Y2source" on page 395 · ":MEASure:DELay" on page 431 · ":MEASure:PHASe" on page 450
' MEASURE - The commands in the MEASure subsystem are used to make ' measurements on displayed waveforms. myScope.WriteString ":MEASure:SOURce CHANnel1" ' Source to measure. myScope.WriteString ":MEASure:FREQuency?" ' Query for frequency.

460

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20
varQueryResult = myScope.ReadNumber ' Read frequency. MsgBox "Frequency:" + vbCrLf _
+ FormatNumber(varQueryResult / 1000, 4) + " kHz" myScope.WriteString ":MEASure:DUTYcycle?" ' Query for duty cycle. varQueryResult = myScope.ReadNumber ' Read duty cycle. MsgBox "Duty cycle:" + vbCrLf _
+ FormatNumber(varQueryResult, 3) + "%" myScope.WriteString ":MEASure:RISetime?" ' Query for risetime. varQueryResult = myScope.ReadNumber ' Read risetime. MsgBox "Risetime:" + vbCrLf _
+ FormatNumber(varQueryResult * 1000000, 4) + " us" myScope.WriteString ":MEASure:VPP?" ' Query for Pk to Pk voltage. varQueryResult = myScope.ReadNumber ' Read VPP. MsgBox "Peak to peak voltage:" + vbCrLf _
+ FormatNumber(varQueryResult, 4) + " V" myScope.WriteString ":MEASure:VMAX?" ' Query for Vmax. varQueryResult = myScope.ReadNumber ' Read Vmax. MsgBox "Maximum voltage:" + vbCrLf _
+ FormatNumber(varQueryResult, 4) + " V"
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

461

20 :MEASure Commands

:MEASure:STATistics

(see page 1164)

Command Syntax :MEASure:STATistics <type>

Query Syntax Return Format

<type> ::= {{ON | 1} | CURRent | MINimum | MAXimum | MEAN | STDDev | COUNt}
The :MEASure:STATistics command determines the type of information returned by the :MEASure:RESults? query. ON means all the statistics are on.
:MEASure:STATistics?
The :MEASure:STATistics? query returns the current statistics mode.
<type><NL>

See Also Example Code

<type> ::= {ON | CURR | MIN | MAX | MEAN | STDD | COUN}
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:RESults" on page 454 · ":MEASure:STATistics:DISPlay" on page 463 · ":MEASure:STATistics:RESet" on page 466 · ":MEASure:STATistics:INCRement" on page 464
· "Example Code" on page 454

462

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:STATistics:DISPlay

Command Syntax
Query Syntax
Return Format See Also

(see page 1164)
:MEASure:STATistics:DISPlay {{0 | OFF} | {1 | ON}}
The :MEASure:STATistics:DISPlay command disables or enables the display of the measurement statistics.
:MEASure:STATistics:DISPlay?
The :MEASure:STATistics:DISPlay? query returns the state of the measurement statistics display.
{0 | 1}<NL>
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:RESults" on page 454 · ":MEASure:STATistics" on page 462 · ":MEASure:STATistics:MCOunt" on page 465 · ":MEASure:STATistics:RESet" on page 466 · ":MEASure:STATistics:INCRement" on page 464 · ":MEASure:STATistics:RSDeviation" on page 467

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

463

20 :MEASure Commands

:MEASure:STATistics:INCRement

Command Syntax See Also

(see page 1164)
:MEASure:STATistics:INCRement
This command updates the statistics once (incrementing the count by one) using the current measurement values. It corresponds to the front panel Increment Statistics softkey in the Measurement Statistics Menu. This command lets you, for example, gather statistics over multiple pulses captured in a single acquisition. To do this, change the horizontal position and enter the command for each new pulse that is measured. This command is only allowed when the oscilloscope is stopped and quick measurements are on. The command is allowed in segmented acquisition mode even though the corresponding front panel softkey is not available. · "Introduction to :MEASure Commands" on page 420 · ":MEASure:STATistics" on page 462 · ":MEASure:STATistics:DISPlay" on page 463 · ":MEASure:STATistics:RESet" on page 466 · ":MEASure:RESults" on page 454

464

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:STATistics:MCOunt

(see page 1164)

Command Syntax :MEASure:STATistics:MCOunt <setting>

<setting> ::= {INFinite | <count>}

Query Syntax Return Format

<count> ::= 2 to 2000 in NR1 format
The :MEASure:STATistics:MCOunt command specifies the maximum number of values used when calculating measurement statistics.
:MEASure:STATistics:MCOunt?
The :MEASure:STATistics:MCOunt? query returns the current measurement statistics max count setting.
<setting><NL>

<setting> ::= {INF | <count>}

See Also

<count> ::= 2 to 2000
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:RESults" on page 454 · ":MEASure:STATistics" on page 462 · ":MEASure:STATistics:DISPlay" on page 463 · ":MEASure:STATistics:RSDeviation" on page 467 · ":MEASure:STATistics:RESet" on page 466 · ":MEASure:STATistics:INCRement" on page 464

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

465

20 :MEASure Commands

:MEASure:STATistics:RESet

Command Syntax See Also
Example Code

(see page 1164)
:MEASure:STATistics:RESet
This command resets the measurement statistics, zeroing the counts. Note that the measurement (statistics) configuration is not deleted. · "Introduction to :MEASure Commands" on page 420 · ":MEASure:STATistics" on page 462 · ":MEASure:STATistics:DISPlay" on page 463 · ":MEASure:RESults" on page 454 · ":MEASure:STATistics:INCRement" on page 464 · "Example Code" on page 454

466

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:STATistics:RSDeviation

Command Syntax
Query Syntax Return Format
See Also

(see page 1164)
:MEASure:STATistics:RSDeviation {{0 | OFF} | {1 | ON}}
The :MEASure:STATistics:RSDeviation command disables or enables relative standard deviations, that is, standard deviation/mean, in the measurement statistics.
:MEASure:STATistics:RSDeviation?
The :MEASure:STATistics:RSDeviation? query returns the current relative standard deviation setting.
{0 | 1}<NL>
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:RESults" on page 454 · ":MEASure:STATistics" on page 462 · ":MEASure:STATistics:DISPlay" on page 463 · ":MEASure:STATistics:MCOunt" on page 465 · ":MEASure:STATistics:RESet" on page 466 · ":MEASure:STATistics:INCRement" on page 464

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

467

20 :MEASure Commands
:MEASure:TEDGe
(see page 1164) Query Syntax :MEASure:TEDGe? <slope><occurrence>[,<source>]
<slope> ::= direction of the waveform. A rising slope is indicated by a space or plus sign (+). A falling edge is indicated by a minus sign (-).
<occurrence> ::= the transition to be reported. If the occurrence number is one, the first crossing from the left screen edge is reported. If the number is two, the second crossing is reported, etc.
<source> ::= {<digital channels> | CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<digital channels> ::= DIGital<d> for the MSO models <n> ::= 1 to (# of analog channels) in NR1 format <r> ::= 1-2 in NR1 format <d> ::= 0 to (# digital channels - 1) in NR1 format
When the :MEASure:TEDGe query is sent, the displayed signal is searched for the specified transition. The time interval between the trigger event and this occurrence is returned as the response to the query. The sign of the slope selects a rising (+) or falling (-) edge. If no sign is specified for the slope, it is assumed to be the rising edge. The magnitude of occurrence defines the occurrence to be reported. For example, +3 returns the time for the third time the waveform crosses the midpoint threshold in the positive direction. Once this crossing is found, the oscilloscope reports the time at that crossing in seconds, with the trigger point (time zero) as the reference. If the specified crossing cannot be found, the oscilloscope reports +9.9E+37. This value is returned if the waveform does not cross the specified vertical value, or if the waveform does not cross the specified vertical value for the specific number of times in the direction specified. You can make delay and phase measurements using the MEASure:TEDGe command:
Delay = time at the nth rising or falling edge of the channel - time at the same edge of another channel Phase = (delay between channels / period of channel) x 360 For an example of making a delay and phase measurement, see ":MEASure:TEDGe Code" on page 469. If the optional source parameter is specified, the current source is modified.

468

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

NOTE

This query is not available if the source is FFT (Fast Fourier Transform).

Return Format <value><NL>

:MEASure:TEDGe Code

<value> ::= time in seconds of the specified transition in NR3 format
' Make a delay measurement between channel 1 and 2. Dim dblChan1Edge1 As Double Dim dblChan2Edge1 As Double Dim dblChan1Edge2 As Double Dim dblDelay As Double Dim dblPeriod As Double Dim dblPhase As Double

' Query time at 1st rising edge on ch1. myScope.WriteString ":MEASURE:TEDGE? +1, CHAN1"

' Read time at edge 1 on ch 1. dblChan1Edge1 = myScope.ReadNumber

' Query time at 1st rising edge on ch2. myScope.WriteString ":MEASURE:TEDGE? +1, CHAN2"

' Read time at edge 1 on ch 2. dblChan2Edge1 = myScope.ReadNumber

' Calculate delay time between ch1 and ch2. dblDelay = dblChan2Edge1 - dblChan1Edge1

' Write calculated delay time to screen. MsgBox "Delay = " + vbCrLf + CStr(dblDelay)

' Make a phase difference measurement between channel 1 and 2. ' Query time at 1st rising edge on ch1. myScope.WriteString ":MEASURE:TEDGE? +2, CHAN1"

' Read time at edge 2 on ch 1. dblChan1Edge2 = myScope.ReadNumber

' Calculate period of ch 1. dblPeriod = dblChan1Edge2 - dblChan1Edge1

See Also

' Calculate phase difference between ch1 and ch2. dblPhase = (dblDelay / dblPeriod) * 360 MsgBox "Phase = " + vbCrLf + CStr(dblPhase)
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:TVALue" on page 470 · ":MEASure:VTIMe" on page 480

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

469

20 :MEASure Commands

:MEASure:TVALue

(see page 1164) Query Syntax :MEASure:TVALue? <value>, [<slope>]<occurrence>[,<source>]
<value> ::= the vertical value that the waveform must cross. The value can be volts or a math function value such as dB, Vs, or V/s.
<slope> ::= direction of the waveform. A rising slope is indicated by a plus sign (+). A falling edge is indicated by a minus sign (-).
<occurrence> ::= the transition to be reported. If the occurrence number is one, the first crossing is reported. If the number is two, the second crossing is reported, etc.
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
When the :MEASure:TVALue? query is sent, the displayed signal is searched for the specified value level and transition. The time interval between the trigger event and this defined occurrence is returned as the response to the query. The specified value can be negative or positive. To specify a negative value, use a minus sign (-). The sign of the slope selects a rising (+) or falling (-) edge. If no sign is specified for the slope, it is assumed to be the rising edge. The magnitude of the occurrence defines the occurrence to be reported. For example, +3 returns the time for the third time the waveform crosses the specified value level in the positive direction. Once this value crossing is found, the oscilloscope reports the time at that crossing in seconds, with the trigger point (time zero) as the reference. If the specified crossing cannot be found, the oscilloscope reports +9.9E+37. This value is returned if the waveform does not cross the specified value, or if the waveform does not cross the specified value for the specified number of times in the direction specified. If the optional source parameter is specified, the current source is modified.

NOTE

This query is not available if the source is FFT (Fast Fourier Transform).

Return Format

<value><NL>
<value> ::= time in seconds of the specified value crossing in NR3 format

470

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

See Also

· "Introduction to :MEASure Commands" on page 420 · ":MEASure:TEDGe" on page 468 · ":MEASure:VTIMe" on page 480

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

471

20 :MEASure Commands

:MEASure:VAMPlitude

(see page 1164)

Command Syntax :MEASure:VAMPlitude [<source>]

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax Return Format

<r> ::= 1-2 in NR1 format
The :MEASure:VAMPlitude command installs a screen measurement and starts a vertical amplitude measurement. If the optional source parameter is specified, the current source is modified.
:MEASure:VAMPlitude? [<source>]
The :MEASure:VAMPlitude? query measures and returns the vertical amplitude of the waveform. To determine the amplitude, the instrument measures Vtop and Vbase, then calculates the amplitude as follows:
vertical amplitude = Vtop - Vbase
<value><NL>

See Also

<value> ::= the amplitude of the selected waveform in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460 · ":MEASure:VBASe" on page 474 · ":MEASure:VTOP" on page 481 · ":MEASure:VPP" on page 477

472

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:VAVerage

(see page 1164)

Command Syntax :MEASure:VAVerage [<interval>][,][<source>]

<interval> ::= {CYCLe | DISPlay}

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}

<n> ::= 1-2 or 1-4 (# of analog channels) in NR1 format

<r> ::= 1-2 in NR1 format
The :MEASure:VAVerage command installs a screen measurement and starts an average value measurement. If the optional source parameter is specified, the current source is modified. The <interval> option lets you specify the measurement interval: either an integral number of cycles, or the full screen. If <interval> is not specified, DISPlay is implied.

Query Syntax Return Format

:MEASure:VAVerage? [<interval>][,][<source>]
The :MEASure:VAVerage? query returns the average value of an integral number of periods of the signal. If at least three edges are not present, the oscilloscope averages all data points.
<value><NL>

See Also

<value> ::= calculated average value in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

473

20 :MEASure Commands

:MEASure:VBASe

(see page 1164) Command Syntax :MEASure:VBASe [<source>]
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# analog channels) in NR1 format <r> ::= 1-2 in NR1 format
The :MEASure:VBASe command installs a screen measurement and starts a waveform base value measurement. If the optional source parameter is specified, the current source is modified.

NOTE

This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax Return Format

:MEASure:VBASe? [<source>]
The :MEASure:VBASe? query returns the vertical value at the base of the waveform. The base value of a pulse is normally not the same as the minimum value.
<base_voltage><NL>

See Also

<base_voltage> ::= value at the base of the selected waveform in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460 · ":MEASure:VTOP" on page 481 · ":MEASure:VAMPlitude" on page 472 · ":MEASure:VMIN" on page 476

474

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:VMAX

(see page 1164)

Command Syntax :MEASure:VMAX [<source>]

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}

<n> ::= 1-2 or 1-4 (# of analog channels) in NR1 format

Query Syntax

<r> ::= 1-2 in NR1 format
The :MEASure:VMAX command installs a screen measurement and starts a maximum vertical value measurement. If the optional source parameter is specified, the current source is modified.
:MEASure:VMAX? [<source>]
The :MEASure:VMAX? query measures and outputs the maximum vertical value present on the selected waveform.

Return Format <value><NL>

See Also

<value> ::= maximum vertical value of the selected waveform in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460 · ":MEASure:VMIN" on page 476 · ":MEASure:VPP" on page 477 · ":MEASure:VTOP" on page 481

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

475

20 :MEASure Commands

:MEASure:VMIN

(see page 1164)

Command Syntax :MEASure:VMIN [<source>]

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax

<r> ::= 1-2 in NR1 format
The :MEASure:VMIN command installs a screen measurement and starts a minimum vertical value measurement. If the optional source parameter is specified, the current source is modified.
:MEASure:VMIN? [<source>]
The :MEASure:VMIN? query measures and outputs the minimum vertical value present on the selected waveform.

Return Format <value><NL>

See Also

<value> ::= minimum vertical value of the selected waveform in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460 · ":MEASure:VBASe" on page 474 · ":MEASure:VMAX" on page 475 · ":MEASure:VPP" on page 477

476

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:VPP

(see page 1164)

Command Syntax :MEASure:VPP [<source>]

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax Return Format

<r> ::= 1-2 in NR1 format
The :MEASure:VPP command installs a screen measurement and starts a vertical peak-to-peak measurement. If the optional source parameter is specified, the current source is modified.
:MEASure:VPP? [<source>]
The :MEASure:VPP? query measures the maximum and minimum vertical value for the selected source, then calculates the vertical peak-to-peak value and returns that value. The peak-to-peak value (Vpp) is calculated with the following formula:
Vpp = Vmax - Vmin Vmax and Vmin are the vertical maximum and minimum values present on the selected source.
<value><NL>

See Also

<value> ::= vertical peak to peak value in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460 · ":MEASure:VMAX" on page 475 · ":MEASure:VMIN" on page 476 · ":MEASure:VAMPlitude" on page 472

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

477

20 :MEASure Commands

:MEASure:VRATio

(see page 1164) Command Syntax :MEASure:VRATio [<interval>][,][<source1>][,<source2>]
<interval> ::= {CYCLe | DISPlay} <source1,2> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# analog channels) in NR1 format <r> ::= 1-2 in NR1 format
The :MEASure:VRATio command installs a ratio measurement on screen. Ratio measurements show the ratio of the ACRMS value of source1 to that of source2, expressed in dB. The <interval> option lets you specify the measurement interval: either an integral number of cycles, or the full screen. If <interval> is not specified, DISPlay is implied.

NOTE

This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax

:MEASure:VRATio? [<interval>][<source1>][,<source2>]
The :MEASure:VRATio? query measures and returns the ratio of AC RMS values of the specified sources expressed as dB.

Return Format <value><NL>

See Also

<value> ::= the ratio value in dB in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:VRMS" on page 479 · ":MEASure:SOURce" on page 460

478

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:VRMS

(see page 1164) Command Syntax :MEASure:VRMS [<interval>][,][<type>][,][<source>]
<interval> ::= {CYCLe | DISPlay} <type> ::= {AC | DC} <source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1-2 or 1-4 (# of analog channels) in NR1 format <r> ::= 1-2 in NR1 format
The :MEASure:VRMS command installs a screen measurement and starts an RMS value measurement. If the optional source parameter is specified, the current source is modified. The <interval> option lets you specify the measurement interval: either an integral number of cycles, or the full screen. If <interval> is not specified, DISPlay is implied. The <type> option lets you choose between a DC RMS measurement and an AC RMS measurement. If <type> is not specified, DC is implied.

NOTE

This command is not available if the source is FFT (Fast Fourier Transform).

Query Syntax Return Format

:MEASure:VRMS? [<interval>][,][<type>][,][<source>]
The :MEASure:VRMS? query measures and outputs the dc RMS value of the selected waveform. The dc RMS value is measured on an integral number of periods of the displayed signal. If at least three edges are not present, the oscilloscope computes the RMS value on all displayed data points.
<value><NL>

See Also

<value> ::= calculated dc RMS value in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

479

20 :MEASure Commands

:MEASure:VTIMe

(see page 1164) Query Syntax :MEASure:VTIMe? <vtime_argument>[,<source>]
<vtime_argument> ::= time from trigger in seconds <source> ::= {<digital channels> | CHANnel<n> | FUNCtion | MATH
| WMEMory<r>} <digital channels> ::= DIGital<d> for the MSO models <n> ::= 1 to (# of analog channels) in NR1 format <r> ::= 1-2 in NR1 format <d> ::= 0 to (# digital channels - 1) in NR1 format
The :MEASure:VTIMe? query returns the value at a specified time on the source specified with :MEASure:SOURce. The specified time must be on the screen and is referenced to the trigger event. If the optional source parameter is specified, the current source is modified.

NOTE

This query is not available if the source is FFT (Fast Fourier Transform).

Return Format <value><NL>

See Also

<value> ::= value at the specified time in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460 · ":MEASure:TEDGe" on page 468 · ":MEASure:TVALue" on page 470

480

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:VTOP

(see page 1164) Command Syntax :MEASure:VTOP [<source>]
<source> ::= {CHANnel<n> | FUNCtion | MATH} <n> ::= 1-2 or 1-4 (# of analog channels) in NR1 format <r> ::= 1-2 in NR1 format
The :MEASure:VTOP command installs a screen measurement and starts a waveform top value measurement.

NOTE

This query is not available if the source is FFT (Fast Fourier Transform).

Query Syntax Return Format

:MEASure:VTOP? [<source>]
The :MEASure:VTOP? query returns the vertical value at the top of the waveform. The top value of the pulse is normally not the same as the maximum value.
<value><NL>

See Also

<value> ::= vertical value at the top of the waveform in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460 · ":MEASure:VMAX" on page 475 · ":MEASure:VAMPlitude" on page 472 · ":MEASure:VBASe" on page 474

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

481

20 :MEASure Commands

:MEASure:WINDow

(see page 1164)

Command Syntax :MEASure:WINDow <type>

Query Syntax Return Format

<type> ::= {MAIN | ZOOM | AUTO}
When the zoomed time base is displayed, the :MEASure:WINDow command lets you specify the measurement window: · MAIN -- the measurement window is the upper, Main window. · ZOOM -- the measurement window is the lower, Zoom window. · AUTO -- the measurement is attempted in the lower, Zoom window; if it cannot
be made there, the upper, Main window is used.
:MEASure:WINDow?
The :MEASure:WINDow? query returns the current measurement window setting.
<type><NL>

See Also

<type> ::= {MAIN | ZOOM | AUTO}
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:SOURce" on page 460

482

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Commands 20

:MEASure:XMAX

(see page 1164) Command Syntax :MEASure:XMAX [<source>]
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1-2 or 1-4 (# of analog channels) in NR1 format <r> ::= 1-2 in NR1 format
The :MEASure:XMAX command installs a screen measurement and starts an X-at-Max-Y measurement on the selected window. If the optional source parameter is specified, the current source is modified.

NOTE

:MEASure:XMAX is an alias for :MEASure:TMAX.

Query Syntax Return Format

:MEASure:XMAX? [<source>]
The :MEASure:XMAX? query measures and returns the horizontal axis value at which the maximum vertical value occurs. If the optional source is specified, the current source is modified.
<value><NL>

See Also

<value> ::= horizontal value of the maximum in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:XMIN" on page 484 · ":MEASure:TMAX" on page 1098

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

483

20 :MEASure Commands

:MEASure:XMIN

(see page 1164) Command Syntax :MEASure:XMIN [<source>]
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1-2 or 1-4 (# of analog channels) in NR1 format <r> ::= 1-2 in NR1 format
The :MEASure:XMIN command installs a screen measurement and starts an X-at-Min-Y measurement on the selected window. If the optional source parameter is specified, the current source is modified.

NOTE

:MEASure:XMIN is an alias for :MEASure:TMIN.

Query Syntax Return Format

:MEASure:XMIN? [<source>]
The :MEASure:XMIN? query measures and returns the horizontal axis value at which the minimum vertical value occurs. If the optional source is specified, the current source is modified.
<value><NL>

See Also

<value> ::= horizontal value of the minimum in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:XMAX" on page 483 · ":MEASure:TMIN" on page 1099

484

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
21 :MEASure Power Commands

These :MEASure commands are available when the DSOX3PWR power measurements and analysis application is licensed and enabled.

Table 93 :MEASure Power Commands Summary

Command

Query

Options and Query Returns

:MEASure:ANGLe
[<source1>][,<source2 >] (see page 488)

:MEASure:ANGLe?
[<source1>][,<source2 >] (see page 488)

<source1>, <source2> ::= {CHANnel<n>}
<n> ::= 1 to (# analog channels) in NR1 format
<return_value> ::= the power phase angle in degrees in NR3 format

:MEASure:APParent
[<source1>][,<source2 >] (see page 489)

:MEASure:APParent?
[<source1>][,<source2 >] (see page 489)

<source1>, <source2> ::= {CHANnel<n>}
<n> ::= 1 to (# analog channels) in NR1 format
<return_value> ::= the apparent power value in NR3 format

:MEASure:CPLoss
[<source1>][,<source2 >] (see page 490)

:MEASure:CPLoss?
[<source1>][,<source2 >] (see page 490)

<source1>, <source2>
<source1> ::= {FUNCtion | MATH}
<source2> ::= {CHANnel<n>}
<n> ::= 1 to (# analog channels) in NR1 format
<return_value> ::= the switching loss per cycle watts value in NR3 format

:MEASure:CRESt
[<source>] (see page 491)

:MEASure:CRESt?
[<source>] (see page 491)

<source> ::= {CHANnel<n>| FUNCtion | MATH}
<n> ::= 1 to (# analog channels) in NR1 format
<return_value> ::= the crest factor value in NR3 format

485

21 :MEASure Power Commands

Table 93 :MEASure Power Commands Summary (continued)

Command

Query

Options and Query Returns

:MEASure:EFFiciency (see page 492)

:MEASure:EFFiciency? <return_value> ::= percent value

(see page 492)

in NR3 format

:MEASure:ELOSs
[<source>] (see page 493)

:MEASure:ELOSs?
[<source>] (see page 493)

<source> ::= {CHANnel<n>| FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the energy loss value in NR3 format

:MEASure:FACTor
[<source1>][,<source2 >] (see page 494)

:MEASure:FACTor?
[<source1>][,<source2 >] (see page 494)

<source1>, <source2> ::= {CHANnel<n>}
<n> ::= 1 to (# analog channels) in NR1 format
<return_value> ::= the power factor value in NR3 format

:MEASure:IPOWer (see :MEASure:IPOWer? (see <return_value> ::= the input

page 495)

page 495)

power value in NR3 format

:MEASure:OFFTime
[<source1>][,<source2 >] (see page 496)

:MEASure:OFFTime?
[<source1>][,<source2 >] (see page 496)

<source1>, <source2> ::= {CHANnel<n>}
<n> ::= 1 to (# analog channels) in NR1 format
<return_value> ::= the time in seconds in NR3 format

:MEASure:ONTime
[<source1>][,<source2 >] (see page 497)

:MEASure:ONTime?
[<source1>][,<source2 >] (see page 497)

<source1>, <source2> ::= {CHANnel<n>}
<n> ::= 1 to (# analog channels) in NR1 format
<return_value> ::= the time in seconds in NR3 format

:MEASure:OPOWer (see :MEASure:OPOWer? (see <return_value> ::= the output

page 498)

page 498)

power value in NR3 format

:MEASure:PCURrent
[<source>] (see page 499)

:MEASure:PCURrent?
[<source>] (see page 499)

<source> ::= {CHANnel<n>| FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the peak current value in NR3 format

486

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Power Commands 21

Table 93 :MEASure Power Commands Summary (continued)

Command

Query

Options and Query Returns

:MEASure:PLOSs
[<source>] (see page 500)

:MEASure:PLOSs?
[<source>] (see page 500)

<source> ::= {CHANnel<n>| FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the power loss value in NR3 format

:MEASure:REACtive
[<source1>][,<source2 >] (see page 501)

:MEASure:REACtive?
[<source1>][,<source2 >] (see page 501)

<source1>, <source2> ::= {CHANnel<n>}
<n> ::= 1 to (# analog channels) in NR1 format
<return_value> ::= the reactive power value in NR3 format

:MEASure:REAL
[<source>] (see page 502)

:MEASure:REAL?
[<source>] (see page 502)

<source> ::= {CHANnel<n>| FUNCtion | MATH}
<n> ::= 1 to (# analog channels) in NR1 format
<return_value> ::= the real power value in NR3 format

:MEASure:RIPPle
[<source>] (see page 503)

:MEASure:RIPPle?
[<source>] (see page 503)

<source> ::= {CHANnel<n>| FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= the output ripple value in NR3 format

:MEASure:TRESponse
[<source>] (see page 504)

:MEASure:TRESponse?
[<source>] (see page 504)

<source> ::= {CHANnel<n>| FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
<return_value> ::= time in seconds for the overshoot to settle back into the band in NR3 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

487

21 :MEASure Power Commands

:MEASure:ANGLe

Command Syntax

(see page 1164)
:MEASure:ANGLe [<source1>][,<source2>]

<source1>, <source2> ::= {CHANnel<n>}

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :MEASure:ANGLe command installs a power phase angle measurement on screen. The <source1> parameter is the channel probing voltage and the <source2> parameter is the channel probing current. These sources can also be specified by the :MEASure:SOURce command. Phase angle is a measure of power quality. In the power triangle (the right triangle where apparent_power2 = real_power2 + reactive_power2), phase angle is the angle between the apparent power and the real power, indicating the amount of reactive power. Small phase angles equate to less reactive power.
:MEASure:ANGLe? [<source1>][,<source2>]
The :MEASure:ANGLe query returns the measured power phase angle in degrees.
<return_value><NL>

See Also

<return_value> ::= the power phase angle in degrees in NR3 format
· ":MEASure:SOURce" on page 460 · ":POWer:QUALity:TYPE" on page 579 · ":POWer:QUALity:APPLy" on page 578

488

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Power Commands 21

:MEASure:APParent

(see page 1164)

Command Syntax :MEASure:APParent [<source1>][,<source2>]

<source1>, <source2> ::= {CHANnel<n>}

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :MEASure:APParent command installs an apparent power measurement on screen. The <source1> parameter is the channel probing voltage and the <source2> parameter is the channel probing current. These sources can also be specified by the :MEASure:SOURce command. Apparent power is a measure of power quality. It is the portion of AC line power flow due to stored energy which returns to the source in each cycle. IRMS * VRMS
:MEASure:APParent? [<source1>][,<source2>]
The :MEASure:APParent query returns the measured apparent power.
<return_value><NL>

See Also

<return_value> ::= the apparent power value in NR3 format
· ":MEASure:SOURce" on page 460 · ":POWer:QUALity:TYPE" on page 579 · ":POWer:QUALity:APPLy" on page 578

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

489

21 :MEASure Power Commands

:MEASure:CPLoss

(see page 1164)

Command Syntax :MEASure:CPLoss [<source1>][,<source2>]

<source1> ::= {FUNCtion | MATH}

<source2> ::= {CHANnel<n>}

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :MEASure:CPLoss command installs a power loss per cycle measurement on screen. The <source1> parameter is typically a math multiply waveform or other waveform that represents power (voltage * current). This source can also be specified by the :MEASure:SOURce command. Power loss per cycle is Pn = (Vdsn * Idn ) * ( Time range of zoom window) * ( Counter measurement of the voltage of the switching signal), where n is each sample. This measurement operates when in zoom mode and the counter measurement is installed on the voltage of the switching signal.
:MEASure:CPLoss? [<source1>][,<source2>]
The :MEASure:CPLoss query returns the switching loss per cycle in watts.
<return_value><NL>

See Also

<return_value> ::= the switching loss per cycle value in NR3 format
· ":MEASure:SOURce" on page 460 · ":POWer:SWITch:APPLy" on page 602

490

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Power Commands 21

:MEASure:CRESt

(see page 1164)

Command Syntax :MEASure:CRESt [<source>]

<source> ::= {CHANnel<n>| FUNCtion | MATH}

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :MEASure:CRESt command installs a crest factor measurement on screen. The <source> parameter is the channel probing current or voltage. This source can also be specified by the :MEASure:SOURce command. Crest factor is a measure of power quality. It is the ratio between the instantaneous peak AC line current (or voltage) required by the load and the RMS current (or voltage). For example: Ipeak / IRMS or Vpeak / VRMS.
:MEASure:CRESt? [<source>]
The :MEASure:CRESt query returns the measured crest factor.
<return_value><NL>

See Also

<return_value> ::= the crest factor value in NR3 format
· ":MEASure:SOURce" on page 460 · ":POWer:QUALity:TYPE" on page 579 · ":POWer:QUALity:APPLy" on page 578

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

491

21 :MEASure Power Commands

:MEASure:EFFiciency

(see page 1164)

Command Syntax

:MEASure:EFFiciency
The :MEASure:EFFiciency command installs an efficiency (output power / input power) measurement on screen. Before sending this command or query, you must specify the channels probing the input voltage, input current, output voltage, and output current (using the :POWer:SIGNals:SOURce:VOLTage<i> and :POWer:SIGNals:SOURce:CURRent<i> commands) and you must perform the automated signals setup (using the :POWer:SIGNals:AUTosetup EFFiciency command).

Query Syntax Return Format

:MEASure:EFFiciency?
The :MEASure:EFFiciency query returns the measured efficiency as a percent value.
<return_value><NL>

See Also

<return_value> ::= percent value in NR3 format
· ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:EFFiciency:APPLy" on page 552

492

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Power Commands 21

:MEASure:ELOSs

Command Syntax

(see page 1164)
:MEASure:ELOSs [<source>]

<source> ::= {CHANnel<n>| FUNCtion | MATH | WMEMory<r>}

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax Return Format

<r> ::= 1-2 in NR1 format
The :MEASure:ELOSs command installs an energy loss measurement on screen. The <source> parameter is typically a math multiply waveform or other waveform that represents power (voltage * current). This source can also be specified by the :MEASure:SOURce command. Energy loss =  (Vdsn * Idn) * sample size, where n is each sample.
:MEASure:ELOSs? [<source>]
The :MEASure:ELOSs query returns the switching loss in joules.
<return_value><NL>

See Also

<return_value> ::= the energy loss value in NR3 format
· ":MEASure:SOURce" on page 460 · ":POWer:SWITch:APPLy" on page 602

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

493

21 :MEASure Power Commands

:MEASure:FACTor

(see page 1164)

Command Syntax :MEASure:FACTor [<source1>][,<source2>]

<source1>, <source2> ::= {CHANnel<n>}

<n> ::= 1 to (# analog channels) in NR1 format
The :MEASure:FACTor command installs a power factor measurement on screen. The <source1> parameter is the channel probing voltage and the <source2> parameter is the channel probing current. These sources can also be specified by the :MEASure:SOURce command. Power factor is a measure of power quality. It is the ratio of the actual AC line power to the apparent power: Real Power / Apparent Power

Query Syntax Return Format

:MEASure:FACTor? [<source1>][,<source2>]
The :MEASure:FACTor query returns the measured power factor.
<return_value><NL>

See Also

<return_value> ::= the power factor value in NR3 format
· ":MEASure:SOURce" on page 460 · ":POWer:QUALity:TYPE" on page 579 · ":POWer:QUALity:APPLy" on page 578

494

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Power Commands 21

:MEASure:IPOWer

(see page 1164)

Command Syntax

:MEASure:IPOWer
The :MEASure:IPOWer command installs an input power measurement on screen. Before sending this command or query, you must specify the channels probing the input voltage, input current, output voltage, and output current (using the :POWer:SIGNals:SOURce:VOLTage<i> and :POWer:SIGNals:SOURce:CURRent<i> commands) and you must perform the automated signals setup (using the :POWer:SIGNals:AUTosetup EFFiciency command).

Query Syntax Return Format

:MEASure:IPOWer?
The :MEASure:IPOWer query returns the measured input power.
<return_value><NL>

See Also

<return_value> ::= the input power value in NR3 format
· ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:EFFiciency:APPLy" on page 552

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

495

21 :MEASure Power Commands

:MEASure:OFFTime

(see page 1164)

Command Syntax :MEASure:OFFTime [<source1>][,<source2>]

<source1>, <source2> ::= {CHANnel<n>}

Query Syntax

<n> ::= 1 to (# analog channels) in NR1 format
The :MEASure:OFFTime command installs an "off time" measurement on screen. Turn off time measures the difference of time between when the input AC Voltage last falls to 10% of its maximum amplitude to the time when the output DC Voltage last falls to 10% of its maximum amplitude. The <source1> parameter is the AC Voltage and the <source2> parameter is the DC Voltage. These sources can also be specified by the :MEASure:SOURce command.
:MEASure:OFFTime? [<source1>][,<source2>]
The :MEASure:OFFTime query returns the measured turn off time.

Return Format <return_value><NL>

See Also

<return_value> ::= the time in seconds in NR3 format
· ":MEASure:SOURce" on page 460 · ":POWer:ONOFf:TEST" on page 573 · ":POWer:ONOFf:APPLy" on page 570

496

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Power Commands 21

:MEASure:ONTime

(see page 1164)

Command Syntax :MEASure:ONTime [<source1>][,<source2>]

<source1>, <source2> ::= {CHANnel<n>}

Query Syntax

<n> ::= 1 to (# analog channels) in NR1 format
The :MEASure:ONTime command installs an "on time" measurement on screen. Turn on time measures the difference of time between when the input AC Voltage first rises to 10% of its maximum amplitude to the time when the output DC Voltage rises to 90% of its maximum amplitude. The <source1> parameter is the AC Voltage and the <source2> parameter is the DC Voltage. These sources can also be specified by the :MEASure:SOURce command.
:MEASure:ONTime? [<source1>][,<source2>]
The :MEASure:ONTime query returns the measured turn off time.

Return Format <return_value><NL>

See Also

<return_value> ::= the time in seconds in NR3 format
· ":MEASure:SOURce" on page 460 · ":POWer:ONOFf:TEST" on page 573 · ":POWer:ONOFf:APPLy" on page 570

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

497

21 :MEASure Power Commands

:MEASure:OPOWer

(see page 1164)

Command Syntax

:MEASure:OPOWer
The :MEASure:OPOWer command installs an output power measurement on screen. Before sending this command or query, you must specify the channels probing the input voltage, input current, output voltage, and output current (using the :POWer:SIGNals:SOURce:VOLTage<i> and :POWer:SIGNals:SOURce:CURRent<i> commands) and you must perform the automated signals setup (using the :POWer:SIGNals:AUTosetup EFFiciency command).

Query Syntax Return Format

:MEASure:OPOWer?
The :MEASure:OPOWer query returns the measured output power.
<return_value><NL>

See Also

<return_value> ::= the output power value in NR3 format
· ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:EFFiciency:APPLy" on page 552

498

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Power Commands 21

:MEASure:PCURrent

(see page 1164)

Command Syntax :MEASure:PCURrent [<source>]

<source> ::= {CHANnel<n>| FUNCtion | MATH | WMEMory<r>}

<n> ::= 1 to (# analog channels) in NR1 format

<r> ::= 1-2 in NR1 format
The :MEASure:PCURrent command installs a peak current measurement on screen. The <source> parameter is the channel probing the current. This source can also be specified by the :MEASure:SOURce command.

Query Syntax Return Format

This command measures the peak current when the power supply first turned on.
:MEASure:PCURrent? [<source>]
The :MEASure:PCURrent query returns the measured peak current.
<return_value><NL>

See Also

<return_value> ::= the peak current value in NR3 format
· ":MEASure:SOURce" on page 460 · ":POWer:INRush:APPLy" on page 564

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

499

21 :MEASure Power Commands

:MEASure:PLOSs

Command Syntax

(see page 1164)
:MEASure:PLOSs [<source>]

<source> ::= {CHANnel<n>| FUNCtion | MATH | WMEMory<r>}

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax Return Format

<r> ::= 1-2 in NR1 format
The :MEASure:PLOSs command installs a power loss measurement on screen. The <source> parameter is typically a math multiply waveform or other waveform that represents power (voltage * current). This source can also be specified by the :MEASure:SOURce command. Power loss is Pn = Vdsn * Idn, where n is each sample.
:MEASure:PLOSs? [<source>]
The :MEASure:PLOSs query returns the switching loss in watts.
<return_value><NL>

See Also

<return_value> ::= the power loss value in NR3 format
· ":MEASure:SOURce" on page 460 · ":POWer:SWITch:APPLy" on page 602

500

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Power Commands 21

:MEASure:REACtive

Command Syntax

(see page 1164)
:MEASure:REACtive [<source1>][,<source2>]

<source1>, <source2> ::= {CHANnel<n>}

<n> ::= 1 to (# analog channels) in NR1 format
The :MEASure:REACtive command installs a reactive power measurement on screen.
The <source1> parameter is the channel probing voltage and the <source2> parameter is the channel probing current. These sources can also be specified by the :MEASure:SOURce command.
Reactive power is a measure of power quality. It is the difference between apparent power and real power due to reactance. Using the power triangle (the right triangle where apparent_power2 = real_power2 + reactive_power2):

Query Syntax Return Format

Reactive power is measured in VAR (Volts-Amps-Reactive).
:MEASure:REACtive? [<source1>][,<source2>]
The :MEASure:REACtive query returns the measured reactive power.
<return_value><NL>

See Also

<return_value> ::= the reactive power value in NR3 format
· ":MEASure:SOURce" on page 460 · ":POWer:QUALity:TYPE" on page 579 · ":POWer:QUALity:APPLy" on page 578

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

501

21 :MEASure Power Commands
:MEASure:REAL
(see page 1164) Command Syntax :MEASure:REAL [<source>]
<source> ::= {CHANnel<n>| FUNCtion | MATH} <n> ::= 1 to (# analog channels) in NR1 format
The :MEASure:REAL command installs a real power measurement on screen. The <source> parameter is typically a math multiply waveform or other waveform that represents power (voltage * current). This source can also be specified by the :MEASure:SOURce command. Real power is a measure of power quality. It is the portion of power flow that, averaged over a complete cycle of the AC waveform, results in net transfer of energy in one direction.

Query Syntax Return Format

:MEASure:REAL? [<source>]
The :MEASure:REAL query returns the measured real power.
<return_value><NL>

See Also

<return_value> ::= the real power value in NR3 format
· ":MEASure:SOURce" on page 460 · ":POWer:QUALity:TYPE" on page 579 · ":POWer:QUALity:APPLy" on page 578

502

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MEASure Power Commands 21

:MEASure:RIPPle

(see page 1164)

Command Syntax :MEASure:RIPPle [<source>]

<source> ::= {CHANnel<n>| FUNCtion | MATH | WMEMory<r>}

<n> ::= 1 to (# analog channels) in NR1 format

<r> ::= 1-2 in NR1 format
The :MEASure:RIPPle command installs an output ripple measurement on screen. The <source> parameter is the channel probing the output voltage. This source can also be specified by the :MEASure:SOURce command.

Query Syntax Return Format

Output ripple is: Vmax - Vmin.
:MEASure:RIPPle? [<source>]
The :MEASure:RIPPle query returns the measured output ripple.
<return_value><NL>

See Also

<return_value> ::= the output ripple value in NR3 format
· ":MEASure:SOURce" on page 460 · ":POWer:RIPPle:APPLy" on page 580

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

503

21 :MEASure Power Commands

:MEASure:TRESponse

(see page 1164)

Command Syntax :MEASure:TRESponse [<source>]

<source> ::= {CHANnel<n>| FUNCtion | MATH | WMEMory<r>}

<n> ::= 1 to (# analog channels) in NR1 format

<r> ::= 1-2 in NR1 format
The :MEASure:TRESponse command installs a transient response time measurement on screen. The <source> parameter is the channel probing the output voltage. This source can also be specified by the :MEASure:SOURce command.

Query Syntax Return Format

Transient response time = t2 ­ t1, where: · t1 = The first time a voltage waveform exits the settling band. · t2 = The last time it enters into the settling band. · Settling band = +/-overshoot % of the steady state output voltage.
:MEASure:TRESponse? [<source>]
The :MEASure:TRESponse query returns the measured transient response time.
<return_value><NL>

See Also

<return_value> ::= time in seconds for the overshoot to settle back into the band in NR3 format
· ":MEASure:SOURce" on page 460 · ":POWer:TRANsient:APPLy" on page 608

504

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
22 :MTESt Commands

The MTESt subsystem commands and queries control the mask test features. See "Introduction to :MTESt Commands" on page 507.

Table 94 :MTESt Commands Summary

Command

Query

Options and Query Returns

:MTESt:ALL {{0 | OFF}
| {1 | ON}} (see page 510)

:MTESt:ALL? (see page 510)

{0 | 1}

:MTESt:AMASk:CREate n/a

n/a

(see page 511)

:MTESt:AMASk:SOURce
<source> (see page 512)

:MTESt:AMASk:SOURce? (see page 512)

<source> ::= CHANnel<n> <n> ::= {1 | 2 | 3 | 4} for 4ch models <n> ::= {1 | 2} for 2ch models

:MTESt:AMASk:UNITs

:MTESt:AMASk:UNITs?

<units> (see page 513) (see page 513)

<units> ::= {CURRent | DIVisions}

:MTESt:AMASk:XDELta :MTESt:AMASk:XDELta? <value> ::= X delta value in NR3

<value> (see page 514) (see page 514)

format

:MTESt:AMASk:YDELta :MTESt:AMASk:YDELta? <value> ::= Y delta value in NR3

<value> (see page 515) (see page 515)

format

n/a

:MTESt:COUNt:FWAVefor <failed> ::= number of failed

ms? [CHANnel<n>] (see waveforms in NR1 format page 516)

:MTESt:COUNt:RESet

n/a

n/a

(see page 517)

n/a

:MTESt:COUNt:TIME?

<time> ::= elapsed seconds in NR3

(see page 518)

format

n/a

:MTESt:COUNt:WAVeform <count> ::= number of waveforms

s? (see page 519)

in NR1 format

:MTESt:DATA <mask> (see page 520)

:MTESt:DATA? (see page 520)

<mask> ::= data in IEEE 488.2 # format.

505

22 :MTESt Commands

Table 94 :MTESt Commands Summary (continued)

Command

Query

Options and Query Returns

:MTESt:DELete (see

n/a

n/a

page 521)

:MTESt:ENABle {{0 |
OFF} | {1 | ON}} (see page 522)

:MTESt:ENABle? (see page 522)

{0 | 1}

:MTESt:LOCK {{0 |
OFF} | {1 | ON}} (see page 523)

:MTESt:LOCK? (see page 523)

{0 | 1}

:MTESt:RMODe <rmode> :MTESt:RMODe? (see

(see page 524)

page 524)

<rmode> ::= {FORever | TIME | SIGMa | WAVeforms}

:MTESt:RMODe:FACTion:
MEASure {{0 | OFF} |
{1 | ON}} (see page 525)

:MTESt:RMODe:FACTion:
MEASure? (see page 525)

{0 | 1}

:MTESt:RMODe:FACTion: :MTESt:RMODe:FACTion: {0 | 1} PRINt {{0 | OFF} | {1 PRINt? (see page 526) | ON}} (see page 526)

:MTESt:RMODe:FACTion: :MTESt:RMODe:FACTion: {0 | 1} SAVE {{0 | OFF} | {1 SAVE? (see page 527) | ON}} (see page 527)

:MTESt:RMODe:FACTion: :MTESt:RMODe:FACTion: {0 | 1} STOP {{0 | OFF} | {1 STOP? (see page 528) | ON}} (see page 528)

:MTESt:RMODe:SIGMa

:MTESt:RMODe:SIGMa?

<level> (see page 529) (see page 529)

<level> ::= from 0.1 to 9.3 in NR3 format

:MTESt:RMODe:TIME
<seconds> (see page 530)

:MTESt:RMODe:TIME? (see page 530)

<seconds> ::= from 1 to 86400 in NR3 format

:MTESt:RMODe:WAVeform :MTESt:RMODe:WAVeform <count> ::= number of waveforms

s <count> (see

s? (see page 531)

in NR1 format

page 531)

:MTESt:SCALe:BIND {{0
| OFF} | {1 | ON}} (see page 532)

:MTESt:SCALe:BIND? (see page 532)

{0 | 1}

:MTESt:SCALe:X1
<x1_value> (see page 533)

:MTESt:SCALe:X1? (see <x1_value> ::= X1 value in NR3

page 533)

format

:MTESt:SCALe:XDELta
<xdelta_value> (see page 534)

:MTESt:SCALe:XDELta? <xdelta_value> ::= X delta value

(see page 534)

in NR3 format

506

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MTESt Commands 22

Table 94 :MTESt Commands Summary (continued)

Command

Query

Options and Query Returns

:MTESt:SCALe:Y1
<y1_value> (see page 535)

:MTESt:SCALe:Y1? (see <y1_value> ::= Y1 value in NR3

page 535)

format

:MTESt:SCALe:Y2
<y2_value> (see page 536)

:MTESt:SCALe:Y2? (see <y2_value> ::= Y2 value in NR3

page 536)

format

:MTESt:SOURce
<source> (see page 537)

:MTESt:SOURce? (see page 537)

<source> ::= {CHANnel<n> | NONE} <n> ::= {1 | 2 | 3 | 4} for 4ch models <n> ::= {1 | 2} for 2ch models

n/a

:MTESt:TITLe? (see

<title> ::= a string of up to 128

page 538)

ASCII characters

Introduction to :MTESt Commands

Mask testing automatically compares the current displayed waveform with the boundaries of a set of polygons that you define. Any waveform or sample that falls within the boundaries of one or more polygons is recorded as a failure.

Reporting the Setup Use :MTESt? to query setup information for the MTESt subsystem.

Return Format The following is a sample response from the :MTESt? query. In this case, the query was issued following a *RST command.

Example Code

:MTES:SOUR CHAN1;ENAB 0;LOCK 1;:MTES:AMAS:SOUR CHAN1;UNIT DIV;XDEL +2.50000000E-001;YDEL +2.50000000E-001;:MTES:SCAL:X1 +200.000E-06;XDEL +400.000E-06;Y1 -3.00000E+00;Y2 +3.00000E+00;BIND 0;:MTES:RMOD FOR;RMOD:TIME +1E+00;WAV 1000;SIGM +6.0E+00;:MTES:RMOD:FACT:STOP 0;PRIN 0;SAVE 0

' Mask testing commands example. ' -------------------------------------------------------------------

Option Explicit

Public myMgr As VisaComLib.ResourceManager Public myScope As VisaComLib.FormattedIO488 Public varQueryResult As Variant Public strQueryResult As String

Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Sub Main()

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

507

22 :MTESt Commands

On Error GoTo VisaComError
' Create the VISA COM I/O resource. Set myMgr = New VisaComLib.ResourceManager Set myScope = New VisaComLib.FormattedIO488 Set myScope.IO = _
myMgr.Open("USB0::0x0957::0x17A6::US50210029::0::INSTR") myScope.IO.Clear ' Clear the interface.
' Make sure oscilloscope is running. myScope.WriteString ":RUN"
' Set mask test termination conditions. myScope.WriteString ":MTESt:RMODe SIGMa" myScope.WriteString ":MTESt:RMODe?" strQueryResult = myScope.ReadString Debug.Print "Mask test termination mode: " + strQueryResult
myScope.WriteString ":MTESt:RMODe:SIGMa 4.2" myScope.WriteString ":MTESt:RMODe:SIGMa?" varQueryResult = myScope.ReadNumber Debug.Print "Mask test termination 'test sigma': " + _
FormatNumber(varQueryResult)
' Use auto-mask to create mask. myScope.WriteString ":MTESt:AMASk:SOURce CHANnel1" myScope.WriteString ":MTESt:AMASk:SOURce?" strQueryResult = myScope.ReadString Debug.Print "Mask test auto-mask source: " + strQueryResult
myScope.WriteString ":MTESt:AMASk:UNITs DIVisions" myScope.WriteString ":MTESt:AMASk:UNITs?" strQueryResult = myScope.ReadString Debug.Print "Mask test auto-mask units: " + strQueryResult
myScope.WriteString ":MTESt:AMASk:XDELta 0.1" myScope.WriteString ":MTESt:AMASk:XDELta?" varQueryResult = myScope.ReadNumber Debug.Print "Mask test auto-mask X delta: " + _
FormatNumber(varQueryResult)
myScope.WriteString ":MTESt:AMASk:YDELta 0.1" myScope.WriteString ":MTESt:AMASk:YDELta?" varQueryResult = myScope.ReadNumber Debug.Print "Mask test auto-mask Y delta: " + _
FormatNumber(varQueryResult)
' Enable "Auto Mask Created" event (bit 10, &H400) myScope.WriteString "*CLS" myScope.WriteString ":MTEenable " + CStr(CInt("&H400"))
' Create mask. myScope.WriteString ":MTESt:AMASk:CREate" Debug.Print "Auto-mask created, mask test automatically enabled."
' Set up timeout variables.

508

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MTESt Commands 22
Dim lngTimeout As Long ' Max millisecs to wait. Dim lngElapsed As Long lngTimeout = 60000 ' 60 seconds.
' Wait until mask is created. lngElapsed = 0 Do While lngElapsed <= lngTimeout
myScope.WriteString ":OPERegister:CONDition?" varQueryResult = myScope.ReadNumber ' Operation Status Condition Register MTE bit (bit 9, &H200). If (varQueryResult And &H200) <> 0 Then
Exit Do Else
Sleep 100 ' Small wait to prevent excessive queries. lngElapsed = lngElapsed + 100 End If Loop
' Look for RUN bit = stopped (mask test termination). lngElapsed = 0 Do While lngElapsed <= lngTimeout
myScope.WriteString ":OPERegister:CONDition?" varQueryResult = myScope.ReadNumber ' Operation Status Condition Register RUN bit (bit 3, &H8). If (varQueryResult And &H8) = 0 Then
Exit Do Else
Sleep 100 ' Small wait to prevent excessive queries. lngElapsed = lngElapsed + 100 End If Loop
' Get total waveforms, failed waveforms, and test time. myScope.WriteString ":MTESt:COUNt:WAVeforms?" strQueryResult = myScope.ReadString Debug.Print "Mask test total waveforms: " + strQueryResult
myScope.WriteString ":MTESt:COUNt:FWAVeforms?" strQueryResult = myScope.ReadString Debug.Print "Mask test failed waveforms: " + strQueryResult
myScope.WriteString ":MTESt:COUNt:TIME?" strQueryResult = myScope.ReadString Debug.Print "Mask test elapsed seconds: " + strQueryResult
Exit Sub
VisaComError: MsgBox "VISA COM Error:" + vbCrLf + Err.Description
End Sub

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

509

22 :MTESt Commands

:MTESt:ALL

(see page 1164)

Command Syntax :MTESt:ALL <on_off>

<on_off> ::= {{1 | ON} | {0 | OFF}}
The :MTESt:ALL command specifies the channel(s) that are included in the mask test: · ON -- All displayed analog channels are included in the mask test. · OFF -- Just the selected source channel is included in the test.

Query Syntax Return Format

:MTESt:ENABle?
The :MTESt:ENABle? query returns the current setting.
<on_off><NL>

<on_off> ::= {1 | 0}
See Also · "Introduction to :MTESt Commands" on page 507

510

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MTESt Commands 22

:MTESt:AMASk:CREate

Command Syntax See Also
Example Code

(see page 1164)
:MTESt:AMASk:CREate
The :MTESt:AMASk:CREate command automatically constructs a mask around the current selected channel, using the tolerance parameters defined by the :MTESt:AMASk:XDELta, :MTESt:AMASk:YDELta, and :MTESt:AMASk:UNITs commands. The mask only encompasses the portion of the waveform visible on the display, so you must ensure that the waveform is acquired and displayed consistently to obtain repeatable results. The :MTESt:SOURce command selects the channel and should be set before using this command. · "Introduction to :MTESt Commands" on page 507 · ":MTESt:AMASk:XDELta" on page 514 · ":MTESt:AMASk:YDELta" on page 515 · ":MTESt:AMASk:UNITs" on page 513 · ":MTESt:AMASk:SOURce" on page 512 · ":MTESt:SOURce" on page 537 · "Example Code" on page 507

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

511

22 :MTESt Commands

:MTESt:AMASk:SOURce

(see page 1164)

Command Syntax :MTESt:AMASk:SOURce <source>

<source> ::= CHANnel<n>

<n> ::= 1 to (# analog channels) in NR1 format
The :MTESt:AMASk:SOURce command selects the source for the interpretation of the :MTESt:AMASk:XDELta and :MTESt:AMASk:YDELta parameters when :MTESt:AMASk:UNITs is set to CURRent.

When UNITs are CURRent, the XDELta and YDELta parameters are defined in terms of the channel units, as set by the :CHANnel<n>:UNITs command, of the selected source. Suppose that UNITs are CURRent and that you set SOURce to CHANNEL1, which is using units of volts. Then you can define AMASk:XDELta in terms of volts and AMASk:YDELta in terms of seconds.

Query Syntax Return Format

This command is the same as the :MTESt:SOURce command.
:MTESt:AMASk:SOURce?
The :MTESt:AMASk:SOURce? query returns the currently set source.
<source> ::= CHAN<n>

See Also Example Code

<n> ::= 1 to (# analog channels) in NR1 format
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:AMASk:XDELta" on page 514 · ":MTESt:AMASk:YDELta" on page 515 · ":MTESt:AMASk:UNITs" on page 513 · ":MTESt:SOURce" on page 537
· "Example Code" on page 507

512

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MTESt Commands 22

:MTESt:AMASk:UNITs

(see page 1164)

Command Syntax :MTESt:AMASk:UNITs <units>

Query Syntax

<units> ::= {CURRent | DIVisions}
The :MTESt:AMASk:UNITs command alters the way the mask test subsystem interprets the tolerance parameters for automasking as defined by :MTESt:AMASk:XDELta and :MTESt:AMASk:YDELta commands. · CURRent -- the mask test subsystem uses the units as set by the
:CHANnel<n>:UNITs command, usually time for X and voltage for Y. · DIVisions -- the mask test subsystem uses the graticule as the measurement
system, so tolerance settings are specified as parts of a screen division. The mask test subsystem maintains separate XDELta and YDELta settings for CURRent and DIVisions. Thus, XDELta and YDELta are not converted to new values when the UNITs setting is changed.
:MTESt:AMASk:UNITs?
The :MTESt:AMASk:UNITs query returns the current measurement units setting for the mask test automask feature.

Return Format <units><NL>

See Also

<units> ::= {CURR | DIV}
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:AMASk:XDELta" on page 514 · ":MTESt:AMASk:YDELta" on page 515 · ":CHANnel<n>:UNITs" on page 286 · ":MTESt:AMASk:SOURce" on page 512 · ":MTESt:SOURce" on page 537

Example Code · "Example Code" on page 507

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

513

22 :MTESt Commands

:MTESt:AMASk:XDELta

(see page 1164)

Command Syntax :MTESt:AMASk:XDELta <value>

Query Syntax Return Format

<value> ::= X delta value in NR3 format
The :MTESt:AMASk:XDELta command sets the tolerance in the X direction around the waveform for the automasking feature. The absolute value of the tolerance will be added and subtracted to horizontal values of the waveform to determine the boundaries of the mask. The horizontal tolerance value is interpreted based on the setting specified by the :MTESt:AMASk:UNITs command; thus, if you specify 250-E3, the setting for :MTESt:AMASk:UNITs is CURRent, and the current setting specifies time in the horizontal direction, the tolerance will be ±250 ms. If the setting for :MTESt:AMASk:UNITs is DIVisions, the same X delta value will set the tolerance to ±250 millidivisions, or 1/4 of a division.
:MTESt:AMASk:XDELta?
The :MTEST:AMASk:XDELta? query returns the current setting of the X tolerance for automasking. If your computer program will interpret this value, it should also request the current measurement system using the :MTESt:AMASk:UNITs query.
<value><NL>

See Also Example Code

<value> ::= X delta value in NR3 format
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:AMASk:UNITs" on page 513 · ":MTESt:AMASk:YDELta" on page 515 · ":MTESt:AMASk:SOURce" on page 512 · ":MTESt:SOURce" on page 537
· "Example Code" on page 507

514

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MTESt Commands 22

:MTESt:AMASk:YDELta

(see page 1164)

Command Syntax :MTESt:AMASk:YDELta <value>

Query Syntax Return Format

<value> ::= Y delta value in NR3 format
The :MTESt:AMASk:YDELta command sets the vertical tolerance around the waveform for the automasking feature. The absolute value of the tolerance will be added and subtracted to vertical values of the waveform to determine the boundaries of the mask. The vertical tolerance value is interpreted based on the setting specified by the :MTESt:AMASk:UNITs command; thus, if you specify 250-E3, the setting for :MTESt:AMASk:UNITs is CURRent, and the current setting specifies voltage in the vertical direction, the tolerance will be ±250 mV. If the setting for :MTESt:AMASk:UNITs is DIVisions, the same Y delta value will set the tolerance to ±250 millidivisions, or 1/4 of a division.
:MTESt:AMASk:YDELta?
The :MTESt:AMASk:YDELta? query returns the current setting of the Y tolerance for automasking. If your computer program will interpret this value, it should also request the current measurement system using the :MTESt:AMASk:UNITs query.
<value><NL>

See Also Example Code

<value> ::= Y delta value in NR3 format
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:AMASk:UNITs" on page 513 · ":MTESt:AMASk:XDELta" on page 514 · ":MTESt:AMASk:SOURce" on page 512 · ":MTESt:SOURce" on page 537
· "Example Code" on page 507

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

515

22 :MTESt Commands

:MTESt:COUNt:FWAVeforms

(see page 1164)

Query Syntax :MTESt:COUNt:FWAVeforms? [CHANnel<n>]

Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :MTESt:COUNt:FWAVeforms? query returns the total number of failed waveforms in the current mask test run. This count is for all regions and all waveforms collected on the channel specified by the optional parameter or collected on the currently specified source channel (:MTESt:SOURce) if there is no parameter.
<failed><NL>

See Also Example Code

<failed> ::= number of failed waveforms in NR1 format.
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:COUNt:WAVeforms" on page 519 · ":MTESt:COUNt:TIME" on page 518 · ":MTESt:COUNt:RESet" on page 517 · ":MTESt:SOURce" on page 537
· "Example Code" on page 507

516

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MTESt Commands 22

:MTESt:COUNt:RESet

Command Syntax See Also

(see page 1164)
:MTESt:COUNt:RESet
The :MTESt:COUNt:RESet command resets the mask statistics. · "Introduction to :MTESt Commands" on page 507 · ":MTESt:COUNt:WAVeforms" on page 519 · ":MTESt:COUNt:FWAVeforms" on page 516 · ":MTESt:COUNt:TIME" on page 518

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

517

22 :MTESt Commands

:MTESt:COUNt:TIME

(see page 1164)

Query Syntax Return Format

:MTESt:COUNt:TIME?
The :MTESt:COUNt:TIME? query returns the elapsed time in the current mask test run.
<time><NL>

See Also Example Code

<time> ::= elapsed seconds in NR3 format.
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:COUNt:WAVeforms" on page 519 · ":MTESt:COUNt:FWAVeforms" on page 516 · ":MTESt:COUNt:RESet" on page 517
· "Example Code" on page 507

518

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MTESt Commands 22

:MTESt:COUNt:WAVeforms

(see page 1164)

Query Syntax Return Format

:MTESt:COUNt:WAVeforms?
The :MTESt:COUNt:WAVeforms? query returns the total number of waveforms acquired in the current mask test run.
<count><NL>

See Also Example Code

<count> ::= number of waveforms in NR1 format.
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:COUNt:FWAVeforms" on page 516 · ":MTESt:COUNt:TIME" on page 518 · ":MTESt:COUNt:RESet" on page 517
· "Example Code" on page 507

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

519

22 :MTESt Commands

:MTESt:DATA

(see page 1164)

Command Syntax :MTESt:DATA <mask>

<mask> ::= binary block data in IEEE 488.2 # format.
The :MTESt:DATA command loads a mask from binary block data. These are the data bytes found in a *.msk file.

Query Syntax Return Format

:MTESt:DATA?
The :MTESt:DATA? query returns a mask in binary block data format. The format for the data transmission is the # definite-length format defined in the IEEE 488.2 specification.
<mask><NL>

See Also

<mask> ::= binary block data in IEEE 488.2 # format
· ":SAVE:MASK[:STARt]" on page 632 · ":RECall:MASK[:STARt]" on page 617

520

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MTESt Commands 22

:MTESt:DELete

Command Syntax See Also

(see page 1164)
:MTESt:DELete
The :MTESt:DELete command clears the currently loaded mask. · "Introduction to :MTESt Commands" on page 507 · ":MTESt:AMASk:CREate" on page 511

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

521

22 :MTESt Commands

:MTESt:ENABle

(see page 1164)

Command Syntax :MTESt:ENABle <on_off>

<on_off> ::= {{1 | ON} | {0 | OFF}}
The :MTESt:ENABle command enables or disables the mask test features. · ON -- Enables the mask test features. · OFF -- Disables the mask test features.

Query Syntax Return Format

:MTESt:ENABle?
The :MTESt:ENABle? query returns the current state of mask test features.
<on_off><NL>

<on_off> ::= {1 | 0}
See Also · "Introduction to :MTESt Commands" on page 507

522

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MTESt Commands 22

:MTESt:LOCK

(see page 1164)

Command Syntax :MTESt:LOCK <on_off>

<on_off> ::= {{1 | ON} | {0 | OFF}}
The :MTESt:LOCK command enables or disables the mask lock feature: · ON -- Locks a mask to the SOURce. As the vertical or horizontal scaling or
position of the SOURce changes, the mask is redrawn accordingly. · OFF -- The mask is static and does not move.

Query Syntax Return Format

:MTESt:LOCK?
The :MTESt:LOCK? query returns the current mask lock setting.
<on_off><NL>

See Also

<on_off> ::= {1 | 0}
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:SOURce" on page 537

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

523

22 :MTESt Commands

:MTESt:RMODe

(see page 1164)

Command Syntax :MTESt:RMODe <rmode>

Query Syntax Return Format

<rmode> ::= {FORever | SIGMa | TIME | WAVeforms}
The :MTESt:RMODe command specifies the termination conditions for the mask test: · FORever -- the mask test runs until it is turned off. · SIGMa -- the mask test runs until the Sigma level is reached. This level is set by
the ":MTESt:RMODe:SIGMa" on page 529 command. · TIME -- the mask test runs for a fixed amount of time. The amount of time is set
by the ":MTESt:RMODe:TIME" on page 530 command. · WAVeforms -- the mask test runs until a fixed number of waveforms are
acquired. The number of waveforms is set by the ":MTESt:RMODe:WAVeforms" on page 531 command.
:MTESt:RMODe?
The :MTESt:RMODe? query returns the currently set termination condition.
<rmode><NL>

See Also Example Code

<rmode> ::= {FOR | SIGM | TIME | WAV}
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:RMODe:SIGMa" on page 529 · ":MTESt:RMODe:TIME" on page 530 · ":MTESt:RMODe:WAVeforms" on page 531
· "Example Code" on page 507

524

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MTESt Commands 22

:MTESt:RMODe:FACTion:MEASure

(see page 1164)

Command Syntax :MTESt:RMODe:FACTion:MEASure <on_off>

<on_off> ::= {{1 | ON} | {0 | OFF}}
The :MTESt:RMODe:FACTion:MEASure command sets measuring only mask failures on or off.

When ON, measurements and measurement statistics run only on waveforms that contain a mask violation; passing waveforms do not affect measurements and measurement statistics. This mode is not available when the acquisition mode is set to Averaging.

Query Syntax Return Format

:MTESt:RMODe:FACTion:MEASure?
The :MTESt:RMODe:FACTion:MEASure? query returns the current mask failure measure setting.
<on_off><NL>

See Also

<on_off> ::= {1 | 0}
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:RMODe:FACTion:PRINt" on page 526 · ":MTESt:RMODe:FACTion:SAVE" on page 527 · ":MTESt:RMODe:FACTion:STOP" on page 528

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

525

22 :MTESt Commands

:MTESt:RMODe:FACTion:PRINt

(see page 1164) Command Syntax :MTESt:RMODe:FACTion:PRINt <on_off>
<on_off> ::= {{1 | ON} | {0 | OFF}}
The :MTESt:RMODe:FACTion:PRINt command sets printing on mask failures on or off.

NOTE

Setting :MTESt:RMODe:FACTion:PRINt ON automatically sets :MTESt:RMODe:FACTion:SAVE OFF.

Query Syntax Return Format

See Chapter 17, ":HARDcopy Commands," starting on page 367 for more information on setting the hardcopy device and formatting options.
:MTESt:RMODe:FACTion:PRINt?
The :MTESt:RMODe:FACTion:PRINt? query returns the current mask failure print setting.
<on_off><NL>

See Also

<on_off> ::= {1 | 0}
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:RMODe:FACTion:MEASure" on page 525 · ":MTESt:RMODe:FACTion:SAVE" on page 527 · ":MTESt:RMODe:FACTion:STOP" on page 528

526

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MTESt Commands 22

:MTESt:RMODe:FACTion:SAVE

(see page 1164) Command Syntax :MTESt:RMODe:FACTion:SAVE <on_off>
<on_off> ::= {{1 | ON} | {0 | OFF}}
The :MTESt:RMODe:FACTion:SAVE command sets saving on mask failures on or off.

NOTE

Setting :MTESt:RMODe:FACTion:SAVE ON automatically sets :MTESt:RMODe:FACTion:PRINt OFF.

Query Syntax Return Format

See Chapter 26, ":SAVE Commands," starting on page 621 for more information on save options.
:MTESt:RMODe:FACTion:SAVE?
The :MTESt:RMODe:FACTion:SAVE? query returns the current mask failure save setting.
<on_off><NL>

See Also

<on_off> ::= {1 | 0}
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:RMODe:FACTion:MEASure" on page 525 · ":MTESt:RMODe:FACTion:PRINt" on page 526 · ":MTESt:RMODe:FACTion:STOP" on page 528

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

527

22 :MTESt Commands

:MTESt:RMODe:FACTion:STOP

(see page 1164)

Command Syntax :MTESt:RMODe:FACTion:STOP <on_off>

Query Syntax Return Format

<on_off> ::= {{1 | ON} | {0 | OFF}}
The :MTESt:RMODe:FACTion:STOP command sets stopping on a mask failure on or off. When this setting is ON and a mask violation is detected, the mask test is stopped and the acquisition system is stopped.
:MTESt:RMODe:FACTion:STOP?
The :MTESt:RMODe:FACTion:STOP? query returns the current mask failure stop setting.
<on_off><NL>

See Also

<on_off> ::= {1 | 0}
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:RMODe:FACTion:MEASure" on page 525 · ":MTESt:RMODe:FACTion:PRINt" on page 526 · ":MTESt:RMODe:FACTion:SAVE" on page 527

528

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MTESt Commands 22

:MTESt:RMODe:SIGMa

(see page 1164)

Command Syntax :MTESt:RMODe:SIGMa <level>

Query Syntax Return Format

<level> ::= from 0.1 to 9.3 in NR3 format
When the :MTESt:RMODe command is set to SIGMa, the :MTESt:RMODe:SIGMa command sets the test sigma level to which a mask test runs. Test sigma is the best achievable process sigma, assuming no failures. (Process sigma is calculated using the number of failures per test.) The test sigma level indirectly specifies the number of waveforms that must be tested (in order to reach the sigma level).
:MTESt:RMODe:SIGMa?
The :MTESt:RMODe:SIGMa? query returns the current Sigma level setting.
<level><NL>

See Also Example Code

<level> ::= from 0.1 to 9.3 in NR3 format
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:RMODe" on page 524 · "Example Code" on page 507

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

529

22 :MTESt Commands

:MTESt:RMODe:TIME

(see page 1164)

Command Syntax :MTESt:RMODe:TIME <seconds>

<seconds> ::= from 1 to 86400 in NR3 format
When the :MTESt:RMODe command is set to TIME, the :MTESt:RMODe:TIME command sets the number of seconds for a mask test to run.

Query Syntax Return Format

:MTESt:RMODe:TIME?
The :MTESt:RMODe:TIME? query returns the number of seconds currently set.
<seconds><NL>

See Also

<seconds> ::= from 1 to 86400 in NR3 format
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:RMODe" on page 524

530

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MTESt Commands 22

:MTESt:RMODe:WAVeforms

(see page 1164)

Command Syntax :MTESt:RMODe:WAVeforms <count>

Query Syntax

<count> ::= number of waveforms in NR1 format from 1 to 2,000,000,000
When the :MTESt:RMODe command is set to WAVeforms, the :MTESt:RMODe:WAVeforms command sets the number of waveform acquisitions that are mask tested.
:MTESt:RMODe:WAVeforms?
The :MTESt:RMODe:WAVeforms? query returns the number of waveforms currently set.

Return Format <count><NL>

See Also

<count> ::= number of waveforms in NR1 format from 1 to 2,000,000,000
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:RMODe" on page 524

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

531

22 :MTESt Commands

:MTESt:SCALe:BIND

(see page 1164)

Command Syntax :MTESt:SCALe:BIND <on_off>

<on_off> ::= {{1 | ON} | {0 | OFF}}
The :MTESt:SCALe:BIND command enables or disables Bind 1 & 0 Levels (Bind -1 & 0 Levels for inverted masks) control: · ON --

If the Bind 1 & 0 Levels control is enabled, the 1 Level and the 0 Level controls track each other. Adjusting either the 1 Level or the 0 Level control shifts the position of the mask up or down without changing its size. If the Bind -1 & 0 Levels control is enabled, the -1 Level and the 0 Level controls track each other. Adjusting either the -1 Level or the 0 Level control shifts the position of the mask up or down without changing its size. · OFF -- If the Bind 1 & 0 Levels control is disabled, adjusting either the 1 Level or the 0 Level control changes the vertical height of the mask. If the Bind -1 & 0 Levels control is disabled, adjusting either the -1 Level or the 0 Level control changes the vertical height of the mask.

Query Syntax Return Format

:MTESt:SCALe:BIND?
The :MTESt:SCALe:BIND? query returns the value of the Bind 1&0 control (Bind -1&0 for inverted masks).
<on_off><NL>

See Also

<on_off> ::= {1 | 0}
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:SCALe:X1" on page 533 · ":MTESt:SCALe:XDELta" on page 534 · ":MTESt:SCALe:Y1" on page 535 · ":MTESt:SCALe:Y2" on page 536

532

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MTESt Commands 22

:MTESt:SCALe:X1

(see page 1164)

Command Syntax :MTESt:SCALe:X1 <x1_value>

<x1_value> ::= X1 value in NR3 format
The :MTESt:SCALe:X1 command defines where X=0 in the base coordinate system used for mask testing. The other X-coordinate is defined by the :MTESt:SCALe:XDELta command. Once the X1 and XDELta coordinates are set, all X values of vertices in the mask regions are defined with respect to this value, according to the equation:

Query Syntax Return Format

X = (X * X) + X1
Thus, if you set X1 to 100 ms, and XDELta to 100 ms, an X value of 0.100 is a vertex at 110 ms. The oscilloscope uses this equation to normalize vertices. This simplifies reprogramming to handle different data rates. For example, if you halve the period of the waveform of interest, you need only to adjust the XDELta value to set up the mask for the new waveform. The X1 value is a time value specifying the location of the X1 coordinate, which will then be treated as X=0 for mask regions coordinates.
:MTESt:SCALe:X1?
The :MTESt:SCALe:X1? query returns the current X1 coordinate setting.
<x1_value><NL>

See Also

<x1_value> ::= X1 value in NR3 format
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:SCALe:BIND" on page 532 · ":MTESt:SCALe:XDELta" on page 534 · ":MTESt:SCALe:Y1" on page 535 · ":MTESt:SCALe:Y2" on page 536

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

533

22 :MTESt Commands

:MTESt:SCALe:XDELta

(see page 1164)

Command Syntax :MTESt:SCALe:XDELta <xdelta_value>

<xdelta_value> ::= X delta value in NR3 format
The :MTESt:SCALe:XDELta command defines the position of the X2 marker with respect to the X1 marker. In the mask test coordinate system, the X1 marker defines where X=0; thus, the X2 marker defines where X=1. Because all X vertices of the regions defined for mask testing are normalized with respect to X1 and X, redefining X also moves those vertices to stay in the same locations with respect to X1 and X. Thus, in many applications, it is best if you define XDELta as a pulse width or bit period. Then, a change in data rate without corresponding changes in the waveform can easily be handled by changing X. The X-coordinate of polygon vertices is normalized using this equation:

Query Syntax Return Format

X = (X * X) + X1
The X delta value is a time value specifying the distance of the X2 marker with respect to the X1 marker. For example, if the period of the waveform you wish to test is 1 ms, setting X to 1 ms ensures that the waveform's period is between the X1 and X2 markers.
:MTESt:SCALe:XDELta?
The :MTESt:SCALe:XDELta? query returns the current value of X.
<xdelta_value><NL>

See Also

<xdelta_value> ::= X delta value in NR3 format
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:SCALe:BIND" on page 532 · ":MTESt:SCALe:X1" on page 533 · ":MTESt:SCALe:Y1" on page 535 · ":MTESt:SCALe:Y2" on page 536

534

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MTESt Commands 22

:MTESt:SCALe:Y1

Command Syntax

(see page 1164)
:MTESt:SCALe:Y1 <y1_value>

<y1_value> ::= Y1 value in NR3 format
The :MTESt:SCALe:Y1 command defines where Y=0 in the coordinate system for mask testing. All Y values of vertices in the coordinate system are defined with respect to the boundaries set by SCALe:Y1 and SCALe:Y2 according to the equation:

Query Syntax Return Format

Y = (Y * (Y2 - Y1)) + Y1
Thus, if you set Y1 to 100 mV, and Y2 to 1 V, a Y value of 0.100 in a vertex is at 190 mV. The Y1 value is a voltage value specifying the point at which Y=0.
:MTESt:SCALe:Y1?
The :MTESt:SCALe:Y1? query returns the current setting of the Y1 marker.
<y1_value><NL>

See Also

<y1_value> ::= Y1 value in NR3 format
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:SCALe:BIND" on page 532 · ":MTESt:SCALe:X1" on page 533 · ":MTESt:SCALe:XDELta" on page 534 · ":MTESt:SCALe:Y2" on page 536

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

535

22 :MTESt Commands

:MTESt:SCALe:Y2

Command Syntax

(see page 1164)
:MTESt:SCALe:Y2 <y2_value>

<y2_value> ::= Y2 value in NR3 format
The :MTESt:SCALe:Y2 command defines the Y2 marker in the coordinate system for mask testing. All Y values of vertices in the coordinate system are defined with respect to the boundaries defined by SCALe:Y1 and SCALe:Y2 according to the following equation:

Query Syntax Return Format

Y = (Y * (Y2 - Y1)) + Y1
Thus, if you set Y1 to 100 mV, and Y2 to 1 V, a Y value of 0.100 in a vertex is at 190 mV. The Y2 value is a voltage value specifying the location of the Y2 marker.
:MTESt:SCALe:Y2?
The :MTESt:SCALe:Y2? query returns the current setting of the Y2 marker.
<y2_value><NL>

See Also

<y2_value> ::= Y2 value in NR3 format
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:SCALe:BIND" on page 532 · ":MTESt:SCALe:X1" on page 533 · ":MTESt:SCALe:XDELta" on page 534 · ":MTESt:SCALe:Y1" on page 535

536

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:MTESt Commands 22

:MTESt:SOURce

(see page 1164)

Command Syntax :MTESt:SOURce <source>

<source> ::= CHANnel<n>

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :MTESt:SOURce command selects the channel which is configured by the commands contained in a mask file when it is loaded.
:MTESt:SOURce?
The :MTESt:SOURce? query returns the channel which is configured by the commands contained in the current mask file.
<source><NL>

<source> ::= {CHAN<n> | NONE}

See Also

<n> ::= 1 to (# analog channels) in NR1 format
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:AMASk:SOURce" on page 512

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

537

22 :MTESt Commands

:MTESt:TITLe

(see page 1164)

Query Syntax Return Format

:MTESt:TITLe?
The :MTESt:TITLe? query returns the mask title which is a string of up to 128 characters. The title is displayed in the mask test dialog box and mask test tab when a mask file is loaded.
<title><NL>

<title> ::= a string of up to 128 ASCII characters.
See Also · "Introduction to :MTESt Commands" on page 507

538

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
23 :POD Commands

Control all oscilloscope functions associated with groups of digital channels. See "Introduction to :POD<n> Commands" on page 539.

Table 95 :POD<n> Commands Summary

Command

Query

Options and Query Returns

:POD<n>:DISPlay {{0 |
OFF} | {1 | ON}} (see page 541)

:POD<n>:DISPlay? (see page 541)

{0 | 1} <n> ::= 1-2 in NR1 format

:POD<n>:SIZE <value> :POD<n>:SIZE? (see

(see page 542)

page 542)

<value> ::= {SMALl | MEDium | LARGe}

:POD<n>:THReshold
<type>[suffix] (see page 543)

:POD<n>:THReshold? (see page 543)

<n> ::= 1-2 in NR1 format
<type> ::= {CMOS | ECL | TTL | <user defined value>}
<user defined value> ::= value in NR3 format
[suffix] ::= {V | mV | uV }

Introduction to :POD<n>
Commands

<n> ::= {1 | 2}
The POD subsystem commands control the viewing and threshold of groups of digital channels. POD1 ::= D0-D7 POD2 ::= D8-D15

NOTE

These commands are only valid for the MSO models.

Reporting the Setup Use :POD1? or :POD2? to query setup information for the POD subsystem.

539

23 :POD Commands
Return Format The following is a sample response from the :POD1? query. In this case, the query was issued following a *RST command.
:POD1:DISP 0;THR +1.40E+00

540

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POD Commands 23

:POD<n>:DISPlay

(see page 1164) Command Syntax :POD<n>:DISPlay <display>
<display> ::= {{1 | ON} | {0 | OFF}}
<n> ::= An integer, 1 or 2, is attached as a suffix to the command and defines the group of channels that are affected by the command.
POD1 ::= D0-D7
POD2 ::= D8-D15
The :POD<n>:DISPlay command turns displaying of the specified group of channels on or off.

NOTE

This command is only valid for the MSO models.

Query Syntax

:POD<n>:DISPlay?
The :POD<n>:DISPlay? query returns the current display setting of the specified group of channels.

Return Format <display><NL>

See Also

<display> ::= {0 | 1}
· "Introduction to :POD<n> Commands" on page 539 · ":DIGital<d>:DISPlay" on page 299 · ":CHANnel<n>:DISPlay" on page 273 · ":VIEW" on page 231 · ":BLANk" on page 204 · ":STATus" on page 228

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

541

23 :POD Commands

:POD<n>:SIZE

(see page 1164) Command Syntax :POD<n>:SIZE <value>
<n> ::= An integer, 1 or 2, is attached as a suffix to the command and defines the group of channels that are affected by the command.
POD1 ::= D0-D7
POD2 ::= D8-D15
<value> ::= {SMALl | MEDium | LARGe}
The :POD<n>:SIZE command specifies the size of digital channels on the display. Sizes are set for all pods. Therefore, if you set the size on pod 1 (for example), the same size is set on pod 2 as well.

NOTE

This command is only valid for the MSO models.

Query Syntax :POD<n>:SIZE? The :POD<n>:SIZE? query returns the digital channels size setting.

Return Format <size_value><NL>

See Also

<size_value> ::= {SMAL | MED | LARG}
· "Introduction to :POD<n> Commands" on page 539 · ":DIGital<d>:SIZE" on page 302 · ":DIGital<d>:POSition" on page 301

542

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POD Commands 23

:POD<n>:THReshold

(see page 1164) Command Syntax :POD<n>:THReshold <type>[<suffix>]
<n> ::= An integer, 1 or 2, is attached as a suffix to the command and defines the group of channels that are affected by the command.
<type> ::= {CMOS | ECL | TTL | <user defined value>} <user defined value> ::= -8.00 to +8.00 in NR3 format <suffix> ::= {V | mV | uV} POD1 ::= D0-D7 POD2 ::= D8-D15 TTL ::= 1.4V CMOS ::= 2.5V ECL ::= -1.3V
The :POD<n>:THReshold command sets the threshold for the specified group of channels. The threshold is used for triggering purposes and for displaying the digital data as high (above the threshold) or low (below the threshold).

NOTE

This command is only valid for the MSO models.

Query Syntax

:POD<n>:THReshold?
The :POD<n>:THReshold? query returns the threshold value for the specified group of channels.

Return Format <threshold><NL>

See Also

<threshold> ::= Floating point number in NR3 format
· "Introduction to :POD<n> Commands" on page 539 · ":DIGital<d>:THReshold" on page 303 · ":TRIGger[:EDGE]:LEVel" on page 929

Example Code

' THRESHOLD - This command is used to set the voltage threshold for ' the waveforms. There are three preset values (TTL, CMOS, and ECL) ' and you can also set a user-defined threshold value between ' -8.0 volts and +8.0 volts. ' ' In this example, we set channels 0-7 to CMOS, then set channels ' 8-15 to a user-defined 2.0 volts, and then set the external trigger ' to TTL. Of course, you only need to set the thresholds for the ' channels you will be using in your program.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

543

23 :POD Commands
' Set channels 0-7 to CMOS threshold. myScope.WriteString ":POD1:THRESHOLD CMOS" ' Set channels 8-15 to 2.0 volts. myScope.WriteString ":POD2:THRESHOLD 2.0" ' Set external channel to TTL threshold (short form). myScope.WriteString ":TRIG:LEV TTL,EXT"
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

544

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
24 :POWer Commands

These :POWer commands are available when the DSOX3PWR power measurements and analysis application is licensed and enabled.

Table 96 :POWer Commands Summary

Command

Query

Options and Query Returns

:POWer:DESKew (see

n/a

n/a

page 551)

:POWer:EFFiciency:APP n/a

n/a

Ly (see page 552)

:POWer:ENABle {{0 |
OFF} | {1 | ON}} (see page 553)

:POWer:ENABle? (see page 553)

{0 | 1}

:POWer:HARMonics:APPL n/a

n/a

y (see page 554)

n/a

:POWer:HARMonics:DATA <binary_block> ::=

? (see page 555)

comma-separated data with

newlines at the end of each row

:POWer:HARMonics:DISP :POWer:HARMonics:DISP <display> ::= {TABLe | BAR | OFF}

lay <display> (see

lay? (see page 556)

page 556)

n/a

:POWer:HARMonics:FAIL <count> ::= integer in NR1 format

count? (see page 557)

:POWer:HARMonics:LINE :POWer:HARMonics:LINE <frequency> ::= {F50 | F60 |

<frequency> (see

? (see page 558)

F400}

page 558)

n/a

:POWer:HARMonics:POWe <value> ::= Class C power factor

rfactor? (see page 559)

in NR3 format

n/a

:POWer:HARMonics:RUNC <count> ::= integer in NR1 format

ount? (see page 560)

545

24 :POWer Commands

Table 96 :POWer Commands Summary (continued)

Command

Query

Options and Query Returns

:POWer:HARMonics:STAN :POWer:HARMonics:STAN <class> ::= {A | B | C | D}

dard <class> (see

dard? (see page 561)

page 561)

n/a

:POWer:HARMonics:STAT <status> ::= {PASS | FAIL |

us? (see page 562)

UNTested}

n/a

:POWer:HARMonics:THD? <value> ::= Total Harmonics

(see page 563)

Distortion in NR3 format

:POWer:INRush:APPLy n/a

n/a

(see page 564)

:POWer:INRush:EXIT

n/a

n/a

(see page 565)

:POWer:INRush:NEXT

n/a

n/a

(see page 566)

:POWer:MODulation:APP n/a

n/a

Ly (see page 567)

:POWer:MODulation:SOU :POWer:MODulation:SOU <source> ::= {V | I}

Rce <source> (see

Rce? (see page 568)

page 568)

:POWer:MODulation:TYP
E <modulation> (see page 569)

:POWer:MODulation:TYP E? (see page 569)

<modulation> ::= {VAVerage | ACRMs | VRATio | PERiod | FREQuency | PWIDith | NWIDth | DUTYcycle | RISetime | FALLtime}

:POWer:ONOFf:APPLy

n/a

n/a

(see page 570)

:POWer:ONOFf:EXIT

n/a

n/a

(see page 571)

:POWer:ONOFf:NEXT

n/a

n/a

(see page 572)

:POWer:ONOFf:TEST {{0
| OFF} | {1 | ON}} (see page 573)

:POWer:ONOFf:TEST? (see page 573)

{0 | 1}

:POWer:PSRR:APPLy

n/a

n/a

(see page 574)

:POWer:PSRR:FREQuency
:MAXimum
<value>[suffix] (see page 575)

:POWer:PSRR:FREQuency
:MAXimum? (see page 575)

<value> ::= {10 | 100 | 1000 | 10000 | 100000 | 1000000 | 10000000 | 20000000}
[suffix] ::= {Hz | kHz| MHz}

546

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

Table 96 :POWer Commands Summary (continued)

Command

Query

Options and Query Returns

:POWer:PSRR:FREQuency
:MINimum
<value>[suffix] (see page 576)

:POWer:PSRR:FREQuency
:MINimum? (see page 576)

<value> ::= {1 | 10 | 100 | 1000 | 10000 | 100000 | 1000000 | 10000000}
[suffix] ::= {Hz | kHz| MHz}

:POWer:PSRR:RMAXimum :POWer:PSRR:RMAXimum? <value> ::= Maximum ratio value

<value> (see page 577) (see page 577)

in NR1 format

:POWer:QUALity:APPLy n/a

n/a

(see page 578)

:POWer:QUALity:TYPE
<quality> (see page 579)

:POWer:QUALity:TYPE? (see page 579)

<quality> ::= {FACTor | REAL | APParent | REACtive | CRESt | ANGLe}

:POWer:RIPPle:APPLy n/a

n/a

(see page 580)

:POWer:SIGNals:AUTose n/a
tup <analysis> (see page 581)

<analysis> ::= {HARMonics | EFFiciency | RIPPle | MODulation | QUALity | SLEW | SWITch}

:POWer:SIGNals:CYCLes :POWer:SIGNals:CYCLes <count> ::= integer in NR1 format

:HARMonics <count> (see page 582)

:HARMonics? (see page 582)

Legal values are 1 to 100.

:POWer:SIGNals:CYCLes :POWer:SIGNals:CYCLes <count> ::= integer in NR1 format

:QUALity <count> (see :QUALity? (see

page 583)

page 583)

Legal values are 1 to 100.

:POWer:SIGNals:DURati
on:EFFiciency
<value>[suffix] (see page 584)

:POWer:SIGNals:DURati
on:EFFiciency? (see page 584)

<value> ::= value in NR3 format [suffix] ::= {s | ms | us | ns}

:POWer:SIGNals:DURati
on:MODulation
<value>[suffix] (see page 585)

:POWer:SIGNals:DURati
on:MODulation? (see page 585)

<value> ::= value in NR3 format [suffix] ::= {s | ms | us | ns}

:POWer:SIGNals:DURati
on:ONOFf:OFF
<value>[suffix] (see page 586)

:POWer:SIGNals:DURati
on:ONOFf:OFF? (see page 586)

<value> ::= value in NR3 format [suffix] ::= {s | ms | us | ns}

:POWer:SIGNals:DURati
on:ONOFf:ON
<value>[suffix] (see page 587)

:POWer:SIGNals:DURati
on:ONOFf:ON? (see page 587)

<value> ::= value in NR3 format [suffix] ::= {s | ms | us | ns}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

547

24 :POWer Commands

Table 96 :POWer Commands Summary (continued)

Command

Query

Options and Query Returns

:POWer:SIGNals:DURati
on:RIPPle
<value>[suffix] (see page 588)

:POWer:SIGNals:DURati
on:RIPPle? (see page 588)

<value> ::= value in NR3 format [suffix] ::= {s | ms | us | ns}

:POWer:SIGNals:DURati
on:TRANsient
<value>[suffix] (see page 589)

:POWer:SIGNals:DURati
on:TRANsient? (see page 589)

<value> ::= value in NR3 format [suffix] ::= {s | ms | us | ns}

:POWer:SIGNals:IEXPec :POWer:SIGNals:IEXPec <value> ::= Expected current

ted <value>[suffix] ted? (see page 590)

value in NR3 format

(see page 590)

[suffix] ::= {A | mA}

:POWer:SIGNals:OVERsh :POWer:SIGNals:OVERsh <percent> ::= percent of

oot <percent> (see

oot? (see page 591)

overshoot value in NR1 format

page 591)

[suffix] ::= {V | mV}}

:POWer:SIGNals:VMAXim
um:INRush
<value>[suffix] (see page 592)

:POWer:SIGNals:VMAXim
um:INRush? (see page 592)

<value> ::= Maximum expected input Voltage in NR3 format
[suffix] ::= {V | mV}

:POWer:SIGNals:VMAXim
um:ONOFf:OFF
<value>[suffix] (see page 593)

:POWer:SIGNals:VMAXim
um:ONOFf:OFF? (see page 593)

<value> ::= Maximum expected input Voltage in NR3 format
[suffix] ::= {V | mV}

:POWer:SIGNals:VMAXim
um:ONOFf:ON
<value>[suffix] (see page 594)

:POWer:SIGNals:VMAXim
um:ONOFf:ON? (see page 594)

<value> ::= Maximum expected input Voltage in NR3 format
[suffix] ::= {V | mV}

:POWer:SIGNals:VSTead
y:ONOFf:OFF
<value>[suffix] (see page 595)

:POWer:SIGNals:VSTead
y:ONOFf:OFF? (see page 595)

<value> ::= Expected steady stage output Voltage value in NR3 format
[suffix] ::= {V | mV}

:POWer:SIGNals:VSTead
y:ONOFf:ON
<value>[suffix] (see page 596)

:POWer:SIGNals:VSTead
y:ONOFf:ON? (see page 596)

<value> ::= Expected steady stage output Voltage value in NR3 format
[suffix] ::= {V | mV}

:POWer:SIGNals:VSTead
y:TRANsient
<value>[suffix] (see page 597)

:POWer:SIGNals:VSTead
y:TRANsient? (see page 597)

<value> ::= Expected steady stage output Voltage value in NR3 format
[suffix] ::= {V | mV}

548

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

Table 96 :POWer Commands Summary (continued)

Command

Query

Options and Query Returns

:POWer:SIGNals:SOURce
:CURRent<i> <source> (see page 598)

:POWer:SIGNals:SOURce
:CURRent<i>? (see page 598)

<i> ::= 1, 2 in NR1 format <source> ::= CHANnel<n> <n> ::= 1 to (# analog channels) in NR1 format

:POWer:SIGNals:SOURce
:VOLTage<i> <source> (see page 599)

:POWer:SIGNals:SOURce
:VOLTage<i>? (see page 599)

<i> ::= 1, 2 in NR1 format <source> ::= CHANnel<n> <n> ::= 1 to (# analog channels) in NR1 format

:POWer:SLEW:APPLy

n/a

n/a

(see page 600)

:POWer:SLEW:SOURce
<source> (see page 601)

:POWer:SLEW:SOURce? (see page 601)

<source> ::= {V | I}

:POWer:SWITch:APPLy n/a

n/a

(see page 602)

:POWer:SWITch:CONDuct :POWer:SWITch:CONDuct <conduction> ::= {WAVeform | RDS

ion <conduction> (see ion? (see page 603)

| VCE}

page 603)

:POWer:SWITch:IREFere :POWer:SWITch:IREFere <percent> ::= percent in NR1

nce <percent> (see

nce? (see page 604)

format

page 604)

:POWer:SWITch:RDS
<value>[suffix] (see page 605)

:POWer:SWITch:RDS? (see page 605)

<value> ::= Rds(on) value in NR3 format
[suffix] ::= {OHM | mOHM}

:POWer:SWITch:VCE
<value>[suffix] (see page 606)

:POWer:SWITch:VCE? (see page 606)

<value> ::= Vce(sat) value in NR3 format
[suffix] ::= {V | mV}

:POWer:SWITch:VREFere :POWer:SWITch:VREFere <percent> ::= percent in NR1

nce <percent> (see

nce? (see page 607)

format

page 607)

:POWer:TRANsient:APPL n/a

n/a

y (see page 608)

:POWer:TRANsient:EXIT n/a

n/a

(see page 609)

:POWer:TRANsient:IINi :POWer:TRANsient:IINi <value> ::= Initial current value

tial <value>[suffix] tial? (see page 610)

in NR3 format

(see page 610)

[suffix] ::= {A | mA}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

549

24 :POWer Commands

Table 96 :POWer Commands Summary (continued)

Command

Query

Options and Query Returns

:POWer:TRANsient:INEW :POWer:TRANsient:INEW <value> ::= New current value in

<value>[suffix] (see ? (see page 611)

NR3 format

page 611)

[suffix] ::= {A | mA}

:POWer:TRANsient:NEXT n/a

n/a

(see page 612)

550

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:DESKew

Command Syntax

(see page 1164)
:POWer:DESKew
The :POWer:DESKew command launches the auto deskew process on the oscilloscope. Before sending this command: 1 Demagnetize and zero-adjust the current probe.
Refer to the current probe's documentation for instructions on how to do this. 2 Make connections to the U1880A deskew fixture as described in the
oscilloscope's connection dialog or in the DSOX3PWR Power Measurement Application User's Guide. 3 Make sure the voltage probe and current probe channels are specified appropriately using the :POWer:SIGNals:SOURce:VOLTage1 and :POWer:SIGNals:SOURce:CURRent1 commands.

NOTE

Use the lowest attenuation setting on the high voltage differential probes whenever possible because the voltage levels on the deskew fixture are very small. Using a higher attenuation setting may yield inaccurate skew values (and affect the measurements made) because the noise level is magnified as well.

See Also

The deskew values are saved in the oscilloscope until a factory default or secure erase is performed. The next time you run the Power Application, you can use the saved deskew values or perform the deskew again. Generally, you need to perform the deskew again when part of the test setup changes (for example, a different probe, different oscilloscope channel, etc.) or when the ambient temperature has changed. · ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

551

24 :POWer Commands

:POWer:EFFiciency:APPLy

Command Syntax

(see page 1164)
:POWer:EFFiciency:APPLy
The :POWer:EFFiciency:APPLy command applies the effieciency power analysis. Efficiency analysis tests the overall efficiency of the power supply by measuring the output power over the input power.

NOTE

Efficiency analysis requires a 4-channel oscilloscope because input voltage, input current, output voltage, and output current are measured.

See Also

· ":MEASure:EFFiciency" on page 492 · ":MEASure:IPOWer" on page 495 · ":MEASure:OPOWer" on page 498

552

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:ENABle

Command Syntax Query Syntax
Return Format See Also

(see page 1164)
:POWer:ENABle {{0 | OFF} | {1 | ON}}
The :POWer:ENABle command enables or disables power analysis.
:POWer:ENABle?
The :POWer:ENABle query returns a 1 or a 0 showing whether power analysis is enabled or disabled, respectively.
{0 | 1}
· Chapter 21, ":MEASure Power Commands," starting on page 485

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

553

24 :POWer Commands

:POWer:HARMonics:APPLy

Command Syntax See Also

(see page 1164)
:POWer:HARMonics:APPLy
The :POWer:HARMonics:APPLy command applies the current harmonics analysis. Switching power supplies draw a range of harmonics from the AC mains. Standard limits are set for these harmonics because these harmonics can travel back to the supply grid and cause problems with other devices on the grid. Use the Current Harmonics analysis to test a switching power supply's current harmonics to pre-compliance standard of IEC61000-3-2 (Class A, B, C, or D). The analysis presents up to 40 harmonics. · ":POWer:HARMonics:DATA" on page 555 · ":POWer:HARMonics:DISPlay" on page 556 · ":POWer:HARMonics:FAILcount" on page 557 · ":POWer:HARMonics:LINE" on page 558 · ":POWer:HARMonics:POWerfactor" on page 559 · ":POWer:HARMonics:STANdard" on page 561 · ":POWer:HARMonics:STATus" on page 562 · ":POWer:HARMonics:RUNCount" on page 560 · ":POWer:HARMonics:THD" on page 563

554

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:HARMonics:DATA

Query Syntax
Return Format See Also

(see page 1164)
:POWer:HARMonics:DATA?
The :POWer:HARMonics:DATA query returns the power harmonics results table data.
<binary_block> ::= comma-separated data with newlines at the end of each row
· ":POWer:HARMonics:APPLy" on page 554 · ":POWer:HARMonics:DISPlay" on page 556 · ":POWer:HARMonics:FAILcount" on page 557 · ":POWer:HARMonics:LINE" on page 558 · ":POWer:HARMonics:POWerfactor" on page 559 · ":POWer:HARMonics:RUNCount" on page 560 · ":POWer:HARMonics:STANdard" on page 561 · ":POWer:HARMonics:STATus" on page 562 · ":POWer:HARMonics:THD" on page 563

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

555

24 :POWer Commands

:POWer:HARMonics:DISPlay

(see page 1164)

Command Syntax :POWer:HARMonics:DISPlay <display>

<display> ::= {TABLe | BAR | OFF}
The :POWer:HARMonics:DISPlay command specifies how to display the current harmonics analysis results: · TABLe · BAR -- Bar chart. · OFF -- Harmonics measurement results are not displayed.

Query Syntax Return Format

:POWer:HARMonics:DISPlay?
The :POWer:HARMonics:DISPlay query returns the display setting.
<display><NL>

See Also

<display> ::= {TABL | BAR | OFF}
· ":POWer:HARMonics:APPLy" on page 554 · ":POWer:HARMonics:DATA" on page 555 · ":POWer:HARMonics:FAILcount" on page 557 · ":POWer:HARMonics:LINE" on page 558 · ":POWer:HARMonics:POWerfactor" on page 559 · ":POWer:HARMonics:RUNCount" on page 560 · ":POWer:HARMonics:STANdard" on page 561 · ":POWer:HARMonics:STATus" on page 562 · ":POWer:HARMonics:THD" on page 563

556

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:HARMonics:FAILcount

(see page 1164)

Query Syntax Return Format

:POWer:HARMonics:FAILcount?
Returns the current harmonics analysis' fail count. Non Spec values (that is, harmonics values not specified by the selected standard) are not counted.
<count><NL>

See Also

<count> ::= integer in NR1 format
· ":POWer:HARMonics:RUNCount" on page 560 · ":POWer:HARMonics:APPLy" on page 554 · ":POWer:HARMonics:DATA" on page 555 · ":POWer:HARMonics:DISPlay" on page 556 · ":POWer:HARMonics:LINE" on page 558 · ":POWer:HARMonics:POWerfactor" on page 559 · ":POWer:HARMonics:STANdard" on page 561 · ":POWer:HARMonics:STATus" on page 562 · ":POWer:HARMonics:THD" on page 563

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

557

24 :POWer Commands

:POWer:HARMonics:LINE

(see page 1164)

Command Syntax :POWer:HARMonics:LINE <frequency>

<frequency> ::= {F50 | F60 | F400}
The :POWer:HARMonics:LINE command specifies the line frequency setting for the current carmonics analysis: · F50 -- 50 Hz. · F60 -- 60 Hz. · F400 -- 400 Hz.

Query Syntax Return Format

:POWer:HARMonics:LINE?
The :POWer:HARMonics:LINE query returns the line frequency setting.
<frequency><NL>

See Also

<frequency> ::= {F50 | F60 | F400}
· ":POWer:HARMonics:APPLy" on page 554 · ":POWer:HARMonics:DATA" on page 555 · ":POWer:HARMonics:DISPlay" on page 556 · ":POWer:HARMonics:FAILcount" on page 557 · ":POWer:HARMonics:POWerfactor" on page 559 · ":POWer:HARMonics:RUNCount" on page 560 · ":POWer:HARMonics:STANdard" on page 561 · ":POWer:HARMonics:STATus" on page 562 · ":POWer:HARMonics:THD" on page 563

558

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:HARMonics:POWerfactor

Query Syntax
Return Format See Also

(see page 1164)
:POWer:HARMonics:POWerfactor?
The :POWer:HARMonics:POWerfactor query returns the power factor for IEC 61000-3-2 Standard Class C power factor value.
<value> ::= Class C power factor in NR3 format
· ":POWer:HARMonics:APPLy" on page 554 · ":POWer:HARMonics:DATA" on page 555 · ":POWer:HARMonics:DISPlay" on page 556 · ":POWer:HARMonics:FAILcount" on page 557 · ":POWer:HARMonics:LINE" on page 558 · ":POWer:HARMonics:RUNCount" on page 560 · ":POWer:HARMonics:STANdard" on page 561 · ":POWer:HARMonics:STATus" on page 562 · ":POWer:HARMonics:THD" on page 563

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

559

24 :POWer Commands

:POWer:HARMonics:RUNCount

(see page 1164)

Query Syntax Return Format

:POWer:HARMonics:RUNCount?
Returns the current harmonics analysis' run iteration count. Non Spec values (that is, harmonics values not specified by the selected standard) are not counted.
<count><NL>

See Also

<count> ::= integer in NR1 format
· ":POWer:HARMonics:FAILcount" on page 557 · ":POWer:HARMonics:APPLy" on page 554 · ":POWer:HARMonics:DATA" on page 555 · ":POWer:HARMonics:DISPlay" on page 556 · ":POWer:HARMonics:LINE" on page 558 · ":POWer:HARMonics:POWerfactor" on page 559 · ":POWer:HARMonics:STANdard" on page 561 · ":POWer:HARMonics:STATus" on page 562 · ":POWer:HARMonics:THD" on page 563

560

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:HARMonics:STANdard

(see page 1164)

Command Syntax :POWer:HARMonics:STANdard <class>

Query Syntax Return Format

<class> ::= {A | B | C | D}
The :POWer:HARMonics:STANdard command selects the standard to perform current harmonics compliance testing on. · A -- IEC 61000-3-2 Class A -- for balanced three-phase equipment, household
appliances (except equipment identified as Class D), tools excluding portable tools, dimmers for incandescent lamps, and audio equipment. · B -- IEC 61000-3-2 Class B -- for portable tools. · C -- IEC 61000-3-2 Class C -- for lighting equipment. · D -- IEC 61000-3-2 Class D -- for equipment having a specified power according less than or equal to 600 W, of the following types: personal computers and personal computer monitors, television receivers.
:POWer:HARMonics:STANdard?
The :POWer:HARMonics:STANdard query returns the currently set IEC 61000-3-2 standard.
<class><NL>

See Also

<class> ::= {A | B | C | D}
· ":POWer:HARMonics:APPLy" on page 554 · ":POWer:HARMonics:DATA" on page 555 · ":POWer:HARMonics:DISPlay" on page 556 · ":POWer:HARMonics:FAILcount" on page 557 · ":POWer:HARMonics:LINE" on page 558 · ":POWer:HARMonics:POWerfactor" on page 559 · ":POWer:HARMonics:RUNCount" on page 560 · ":POWer:HARMonics:STATus" on page 562 · ":POWer:HARMonics:THD" on page 563

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

561

24 :POWer Commands

:POWer:HARMonics:STATus

Query Syntax
Return Format See Also

(see page 1164)
:POWer:HARMonics:STATus?
The :POWer:HARMonics:STATus query returns the overall pass/fail status of the current harmonics analysis.
<status> ::= {PASS | FAIL | UNTested}
· ":POWer:HARMonics:RUNCount" on page 560 · ":POWer:HARMonics:FAILcount" on page 557 · ":POWer:HARMonics:APPLy" on page 554 · ":POWer:HARMonics:DATA" on page 555 · ":POWer:HARMonics:DISPlay" on page 556 · ":POWer:HARMonics:LINE" on page 558 · ":POWer:HARMonics:POWerfactor" on page 559 · ":POWer:HARMonics:STANdard" on page 561 · ":POWer:HARMonics:THD" on page 563

562

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:HARMonics:THD

Query Syntax
Return Format See Also

(see page 1164)
:POWer:HARMonics:THD?
The :POWer:HARMonics:THD query returns the Total Harmonics Distortion (THD) results of the current harmonics analysis.
<value> ::= Total Harmonics Distortion in NR3 format
· ":POWer:HARMonics:APPLy" on page 554 · ":POWer:HARMonics:DATA" on page 555 · ":POWer:HARMonics:DISPlay" on page 556 · ":POWer:HARMonics:FAILcount" on page 557 · ":POWer:HARMonics:LINE" on page 558 · ":POWer:HARMonics:POWerfactor" on page 559 · ":POWer:HARMonics:RUNCount" on page 560 · ":POWer:HARMonics:STANdard" on page 561 · ":POWer:HARMonics:STATus" on page 562

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

563

24 :POWer Commands

:POWer:INRush:APPLy

Command Syntax See Also

(see page 1164)
:POWer:INRush:APPLy
The :POWer:INRush:APPLy command applies the inrush current analysis. The Inrush current analysis measures the peak inrush current of the power supply when the power supply is first turned on. · ":MEASure:PCURrent" on page 499 · ":POWer:INRush:EXIT" on page 565 · ":POWer:INRush:NEXT" on page 566

564

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:INRush:EXIT

Command Syntax See Also

(see page 1164)
:POWer:INRush:EXIT
The :POWer:INRush:EXIT command exits (stops) the inrush current power analysis. This command is equivalent to pressing the Exit softkey on the oscilloscope front panel during the analysis. · ":POWer:INRush:APPLy" on page 564 · ":POWer:INRush:NEXT" on page 566

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

565

24 :POWer Commands

:POWer:INRush:NEXT

Command Syntax See Also

(see page 1164)
:POWer:INRush:NEXT
The :POWer:INRush:NEXT command goes to the next step of the inrush current analysis. This command is equivalent to pressing the Next softkey on the oscilloscope front panel when prompted during the analysis. · ":POWer:INRush:APPLy" on page 564 · ":POWer:INRush:EXIT" on page 565

566

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:MODulation:APPLy

Command Syntax See Also

(see page 1164)
:POWer:MODulation:APPLy
The :POWer:MODulation:APPLy command applies the selected modulation analysis type (:POWer:MODulation:TYPE).
The Modulation analysis measures the control pulse signal to a switching device (MOSFET) and observes the trending of the pulse width, duty cycle, period, frequency, etc. of the control pulse signal.
· ":POWer:MODulation:SOURce" on page 568 · ":POWer:MODulation:TYPE" on page 569 · ":MEASure:VAVerage" on page 473 · ":MEASure:VRMS" on page 479 · ":MEASure:VRATio" on page 478 · ":MEASure:PERiod" on page 449 · ":MEASure:FREQuency" on page 441 · ":MEASure:PWIDth" on page 453 · ":MEASure:NWIDth" on page 445 · ":MEASure:DUTYcycle" on page 439 · ":MEASure:RISetime" on page 457 · ":MEASure:FALLtime" on page 440

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

567

24 :POWer Commands

:POWer:MODulation:SOURce

(see page 1164)

Command Syntax :POWer:MODulation:SOURce <source>

<source> ::= {V | I}
The :POWer:MODulation:SOURce command selects either the voltage source or the current source as the source for the modulation analysis.

Query Syntax Return Format

:POWer:MODulation:SOURce?
The :POWer:MODulation:SOURce query returns the selected source for the modulation analysis.
<source><NL>

See Also

<source> ::= {V | I}
· ":POWer:MODulation:APPLy" on page 567 · ":POWer:MODulation:TYPE" on page 569

568

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:MODulation:TYPE

(see page 1164)

Command Syntax :POWer:MODulation:TYPE <modulation>

Query Syntax Return Format

<modulation> ::= {VAVerage | ACRMs | VRATio | PERiod | FREQuency | PWIDith | NWIDth | DUTYcycle | RISetime | FALLtime}
The :POWer:MODulation:TYPE command selects the type of measurement to make in the modulation analysis: · VAVerage · ACRMs · VRATio · PERiod · FREQuency · PWIDth (positive pulse width) · NWIDth (negative pulse width) · DUTYcycle · RISetime · FALLtime
:POWer:MODulation:TYPE?
The :POWer:MODulation:TYPE query returns the modulation type setting.
<modulation><NL>

See Also

<modulation> ::= {VAV | ACRM | VRAT | PER | FREQ | PWID | NWID | DUTY | RIS | FALL}
· ":POWer:MODulation:SOURce" on page 568 · ":POWer:MODulation:APPLy" on page 567 · ":MEASure:VAVerage" on page 473 · ":MEASure:VRMS" on page 479 · ":MEASure:VRATio" on page 478 · ":MEASure:PERiod" on page 449 · ":MEASure:FREQuency" on page 441 · ":MEASure:PWIDth" on page 453 · ":MEASure:NWIDth" on page 445 · ":MEASure:DUTYcycle" on page 439 · ":MEASure:RISetime" on page 457 · ":MEASure:FALLtime" on page 440

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

569

24 :POWer Commands

:POWer:ONOFf:APPLy

Command Syntax See Also

(see page 1164)
:POWer:ONOFf:APPLy
The :POWer:ONOFf:APPLy command applies the selected turn on/off analysis test (:POWer:ONOFf:TEST). · ":POWer:SIGNals:VSTeady:ONOFf:OFF" on page 595 · ":POWer:SIGNals:VSTeady:ONOFf:ON" on page 596 · ":MEASure:ONTime" on page 497 · ":MEASure:OFFTime" on page 496 · ":POWer:ONOFf:TEST" on page 573 · ":POWer:ONOFf:EXIT" on page 571 · ":POWer:ONOFf:NEXT" on page 572

570

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:ONOFf:EXIT

Command Syntax See Also

(see page 1164)
:POWer:ONOFf:EXIT
The :POWer:ONOFf:EXIT command exits (stops) the turn on time/turn off time analysis. This command is equivalent to pressing the Exit softkey on the oscilloscope front panel during the analysis. · ":POWer:ONOFf:APPLy" on page 570 · ":POWer:ONOFf:NEXT" on page 572 · ":POWer:ONOFf:TEST" on page 573

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

571

24 :POWer Commands

:POWer:ONOFf:NEXT

Command Syntax See Also

(see page 1164)
:POWer:ONOFf:NEXT
The :POWer:ONOFf:NEXT command goes to the next step of the turn on/turn off analysis. This command is equivalent to pressing the Next softkey on the oscilloscope front panel when prompted during the analysis. · ":POWer:ONOFf:APPLy" on page 570 · ":POWer:ONOFf:EXIT" on page 571 · ":POWer:ONOFf:TEST" on page 573

572

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:ONOFf:TEST

Command Syntax
Query Syntax Return Format
See Also

(see page 1164)
:POWer:ONOFf:TEST {{0 | OFF} | {1 | ON}}
The :POWer:ONOFf:TEST command selects whether turn on or turn off analysis is performed: · ON -- Turn On -- measures the time taken to get the output voltage of the
power supply after the input voltage is applied. · OFF -- Turn Off -- measures the time taken for the output voltage of the power
supply to turn off after the input voltage is removed.
:POWer:ONOFf:TEST?
The :POWer:ONOFf:TEST query returns the selected test type.
{0 | 1}
· ":POWer:ONOFf:APPLy" on page 570 · ":POWer:ONOFf:EXIT" on page 571 · ":POWer:ONOFf:NEXT" on page 572

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

573

24 :POWer Commands

:POWer:PSRR:APPLy

Command Syntax See Also

(see page 1164)
:POWer:PSRR:APPLy
The :POWer:PSRR:APPLy command applies the power supply rejection ratio (PSRR) analysis. The Power Supply Rejection Ratio (PSRR) test is used to determine how well a voltage regulator rejects ripple noise over different frequency range. This analysis provides a signal from the oscilloscope's waveform generator that sweeps its frequency. This signal is used to inject ripple to the DC voltage that feeds the voltage regulator. The AC RMS ratio of the input over the output is measured and is plotted over the range of frequencies. · ":POWer:PSRR:FREQuency:MAXimum" on page 575 · ":POWer:PSRR:FREQuency:MINimum" on page 576 · ":POWer:PSRR:RMAXimum" on page 577

574

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:PSRR:FREQuency:MAXimum

(see page 1164)

Command Syntax :POWer:PSRR:FREQuency:MAXimum <value>[suffix]

<value> ::= {100 | 1000 | 10000 | 100000 | 1000000 | 10000000 | 20000000}

Query Syntax Return Format

[suffix] ::= {Hz | kHz| MHz}
The :POWer:PSRR:FREQuency:MAXimum command sets the end sweep frequency value. The PSRR measurement is displayed on a log scale, so you can select from decade values in addition to the maximum frequency of 20 MHz.
:POWer:PSRR:FREQuency:MAXimum?
The :POWer:PSRR:FREQuency:MAXimum query returns the maximum sweep frequency setting.
<value><NL>

See Also

<value> ::= {10 | 100 | 1000 | 10000 | 100000 | 1000000 | 10000000 | 20000000}
· ":POWer:PSRR:APPLy" on page 574 · ":POWer:PSRR:FREQuency:MINimum" on page 576 · ":POWer:PSRR:RMAXimum" on page 577

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

575

24 :POWer Commands

:POWer:PSRR:FREQuency:MINimum

(see page 1164)

Command Syntax :POWer:PSRR:FREQuency:MINimum <value>[suffix]

<value> ::= {20 | 100 | 1000 | 10000 | 100000 | 1000000 | 10000000}

[suffix] ::= {Hz | kHz| MHz}
The :POWer:PSRR:FREQuency:MINimum command sets the start sweep frequency value. The measurement is displayed on a log scale, so you can select from decade values.

Query Syntax Return Format

:POWer:PSRR:FREQuency:MINimum?
The :POWer:PSRR:FREQuency:MINimum query returns the minimum sweep frequency setting.
<value><NL>

See Also

<value> ::= {1 | 10 | 100 | 1000 | 10000 | 100000 | 1000000 | 10000000}
· ":POWer:PSRR:APPLy" on page 574 · ":POWer:PSRR:FREQuency:MAXimum" on page 575 · ":POWer:PSRR:RMAXimum" on page 577

576

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:PSRR:RMAXimum

(see page 1164)

Command Syntax :POWer:PSRR:RMAXimum <value>

<value> ::= Maximum ratio value in NR1 format
The :POWer:PSRR:RMAXimum command specifies the vertical scale of the PSRR math waveform.

Query Syntax Return Format

:POWer:PSRR:RMAXimum?
The :POWer:PSRR:RMAXimum query returns the currently specified maximum ratio setting.
<value><NL>

See Also

<value> ::= Maximum ratio value in NR1 format
· ":POWer:PSRR:RMAXimum" on page 577 · ":POWer:PSRR:FREQuency:MAXimum" on page 575 · ":POWer:PSRR:FREQuency:MINimum" on page 576

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

577

24 :POWer Commands

:POWer:QUALity:APPLy

Command Syntax See Also

(see page 1164)
:POWer:QUALity:APPLy
The :POWer:QUALity:APPLy command applies the selected power quality analysis type (:POWer:QUALity:TYPE). The power quality analysis shows the quality of the AC input line. Some AC current may flow back into and back out of the load without delivering energy. This current, called reactive or harmonic current, gives rise to an "apparent" power which is larger than the actual power consumed. Power quality is gauged by these measurements: power factor, apparent power, true power, reactive power, crest factor, and phase angle of the current and voltage of the AC line. · ":POWer:QUALity:TYPE" on page 579 · ":MEASure:FACTor" on page 494 · ":MEASure:REAL" on page 502 · ":MEASure:APParent" on page 489 · ":MEASure:REACtive" on page 501 · ":MEASure:CRESt" on page 491 · ":MEASure:ANGLe" on page 488

578

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:QUALity:TYPE

Command Syntax

(see page 1164)
:POWer:QUALity:TYPE <quality>

Query Syntax Return Format

<quality> ::= {FACTor | REAL | APParent | REACtive | CRESt | ANGLe}
The :POWer:QUALity:TYPE command selects the type of measurement to make in the power quality analysis: · FACTor -- Power Factor -- Ratio of the actual power to the apparent power. · REAL -- Real (Actual) Power -- The portion of power flow that, averaged over a
complete cycle of the AC waveform, results in net transfer of energy in one direction. · APParent -- Apparent Power -- The portion of power flow due to stored energy, which returns to the source in each cycle. · REACtive -- Reactive Power -- The difference between apparent power and real power due to reactance. · CRESt -- Crest Factor -- Crest factor is the ratio between the instantaneous peak current/voltage required by the load and the RMS current/voltage (RMS stands for Root Mean Square, which is a type of average). · ANGLe -- Phase Angle -- In the power triangle (the right triangle where apparent_power2 = real_power2 + reactive_power2), phase angle is the angle between the apparent power and the real power, indicating the amount of reactive power.
:POWer:QUALity:TYPE?
The :POWer:QUALity:TYPE query returns the selected power quality measurement type.
<quality><NL>

See Also

<quality> ::= {FACT | REAL | APP | REAC | CRES | ANGL}
· ":MEASure:FACTor" on page 494 · ":MEASure:REAL" on page 502 · ":MEASure:APParent" on page 489 · ":MEASure:REACtive" on page 501 · ":MEASure:CRESt" on page 491 · ":MEASure:ANGLe" on page 488 · ":POWer:QUALity:APPLy" on page 578

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

579

24 :POWer Commands

:POWer:RIPPle:APPLy

Command Syntax See Also

(see page 1164)
:POWer:RIPPle:APPLy
The :POWer:RIPPle:APPLy command applies the output ripple analysis. · ":MEASure:RIPPle" on page 503

580

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:SIGNals:AUTosetup

(see page 1164)

Command Syntax :POWer:SIGNals:AUTosetup <analysis>

See Also

<analysis> ::= {HARMonics | EFFiciency | RIPPle | MODulation | QUALity | SLEW | SWITch}
The :POWer:SIGNals:AUTosetup command performs automated oscilloscope setup for the signals in the specified type of power analysis.
· ":POWer:HARMonics:DISPlay" on page 556 · ":POWer:EFFiciency:APPLy" on page 552 · ":POWer:RIPPle:APPLy" on page 580 · ":POWer:MODulation:APPLy" on page 567 · ":POWer:QUALity:APPLy" on page 578 · ":POWer:SLEW:APPLy" on page 600 · ":POWer:SWITch:APPLy" on page 602 · ":POWer:SIGNals:CYCLes:HARMonics" on page 582 · ":POWer:SIGNals:CYCLes:QUALity" on page 583 · ":POWer:SIGNals:DURation:EFFiciency" on page 584 · ":POWer:SIGNals:DURation:MODulation" on page 585 · ":POWer:SIGNals:DURation:RIPPle" on page 588 · ":POWer:SIGNals:IEXPected" on page 590 · ":POWer:SIGNals:OVERshoot" on page 591 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

581

24 :POWer Commands

:POWer:SIGNals:CYCLes:HARMonics

(see page 1164)

Command Syntax :POWer:SIGNals:CYCLes:HARMonics <count>

<count> ::= integer in NR1 format

Query Syntax Return Format

Legal values are 1 to 100.
The :POWer:SIGNals:CYCLes:HARMonics command specifies the number of cycles to include in the current harmonics analysis.
:POWer:SIGNals:CYCLes:HARMonics?
The :POWer:SIGNals:CYCLes:HARMonics query returns the number of cycles currently set.
<count><NL>

See Also

<count> ::= integer in NR1 format
· ":POWer:HARMonics:DISPlay" on page 556 · ":POWer:HARMonics:APPLy" on page 554 · ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:SIGNals:IEXPected" on page 590 · ":POWer:SIGNals:OVERshoot" on page 591 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599

582

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:SIGNals:CYCLes:QUALity

(see page 1164)

Command Syntax :POWer:SIGNals:CYCLes:QUALity <count>

<count> ::= integer in NR1 format

Query Syntax Return Format

Legal values are 1 to 100.
The :POWer:SIGNals:CYCLes:QUALity command specifies the number of cycles to include in the power quality analysis.
:POWer:SIGNals:CYCLes:QUALity?
The :POWer:SIGNals:CYCLes:QUALity query returns the number of cycles currently set.
<count><NL>

See Also

<count> ::= integer in NR1 format
· ":POWer:QUALity:APPLy" on page 578 · ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:SIGNals:IEXPected" on page 590 · ":POWer:SIGNals:OVERshoot" on page 591 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

583

24 :POWer Commands

:POWer:SIGNals:DURation:EFFiciency

(see page 1164)

Command Syntax :POWer:SIGNals:DURation:EFFiciency <value>[suffix]

<value> ::= value in NR3 format

Query Syntax Return Format

[suffix] ::= {s | ms | us | ns}
The :POWer:SIGNals:DURation:EFFiciency command specifies the duration of the efficiency analysis.
:POWer:SIGNals:DURation:EFFiciency?
The :POWer:SIGNals:DURation:EFFiciency query returns the set duration time value.
<value><NL>

See Also

<value> ::= value in NR3 format
· ":POWer:EFFiciency:APPLy" on page 552 · ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:SIGNals:IEXPected" on page 590 · ":POWer:SIGNals:OVERshoot" on page 591 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599

584

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:SIGNals:DURation:MODulation

(see page 1164)

Command Syntax :POWer:SIGNals:DURation:MODulation <value>[suffix]

<value> ::= value in NR3 format

Query Syntax Return Format

[suffix] ::= {s | ms | us | ns}
The :POWer:SIGNals:DURation:MODulation command specifies the duration of the modulation analysis.
:POWer:SIGNals:DURation:MODulation?
The :POWer:SIGNals:DURation:MODulation query returns the set duration time value.
<value><NL>

See Also

<value> ::= value in NR3 format
· ":POWer:MODulation:APPLy" on page 567 · ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:SIGNals:IEXPected" on page 590 · ":POWer:SIGNals:OVERshoot" on page 591 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

585

24 :POWer Commands

:POWer:SIGNals:DURation:ONOFf:OFF

(see page 1164)

Command Syntax :POWer:SIGNals:DURation:ONOFf:OFF <value>[suffix]

<value> ::= value in NR3 format

Query Syntax Return Format

[suffix] ::= {s | ms | us | ns}
The :POWer:SIGNals:DURation:ONOFf:OFF command specifies the duration of the turn off analysis.
:POWer:SIGNals:DURation:ONOFf:OFF?
The :POWer:SIGNals:DURation:ONOFf:OFF query returns the set duration time value.
<value><NL>

See Also

<value> ::= value in NR3 format
· ":POWer:ONOFf:APPLy" on page 570 · ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:SIGNals:IEXPected" on page 590 · ":POWer:SIGNals:OVERshoot" on page 591 · ":POWer:SIGNals:VMAXimum:ONOFf:OFF" on page 593 · ":POWer:SIGNals:VSTeady:ONOFf:OFF" on page 595 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599

586

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:SIGNals:DURation:ONOFf:ON

(see page 1164)

Command Syntax :POWer:SIGNals:DURation:ONOFf:ON <value>[suffix]

<value> ::= value in NR3 format

Query Syntax Return Format

[suffix] ::= {s | ms | us | ns}
The :POWer:SIGNals:DURation:ONOFf:ON command specifies the duration of the turn on analysis.
:POWer:SIGNals:DURation:ONOFf:ON?
The :POWer:SIGNals:DURation:ONOFf:ON query returns the set duration time value.
<value><NL>

See Also

<value> ::= value in NR3 format
· ":POWer:ONOFf:APPLy" on page 570 · ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:SIGNals:IEXPected" on page 590 · ":POWer:SIGNals:OVERshoot" on page 591 · ":POWer:SIGNals:VMAXimum:ONOFf:ON" on page 594 · ":POWer:SIGNals:VSTeady:ONOFf:ON" on page 596 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

587

24 :POWer Commands

:POWer:SIGNals:DURation:RIPPle

(see page 1164)

Command Syntax :POWer:SIGNals:DURation:RIPPle <value>[suffix]

<value> ::= value in NR3 format

Query Syntax

[suffix] ::= {s | ms | us | ns}
The :POWer:SIGNals:DURation:RIPPle command specifies the duration of the output ripple analysis.
:POWer:SIGNals:DURation:RIPPle?
The :POWer:SIGNals:DURation:RIPPle query returns the set duration time value.

Return Format <value><NL>

See Also

<value> ::= value in NR3 format
· ":POWer:RIPPle:APPLy" on page 580 · ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:SIGNals:IEXPected" on page 590 · ":POWer:SIGNals:OVERshoot" on page 591 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599

588

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:SIGNals:DURation:TRANsient

(see page 1164)

Command Syntax :POWer:SIGNals:DURation:TRANsient <value>[suffix]

<value> ::= value in NR3 format

Query Syntax Return Format

[suffix] ::= {s | ms | us | ns}
The :POWer:SIGNals:DURation:TRANsient command specifies the duration of the transient response analysis.
:POWer:SIGNals:DURation:TRANsient?
The :POWer:SIGNals:DURation:TRANsient query returns the set duration time value.
<value><NL>

See Also

<value> ::= value in NR3 format
· ":POWer:TRANsient:APPLy" on page 608 · ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:SIGNals:IEXPected" on page 590 · ":POWer:SIGNals:OVERshoot" on page 591 · ":POWer:SIGNals:VSTeady:TRANsient" on page 597 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

589

24 :POWer Commands

:POWer:SIGNals:IEXPected

(see page 1164)

Command Syntax :POWer:SIGNals:IEXPected <value>[suffix]

<value> ::= Expected current value in NR3 format

[suffix] ::= {A | mA}
The :POWer:SIGNals:IEXPected command specifies the expected inrush current amplitude. This value is used to set the vertical scale of the channel probing current.

Query Syntax Return Format

:POWer:SIGNals:IEXPected?
The :POWer:SIGNals:IEXPected query returns the expected inrush current setting.
<value><NL>

See Also

<value> ::= Expected current value in NR3 format
· ":POWer:INRush:APPLy" on page 564 · ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:SIGNals:OVERshoot" on page 591 · ":POWer:SIGNals:VMAXimum:INRush" on page 592 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599

590

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:SIGNals:OVERshoot

(see page 1164)

Command Syntax :POWer:SIGNals:OVERshoot <percent>

Query Syntax Return Format

<percent> ::= percent of overshoot value in NR1 format
The :POWer:SIGNals:OVERshoot command specifies the percent of overshoot of the output voltage. This value is used to determine the settling band value for the transient response and to adjust the vertical scale of the oscilloscope.
:POWer:SIGNals:OVERshoot?
The :POWer:SIGNals:OVERshoot query returns the overshoot percent setting.
<percent><NL>

See Also

<percent> ::= percent of overshoot value in NR1 format
· ":POWer:TRANsient:APPLy" on page 608 · ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:SIGNals:DURation:TRANsient" on page 589 · ":POWer:SIGNals:IEXPected" on page 590 · ":POWer:SIGNals:VSTeady:TRANsient" on page 597 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

591

24 :POWer Commands

:POWer:SIGNals:VMAXimum:INRush

(see page 1164)

Command Syntax :POWer:SIGNals:VMAXimum:INRush <value>[suffix]

<value> ::= Maximum expected input Voltage in NR3 format

[suffix] ::= {V | mV}
The :POWer:SIGNals:VMAXimum:INRush command specifies the maximum expected input voltage. This value is used to set the vertical scale of the channel probing voltage for inrush current analysis.

Query Syntax Return Format

:POWer:SIGNals:VMAXimum:INRush?
The :POWer:SIGNals:VMAXimum:INRush query returns the expected maximum input voltage setting.
<value><NL>

See Also

<value> ::= Maximum expected input Voltage in NR3 format
· ":POWer:INRush:APPLy" on page 564 · ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:SIGNals:IEXPected" on page 590 · ":POWer:SIGNals:OVERshoot" on page 591 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599

592

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:SIGNals:VMAXimum:ONOFf:OFF

(see page 1164)

Command Syntax :POWer:SIGNals:VMAXimum:ONOFf:OFF <value>[suffix]

<value> ::= Maximum expected input Voltage in NR3 format

[suffix] ::= {V | mV}
The :POWer:SIGNals:VMAXimum:ONOFf:OFF command specifies the maximum expected input voltage. This value is used to set the vertical scale of the channel probing voltage for turn off analysis.

Query Syntax Return Format

:POWer:SIGNals:VMAXimum:ONOFf:OFF?
The :POWer:SIGNals:VMAXimum:ONOFf:OFF query returns the expected maximum input voltage setting.
<value><NL>

See Also

<value> ::= Maximum expected input Voltage in NR3 format
· ":POWer:ONOFf:APPLy" on page 570 · ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:SIGNals:DURation:ONOFf:OFF" on page 586 · ":POWer:SIGNals:IEXPected" on page 590 · ":POWer:SIGNals:OVERshoot" on page 591 · ":POWer:SIGNals:VSTeady:ONOFf:OFF" on page 595 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

593

24 :POWer Commands

:POWer:SIGNals:VMAXimum:ONOFf:ON

(see page 1164)

Command Syntax :POWer:SIGNals:VMAXimum:ONOFf:ON <value>[suffix]

<value> ::= Maximum expected input Voltage in NR3 format

[suffix] ::= {V | mV}
The :POWer:SIGNals:VMAXimum:ONOFf:ON command specifies the maximum expected input voltage. This value is used to set the vertical scale of the channel probing voltage for turn on analysis.

Query Syntax Return Format

:POWer:SIGNals:VMAXimum:ONOFf:ON?
The :POWer:SIGNals:VMAXimum:ONOFf:ON query returns the expected maximum input voltage setting.
<value><NL>

See Also

<value> ::= Maximum expected input Voltage in NR3 format
· ":POWer:ONOFf:APPLy" on page 570 · ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:SIGNals:DURation:ONOFf:ON" on page 587 · ":POWer:SIGNals:IEXPected" on page 590 · ":POWer:SIGNals:OVERshoot" on page 591 · ":POWer:SIGNals:VSTeady:ONOFf:ON" on page 596 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599

594

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:SIGNals:VSTeady:ONOFf:OFF

(see page 1164)

Command Syntax :POWer:SIGNals:VSTeady:ONOFf:OFF <value>[suffix]

<value> ::= Expected steady state output Voltage value in NR3 format

Query Syntax Return Format

[suffix] ::= {V | mV}
The :POWer:SIGNals:VSTeady:ONOFf:OFF command specifies the expected steady state output DC voltage of the power supply for turn off analysis.
:POWer:SIGNals:VSTeady:ONOFf:OFF?
The :POWer:SIGNals:VSTeady:ONOFf:OFF query returns the expected steady state voltage setting.
<value><NL>

See Also

<value> ::= Expected steady state output Voltage value in NR3 format
· ":POWer:ONOFf:APPLy" on page 570 · ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:SIGNals:DURation:ONOFf:OFF" on page 586 · ":POWer:SIGNals:IEXPected" on page 590 · ":POWer:SIGNals:OVERshoot" on page 591 · ":POWer:SIGNals:VMAXimum:ONOFf:OFF" on page 593 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

595

24 :POWer Commands

:POWer:SIGNals:VSTeady:ONOFf:ON

(see page 1164)

Command Syntax :POWer:SIGNals:VSTeady:ONOFf:ON <value>[suffix]

<value> ::= Expected steady state output Voltage value in NR3 format

Query Syntax Return Format

[suffix] ::= {V | mV}
The :POWer:SIGNals:VSTeady:ONOFf:ON command specifies the expected steady state output DC voltage of the power supply for turn on analysis.
:POWer:SIGNals:VSTeady:ONOFf:ON?
The :POWer:SIGNals:VSTeady:ONOFf:ON query returns the expected steady state voltage setting.
<value><NL>

See Also

<value> ::= Expected steady state output Voltage value in NR3 format
· ":POWer:ONOFf:APPLy" on page 570 · ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:SIGNals:DURation:ONOFf:ON" on page 587 · ":POWer:SIGNals:IEXPected" on page 590 · ":POWer:SIGNals:OVERshoot" on page 591 · ":POWer:SIGNals:VMAXimum:ONOFf:ON" on page 594 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599

596

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:SIGNals:VSTeady:TRANsient

(see page 1164)

Command Syntax :POWer:SIGNals:VSTeady:TRANsient <value>[suffix]

<value> ::= Expected steady state output Voltage value in NR3 format

Query Syntax Return Format

[suffix] ::= {V | mV}
The :POWer:SIGNals:VSTeady:TRANsient command specifies the expected steady state output DC voltage of the power supply for transient response analysis. This value is used along with the overshoot percentage to specify the settling band for the transient response and to adjust the vertical scale of the oscilloscope.
:POWer:SIGNals:VSTeady:TRANsient?
The :POWer:SIGNals:VSTeady:TRANsient query returns the expected steady state voltage setting.
<value><NL>

See Also

<value> ::= Expected steady state output Voltage value in NR3 format
· ":POWer:TRANsient:APPLy" on page 608 · ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:SIGNals:DURation:TRANsient" on page 589 · ":POWer:SIGNals:IEXPected" on page 590 · ":POWer:SIGNals:OVERshoot" on page 591 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598 · ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

597

24 :POWer Commands

:POWer:SIGNals:SOURce:CURRent<i>

(see page 1164)

Command Syntax :POWer:SIGNals:SOURce:CURRent<i> <source>

<i> ::= 1, 2 in NR1 format

<source> ::= CHANnel<n>

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :POWer:SIGNals:SOURce:CURRent<i> command specifies the first, and perhaps second, current source channel to be used in the power analysis.
:POWer:SIGNals:SOURce:CURRent<i>?
The :POWer:SIGNals:SOURce:CURRent<i> query returns the current source channel setting.
<source><NL>

<source> ::= CHANnel<n>

See Also

<n> ::= 1 to (# analog channels) in NR1 format
· ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:SIGNals:CYCLes:HARMonics" on page 582 · ":POWer:SIGNals:CYCLes:QUALity" on page 583 · ":POWer:SIGNals:DURation:EFFiciency" on page 584 · ":POWer:SIGNals:DURation:MODulation" on page 585 · ":POWer:SIGNals:DURation:ONOFf:OFF" on page 586 · ":POWer:SIGNals:DURation:ONOFf:ON" on page 587 · ":POWer:SIGNals:DURation:RIPPle" on page 588 · ":POWer:SIGNals:DURation:TRANsient" on page 589 · ":POWer:SIGNals:IEXPected" on page 590 · ":POWer:SIGNals:OVERshoot" on page 591 · ":POWer:SIGNals:VMAXimum:INRush" on page 592 · ":POWer:SIGNals:VMAXimum:ONOFf:OFF" on page 593 · ":POWer:SIGNals:VMAXimum:ONOFf:ON" on page 594 · ":POWer:SIGNals:VSTeady:ONOFf:OFF" on page 595 · ":POWer:SIGNals:VSTeady:ONOFf:ON" on page 596 · ":POWer:SIGNals:VSTeady:TRANsient" on page 597 · ":POWer:SIGNals:SOURce:VOLTage<i>" on page 599

598

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:SIGNals:SOURce:VOLTage<i>

(see page 1164)

Command Syntax :POWer:SIGNals:SOURce:VOLTage<i> <source>

<i> ::= 1, 2 in NR1 format

<source> ::= CHANnel<n>

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :POWer:SIGNals:SOURce:VOLTage<i> command specifies the first, and perhaps second, voltage source channel to be used in the power analysis.
:POWer:SIGNals:SOURce:VOLTage<i>?
The :POWer:SIGNals:SOURce:VOLTage<i> query returns the voltage source channel setting.
<source><NL>

<source> ::= CHANnel<n>

See Also

<n> ::= 1 to (# analog channels) in NR1 format
· ":POWer:SIGNals:AUTosetup" on page 581 · ":POWer:SIGNals:CYCLes:HARMonics" on page 582 · ":POWer:SIGNals:CYCLes:QUALity" on page 583 · ":POWer:SIGNals:DURation:EFFiciency" on page 584 · ":POWer:SIGNals:DURation:MODulation" on page 585 · ":POWer:SIGNals:DURation:ONOFf:OFF" on page 586 · ":POWer:SIGNals:DURation:ONOFf:ON" on page 587 · ":POWer:SIGNals:DURation:RIPPle" on page 588 · ":POWer:SIGNals:DURation:TRANsient" on page 589 · ":POWer:SIGNals:IEXPected" on page 590 · ":POWer:SIGNals:OVERshoot" on page 591 · ":POWer:SIGNals:VMAXimum:INRush" on page 592 · ":POWer:SIGNals:VMAXimum:ONOFf:OFF" on page 593 · ":POWer:SIGNals:VMAXimum:ONOFf:ON" on page 594 · ":POWer:SIGNals:VSTeady:ONOFf:OFF" on page 595 · ":POWer:SIGNals:VSTeady:ONOFf:ON" on page 596 · ":POWer:SIGNals:VSTeady:TRANsient" on page 597 · ":POWer:SIGNals:SOURce:CURRent<i>" on page 598

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

599

24 :POWer Commands

:POWer:SLEW:APPLy

Command Syntax See Also

(see page 1164)
:POWer:SLEW:APPLy
The :POWer:SLEW:APPLy command applies the slew rate analysis. · ":POWer:SLEW:SOURce" on page 601

600

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:SLEW:SOURce

(see page 1164)

Command Syntax :POWer:SLEW:SOURce <source>

<source> ::= {V | I}
The :POWer:SLEW:SOURce command selects either the voltage source or the current source as the source for the slew rate analysis.

Query Syntax Return Format

:POWer:SLEW:SOURce?
The :POWer:SLEW:SOURce query returns the selected source for the slew rate analysis.
<source><NL>

<source> ::= {V | I}
See Also · ":POWer:SLEW:APPLy" on page 600

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

601

24 :POWer Commands

:POWer:SWITch:APPLy

Command Syntax See Also

(see page 1164)
:POWer:SWITch:APPLy
The :POWer:SWITch:APPLy command applies the switching loss analysis using the conduction calculation method, V reference, and I reference settings. · ":POWer:SWITch:CONDuction" on page 603 · ":POWer:SWITch:IREFerence" on page 604 · ":POWer:SWITch:RDS" on page 605 · ":POWer:SWITch:VCE" on page 606 · ":POWer:SWITch:VREFerence" on page 607 · ":MEASure:ELOSs" on page 493 · ":MEASure:PLOSs" on page 500

602

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:SWITch:CONDuction

(see page 1164)

Command Syntax :POWer:SWITch:CONDuction <conduction>

Query Syntax Return Format

<conduction> ::= {WAVeform | RDS | VCE}
The :POWer:SWITch:CONDuction command specifies the conduction calculation method: · WAVeform -- The Power waveform uses the original voltage waveform data,
and the calculation is: P = V x I · RDS -- Rds(on) -- The Power waveform includes error correction:
· In the On Zone (where the voltage level is below V Ref) ­ the Power calculation is: P = Id2 x Rds(on) Specify Rds(on) using the :POWer:SWITch:RDS command.
· In the Off Zone (where the current level is below I Ref) ­ the Power calculation is: P = 0 Watt.
· VCE -- Vce(sat) -- The Power waveform includes error correction: · In the On Zone (where the voltage level is below V Ref) ­ the Power calculation is: P = Vce(sat) x Ic Specify Vce(sat) using the :POWer:SWITch:VCE command. · In the Off Zone (where the current level is below I Ref) ­ the Power calculation is: P = 0 Watt.
:POWer:SWITch:CONDuction?
The :POWer:SWITch:CONDuction query returns the conduction calculation method.
<conduction><NL>

See Also

<conduction> ::= {WAV | RDS | VCE}
· ":POWer:SWITch:APPLy" on page 602 · ":POWer:SWITch:IREFerence" on page 604 · ":POWer:SWITch:RDS" on page 605 · ":POWer:SWITch:VCE" on page 606 · ":POWer:SWITch:VREFerence" on page 607

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

603

24 :POWer Commands

:POWer:SWITch:IREFerence

(see page 1164)

Command Syntax :POWer:SWITch:IREFerence <percent>

<percent> ::= percent in NR1 format
The :POWer:SWITch:IREFerence command to specify the current switching level for the start of switching edges. The value is in percentage of the maximum switch current. You can adjust this value to ignore noise floors or null offset that is difficult to eliminate in current probes. This value specifies the threshold that is used to determine the switching edges.

Query Syntax Return Format

:POWer:SWITch:IREFerence?
The :POWer:SWITch:IREFerence query returns the current switching level percent value.
<percent><NL>

See Also

<percent> ::= percent in NR1 format
· ":POWer:SWITch:APPLy" on page 602 · ":POWer:SWITch:CONDuction" on page 603 · ":POWer:SWITch:RDS" on page 605 · ":POWer:SWITch:VCE" on page 606 · ":POWer:SWITch:VREFerence" on page 607

604

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:SWITch:RDS

(see page 1164)

Command Syntax :POWer:SWITch:RDS <value>[suffix]

<value> ::= Rds(on) value in NR3 format

Query Syntax

[suffix] ::= {OHM | mOHM}
The :POWer:SWITch:RDS command specifies the Rds(on) value when the RDS conduction calculation method is chosen (by :POWer:SWITch:CONDuction).
:POWer:SWITch:RDS?
The :POWer:SWITch:RDS query returns the Rds(on) value.

Return Format <value><NL>

See Also

<value> ::= Rds(on) value in NR3 format
· ":POWer:SWITch:APPLy" on page 602 · ":POWer:SWITch:CONDuction" on page 603 · ":POWer:SWITch:IREFerence" on page 604 · ":POWer:SWITch:VCE" on page 606 · ":POWer:SWITch:VREFerence" on page 607

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

605

24 :POWer Commands

:POWer:SWITch:VCE

(see page 1164)

Command Syntax :POWer:SWITch:VCE <value>[suffix]

<value> ::= Vce(sat) value in NR3 format

Query Syntax

[suffix] ::= {V | mV}
The :POWer:SWITch:VCE command specifies the Vce(sat) value when the VCE conduction calculation method is chosen (by :POWer:SWITch:CONDuction).
:POWer:SWITch:VCE?
The :POWer:SWITch:VCE query returns the Vce(sat) value.

Return Format <value><NL>

See Also

<value> ::= Vce(sat) value in NR3 format
· ":POWer:SWITch:APPLy" on page 602 · ":POWer:SWITch:CONDuction" on page 603 · ":POWer:SWITch:IREFerence" on page 604 · ":POWer:SWITch:RDS" on page 605 · ":POWer:SWITch:VREFerence" on page 607

606

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:SWITch:VREFerence

(see page 1164)

Command Syntax :POWer:SWITch:VREFerence <percent>

Query Syntax Return Format

<percent> ::= percent in NR1 format
The :POWer:SWITch:VREFerence command to specify the voltage switching level for the switching edges. The value is in percentage of the maximum switch voltage. You can adjust this value to ignore noise floors. This value specifies the threshold that is used to determine the switching edges.
:POWer:SWITch:VREFerence?
The :POWer:SWITch:VREFerence query returns the voltage switching level percent value.
<percent><NL>

See Also

<percent> ::= percent in NR1 format
· ":POWer:SWITch:APPLy" on page 602 · ":POWer:SWITch:CONDuction" on page 603 · ":POWer:SWITch:IREFerence" on page 604 · ":POWer:SWITch:RDS" on page 605 · ":POWer:SWITch:VCE" on page 606

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

607

24 :POWer Commands

:POWer:TRANsient:APPLy

Command Syntax See Also

(see page 1164)
:POWer:TRANsient:APPLy
The :POWer:TRANsient:APPLy command applies the transient analysis using the initial current and new current settings. · ":POWer:TRANsient:EXIT" on page 609 · ":POWer:TRANsient:IINitial" on page 610 · ":POWer:TRANsient:INEW" on page 611 · ":POWer:TRANsient:NEXT" on page 612 · ":MEASure:TRESponse" on page 504

608

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:TRANsient:EXIT

Command Syntax See Also

(see page 1164)
:POWer:TRANsient:EXIT
The :POWer:TRANsient:EXIT command exits (stops) the transient analysis. This command is equivalent to pressing the Exit softkey on the oscilloscope front panel during the analysis. · ":POWer:TRANsient:APPLy" on page 608 · ":POWer:TRANsient:IINitial" on page 610 · ":POWer:TRANsient:INEW" on page 611 · ":POWer:TRANsient:NEXT" on page 612

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

609

24 :POWer Commands

:POWer:TRANsient:IINitial

(see page 1164)

Command Syntax :POWer:TRANsient:IINitial <value>[suffix]

<value> ::= Initial current value in NR3 format

Query Syntax

[suffix] ::= {A | mA}
The :POWer:TRANsient:IINitial command to specify the initial load current value. The initial load current will be used as a reference and to trigger the oscilloscope.
:POWer:TRANsient:IINitial?
The :POWer:TRANsient:IINitial query returns the initial load current value.

Return Format <value><NL>

See Also

<value> ::= Initial current value in NR3 format
· ":POWer:SIGNals:VSTeady:TRANsient" on page 597 · ":POWer:TRANsient:APPLy" on page 608 · ":POWer:TRANsient:EXIT" on page 609 · ":POWer:TRANsient:INEW" on page 611 · ":POWer:TRANsient:NEXT" on page 612

610

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:POWer Commands 24

:POWer:TRANsient:INEW

(see page 1164)

Command Syntax :POWer:TRANsient:INEW <value>[suffix]

<value> ::= New current value in NR3 format

Query Syntax

[suffix] ::= {A | mA}
The :POWer:TRANsient:INEW command to specify the new load current value. The new load current will be used as a reference and to trigger the oscilloscope.
:POWer:TRANsient:INEW?
The :POWer:TRANsient:INEW query returns the new load current value.

Return Format <value><NL>

See Also

<value> ::= New current value in NR3 format
· ":POWer:TRANsient:APPLy" on page 608 · ":POWer:TRANsient:EXIT" on page 609 · ":POWer:TRANsient:IINitial" on page 610 · ":POWer:TRANsient:NEXT" on page 612

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

611

24 :POWer Commands

:POWer:TRANsient:NEXT

Command Syntax See Also

(see page 1164)
:POWer:TRANsient:NEXT
The :POWer:TRANsient:NEXT command goes to the next step of the transient analysis. This command is equivalent to pressing the Next softkey on the oscilloscope front panel when prompted during the analysis. · ":POWer:TRANsient:APPLy" on page 608 · ":POWer:TRANsient:EXIT" on page 609 · ":POWer:TRANsient:IINitial" on page 610 · ":POWer:TRANsient:INEW" on page 611

612

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
25 :RECall Commands

Recall previously saved oscilloscope setups, reference waveforms, and masks.

Table 97 :RECall Commands Summary

Command

Query

:RECall:ARBitrary:[ST n/a
ARt] [<file_spec>][,
<column>] (see page 615)

:RECall:FILename <base_name> (see page 616)
:RECall:MASK[:STARt] [<file_spec>] (see page 617)

:RECall:FILename? (see page 616)
n/a

:RECall:PWD
<path_name> (see page 618)

:RECall:PWD? (see page 618)

Options and Query Returns
<file_spec> ::= {<internal_loc> | <file_name>} <column> ::= Column in CSV file to load. Column number starts from 1. <internal_loc> ::= 0-3; an integer in NR1 format <file_name> ::= quoted ASCII string
<base_name> ::= quoted ASCII string
<file_spec> ::= {<internal_loc> | <file_name>} <internal_loc> ::= 0-3; an integer in NR1 format <file_name> ::= quoted ASCII string
<path_name> ::= quoted ASCII string

613

25 :RECall Commands

Table 97 :RECall Commands Summary (continued)

Command

Query

:RECall:SETup[:STARt] n/a
[<file_spec>] (see page 619)

:RECall:WMEMory<r>[:S n/a
TARt] [<file_name>] (see page 620)

Options and Query Returns
<file_spec> ::= {<internal_loc> | <file_name>} <internal_loc> ::= 0-9; an integer in NR1 format <file_name> ::= quoted ASCII string
<r> ::= 1-2 in NR1 format <file_name> ::= quoted ASCII string If extension included in file name, it must be ".h5".

Introduction to The :RECall subsystem provides commands to recall previously saved oscilloscope :RECall Commands setups, reference waveforms, and masks.
Reporting the Setup Use :RECall? to query setup information for the RECall subsystem.
Return Format The following is a sample response from the :RECall? query. In this case, the query was issued following the *RST command.
:REC:FIL "scope_0"
Recalling Files From a USB Storage Device When :RECall commands have a "quoted ASCII string" <file_name> parameter, you can recall files from a connected USB storage device. For example:
' To recall a setup file from a connected USB storage device: myScope.WriteString ":RECall:SETup:STARt ""\usb\my_setup_file.scp"""

614

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:RECall Commands 25

:RECall:ARBitrary[:STARt]

(see page 1164) Command Syntax :RECall:ARBitrary:[STARt] [<file_spec>][, <column>]
<file_spec> ::= {<internal_loc> | <file_name>} <column> ::= Column in CSV file to load. Column number starts from 1. <internal_loc> ::= 0-3; an integer in NR1 format <file_name> ::= quoted ASCII string
The :RECall:ARBitrary:[STARt] command recalls an arbitrary waveform.

NOTE

If a file extension is provided as part of a specified <file_name>, it must be ".csv".

See Also

For internal locations, the <column> parameter is ignored. For external (USB storage device) files, the column parameter is optional. If no <column> parameter is entered, and it is a 2-column file, the 2nd column (assumed to be voltage) is automatically be selected. If the <column> parameter is entered, and that column does not exist in the file, the operation fails. When recalling arbitrary waveforms (from an external USB storage device) that were not saved from the oscilloscope, be aware that the oscilloscope uses a maximum of 8192 points for an arbitrary waveform. For more efficient recalls, make sure your arbitrary waveforms are 8192 points or less. · "Introduction to :RECall Commands" on page 614 · ":RECall:FILename" on page 616 · ":SAVE:ARBitrary[:STARt]" on page 624

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

615

25 :RECall Commands

:RECall:FILename

(see page 1164) Command Syntax :RECall:FILename <base_name>
<base_name> ::= quoted ASCII string
The :RECall:FILename command specifies the source for any RECall operations.

NOTE

This command specifies a file's base name only, without path information or an extension.

Query Syntax Return Format

:RECall:FILename?
The :RECall:FILename? query returns the current RECall filename.
<base_name><NL>

See Also

<base_name> ::= quoted ASCII string
· "Introduction to :RECall Commands" on page 614 · ":RECall:SETup[:STARt]" on page 619 · ":SAVE:FILename" on page 625

616

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:RECall Commands 25

:RECall:MASK[:STARt]

(see page 1164) Command Syntax :RECall:MASK[:STARt] [<file_spec>]
<file_spec> ::= {<internal_loc> | <file_name>} <internal_loc> ::= 0-3; an integer in NR1 format <file_name> ::= quoted ASCII string
The :RECall:MASK[:STARt] command recalls a mask.

NOTE

If a file extension is provided as part of a specified <file_name>, it must be ".msk".

See Also

· "Introduction to :RECall Commands" on page 614 · ":RECall:FILename" on page 616 · ":SAVE:MASK[:STARt]" on page 632 · ":MTESt:DATA" on page 520

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

617

25 :RECall Commands

:RECall:PWD

(see page 1164)

Command Syntax :RECall:PWD <path_name>

<path_name> ::= quoted ASCII string
The :RECall:PWD command sets the present working directory for recall operations.

Query Syntax Return Format

:RECall:PWD?
The :RECall:PWD? query returns the currently set working directory for recall operations.
<path_name><NL>

See Also

<path_name> ::= quoted ASCII string
· "Introduction to :RECall Commands" on page 614 · ":SAVE:PWD" on page 635

618

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:RECall Commands 25

:RECall:SETup[:STARt]

(see page 1164) Command Syntax :RECall:SETup[:STARt] [<file_spec>]
<file_spec> ::= {<internal_loc> | <file_name>} <internal_loc> ::= 0-9; an integer in NR1 format <file_name> ::= quoted ASCII string
The :RECall:SETup[:STARt] command recalls an oscilloscope setup.

NOTE

If a file extension is provided as part of a specified <file_name>, it must be ".scp".

See Also

· "Introduction to :RECall Commands" on page 614 · ":RECall:FILename" on page 616 · ":SAVE:SETup[:STARt]" on page 636

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

619

25 :RECall Commands

:RECall:WMEMory<r>[:STARt]

(see page 1164) Command Syntax :RECall:WMEMory<r>[:STARt] [<file_name>]
<r> ::= 1-2 in NR1 format <file_name> ::= quoted ASCII string
The :RECall:WMEMory<r>[:STARt] command recalls a reference waveform.

NOTE

If a file extension is provided as part of a specified <file_name>, it must be ".h5".

See Also

· "Introduction to :RECall Commands" on page 614 · ":RECall:FILename" on page 616 · ":SAVE:WMEMory[:STARt]" on page 643

620

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
26 :SAVE Commands

Save oscilloscope setups, screen images, and data. See "Introduction to :SAVE Commands" on page 623.

Table 98 :SAVE Commands Summary

Command

Query

Options and Query Returns

:SAVE:ARBitrary:[STAR n/a
t] [<file_spec>] (see page 624)

<file_spec> ::= {<internal_loc> | <file_name>}
<internal_loc> ::= 0-3; an integer in NR1 format
<file_name> ::= quoted ASCII string

:SAVE:FILename
<base_name> (see page 625)

:SAVE:FILename? (see <base_name> ::= quoted ASCII

page 625)

string

:SAVE:IMAGe[:STARt] n/a
[<file_name>] (see page 626)

<file_name> ::= quoted ASCII string

:SAVE:IMAGe:FACTors
{{0 | OFF} | {1 | ON}} (see page 627)

:SAVE:IMAGe:FACTors? {0 | 1} (see page 627)

:SAVE:IMAGe:FORMat
<format> (see page 628)

:SAVE:IMAGe:FORMat? (see page 628)

<format> ::= {{BMP | BMP24bit} | BMP8bit | PNG | NONE}

:SAVE:IMAGe:INKSaver
{{0 | OFF} | {1 | ON}} (see page 629)

:SAVE:IMAGe:INKSaver? {0 | 1} (see page 629)

:SAVE:IMAGe:PALette
<palette> (see page 630)

:SAVE:IMAGe:PALette? <palette> ::= {COLor | GRAYscale} (see page 630)

:SAVE:LISTer[:STARt] n/a
[<file_name>] (see page 631)

<file_name> ::= quoted ASCII string

621

26 :SAVE Commands

Table 98 :SAVE Commands Summary (continued)

Command

Query

Options and Query Returns

:SAVE:MASK[:STARt]

n/a

[<file_spec>] (see page 632)

<file_spec> ::= {<internal_loc> | <file_name>}
<internal_loc> ::= 0-3; an integer in NR1 format
<file_name> ::= quoted ASCII string

:SAVE:MULTi[:STARt] n/a
[<file_name>] (see page 633)

<file_name> ::= quoted ASCII string

:SAVE:POWer[:STARt] n/a
[<file_name>] (see page 634)

<file_name> ::= quoted ASCII string

:SAVE:PWD <path_name> :SAVE:PWD? (see

(see page 635)

page 635)

<path_name> ::= quoted ASCII string

:SAVE:SETup[:STARt] n/a
[<file_spec>] (see page 636)

<file_spec> ::= {<internal_loc> | <file_name>}
<internal_loc> ::= 0-9; an integer in NR1 format
<file_name> ::= quoted ASCII string

:SAVE:WAVeform[:STARt n/a
] [<file_name>] (see page 637)

<file_name> ::= quoted ASCII string

:SAVE:WAVeform:FORMat :SAVE:WAVeform:FORMat <format> ::= {ASCiixy | CSV |

<format> (see

? (see page 638)

BINary | NONE}

page 638)

:SAVE:WAVeform:LENGth :SAVE:WAVeform:LENGth <length> ::= 100 to max. length;

<length> (see

? (see page 639)

an integer in NR1 format

page 639)

:SAVE:WAVeform:LENGth :SAVE:WAVeform:LENGth {0 | 1} :MAX {{0 | OFF} | {1 :MAX? (see page 640) | ON}} (see page 640)

:SAVE:WAVeform:SEGMen :SAVE:WAVeform:SEGMen <option> ::= {ALL | CURRent}

ted <option> (see

ted? (see page 641)

page 641)

622

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SAVE Commands 26

Table 98 :SAVE Commands Summary (continued)

Command

Query

Options and Query Returns

:SAVE:WMEMory:SOURce
<source> (see page 642)

:SAVE:WMEMory:SOURce? (see page 642)

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
NOTE: Only ADD or SUBtract math operations can be saved as reference waveforms.
<return_value> ::= <source>

:SAVE:WMEMory[:STARt] n/a
[<file_name>] (see page 643)

<file_name> ::= quoted ASCII string
If extension included in file name, it must be ".h5".

Introduction to :SAVE Commands

The :SAVE subsystem provides commands to save oscilloscope setups, screen images, and data. :SAV is an acceptable short form for :SAVE.

Reporting the Setup Use :SAVE? to query setup information for the SAVE subsystem.

Return Format The following is a sample response from the :SAVE? query. In this case, the query was issued following the *RST command.

:SAVE:FIL "";:SAVE:IMAG:AREA GRAT;FACT 0;FORM TIFF;INKS 0;PAL MON;:SAVE:PWD "C:/setups/";:SAVE:WAV:FORM NONE;LENG 1000;SEGM CURR

Saving Files to a USB Storage Device When :SAVE commands have a "quoted ASCII string" <file_name> parameter, you can save files to a connected USB storage device. For example:

' To save a setup file to a connected USB storage device: myScope.WriteString ":SAVE:SETup:STARt ""\usb\my_setup_file.scp"""

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

623

26 :SAVE Commands

:SAVE:ARBitrary[:STARt]

(see page 1164) Command Syntax :SAVE:ARBitrary:[STARt] [<file_spec>]
<file_spec> ::= {<internal_loc> | <file_name>} <internal_loc> ::= 0-3; an integer in NR1 format <file_name> ::= quoted ASCII string
The :SAVE:ARBitrary:[STARt] command saves the current arbitrary waveform to an internal location or a file on a USB storage device.

NOTE

If a file extension is provided as part of a specified <file_name>, it must be ".csv".

See Also

· "Introduction to :SAVE Commands" on page 623 · ":SAVE:FILename" on page 625 · ":RECall:ARBitrary[:STARt]" on page 615

624

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SAVE Commands 26

:SAVE:FILename

(see page 1164) Command Syntax :SAVE:FILename <base_name>
<base_name> ::= quoted ASCII string
The :SAVE:FILename command specifies the source for any SAVE operations.

NOTE

This command specifies a file's base name only, without path information or an extension.

Query Syntax Return Format

:SAVE:FILename?
The :SAVE:FILename? query returns the current SAVE filename.
<base_name><NL>

See Also

<base_name> ::= quoted ASCII string
· "Introduction to :SAVE Commands" on page 623 · ":SAVE:IMAGe[:STARt]" on page 626 · ":SAVE:SETup[:STARt]" on page 636 · ":SAVE:WAVeform[:STARt]" on page 637 · ":SAVE:PWD" on page 635 · ":RECall:FILename" on page 616

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

625

26 :SAVE Commands

:SAVE:IMAGe[:STARt]

(see page 1164) Command Syntax :SAVE:IMAGe[:STARt] [<file_name>]
<file_name> ::= quoted ASCII string
The :SAVE:IMAGe[:STARt] command saves an image.

NOTE

Be sure to set the :SAVE:IMAGe:FORMat before saving an image. If the format is NONE, the save image command will not succeed.

NOTE

If a file extension is provided as part of a specified <file_name>, and it does not match the extension expected by the format specified in :SAVE:IMAGe:FORMat, the format will be changed if the extension is a valid image file extension.

NOTE

If the extension ".bmp" is used and the current :SAVE:IMAGe:FORMat is not BMP or BMP8, the format will be changed to BMP.

See Also

· "Introduction to :SAVE Commands" on page 623 · ":SAVE:IMAGe:FACTors" on page 627 · ":SAVE:IMAGe:FORMat" on page 628 · ":SAVE:IMAGe:INKSaver" on page 629 · ":SAVE:IMAGe:PALette" on page 630 · ":SAVE:FILename" on page 625

626

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SAVE Commands 26

:SAVE:IMAGe:FACTors

(see page 1164) Command Syntax :SAVE:IMAGe:FACTors <factors>
<factors> ::= {{OFF | 0} | {ON | 1}}
The :SAVE:IMAGe:FACTors command controls whether the oscilloscope factors are output along with the image.

NOTE

Factors are written to a separate file with the same path and base name but with the ".txt" extension.

Query Syntax Return Format

:SAVE:IMAGe:FACTors?
The :SAVE:IMAGe:FACTors? query returns a flag indicating whether oscilloscope factors are output along with the image.
<factors><NL>

See Also

<factors> ::= {0 | 1}
· "Introduction to :SAVE Commands" on page 623 · ":SAVE:IMAGe[:STARt]" on page 626 · ":SAVE:IMAGe:FORMat" on page 628 · ":SAVE:IMAGe:INKSaver" on page 629 · ":SAVE:IMAGe:PALette" on page 630

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

627

26 :SAVE Commands

:SAVE:IMAGe:FORMat

(see page 1164)

Command Syntax :SAVE:IMAGe:FORMat <format>

<format> ::= {{BMP | BMP24bit} | BMP8bit | PNG}
The :SAVE:IMAGe:FORMat command sets the image format type.

Query Syntax Return Format

:SAVE:IMAGe:FORMat?
The :SAVE:IMAGe:FORMat? query returns the selected image format type.
<format><NL>

<format> ::= {BMP | BMP8 | PNG | NONE}
When NONE is returned, it indicates that a waveform data file format is currently selected.

See Also

· "Introduction to :SAVE Commands" on page 623 · ":SAVE:IMAGe[:STARt]" on page 626 · ":SAVE:IMAGe:FACTors" on page 627 · ":SAVE:IMAGe:INKSaver" on page 629 · ":SAVE:IMAGe:PALette" on page 630 · ":SAVE:WAVeform:FORMat" on page 638

628

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SAVE Commands 26

:SAVE:IMAGe:INKSaver

(see page 1164)

Command Syntax :SAVE:IMAGe:INKSaver <value>

<value> ::= {{OFF | 0} | {ON | 1}}
The :SAVE:IMAGe:INKSaver command controls whether the graticule colors are inverted or not.

Query Syntax Return Format

:SAVE:IMAGe:INKSaver?
The :SAVE:IMAGe:INKSaver? query returns a flag indicating whether graticule colors are inverted or not.
<value><NL>

See Also

<value> ::= {0 | 1}
· "Introduction to :SAVE Commands" on page 623 · ":SAVE:IMAGe[:STARt]" on page 626 · ":SAVE:IMAGe:FACTors" on page 627 · ":SAVE:IMAGe:FORMat" on page 628 · ":SAVE:IMAGe:PALette" on page 630

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

629

26 :SAVE Commands

:SAVE:IMAGe:PALette

(see page 1164)

Command Syntax :SAVE:IMAGe:PALette <palette>

<palette> ::= {COLor | GRAYscale}
The :SAVE:IMAGe:PALette command sets the image palette color.

Query Syntax Return Format

:SAVE:IMAGe:PALette?
The :SAVE:IMAGe:PALette? query returns the selected image palette color.
<palette><NL>

See Also

<palette> ::= {COL | GRAY}
· "Introduction to :SAVE Commands" on page 623 · ":SAVE:IMAGe[:STARt]" on page 626 · ":SAVE:IMAGe:FACTors" on page 627 · ":SAVE:IMAGe:FORMat" on page 628 · ":SAVE:IMAGe:INKSaver" on page 629

630

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SAVE Commands 26

:SAVE:LISTer[:STARt]

(see page 1164) Command Syntax :SAVE:LISTer[:STARt] [<file_name>]
<file_name> ::= quoted ASCII string
The :SAVE:LISTer[:STARt] command saves the Lister display data to a file.

NOTE

If a file extension is provided as part of a specified <file_name>, it must be ".csv".

See Also

· "Introduction to :SAVE Commands" on page 623 · ":SAVE:FILename" on page 625 · Chapter 18, ":LISTer Commands," starting on page 385

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

631

26 :SAVE Commands

:SAVE:MASK[:STARt]

(see page 1164) Command Syntax :SAVE:MASK[:STARt] [<file_spec>]
<file_spec> ::= {<internal_loc> | <file_name>} <internal_loc> ::= 0-3; an integer in NR1 format <file_name> ::= quoted ASCII string
The :SAVE:MASK[:STARt] command saves a mask.

NOTE

If a file extension is provided as part of a specified <file_name>, it must be ".msk".

See Also

· "Introduction to :SAVE Commands" on page 623 · ":SAVE:FILename" on page 625 · ":RECall:MASK[:STARt]" on page 617 · ":MTESt:DATA" on page 520

632

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SAVE Commands 26

:SAVE:MULTi[:STARt]

(see page 1164) Command Syntax :SAVE:MULTi[:STARt] [<file_name>]
<file_name> ::= quoted ASCII string
The :SAVE:MULTi[:STARt] command saves multi-channel waveform data to a file. This file can be opened by the N8900A InfiniiView oscilloscope analysis software.

NOTE

If a file extension is provided as part of a specified <file_name>, it must be ".h5".

See Also

· "Introduction to :SAVE Commands" on page 623 · ":SAVE:FILename" on page 625 · ":SAVE:PWD" on page 635

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

633

26 :SAVE Commands

:SAVE:POWer[:STARt]

(see page 1164) Command Syntax :SAVE:POWer[:STARt] [<file_name>]
<file_name> ::= quoted ASCII string
The :SAVE:POWer[:STARt] command saves the power measurement application's current harmonics analysis results to a file.

NOTE

If a file extension is provided as part of a specified <file_name>, it must be ".csv".

See Also

· "Introduction to :SAVE Commands" on page 623 · ":SAVE:FILename" on page 625 · Chapter 24, ":POWer Commands," starting on page 545

634

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SAVE Commands 26

:SAVE:PWD

(see page 1164)

Command Syntax :SAVE:PWD <path_name>

<path_name> ::= quoted ASCII string
The :SAVE:PWD command sets the present working directory for save operations.

Query Syntax Return Format

:SAVE:PWD?
The :SAVE:PWD? query returns the currently set working directory for save operations.
<path_name><NL>

See Also

<path_name> ::= quoted ASCII string
· "Introduction to :SAVE Commands" on page 623 · ":SAVE:FILename" on page 625 · ":RECall:PWD" on page 618

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

635

26 :SAVE Commands

:SAVE:SETup[:STARt]

(see page 1164) Command Syntax :SAVE:SETup[:STARt] [<file_spec>]
<file_spec> ::= {<internal_loc> | <file_name>} <internal_loc> ::= 0-9; an integer in NR1 format <file_name> ::= quoted ASCII string
The :SAVE:SETup[:STARt] command saves an oscilloscope setup.

NOTE

If a file extension is provided as part of a specified <file_name>, it must be ".scp".

See Also

· "Introduction to :SAVE Commands" on page 623 · ":SAVE:FILename" on page 625 · ":RECall:SETup[:STARt]" on page 619

636

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SAVE Commands 26

:SAVE:WAVeform[:STARt]

(see page 1164) Command Syntax :SAVE:WAVeform[:STARt] [<file_name>]
<file_name> ::= quoted ASCII string
The :SAVE:WAVeform[:STARt] command saves oscilloscope waveform data to a file.

NOTE

Be sure to set the :SAVE:WAVeform:FORMat before saving waveform data. If the format is NONE, the save waveform command will not succeed.

NOTE

If a file extension is provided as part of a specified <file_name>, and it does not match the extension expected by the format specified in :SAVE:WAVeform:FORMat, the format will be changed if the extension is a valid waveform file extension.

See Also

· "Introduction to :SAVE Commands" on page 623 · ":SAVE:WAVeform:FORMat" on page 638 · ":SAVE:WAVeform:LENGth" on page 639 · ":SAVE:FILename" on page 625 · ":RECall:SETup[:STARt]" on page 619

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

637

26 :SAVE Commands

:SAVE:WAVeform:FORMat

(see page 1164)

Command Syntax :SAVE:WAVeform:FORMat <format>

Query Syntax Return Format

<format> ::= {ASCiixy | CSV | BINary}
The :SAVE:WAVeform:FORMat command sets the waveform data format type: · ASCiixy -- creates comma-separated value files for each analog channel that is
displayed (turned on). The proper file extension for this format is ".csv". · CSV -- creates one comma-separated value file that contains information for all
analog channels that are displayed (turned on). The proper file extension for this format is ".csv". · BINary -- creates an oscilloscope binary data format file. See the User's Guide for a description of this format. The proper file extension for this format is ".bin".
:SAVE:WAVeform:FORMat?
The :SAVE:WAVeform:FORMat? query returns the selected waveform data format type.
<format><NL>

See Also

<format> ::= {ASC | CSV | BIN | NONE}
When NONE is returned, it indicates that an image file format is currently selected.
· "Introduction to :SAVE Commands" on page 623 · ":SAVE:WAVeform[:STARt]" on page 637 · ":SAVE:WAVeform:LENGth" on page 639 · ":SAVE:IMAGe:FORMat" on page 628

638

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SAVE Commands 26

:SAVE:WAVeform:LENGth

(see page 1164)

Command Syntax :SAVE:WAVeform:LENGth <length>

Query Syntax Return Format

<length> ::= 100 to max. length; an integer in NR1 format
When the :SAVE:WAVeform:LENGth:MAX setting is OFF, the :SAVE:WAVeform:LENGth command sets the waveform data length (that is, the number of points saved). When the :SAVE:WAVeform:LENGth:MAX setting is ON, the :SAVE:WAVeform:LENGth setting has no effect.
:SAVE:WAVeform:LENGth?
The :SAVE:WAVeform:LENGth? query returns the current waveform data length setting.
<length><NL>

See Also

<length> ::= 100 to max. length; an integer in NR1 format
· "Introduction to :SAVE Commands" on page 623 · ":SAVE:WAVeform:LENGth:MAX" on page 640 · ":SAVE:WAVeform[:STARt]" on page 637 · ":WAVeform:POINts" on page 996 · ":SAVE:WAVeform:FORMat" on page 638

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

639

26 :SAVE Commands

:SAVE:WAVeform:LENGth:MAX

(see page 1164)

Command Syntax :SAVE:WAVeform:LENGth:MAX <setting>

<setting> ::= {{OFF | 0} | {ON | 1}}
The :SAVE:WAVeform:LENGth:MAX command specifies whether maximum number of waveform data points is saved.

Query Syntax Return Format

When OFF, the :SAVE:WAVeform:LENGth command specifies the number of waveform data points saved.
:SAVE:WAVeform:LENGth:MAX?
The :SAVE:WAVeform:LENGth:MAX? query returns the current setting.
<setting><NL>

See Also

<setting> ::= {0 | 1}
· "Introduction to :SAVE Commands" on page 623 · ":SAVE:WAVeform[:STARt]" on page 637 · ":SAVE:WAVeform:LENGth" on page 639

640

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SAVE Commands 26

:SAVE:WAVeform:SEGMented

(see page 1164)

Command Syntax :SAVE:WAVeform:SEGMented <option>

Query Syntax Return Format

<option> ::= {ALL | CURRent}
When segmented memory is used for acquisitions, the :SAVE:WAVeform:SEGMented command specifies which segments are included when the waveform is saved: · ALL -- all acquired segments are saved. · CURRent -- only the currently selected segment is saved.
:SAVE:WAVeform:SEGMented?
The :SAVE:WAVeform:SEGMented? query returns the current segmented waveform save option setting.
<option><NL>

See Also

<option> ::= {ALL | CURR}
· "Introduction to :SAVE Commands" on page 623 · ":SAVE:WAVeform[:STARt]" on page 637 · ":SAVE:WAVeform:FORMat" on page 638 · ":SAVE:WAVeform:LENGth" on page 639

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

641

26 :SAVE Commands

:SAVE:WMEMory:SOURce

(see page 1164) Command Syntax :SAVE:WMEMory:SOURce <source>
<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r>} <n> ::= 1 to (# analog channels) in NR1 format <r> ::= {1 | 2}
The :SAVE:WMEMory:SOURce command selects the source to be saved as a reference waveform file.

NOTE

Only ADD or SUBtract math operations can be saved as reference waveforms.

NOTE

MATH is an alias for FUNCtion. The query will return FUNC if the source is FUNCtion or MATH.

Query Syntax Return Format

:SAVE:WMEMory:SOURce?
The :SAVE:WMEMory:SOURce? query returns the source to be saved as a reference waveform file.
<source><NL>

See Also

<source> ::= {CHAN<n> | FUNC | WMEM<r> | NONE}
· "Introduction to :SAVE Commands" on page 623 · ":SAVE:WMEMory[:STARt]" on page 643 · ":RECall:WMEMory<r>[:STARt]" on page 620

642

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SAVE Commands 26

:SAVE:WMEMory[:STARt]

(see page 1164) Command Syntax :SAVE:WMEMory[:STARt] [<file_name>]
<file_name> ::= quoted ASCII string
The :SAVE:WMEMory[:STARt] command saves oscilloscope waveform data to a reference waveform file.

NOTE

If a file extension is provided as part of a specified <file_name>, it must be ".h5".

See Also

· "Introduction to :SAVE Commands" on page 623 · ":SAVE:WMEMory:SOURce" on page 642 · ":RECall:WMEMory<r>[:STARt]" on page 620

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

643

26 :SAVE Commands

644

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
27 :SBUS<n> Commands

Introduction to :SBUS<n> Commands
NOTE

Control the modes and parameters for each serial bus decode/trigger type. See: · "Introduction to :SBUS<n> Commands" on page 645 · "General :SBUS<n> Commands" on page 647 · ":SBUS<n>:A429 Commands" on page 650 · ":SBUS<n>:CAN Commands" on page 668 · ":SBUS<n>:FLEXray Commands" on page 685 · ":SBUS<n>:I2S Commands" on page 704 · ":SBUS<n>:IIC Commands" on page 724 · ":SBUS<n>:LIN Commands" on page 735 · ":SBUS<n>:M1553 Commands" on page 749 · ":SBUS<n>:SPI Commands" on page 756 · ":SBUS<n>:UART Commands" on page 772
The :SBUS subsystem commands control the serial decode bus viewing, mode, and other options.
These commands are only valid on oscilloscope models when a serial decode option has been licensed.

The following serial bus decode/trigger types are available (see ":TRIGger:MODE" on page 912). · CAN (Controller Area Network) triggering-- will trigger on CAN version 2.0A and
2.0B signals. Setup consists of connecting the oscilloscope to a CAN signal. Baud rate, signal source, and signal polarity, and type of data to trigger on can be specified. You can trigger on CAN data and identifier patterns and you can set the bit sample point. · I2S (Inter-IC Sound or Integrated Interchip Sound bus) triggering-- consists of connecting the oscilloscope to the serial clock, word select, and serial data lines, then triggering on a data value.

645

27 :SBUS<n> Commands

NOTE

· IIC (Inter-IC bus) triggering-- consists of connecting the oscilloscope to the serial data (SDA) line and the serial clock (SCL) line, then triggering on a stop/start condition, a restart, a missing acknowledge, or on a read/write frame with a specific device address and data value.
· LIN (Local Interconnect Network) triggering-- will trigger on LIN sync break at the beginning of a message frame.You can trigger on Sync Break, Frame IDs, or Frame IDs and Data.
· SPI (Serial Peripheral Interface) triggering-- consists of connecting the oscilloscope to a clock, data (MOSI or MISO), and framing signal. You can then trigger on a data pattern during a specific framing period. The serial data string can be specified to be from 4 to 64 bits long.
· UART/RS-232 triggering (with Option 232) -- lets you trigger on RS-232 serial data.
Two I2S buses or two SPI buses cannot be decoded on both SBUS1 and SBUS2 at the same time.
Reporting the Setup Use :SBUS<n>? to query setup information for the :SBUS<n> subsystem.
Return Format The following is a sample response from the :SBUS1? query. In this case, the query was issued following a *RST command.
:SBUS1:DISP 0;MODE IIC;:SBUS1:IIC:ASIZ BIT7;:SBUS1:IIC:TRIG:TYPE STAR;QUAL EQU;:SBUS1:IIC:SOUR:CLOC CHAN1;DATA CHAN2;:SBUS1:IIC:TRIG:PATT:ADDR -1;DATA -1;DATA2 -1

646

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

General :SBUS<n> Commands

Table 99 General :SBUS<n> Commands Summary

Command

Query

:SBUS<n>:DISPlay {{0
| OFF} | {1 | ON}} (see page 648)

:SBUS<n>:DISPlay? (see page 648)

:SBUS<n>:MODE <mode> :SBUS<n>:MODE? (see

(see page 649)

page 649)

Options and Query Returns {0 | 1}
<mode> ::= {A429 | CAN | FLEXray | I2S | IIC | LIN | M1553 | SPI | UART}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

647

27 :SBUS<n> Commands

:SBUS<n>:DISPlay

(see page 1164) Command Syntax :SBUS<n>:DISPlay <display>
<display> ::= {{1 | ON} | {0 | OFF}}
The :SBUS<n>:DISPlay command turns displaying of the serial decode bus on or off.

NOTE

This command is only valid when a serial decode option has been licensed.

NOTE

Two I2S buses or two SPI buses cannot be decoded on both SBUS1 and SBUS2 at the same time.

Query Syntax

:SBUS<n>:DISPlay?
The :SBUS<n>:DISPlay? query returns the current display setting of the serial decode bus.

Return Format <display><NL>

<display> ::= {0 | 1}
Errors · "-241, Hardware missing" on page 1125

See Also

· "Introduction to :SBUS<n> Commands" on page 645 · ":CHANnel<n>:DISPlay" on page 273 · ":DIGital<d>:DISPlay" on page 299 · ":POD<n>:DISPlay" on page 541 · ":VIEW" on page 231 · ":BLANk" on page 204 · ":STATus" on page 228

648

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:MODE

(see page 1164) Command Syntax :SBUS<n>:MODE <mode>
<mode> ::= {A429 | FLEXray | CAN | I2S | IIC | LIN | M1553 | SPI | UART}
The :SBUS<n>:MODE command determines the decode mode for the serial bus.

NOTE

This command is only valid when a serial decode option has been licensed.

Query Syntax Return Format

:SBUS<n>:MODE?
The :SBUS<n>:MODE? query returns the current serial bus decode mode setting.
<mode><NL>

Errors See Also

<mode> ::= {A429 | FLEX | CAN | I2S | IIC | LIN | M1553 | SPI | UART | NONE}
· "-241, Hardware missing" on page 1125
· "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:A429 Commands" on page 650 · ":SBUS<n>:CAN Commands" on page 668 · ":SBUS<n>:FLEXray Commands" on page 685 · ":SBUS<n>:I2S Commands" on page 704 · ":SBUS<n>:IIC Commands" on page 724 · ":SBUS<n>:LIN Commands" on page 735 · ":SBUS<n>:M1553 Commands" on page 749 · ":SBUS<n>:SPI Commands" on page 756 · ":SBUS<n>:UART Commands" on page 772

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

649

27 :SBUS<n> Commands

:SBUS<n>:A429 Commands

NOTE

These commands are valid when the DSOX3AERO MIL-STD-1553 and ARINC 429 triggering and serial decode option (Option AERO) has been licensed.

Table 100 :SBUS<n>:A429 Commands Summary

Command

Query

Options and Query Returns

:SBUS<n>:A429:AUToset n/a

n/a

up (see page 652)

:SBUS<n>:A429:BASE

:SBUS<n>:A429:BASE?

<base> (see page 653) (see page 653)

<base> ::= {BINary | HEX}

n/a

:SBUS<n>:A429:COUNt:E <error_count> ::= integer in NR1

RRor? (see page 654)

format

:SBUS<n>:A429:COUNt:R n/a

n/a

ESet (see page 655)

n/a

:SBUS<n>:A429:COUNt:W <word_count> ::= integer in NR1

ORD? (see page 656)

format

:SBUS<n>:A429:FORMat <format> (see page 657)
:SBUS<n>:A429:SIGNal <signal> (see page 658)

:SBUS<n>:A429:FORMat? <format> ::= {LDSDi | LDSSm |

(see page 657)

LDATa}

:SBUS<n>:A429:SIGNal? <signal> ::= {A | B |

(see page 658)

DIFFerential}

:SBUS<n>:A429:SOURce
<source> (see page 659)

:SBUS<n>:A429:SOURce? <source> ::= {CHANnel<n>}

(see page 659)

<n> ::= 1 to (# analog channels)

in NR1 format

:SBUS<n>:A429:SPEed :SBUS<n>:A429:SPEed? <speed> ::= {LOW | HIGH} <speed> (see page 660) (see page 660)

:SBUS<n>:A429:TRIGger
:LABel <value> (see page 661)

:SBUS<n>:A429:TRIGger :LABel? (see page 661)

<value> ::= 8-bit integer in decimal, <hex>, <octal>, or <string> from 0-255 or "0xXX" (don't care)
<hex> ::= #Hnn where n ::= {0,..,9 | A,..,F}
<octal> ::= #Qnnn where n ::= {0,..,7}
<string> ::= "0xnn" where n::= {0,..,9 | A,..,F}

650

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

Table 100 :SBUS<n>:A429 Commands Summary (continued)

Command

Query

Options and Query Returns

:SBUS<n>:A429:TRIGger
:PATTern:DATA
<string> (see page 662)

:SBUS<n>:A429:TRIGger
:PATTern:DATA? (see page 662)

<string> ::= "nn...n" where n ::= {0 | 1 | X}, length depends on FORMat

:SBUS<n>:A429:TRIGger :SBUS<n>:A429:TRIGger <string> ::= "nn" where n ::= {0

:PATTern:SDI <string> :PATTern:SDI? (see

(see page 663)

page 663)

| 1 | X}, length always 2 bits

:SBUS<n>:A429:TRIGger :SBUS<n>:A429:TRIGger <string> ::= "nn" where n ::= {0

:PATTern:SSM <string> :PATTern:SSM? (see

(see page 664)

page 664)

| 1 | X}, length always 2 bits

:SBUS<n>:A429:TRIGger
:RANGe <min>,<max> (see page 665)

:SBUS<n>:A429:TRIGger :RANGe? (see page 665)

<min> ::= 8-bit integer in decimal, <hex>, <octal>, or <string> from 0-255
<max> ::= 8-bit integer in decimal, <hex>, <octal>, or <string> from 0-255
<hex> ::= #Hnn where n ::= {0,..,9 | A,..,F}
<octal> ::= #Qnnn where n ::= {0,..,7}
<string> ::= "0xnn" where n::= {0,..,9 | A,..,F}

:SBUS<n>:A429:TRIGger
:TYPE <condition> (see page 666)

:SBUS<n>:A429:TRIGger :TYPE? (see page 666)

<condition> ::= {WSTArt | WSTOp | LABel | LBITs | PERRor | WERRor | GERRor | WGERrors | ALLerrors | LRANge | ABITs | AOBits | AZBits}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

651

27 :SBUS<n> Commands

:SBUS<n>:A429:AUTosetup

Command Syntax
Errors See Also

(see page 1164)
:SBUS<n>:A429:AUTosetup
The :SBUS<n>:A429:AUTosetup command automatically sets these options for decoding and triggering on ARINC 429 signals: · High Trigger Threshold: 3.0 V. · Low Trigger Threshold: -3.0 V. · Noise Reject: Off. · Probe Attenuation: 10.0. · Vertical Scale: 4 V/div. · Serial Decode: On. · Base (:SBUS<n>:A429:BASE): HEX. · Word Format (:SBUS<n>:A429:FORMat): LDSDi (Label/SDI/Data/SSM). · Trigger: the specified serial bus (n of SBUS<n>). · Trigger Mode (:SBUS<n>:A429:TRIGger:TYPE): WSTArt.
· "-241, Hardware missing" on page 1125
· ":SBUS<n>:A429:BASE" on page 653 · ":SBUS<n>:A429:FORMat" on page 657 · ":SBUS<n>:A429:TRIGger:TYPE" on page 666 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:A429 Commands" on page 650

652

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:A429:BASE

(see page 1164)

Command Syntax :SBUS<n>:A429:BASE <base>

<base> ::= {BINary | HEX}
The :SBUS<n>:A429:BASE command selects between hexadecimal and binary display of the decoded data.

Query Syntax Return Format

The BASE command has no effect on the SDI and SSM fields, which are always displayed in binary, nor the Label field, which is always displayed in octal.
:SBUS<n>:A429:BASE?
The :SBUS<n>:A429:BASE? query returns the current ARINC 429 base setting.
<base><NL>

Errors See Also

<base> ::= {BIN | HEX}
· "-241, Hardware missing" on page 1125 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:A429:FORMat" on page 657

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

653

27 :SBUS<n> Commands

:SBUS<n>:A429:COUNt:ERRor

(see page 1164)

Query Syntax Return Format

:SBUS<n>:A429:COUNt:ERRor?
Returns the error count.
<error_count><NL>

Errors See Also

<error_count> ::= integer in NR1 format
· "-241, Hardware missing" on page 1125
· ":SBUS<n>:A429:COUNt:RESet" on page 655 · ":SBUS<n>:A429:COUNt:WORD" on page 656 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:A429 Commands" on page 650

654

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:A429:COUNt:RESet

Command Syntax
Errors See Also

(see page 1164)
:SBUS<n>:A429:COUNt:RESet
Resets the word and error counters. · "-241, Hardware missing" on page 1125 · ":SBUS<n>:A429:COUNt:WORD" on page 656 · ":SBUS<n>:A429:COUNt:ERRor" on page 654 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:A429 Commands" on page 650

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

655

27 :SBUS<n> Commands

:SBUS<n>:A429:COUNt:WORD

(see page 1164)

Query Syntax Return Format

:SBUS<n>:A429:COUNt:WORD?
Returns the word count.
<word_count><NL>

Errors See Also

<word_count> ::= integer in NR1 format
· "-241, Hardware missing" on page 1125
· ":SBUS<n>:A429:COUNt:RESet" on page 655 · ":SBUS<n>:A429:COUNt:ERRor" on page 654 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:A429 Commands" on page 650

656

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:A429:FORMat

(see page 1164)

Command Syntax :SBUS<n>:A429:FORMat <format>

Query Syntax Return Format

<format> ::= {LDSDi | LDSSm | LDATa}
The :SBUS<n>:A429:FORMat command specifies the word decode format: · LDSDi:
· Label - 8 bits. · SDI - 2 bits. · Data - 19 bits. · SSM - 2 bits. · LDSSm: · Label - 8 bits. · Data - 21 bits. · SSM - 2 bits. · LDATa: · Label - 8 bits. · Data - 23 bits.
:SBUS<n>:A429:FORMat?
The :SBUS<n>:A429:FORMat? query returns the current ARINC 429 word decode format setting.
<format><NL>

<format> ::= {LDSD | LDSS | LDAT}
Errors · "-241, Hardware missing" on page 1125

See Also

· "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:A429:TRIGger:PATTern:DATA" on page 662 · ":SBUS<n>:A429:TRIGger:PATTern:SDI" on page 663 · ":SBUS<n>:A429:TRIGger:PATTern:SSM" on page 664 · ":SBUS<n>:A429:TRIGger:TYPE" on page 666 · ":SBUS<n>:A429:SIGNal" on page 658 · ":SBUS<n>:A429:SPEed" on page 660 · ":SBUS<n>:A429:BASE" on page 653 · ":SBUS<n>:A429:SOURce" on page 659

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

657

27 :SBUS<n> Commands

:SBUS<n>:A429:SIGNal

(see page 1164)

Command Syntax :SBUS<n>:A429:SIGNal <signal>

<signal> ::= {A | B | DIFFerential}
The :SBUS<n>:A429:SIGNal command specifies the signal type: · A -- Line A (non-inverted). · B -- Line B (inverted). · DIFFerential -- Differential (A-B).

Query Syntax Return Format

:SBUS<n>:A429:SIGNal?
The :SBUS<n>:A429:SIGNal? query returns the current ARINC 429 signal type setting.
<signal><NL>

<signal> ::= {A | B | DIFF}
Errors · "-241, Hardware missing" on page 1125

See Also

· "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:A429:FORMat" on page 657 · ":SBUS<n>:A429:SPEed" on page 660 · ":SBUS<n>:A429:SOURce" on page 659

658

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:A429:SOURce

(see page 1164)

Command Syntax :SBUS<n>:A429:SOURce <source>

<source> ::= {CHANnel<n>}

Query Syntax

<n> ::= 1 to (# analog channels) in NR1 format
The :SBUS<n>:A429:SOURce command sets the source of the ARINC 429 signal.
:SBUS<n>:A429:SOURce?
The :SBUS<n>:A429:SOURce? query returns the currently set source of the ARINC 429 signal.

Return Format See Also

Use the :TRIGger:LEVel:HIGH and :TRIGger:LEVel:LOW commands to set the thresold levels for the selected source.
<source><NL>
· ":TRIGger:LEVel:HIGH" on page 910 · ":TRIGger:LEVel:LOW" on page 911 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:A429:TRIGger:TYPE" on page 666 · ":SBUS<n>:A429:SIGNal" on page 658 · ":SBUS<n>:A429:SPEed" on page 660 · ":SBUS<n>:A429:FORMat" on page 657 · "Introduction to :TRIGger Commands" on page 903

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

659

27 :SBUS<n> Commands

:SBUS<n>:A429:SPEed

(see page 1164)

Command Syntax :SBUS<n>:A429:SPEed <speed>

<speed> ::= {LOW | HIGH}
The :SBUS<n>:A429:SPEed command specifies the signal speed: · LOW -- 12.5 kb/s. · HIGH -- 100 kb/s.

Query Syntax Return Format

:SBUS<n>:A429:SPEed?
The :SBUS<n>:A429:SPEed? query returns the current ARINC 429 signal speed setting.
<speed><NL>

<speed> ::= {LOW | HIGH}
Errors · "-241, Hardware missing" on page 1125

See Also

· "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:A429:SIGNal" on page 658 · ":SBUS<n>:A429:FORMat" on page 657 · ":SBUS<n>:A429:SOURce" on page 659

660

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:A429:TRIGger:LABel

(see page 1164)

Command Syntax :SBUS<n>:A429:TRIGger:LABel <value>

<value> ::= 8-bit integer in decimal, <hex>, <octal>, or <string> from 0-255 or "0xXX" (don't care)

<hex> ::= #Hnn where n ::= {0,..,9 | A,..,F}

<octal> ::= #Qnnn where n ::= {0,..,7}

<string> ::= "0xnn" where n::= {0,..,9 | A,..,F}
The :SBUS<n>:A429:TRIGger:LABel command defines the ARINC 429 label value when labels are used in the selected trigger type.

Query Syntax
Return Format Errors
See Also

To set the label value to don't cares (0xXX), set the value to -1.
:SBUS<n>:A429:TRIGger:LABel?
The :SBUS<n>:A429:TRIGger:LABel? query returns the current label value in decimal format.
<value><NL> in decimal format
· "-241, Hardware missing" on page 1125 · "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:A429:TRIGger:TYPE" on page 666

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

661

27 :SBUS<n> Commands

:SBUS<n>:A429:TRIGger:PATTern:DATA

(see page 1164) Command Syntax :SBUS<n>:A429:TRIGger:PATTern:DATA <string>
<string> ::= "nn...n" where n ::= {0 | 1 | X}, length depends on FORMat
The :SBUS<n>:A429:TRIGger:PATTern:DATA command defines the ARINC 429 data pattern resource according to the string parameter. This pattern controls the data pattern searched for in each ARINC 429 word.

NOTE

If more bits are sent for <string> than specified by the :SBUS<n>:A429:FORMat command, the most significant bits will be truncated.

Query Syntax
Return Format Errors
See Also

:SBUS<n>:A429:TRIGger:PATTern:DATA?
The :SBUS<n>:A429:TRIGger:PATTern:DATA? query returns the current settings of the specified ARINC 429 data pattern resource in the binary string format.
<string><NL> in nondecimal format
· "-241, Hardware missing" on page 1125 · "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:A429:TRIGger:TYPE" on page 666 · ":SBUS<n>:A429:TRIGger:PATTern:SDI" on page 663 · ":SBUS<n>:A429:TRIGger:PATTern:SSM" on page 664

662

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:A429:TRIGger:PATTern:SDI

(see page 1164)

Command Syntax :SBUS<n>:A429:TRIGger:PATTern:SDI <string>

Query Syntax
Return Format Errors
See Also

<string> ::= "nn" where n ::= {0 | 1 | X}, length always 2 bits
The :SBUS<n>:A429:TRIGger:PATTern:SDI command defines the ARINC 429 two-bit SDI pattern resource according to the string parameter. This pattern controls the SDI pattern searched for in each ARINC 429 word. The specified SDI is only used if the :SBUS<n>:A429:FORMat includes the SDI field.
:SBUS<n>:A429:TRIGger:PATTern:SDI?
The :SBUS<n>:A429:TRIGger:PATTern:SDI? query returns the current settings of the specified ARINC 429 two-bit SDI pattern resource in the binary string format.
<string><NL> in nondecimal format
· "-241, Hardware missing" on page 1125 · "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:A429:FORMat" on page 657 · ":SBUS<n>:A429:TRIGger:TYPE" on page 666 · ":SBUS<n>:A429:TRIGger:PATTern:DATA" on page 662 · ":SBUS<n>:A429:TRIGger:PATTern:SSM" on page 664

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

663

27 :SBUS<n> Commands

:SBUS<n>:A429:TRIGger:PATTern:SSM

(see page 1164)

Command Syntax :SBUS<n>:A429:TRIGger:PATTern:SSM <string>

Query Syntax
Return Format Errors
See Also

<string> ::= "nn" where n ::= {0 | 1 | X}, length always 2 bits
The :SBUS<n>:A429:TRIGger:PATTern:SSM command defines the ARINC 429 two-bit SSM pattern resource according to the string parameter. This pattern controls the SSM pattern searched for in each ARINC 429 word. The specified SSM is only used if the :SBUS<n>:A429:FORMat includes the SSM field.
:SBUS<n>:A429:TRIGger:PATTern:SSM?
The :SBUS<n>:A429:TRIGger:PATTern:SSM? query returns the current settings of the specified ARINC 429 two-bit SSM pattern resource in the binary string format.
<string><NL> in nondecimal format
· "-241, Hardware missing" on page 1125 · "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:A429:FORMat" on page 657 · ":SBUS<n>:A429:TRIGger:TYPE" on page 666 · ":SBUS<n>:A429:TRIGger:PATTern:DATA" on page 662 · ":SBUS<n>:A429:TRIGger:PATTern:SDI" on page 663

664

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:A429:TRIGger:RANGe

(see page 1164)

Command Syntax :SBUS<n>:A429:TRIGger:RANGe <min>,<max>

<min> ::= 8-bit integer in decimal, <hex>, <octal>, or <string> from 0-255

<max> ::= 8-bit integer in decimal, <hex>, <octal>, or <string> from 0-255

<hex> ::= #Hnn where n ::= {0,..,9 | A,..,F}

<octal> ::= #Qnnn where n ::= {0,..,7}

Query Syntax
Return Format Errors
See Also

<string> ::= "0xnn" where n::= {0,..,9 | A,..,F}
The :SBUS<n>:A429:TRIGger:RANGe command defines a range of ARINC 429 label values. This range is used when the LRANge trigger type is selected.
:SBUS<n>:A429:TRIGger:RANGe?
The :SBUS<n>:A429:TRIGger:RANGe? query returns the current label values in decimal format.
<min>,<max><NL> in decimal format
· "-241, Hardware missing" on page 1125 · "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:A429:TRIGger:TYPE" on page 666

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

665

27 :SBUS<n> Commands

:SBUS<n>:A429:TRIGger:TYPE

(see page 1164)

Command Syntax :SBUS<n>:A429:TRIGger:TYPE <condition>

<condition> ::= {WSTArt | WSTOp | LABel | LBITs | PERRor | WERRor | GERRor | WGERrors | ALLerrors | LRANge | ABITs | AOBits | AZBits}
The :SBUS<n>:A429:TRIGger command sets the ARINC 429 trigger on condition: · WSTArt -- triggers on the start of a word. · WSTOp -- triggers at the end of a word. · LABel -- triggers on the specified label value. · LBITs -- triggers on the label and the other word fields as specified. · LRANge -- triggers on a label within a min/max range. · PERRor -- triggers on words with a parity error. · WERRor -- triggers on an intra-word coding error. · GERRor -- triggers on an inter-word gap error. · WGERrors -- triggers on either a Word or Gap Error. · ALLerrors -- triggers on any of the above errors. · ABITs -- triggers on any bit, which will therefore form an eye diagram. · AZBits -- triggers on any bit with a value of zero. · AOBits -- triggers on any bit with a value of one.

Query Syntax Return Format

:SBUS<n>:A429:TRIGger:TYPE?
The :SBUS<n>:A429:TRIGger:TYPE? query returns the current ARINC 429 trigger on condition.
<condition><NL>

Errors See Also

<condition> ::= {WSTA | WSTO | LAB | LBIT | PERR | WERR | GERR | WGER | ALL | LRAN | ABIT | AOB | AZB}
· "-241, Hardware missing" on page 1125
· "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:A429:TRIGger:LABel" on page 661 · ":SBUS<n>:A429:TRIGger:PATTern:DATA" on page 662 · ":SBUS<n>:A429:TRIGger:PATTern:SDI" on page 663 · ":SBUS<n>:A429:TRIGger:PATTern:SSM" on page 664 · ":SBUS<n>:A429:TRIGger:RANGe" on page 665

666

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

· ":SBUS<n>:A429:SOURce" on page 659

:SBUS<n> Commands 27

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

667

27 :SBUS<n> Commands

:SBUS<n>:CAN Commands

NOTE

These commands are valid when the automotive CAN and LIN serial decode option (Option AMS) has been licensed.

Table 101 :SBUS<n>:CAN Commands Summary

Command

Query

Options and Query Returns

n/a

:SBUS<n>:CAN:COUNt:ER <frame_count> ::= integer in NR1

Ror? (see page 670)

format

n/a

:SBUS<n>:CAN:COUNt:OV <frame_count> ::= integer in NR1

ERload? (see page 671) format

:SBUS<n>:CAN:COUNt:RE n/a

n/a

Set (see page 672)

n/a

:SBUS<n>:CAN:COUNt:TO <frame_count> ::= integer in NR1

Tal? (see page 673)

format

n/a

:SBUS<n>:CAN:COUNt:UT <percent> ::= floating-point in

ILization? (see page 674)

NR3 format

:SBUS<n>:CAN:SAMPlepo :SBUS<n>:CAN:SAMPlepo <value> ::= {60 | 62.5 | 68 | 70

int <value> (see

int? (see page 675)

| 75 | 80 | 87.5} in NR3 format

page 675)

:SBUS<n>:CAN:SIGNal:B :SBUS<n>:CAN:SIGNal:B <baudrate> ::= integer from 10000

AUDrate <baudrate> (see page 676)

AUDrate? (see page 676)

to 4000000 in 100 b/s increments, or 5000000

:SBUS<n>:CAN:SIGNal:D :SBUS<n>:CAN:SIGNal:D <value> ::= {CANH | CANL | RX |

EFinition <value> (see page 677)

EFinition? (see page 677)

TX | DIFFerential | DIFL | DIFH}

:SBUS<n>:CAN:SOURce
<source> (see page 678)

:SBUS<n>:CAN:SOURce? (see page 678)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> |} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:CAN:TRIGger
<condition> (see page 679)

:SBUS<n>:CAN:TRIGger? (see page 680)

<condition> ::= {SOF | DATA | ERRor | IDData | IDEither | IDRemote | ALLerrors | OVERload | ACKerror}

668

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

Table 101 :SBUS<n>:CAN Commands Summary (continued)

Command

Query

Options and Query Returns

:SBUS<n>:CAN:TRIGger:
PATTern:DATA <string> (see page 681)

:SBUS<n>:CAN:TRIGger:
PATTern:DATA? (see page 681)

<string> ::= "nn...n" where n ::= {0 | 1 | X | $}
<string ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $}

:SBUS<n>:CAN:TRIGger:
PATTern:DATA:LENGth
<length> (see page 682)

:SBUS<n>:CAN:TRIGger:
PATTern:DATA:LENGth? (see page 682)

<length> ::= integer from 1 to 8 in NR1 format

:SBUS<n>:CAN:TRIGger:
PATTern:ID <string> (see page 683)

:SBUS<n>:CAN:TRIGger:
PATTern:ID? (see page 683)

<string> ::= "nn...n" where n ::= {0 | 1 | X | $}
<string ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $}

:SBUS<n>:CAN:TRIGger: :SBUS<n>:CAN:TRIGger: <value> ::= {STANdard | EXTended}

PATTern:ID:MODE

PATTern:ID:MODE? (see

<value> (see page 684) page 684)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

669

27 :SBUS<n> Commands

:SBUS<n>:CAN:COUNt:ERRor

(see page 1164)

Query Syntax Return Format

:SBUS<n>:CAN:COUNt:ERRor?
Returns the error frame count.
<frame_count><NL>

Errors See Also

<frame_count> ::= integer in NR1 format
· "-241, Hardware missing" on page 1125
· ":SBUS<n>:CAN:COUNt:RESet" on page 672 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:CAN Commands" on page 668

670

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:CAN:COUNt:OVERload

(see page 1164)

Query Syntax Return Format

:SBUS<n>:CAN:COUNt:OVERload?
Returns the overload frame count.
<frame_count><NL>

Errors See Also

<frame_count> ::= integer in NR1 format
· "-241, Hardware missing" on page 1125
· ":SBUS<n>:CAN:COUNt:RESet" on page 672 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:CAN Commands" on page 668

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

671

27 :SBUS<n> Commands

:SBUS<n>:CAN:COUNt:RESet

Command Syntax
Errors See Also

(see page 1164)
:SBUS<n>:CAN:COUNt:RESet
Resets the frame counters. · "-241, Hardware missing" on page 1125 · ":SBUS<n>:CAN:COUNt:ERRor" on page 670 · ":SBUS<n>:CAN:COUNt:OVERload" on page 671 · ":SBUS<n>:CAN:COUNt:TOTal" on page 673 · ":SBUS<n>:CAN:COUNt:UTILization" on page 674 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:CAN Commands" on page 668

672

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:CAN:COUNt:TOTal

(see page 1164)

Query Syntax Return Format

:SBUS<n>:CAN:COUNt:TOTal?
Returns the total frame count.
<frame_count><NL>

Errors See Also

<frame_count> ::= integer in NR1 format
· "-241, Hardware missing" on page 1125
· ":SBUS<n>:CAN:COUNt:RESet" on page 672 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:CAN Commands" on page 668

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

673

27 :SBUS<n> Commands

:SBUS<n>:CAN:COUNt:UTILization

(see page 1164)

Query Syntax Return Format

:SBUS<n>:CAN:COUNt:UTILization?
Returns the percent utilization.
<percent><NL>

Errors See Also

<percent> ::= floating-point in NR3 format
· "-241, Hardware missing" on page 1125
· ":SBUS<n>:CAN:COUNt:RESet" on page 672 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:CAN Commands" on page 668

674

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:CAN:SAMPlepoint

(see page 1164)

Command Syntax :SBUS<n>:CAN:SAMPlepoint <value>

<value><NL>

<value> ::= {60 | 62.5 | 68 | 70 | 75 | 80 | 87.5} in NR3 format
The :SBUS<n>:CAN:SAMPlepoint command sets the point during the bit time where the bit level is sampled to determine whether the bit is dominant or recessive. The sample point represents the percentage of time between the beginning of the bit time to the end of the bit time.

Query Syntax Return Format

:SBUS<n>:CAN:SAMPlepoint?
The :SBUS<n>:CAN:SAMPlepoint? query returns the current CAN sample point setting.
<value><NL>

See Also

<value> ::= {60 | 62.5 | 68 | 70 | 75 | 80 | 87.5} in NR3 format
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:CAN:TRIGger" on page 679

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

675

27 :SBUS<n> Commands

:SBUS<n>:CAN:SIGNal:BAUDrate

(see page 1164)

Command Syntax :SBUS<n>:CAN:SIGNal:BAUDrate <baudrate>

Query Syntax

<baudrate> ::= integer from 10000 to 4000000 in 100 b/s increments, or 5000000
The :SBUS<n>:CAN:SIGNal:BAUDrate command sets the standard baud rate of the CAN signal from 10 kb/s to 4 Mb/s in 100 b/s increments. If you enter a baud rate that is not divisible by 100 b/s, the baud rate is set to the nearest baud rate divisible by 100 b/s. You can also set the baud rate of the CAN signal to 5 Mb/s. Fractional baud rates between 4 Mb/s and 5 Mb/s are not allowed. If the baud rate you select does not match the system baud rate, false triggers may occur.
:SBUS<n>:CAN:SIGNal:BAUDrate?
The :SBUS<n>:CAN:SIGNal:BAUDrate? query returns the current CAN baud rate setting.

Return Format <baudrate><NL>

See Also

<baudrate> ::= integer from 10000 to 4000000 in 100 b/s increments, or 5000000
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:CAN:TRIGger" on page 679 · ":SBUS<n>:CAN:SIGNal:DEFinition" on page 677 · ":SBUS<n>:CAN:SOURce" on page 678

676

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:CAN:SIGNal:DEFinition

(see page 1164)

Command Syntax :SBUS<n>:CAN:SIGNal:DEFinition <value>

<value> ::= {CANH | CANL | RX | TX | DIFFerential | DIFL | DIFH}
The :SBUS<n>:CAN:SIGNal:DEFinition command sets the CAN signal type when :SBUS<n>:CAN:TRIGger is set to SOF (start of frame). These signals can be set to:

Dominant high signals: · CANH -- the actual CAN_H differential bus signal. · DIFH -- the CAN differential (H-L) bus signal connected to an analog source
channel using a differential probe.
Dominant low signals: · CANL -- the actual CAN_L differential bus signal. · RX -- the Receive signal from the CAN bus transceiver. · TX -- the Transmit signal to the CAN bus transceiver. · DIFL -- the CAN differential (L-H) bus signal connected to an analog source
channel using a differential probe. · DIFFerential -- the CAN differential bus signal connected to an analog source
channel using a differential probe. This is the same as DIFL.

Query Syntax Return Format

:SBUS<n>:CAN:SIGNal:DEFinition?
The :SBUS<n>:CAN:SIGNal:DEFinition? query returns the current CAN signal type.
<value><NL>

See Also

<value> ::= {CANH | CANL | RX | TX | DIFL | DIFH}
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:CAN:SIGNal:BAUDrate" on page 676 · ":SBUS<n>:CAN:SOURce" on page 678 · ":SBUS<n>:CAN:TRIGger" on page 679

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

677

27 :SBUS<n> Commands

:SBUS<n>:CAN:SOURce

(see page 1164)

Command Syntax :SBUS<n>:CAN:SOURce <source>

<source> ::= {CHANnel<n> | EXTernal} for the DSO models

<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax
Return Format See Also

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :SBUS<n>:CAN:SOURce command sets the source for the CAN signal.
:SBUS<n>:CAN:SOURce?
The :SBUS<n>:CAN:SOURce? query returns the current source for the CAN signal.
<source><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:CAN:TRIGger" on page 679 · ":SBUS<n>:CAN:SIGNal:DEFinition" on page 677

678

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:CAN:TRIGger

(see page 1164)
Command Syntax :SBUS<n>:CAN:TRIGger <condition>
<condition> ::= {SOF | DATA | ERRor | IDData | IDEither | IDRemote | ALLerrors | OVERload | ACKerror}
The :SBUS<n>:CAN:TRIGger command sets the CAN trigger on condition: · SOF - will trigger on the Start of Frame (SOF) bit of a Data frame, Remote
Transfer Request (RTR) frame, or an Overload frame. · DATA - will trigger on CAN Data frames matching the specified Id, Data, and
the DLC (Data length code). · ERRor - will trigger on CAN Error frame. · IDData - will trigger on CAN frames matching the specified Id of a Data frame. · IDEither - will trigger on the specified Id, regardless if it is a Remote frame or a
Data frame. · IDRemote - will trigger on CAN frames matching the specified Id of a Remote
frame. · ALLerrors - will trigger on CAN active error frames and unknown bus
conditions. · OVERload - will trigger on CAN overload frames. · ACKerror - will trigger on a data or remote frame acknowledge bit that is
recessive.
The table below shows the programming parameter and the corresponding front-panel softkey selection:

Remote <condition> parameter
SOF DATA ERRor IDData IDEither IDRemote ALLerrors OVERload ACKerror

Front-panel Trigger on: softkey selection (softkey text - softkey popup text) SOF - Start of Frame ID & Data - Data Frame ID and Data Error - Error frame ID & ~RTR - Data Frame ID (~RTR) ID - Remote or Data Frame ID ID & RTR - Remote Frame ID (RTR) All Errors - All Errors Overload - Overload Frame Ack Error - Acknowledge Error

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

679

27 :SBUS<n> Commands

Query Syntax Return Format

CAN Id specification is set by the :SBUS<n>:CAN:TRIGger:PATTern:ID and:SBUS<n>:CAN:TRIGger:PATTern:ID:MODE commands. CAN Data specification is set by the :SBUS<n>:CAN:TRIGger:PATTern:DATA command. CAN Data Length Code is set by the :SBUS<n>:CAN:TRIGger:PATTern:DATA:LENGth command.
:SBUS<n>:CAN:TRIGger?
The :SBUS<n>:CAN:TRIGger? query returns the current CAN trigger on condition.
<condition><NL>

Errors See Also

<condition> ::= {SOF | DATA | ERR | IDD | IDE | IDR | ALL | OVER | ACK}
· "-241, Hardware missing" on page 1125
· "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:CAN:TRIGger:PATTern:DATA" on page 681 · ":SBUS<n>:CAN:TRIGger:PATTern:DATA:LENGth" on page 682 · ":SBUS<n>:CAN:TRIGger:PATTern:ID" on page 683 · ":SBUS<n>:CAN:TRIGger:PATTern:ID:MODE" on page 684 · ":SBUS<n>:CAN:SIGNal:DEFinition" on page 677 · ":SBUS<n>:CAN:SOURce" on page 678

680

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:CAN:TRIGger:PATTern:DATA

(see page 1164) Command Syntax :SBUS<n>:CAN:TRIGger:PATTern:DATA <string>
<string> ::= "nn...n" where n ::= {0 | 1 | X | $}
<string ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $}
The :SBUS<n>:CAN:TRIGger:PATTern:DATA command defines the CAN data pattern resource according to the string parameter. This pattern, along with the data length (set by the :SBUS<n>:CAN:TRIGger:PATTern:DATA:LENGth command), control the data pattern searched for in each CAN message. If the string parameter starts with "0x", it is a hexadecimal string made up of hexadecimal and X (don't care) characters; otherwise, it is a binary string made up of 0, 1, and X (don't care) characters.

NOTE

If more bits are sent for <string> than specified by the :SBUS<n>:CAN:TRIGger:PATTern:DATA:LENGth command, the most significant bits will be truncated. If the data length is changed after the <string> is programmed, the added or deleted bits will be added to or deleted from the least significant bits.

Query Syntax
Return Format Errors
See Also

:SBUS<n>:CAN:TRIGger:PATTern:DATA?
The :SBUS<n>:CAN:TRIGger:PATTern:DATA? query returns the current settings of the specified CAN data pattern resource in the binary string format.
<string><NL> in nondecimal format
· "-241, Hardware missing" on page 1125 · "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:CAN:TRIGger:PATTern:DATA:LENGth" on page 682 · ":SBUS<n>:CAN:TRIGger:PATTern:ID" on page 683

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

681

27 :SBUS<n> Commands

:SBUS<n>:CAN:TRIGger:PATTern:DATA:LENGth

(see page 1164)

Command Syntax :SBUS<n>:CAN:TRIGger:PATTern:DATA:LENGth <length>

Query Syntax Return Format

<length> ::= integer from 1 to 8 in NR1 format
The :SBUS<n>:CAN:TRIGger:PATTern:DATA:LENGth command sets the number of 8-bit bytes in the CAN data string. The number of bytes in the string can be anywhere from 1 bytes to 8 bytes (64 bits). The value for these bytes is set by the :SBUS<n>:CAN:TRIGger:PATTern:DATA command.
:SBUS<n>:CAN:TRIGger:PATTern:DATA:LENGth?
The :SBUS<n>:CAN:TRIGger:PATTern:DATA:LENGth? query returns the current CAN data pattern length setting.
<count><NL>

Errors See Also

<count> ::= integer from 1 to 8 in NR1 format
· "-241, Hardware missing" on page 1125 · "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:CAN:TRIGger:PATTern:DATA" on page 681 · ":SBUS<n>:CAN:SOURce" on page 678

682

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:CAN:TRIGger:PATTern:ID

(see page 1164) Command Syntax :SBUS<n>:CAN:TRIGger:PATTern:ID <string>
<string> ::= "nn...n" where n ::= {0 | 1 | X | $}
<string ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $}
The :SBUS<n>:CAN:TRIGger:PATTern:ID command defines the CAN identifier pattern resource according to the string parameter. This pattern, along with the identifier mode (set by the :SBUS<n>:CAN:TRIGger:PATTern:ID:MODE command), control the identifier pattern searched for in each CAN message. If the string parameter starts with "0x", it is a hexadecimal string made up of hexadecimal and X (don't care) characters; otherwise, it is a binary string made up of 0, 1, and X (don't care) characters.

NOTE

The ID pattern resource string is always 29 bits. Only 11 of these bits are used when the :SBUS<n>:CAN:TRIGger:PATTern:ID:MODE is STANdard. A string longer than 29 bits is truncated to 29 bits when setting the ID pattern resource.

Query Syntax
Return Format Errors
See Also

:SBUS<n>:CAN:TRIGger:PATTern:ID?
The :SBUS<n>:CAN:TRIGger:PATTern:ID? query returns the current settings of the specified CAN identifier pattern resource in the 29-bit binary string format.
<string><NL> in 29-bit binary string format
· "-241, Hardware missing" on page 1125 · "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:CAN:TRIGger:PATTern:ID:MODE" on page 684 · ":SBUS<n>:CAN:TRIGger:PATTern:DATA" on page 681

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

683

27 :SBUS<n> Commands

:SBUS<n>:CAN:TRIGger:PATTern:ID:MODE

(see page 1164)

Command Syntax :SBUS<n>:CAN:TRIGger:PATTern:ID:MODE <value>

Query Syntax Return Format

<value> ::= {STANdard | EXTended}
The :SBUS<n>:CAN:TRIGger:PATTern:ID:MODE command sets the CAN identifier mode. STANdard selects the standard 11-bit identifier. EXTended selects the extended 29-bit identifier. The CAN identifier is set by the :SBUS<n>:CAN:TRIGger:PATTern:ID command.
:SBUS<n>:CAN:TRIGger:PATTern:ID:MODE?
The :SBUS<n>:CAN:TRIGger:PATTern:ID:MODE? query returns the current setting of the CAN identifier mode.
<value><NL>

Errors See Also

<value> ::= {STAN | EXT}
· "-241, Hardware missing" on page 1125
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:CAN:TRIGger:PATTern:DATA" on page 681 · ":SBUS<n>:CAN:TRIGger:PATTern:DATA:LENGth" on page 682 · ":SBUS<n>:CAN:TRIGger:PATTern:ID" on page 683

684

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:FLEXray Commands

NOTE

These commands are only valid when the FLEXray triggering and serial decode option (Option FLEX) has been licensed.

Table 102 :SBUS<n>:FLEXray Commands Summary

Command

Query

Options and Query Returns

:SBUS<n>:FLEXray:AUTo n/a

n/a

setup (see page 687)

:SBUS<n>:FLEXray:BAUD :SBUS<n>:FLEXray:BAUD <baudrate> ::= {2500000 | 5000000

rate <baudrate> (see rate? (see page 688)

| 10000000}

page 688)

:SBUS<n>:FLEXray:CHAN :SBUS<n>:FLEXray:CHAN <channel> ::= {A | B}

nel <channel> (see

nel? (see page 689)

page 689)

n/a

:SBUS<n>:FLEXray:COUN <frame_count> ::= integer in NR1

t:NULL? (see page 690) format

:SBUS<n>:FLEXray:COUN n/a

n/a

t:RESet (see page 691)

n/a

:SBUS<n>:FLEXray:COUN <frame_count> ::= integer in NR1

t:SYNC? (see page 692) format

n/a

:SBUS<n>:FLEXray:COUN <frame_count> ::= integer in NR1

t:TOTal? (see page 693)

format

:SBUS<n>:FLEXray:SOUR :SBUS<n>:FLEXray:SOUR <source> ::= {CHANnel<n>}

ce <source> (see page 694)

ce? (see page 694)

<n> ::= 1-2 or 1-4 in NR1 format

:SBUS<n>:FLEXray:TRIG :SBUS<n>:FLEXray:TRIG <condition> ::= {FRAMe | ERRor |

ger <condition> (see ger? (see page 695)

EVENt}

page 695)

:SBUS<n>:FLEXray:TRIG
ger:ERRor:TYPE
<error_type> (see page 696)

:SBUS<n>:FLEXray:TRIG
ger:ERRor:TYPE? (see page 696)

<error_type> ::= {ALL | HCRC | FCRC}

:SBUS<n>:FLEXray:TRIG n/a

n/a

ger:EVENt:AUToset (see page 697)

:SBUS<n>:FLEXray:TRIG
ger:EVENt:BSS:ID
<frame_id> (see page 698)

:SBUS<n>:FLEXray:TRIG
ger:EVENt:BSS:ID? (see page 698)

<frame_id> ::= {ALL | <frame #>} <frame #> ::= integer from 1-2047

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

685

27 :SBUS<n> Commands

Table 102 :SBUS<n>:FLEXray Commands Summary (continued)

Command

Query

Options and Query Returns

:SBUS<n>:FLEXray:TRIG :SBUS<n>:FLEXray:TRIG <event> ::= {WAKeup | TSS | {FES

ger:EVENt:TYPE

ger:EVENt:TYPE? (see | DTS} | BSS}

<event> (see page 699) page 699)

:SBUS<n>:FLEXray:TRIG
ger:FRAMe:CCBase
<cycle_count_base> (see page 700)

:SBUS<n>:FLEXray:TRIG
ger:FRAMe:CCBase? (see page 700)

<cycle_count_base> ::= integer from 0-63

:SBUS<n>:FLEXray:TRIG
ger:FRAMe:CCRepetitio
n
<cycle_count_repetiti on> (see page 701)

:SBUS<n>:FLEXray:TRIG
ger:FRAMe:CCRepetitio n? (see page 701)

<cycle_count_repetition> ::= {ALL | <rep #>}
<rep #> ::= integer values 2, 4, 8, 16, 32, or 64

:SBUS<n>:FLEXray:TRIG
ger:FRAMe:ID
<frame_id> (see page 702)

:SBUS<n>:FLEXray:TRIG
ger:FRAMe:ID? (see page 702)

<frame_id> ::= {ALL | <frame #>} <frame #> ::= integer from 1-2047

:SBUS<n>:FLEXray:TRIG
ger:FRAMe:TYPE
<frame_type> (see page 703)

:SBUS<n>:FLEXray:TRIG
ger:FRAMe:TYPE? (see page 703)

<frame_type> ::= {NORMal | STARtup | NULL | SYNC | NSTArtup | NNULl | NSYNc | ALL}

686

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:FLEXray:AUTosetup

Command Syntax See Also

(see page 1164)
:SBUS<n>:FLEXray:AUTosetup
The :SBUS<n>:FLEXray:AUTosetup command automatically configures oscilloscope settings to facilitate FlexRay triggering and serial decode. · Sets the selected source channel's impedance to 50 Ohms. · Sets the selected source channel's probe attenuation to 10:1. · Sets the trigger level (on the selected source channel) to -300 mV. · Turns on trigger Noise Reject. · Turns on Serial Decode. · Sets the trigger to the specified serial bus (n of SBUS<n>).
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:FLEXray:TRIGger" on page 695 · ":SBUS<n>:FLEXray:BAUDrate" on page 688 · ":TRIGger[:EDGE]:LEVel" on page 929 · ":SBUS<n>:FLEXray:SOURce" on page 694

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

687

27 :SBUS<n> Commands

:SBUS<n>:FLEXray:BAUDrate

(see page 1164)

Command Syntax :SBUS<n>:FLEXray:BAUDrate <baudrate>

<baudrate> ::= {2500000 | 5000000 | 10000000}
The :SBUS<n>:FLEXray:BAUDrate command specifies the baud rate as 2.5 Mb/s, 5 Mb/s, or 10 Mb/s.

Query Syntax Return Format

:SBUS<n>:FLEXray:BAUDrate?
The :SBUS<n>:FLEXray:BAUDrate? query returns the current baud rate setting.
<baudrate><NL>

See Also

<baudrate> ::= {2500000 | 5000000 | 10000000}
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:FLEXray Commands" on page 685

688

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:FLEXray:CHANnel

(see page 1164)

Command Syntax :SBUS<n>:FLEXray:CHANnel <channel>

<channel> ::= {A | B}
The :SBUS<n>:FLEXray:CHANnel command specifies the bus channel, A or B, of the FlexRay signal.

Query Syntax Return Format

:SBUS<n>:FLEXray:CHANnel?
The :SBUS<n>:FLEXray:CHANnel? query returns the current bus channel setting.
<channel><NL>

See Also

<channel> ::= {A | B}
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:FLEXray Commands" on page 685

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

689

27 :SBUS<n> Commands

:SBUS<n>:FLEXray:COUNt:NULL

(see page 1164)

Query Syntax Return Format

:SBUS<n>:FLEXray:COUNt:NULL?
Returns the FlexRay null frame count.
<frame_count><NL>

Errors See Also

<frame_count> ::= integer in NR1 format
· "-241, Hardware missing" on page 1125
· ":SBUS<n>:FLEXray:COUNt:RESet" on page 691 · ":SBUS<n>:FLEXray:COUNt:TOTal" on page 693 · ":SBUS<n>:FLEXray:COUNt:SYNC" on page 692 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:FLEXray Commands" on page 685

690

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:FLEXray:COUNt:RESet

Command Syntax
Errors See Also

(see page 1164)
:SBUS<n>:FLEXray:COUNt:RESet
Resets the FlexRay frame counters. · "-241, Hardware missing" on page 1125 · ":SBUS<n>:FLEXray:COUNt:NULL" on page 690 · ":SBUS<n>:FLEXray:COUNt:TOTal" on page 693 · ":SBUS<n>:FLEXray:COUNt:SYNC" on page 692 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:FLEXray Commands" on page 685

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

691

27 :SBUS<n> Commands

:SBUS<n>:FLEXray:COUNt:SYNC

(see page 1164)

Query Syntax Return Format

:SBUS<n>:FLEXray:COUNt:SYNC?
Returns the FlexRay sync frame count.
<frame_count><NL>

Errors See Also

<frame_count> ::= integer in NR1 format
· "-241, Hardware missing" on page 1125
· ":SBUS<n>:FLEXray:COUNt:RESet" on page 691 · ":SBUS<n>:FLEXray:COUNt:TOTal" on page 693 · ":SBUS<n>:FLEXray:COUNt:NULL" on page 690 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:FLEXray Commands" on page 685

692

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:FLEXray:COUNt:TOTal

(see page 1164)

Query Syntax Return Format

:SBUS<n>:FLEXray:COUNt:TOTal?
Returns the FlexRay total frame count.
<frame_count><NL>

Errors See Also

<frame_count> ::= integer in NR1 format
· "-241, Hardware missing" on page 1125
· ":SBUS<n>:FLEXray:COUNt:RESet" on page 691 · ":SBUS<n>:FLEXray:COUNt:TOTal" on page 693 · ":SBUS<n>:FLEXray:COUNt:NULL" on page 690 · ":SBUS<n>:FLEXray:COUNt:SYNC" on page 692 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:FLEXray Commands" on page 685

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

693

27 :SBUS<n> Commands

:SBUS<n>:FLEXray:SOURce

(see page 1164)

Command Syntax :SBUS<n>:FLEXray:SOURce <source>

<source> ::= {CHANnel<n>}

Query Syntax
Return Format See Also

<n> ::= {1 | 2 | 3 | 4}
The :SBUS<n>:FLEXray:SOURce command specifies the input source for the FlexRay signal.
:SBUS<n>:FLEXray:SOURce?
The :SBUS<n>:FLEXray:SOURce? query returns the current source for the FlexRay signal.
<source><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:FLEXray:TRIGger" on page 695 · ":SBUS<n>:FLEXray:TRIGger:EVENt:TYPE" on page 699 · ":SBUS<n>:FLEXray:AUTosetup" on page 687

694

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:FLEXray:TRIGger

(see page 1164)

Command Syntax :SBUS<n>:FLEXray:TRIGger <condition>

<condition> ::= {FRAMe | ERRor | EVENt}
The :SBUS<n>:FLEXray:TRIGger:TRIGger command sets the FLEXray trigger on condition: · FRAMe -- triggers on specified frames (without errors). · ERRor -- triggers on selected active error frames and unknown bus conditions. · EVENt -- triggers on specified FlexRay event/symbol.

Query Syntax Return Format

:SBUS<n>:FLEXray:TRIGger?
The :SBUS<n>:FLEXray:TRIGger? query returns the current FLEXray trigger on condition.
<condition><NL>

See Also

<condition> ::= {FRAM | ERR | EVEN}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:FLEXray:TRIGger:ERRor:TYPE" on page 696 · ":SBUS<n>:FLEXray:TRIGger:EVENt:AUToset" on page 697 · ":SBUS<n>:FLEXray:TRIGger:EVENt:BSS:ID" on page 698 · ":SBUS<n>:FLEXray:TRIGger:EVENt:TYPE" on page 699 · ":SBUS<n>:FLEXray:TRIGger:FRAMe:CCBase" on page 700 · ":SBUS<n>:FLEXray:TRIGger:FRAMe:CCRepetition" on page 701 · ":SBUS<n>:FLEXray:TRIGger:FRAMe:ID" on page 702 · ":SBUS<n>:FLEXray:TRIGger:FRAMe:TYPE" on page 703

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

695

27 :SBUS<n> Commands

:SBUS<n>:FLEXray:TRIGger:ERRor:TYPE

(see page 1164)

Command Syntax :SBUS<n>:FLEXray:TRIGger:ERRor:TYPE <error_type>

<error_type> ::= {ALL | HCRC | FCRC}
Selects the FlexRay error type to trigger on. The error type setting is only valid when the FlexRay trigger mode is set to ERRor. · ALL -- triggers on ALL errors. · HCRC -- triggers on only Header CRC errors. · FCRC -- triggers on only Frame CRC errors.

Query Syntax Return Format

:SBUS<n>:FLEXray:TRIGger:ERRor:TYPE?
The :SBUS<n>:FLEXray:TRIGger:ERRor:TYPE? query returns the currently selected FLEXray error type.
<error_type><NL>

See Also

<error_type> ::= {ALL | HCRC | FCRC}
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:FLEXray:TRIGger" on page 695

696

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:FLEXray:TRIGger:EVENt:AUToset

Command Syntax See Also

(see page 1164)
:SBUS<n>:FLEXray:TRIGger:EVENt:AUToset
The :SBUS<n>:FLEXray:TRIGger:EVENt:AUToset command automatically configures oscilloscope settings (as shown on the display) for the selected event trigger. · "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:FLEXray:TRIGger:EVENt:TYPE" on page 699 · ":SBUS<n>:FLEXray:TRIGger:EVENt:BSS:ID" on page 698 · ":SBUS<n>:FLEXray:TRIGger" on page 695 · ":SBUS<n>:FLEXray:BAUDrate" on page 688 · ":TRIGger[:EDGE]:LEVel" on page 929 · ":SBUS<n>:FLEXray:SOURce" on page 694

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

697

27 :SBUS<n> Commands

:SBUS<n>:FLEXray:TRIGger:EVENt:BSS:ID

(see page 1164)

Command Syntax :SBUS<n>:FLEXray:TRIGger:EVENt:BSS:ID <frame_id>

<frame_id> ::= {ALL | <frame #>}

<frame #> ::= integer from 1-2047
The :SBUS<N>:FLEXray:TRIGger:EVENt:BSS:ID command sets the frame ID used by the Byte Start Sequence (BSS) event trigger. This setting is only valid if the trigger mode is EVENt and the EVENt:TYPE is BSS.

Query Syntax Return Format

:SBUS<n>:FLEXray:TRIGger:EVENt:BSS:ID?
The :SBUS<n>:FLEXray:TRIGger:EVENt:BSS:ID? query returns the current frame ID setting for the Byte Start Sequence (BSS) event trigger setup.
<frame_id><NL>

<frame_id> ::= {ALL | <frame #>}

See Also

<frame #> ::= integer from 1-2047
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:FLEXray:TRIGger:EVENt:TYPE" on page 699 · ":SBUS<n>:FLEXray:TRIGger:EVENt:AUToset" on page 697 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:FLEXray:TRIGger" on page 695

698

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:FLEXray:TRIGger:EVENt:TYPE

(see page 1164)

Command Syntax :SBUS<n>:FLEXray:TRIGger:EVENt:TYPE <event>

<event> ::= {WAKeup | TSS | {FES | DTS} | BSS}
Selects the FlexRay event to trigger on. The event setting is only valid when the FlexRay trigger mode is set to EVENt. · WAKeup -- triggers on Wake-Up event. · TSS -- triggers on Transmission Start Sequence event. · FES -- triggers on either Frame End or Dynamic Trailing Sequence event. · DTS -- triggers on either Frame End or Dynamic Trailing Sequence event. · BSS -- triggers on Byte Start Sequence event.

Query Syntax Return Format

:SBUS<n>:FLEXray:TRIGger:EVENt:TYPE?
The :SBUS<n>:FLEXray:TRIGger:EVENt:TYPE? query returns the currently selected FLEXray event.
<event><NL>

See Also

<event> ::= {WAK | TSS | {FES | DTS} | BSS}
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:FLEXray:TRIGger:EVENt:AUToset" on page 697 · ":SBUS<n>:FLEXray:TRIGger:EVENt:BSS:ID" on page 698 · ":SBUS<n>:FLEXray:TRIGger" on page 695 · ":SBUS<n>:FLEXray:AUTosetup" on page 687 · ":SBUS<n>:FLEXray:SOURce" on page 694

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

699

27 :SBUS<n> Commands

:SBUS<n>:FLEXray:TRIGger:FRAMe:CCBase

(see page 1164)

Command Syntax :SBUS<n>:FLEXray:TRIGger:FRAMe:CCBase <cycle_count_base>

Query Syntax Return Format

<cycle_count_base> ::= integer from 0-63
The :SBUS<n>:FLEXray:TRIGger:FRAMe:CCBase command sets the base of the FlexRay cycle count (in the frame header) to trigger on. The cycle count base setting is only valid when the FlexRay trigger mode is set to FRAME.
:SBUS<n>:FLEXray:TRIGger:FRAMe:CCBase?
The :SBUS<n>:FLEXray:TRIGger:FRAMe:CCBase? query returns the current cycle count base setting for the FlexRay frame trigger setup.
<cycle_count_base><NL>

See Also

<cycle_count_base> ::= integer from 0-63
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:FLEXray:TRIGger" on page 695

700

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:FLEXray:TRIGger:FRAMe:CCRepetition

(see page 1164)

Command Syntax :SBUS<n>:FLEXray:TRIGger:FRAMe:CCRepetition <cycle_count_repetition>

<cycle_count_repetition> ::= {ALL | <rep #>}

<rep #> ::= integer values 2, 4, 8, 16, 32, or 64
The :SBUS<n>:FLEXray:TRIGger:FRAMe:CCRepetition command sets the repetition number of the FlexRay cycle count (in the frame header) to trigger on. The cycle count repetition setting is only valid when the FlexRay trigger mode is set to FRAME.

Query Syntax Return Format

:SBUS<n>:FLEXray:TRIGger:FRAMe:CCRepetition?
The :SBUS<n>:FLEXray:TRIGger:FRAMe:CCRepetition? query returns the current cycle count repetition setting for the FlexRay frame trigger setup.
<cycle_count_repetition><NL>

<cycle_count_repetition> ::= {ALL | <rep #>}

See Also

<rep #> ::= integer values 2, 4, 8, 16, 32, or 64
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:FLEXray:TRIGger" on page 695

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

701

27 :SBUS<n> Commands

:SBUS<n>:FLEXray:TRIGger:FRAMe:ID

(see page 1164)

Command Syntax :SBUS<n>:FLEXray:TRIGger:FRAMe:ID <frame_id>

<frame_id> ::= {ALL | <frame #>}

<frame #> ::= integer from 1-2047
The :SBUS<n>:FLEXray:TRIGger:FRAMe:ID command sets the FlexRay frame ID to trigger on. The frame ID setting is only valid when the FlexRay trigger mode is set to FRAMe.

Query Syntax Return Format

:SBUS<n>:FLEXray:TRIGger:FRAMe:ID?
The :SBUS<n>:FLEXray:TRIGger:FRAMe:ID? query returns the current frame ID setting for the FlexRay frame trigger setup.
<frame_id><NL>

<frame_id> ::= {ALL | <frame #>}

See Also

<frame #> ::= integer from 1-2047
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:FLEXray:TRIGger" on page 695

702

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:FLEXray:TRIGger:FRAMe:TYPE

(see page 1164)

Command Syntax :SBUS<n>:FLEXray:TRIGger:FRAMe:TYPE <frame_type>

Query Syntax

<frame_type> ::= {NORMal | STARtup | NULL | SYNC | NSTArtup | NNULl | NSYNc | ALL}
The :SBUS<n>:FLEXray:TRIGger:FRAMe:TYPE command sets the FlexRay frame type to trigger on. The frame type setting is only valid when the FlexRay trigger mode is set to FRAME. · NORMal -- will trigger on only normal (NSTArtup & NNULl & NSYNc) frames. · STARtup -- will trigger on only startup frames. · NULL -- will trigger on only null frames. · SYNC -- will trigger on only sync frames. · NSTArtup -- will trigger on frames other than startup frames. · NNULl -- will trigger on frames other than null frames. · NSYNc -- will trigger on frames other than sync frames. · ALL -- will trigger on all FlexRay frame types.
:SBUS<n>:FLEXray:TRIGger:FRAMe:TYPE?
The :SBUS<n>:FLEXray:TRIGger:FRAMe:TYPE? query returns the current frame type setting for the FlexRay frame trigger setup.

Return Format <frame_type><NL>

See Also

<frame_type> ::= {NORM | STAR | NULL | SYNC | NSTA | NNUL | NSYN | ALL}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:FLEXray:TRIGger" on page 695

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

703

27 :SBUS<n> Commands

:SBUS<n>:I2S Commands

NOTE

These commands are only valid when the I2S serial decode option (Option SND) has been licensed.

Table 103 :SBUS<n>:I2S Commands Summary

Command

Query

Options and Query Returns

:SBUS<n>:I2S:ALIGnmen :SBUS<n>:I2S:ALIGnmen <setting> ::= {I2S | LJ | RJ}

t <setting> (see

t? (see page 707)

page 707)

:SBUS<n>:I2S:BASE

:SBUS<n>:I2S:BASE?

<base> (see page 708) (see page 708)

<base> ::= {DECimal | HEX}

:SBUS<n>:I2S:CLOCk:SL :SBUS<n>:I2S:CLOCk:SL <slope> ::= {NEGative | POSitive}

OPe <slope> (see

OPe? (see page 709)

page 709)

:SBUS<n>:I2S:RWIDth
<receiver> (see page 710)

:SBUS<n>:I2S:RWIDth? <receiver> ::= 4-32 in NR1 format (see page 710)

:SBUS<n>:I2S:SOURce:C
LOCk <source> (see page 711)

:SBUS<n>:I2S:SOURce:C LOCk? (see page 711)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> } for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:I2S:SOURce:D
ATA <source> (see page 712)

:SBUS<n>:I2S:SOURce:D ATA? (see page 712)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> } for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

704

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

Table 103 :SBUS<n>:I2S Commands Summary (continued)

Command

Query

Options and Query Returns

:SBUS<n>:I2S:SOURce:W
SELect <source> (see page 713)

:SBUS<n>:I2S:SOURce:W SELect? (see page 713)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> } for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:I2S:TRIGger
<operator> (see page 714)

:SBUS<n>:I2S:TRIGger? (see page 714)

<operator> ::= {EQUal | NOTequal | LESSthan | GREaterthan | INRange | OUTRange | INCReasing | DECReasing}

:SBUS<n>:I2S:TRIGger: :SBUS<n>:I2S:TRIGger: <audio_ch> ::= {RIGHt | LEFT | AUDio <audio_ch> (see AUDio? (see page 716) EITHer} page 716)

:SBUS<n>:I2S:TRIGger:
PATTern:DATA <string> (see page 717)

:SBUS<n>:I2S:TRIGger:
PATTern:DATA? (see page 718)

<string> ::= "n" where n ::= 32-bit integer in signed decimal when <base> = DECimal
<string> ::= "nn...n" where n ::= {0 | 1 | X | $} when <base> = BINary
<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $} when <base> = HEX

:SBUS<n>:I2S:TRIGger: :SBUS<n>:I2S:TRIGger: <base> ::= {BINary | HEX |

PATTern:FORMat <base> PATTern:FORMat? (see DECimal}

(see page 719)

page 719)

:SBUS<n>:I2S:TRIGger:
RANGe <lower>,<upper> (see page 720)

:SBUS<n>:I2S:TRIGger: RANGe? (see page 720)

<lower> ::= 32-bit integer in signed decimal, <nondecimal>, or <string>
<upper> ::= 32-bit integer in signed decimal, <nondecimal>, or <string>
<nondecimal> ::= #Hnn...n where n ::= {0,..,9 | A,..,F} for hexadecimal
<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary
<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F} for hexadecimal

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

705

27 :SBUS<n> Commands

Table 103 :SBUS<n>:I2S Commands Summary (continued)

Command

Query

:SBUS<n>:I2S:TWIDth
<word_size> (see page 722)

:SBUS<n>:I2S:TWIDth? (see page 722)

:SBUS<n>:I2S:WSLow
<low_def> (see page 723)

:SBUS<n>:I2S:WSLow? (see page 723)

Options and Query Returns <word_size> ::= 4-32 in NR1 format
<low_def> ::= {LEFT | RIGHt}

706

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:I2S:ALIGnment

(see page 1164)

Command Syntax :SBUS<n>:I2S:ALIGnment <setting>

<setting> ::= {I2S | LJ | RJ}
The :SBUS<n>:I2S:ALIGnment command selects the data alignment of the I2S bus for the serial decoder and/or trigger when in I2S mode: · I2S -- standard. · LJ -- left justified. · RJ -- right justified.

Query Syntax Return Format

Note that the word select (WS) polarity is specified separately with the :SBUS<n>:I2S:WSLow command.
:SBUS<n>:I2S:ALIGnment?
The :SBUS<n>:I2S:ALIGnment? query returns the currently selected I2S data alignment.
<setting><NL>

See Also

<setting> ::= {I2S | LJ | RJ}
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:I2S:CLOCk:SLOPe" on page 709 · ":SBUS<n>:I2S:RWIDth" on page 710 · ":SBUS<n>:I2S:TWIDth" on page 722 · ":SBUS<n>:I2S:WSLow" on page 723

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

707

27 :SBUS<n> Commands

:SBUS<n>:I2S:BASE

(see page 1164)

Command Syntax :SBUS<n>:I2S:BASE <base>

<base> ::= {DECimal | HEX}
The :SBUS<n>:I2S:BASE command determines the base to use for the I2S decode display.

Query Syntax Return Format

:SBUS<n>:I2S:BASE?
The :SBUS<n>:I2S:BASE? query returns the current I2S display decode base.
<base><NL>

<base> ::= {DECimal | HEX}
Errors · "-241, Hardware missing" on page 1125

See Also · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:I2S Commands" on page 704

708

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:I2S:CLOCk:SLOPe

(see page 1164)

Command Syntax :SBUS<n>:I2S:CLOCk:SLOPe <slope>

<slope> ::= {NEGative | POSitive}
The :SBUS<n>:I2S:CLOCk:SLOPe command specifies which edge of the I2S serial clock signal clocks in data. · NEGative -- Falling edge. · POSitive -- Rising edge.

Query Syntax Return Format

:SBUS<n>:I2S:CLOCk:SLOPe?
The :SBUS<n>:I2S:CLOCk:SLOPe? query returns the current I2S clock slope setting.
<slope><NL>

See Also

<slope> ::= {NEG | POS}
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:I2S:ALIGnment" on page 707 · ":SBUS<n>:I2S:RWIDth" on page 710 · ":SBUS<n>:I2S:TWIDth" on page 722 · ":SBUS<n>:I2S:WSLow" on page 723

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

709

27 :SBUS<n> Commands

:SBUS<n>:I2S:RWIDth

(see page 1164)

Command Syntax :SBUS<n>:I2S:RWIDth <receiver>

<receiver> ::= 4-32 in NR1 format
The :SBUS<n>:I2S:RWIDth command sets the width of the receiver (decoded) data word in I2S anywhere from 4 bits to 32 bits.

Query Syntax Return Format

:SBUS<n>:I2S:RWIDth?
The :SBUS<n>:I2S:RWIDth? query returns the currently set I2S receiver data word width.
<receiver><NL>

See Also

<receiver> ::= 4-32 in NR1 format
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:I2S:ALIGnment" on page 707 · ":SBUS<n>:I2S:CLOCk:SLOPe" on page 709 · ":SBUS<n>:I2S:TWIDth" on page 722 · ":SBUS<n>:I2S:WSLow" on page 723

710

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:I2S:SOURce:CLOCk

(see page 1164)

Command Syntax :SBUS<n>:I2S:SOURce:CLOCk <source>

<source> ::= {CHANnel<n> | EXTernal} for the DSO models

<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax
Return Format See Also

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :SBUS<n>:I2S:SOURce:CLOCk controls which signal is used as the serial clock (SCLK) source by the serial decoder and/or trigger when in I2S mode.
:SBUS<n>:I2S:SOURce:CLOCk?
The :SBUS<n>:I2S:SOURce:CLOCk? query returns the current source for the I2S serial clock (SCLK).
<source><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:I2S:SOURce:DATA" on page 712 · ":SBUS<n>:I2S:SOURce:WSELect" on page 713

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

711

27 :SBUS<n> Commands

:SBUS<n>:I2S:SOURce:DATA

(see page 1164)

Command Syntax :SBUS<n>:I2S:SOURce:DATA <source>

<source> ::= {CHANnel<n> | EXTernal} for the DSO models

<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax
Return Format See Also

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :SBUS<n>:I2S:SOURce:DATA command controls which signal is used as the serial data (SDATA) source by the serial decoder and/or trigger when in I2S mode.
:SBUS<n>:I2S:SOURce:DATA?
The :SBUS<n>:I2S:SOURce:DATA? query returns the current source for the I2S serial data (SDATA).
<source><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:I2S:SOURce:CLOCk" on page 711 · ":SBUS<n>:I2S:SOURce:WSELect" on page 713

712

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:I2S:SOURce:WSELect

(see page 1164)

Command Syntax :SBUS<n>:I2S:SOURce:WSELect <source>

<source> ::= {CHANnel<n> | EXTernal} for the DSO models

<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax
Return Format See Also

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :SBUS<n>:I2S:SOURce:WSELect command controls which signal is used as the word select (WS) source by the serial decoder and/or trigger when in I2S mode.
:SBUS<n>:I2S:SOURce:WSELect?
The :SBUS<n>:I2S:SOURce:WSELect? query returns the current source for I2S word select (WS).
<source><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:I2S:SOURce:CLOCk" on page 711 · ":SBUS<n>:I2S:SOURce:DATA" on page 712

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

713

27 :SBUS<n> Commands

:SBUS<n>:I2S:TRIGger
(see page 1164) Command Syntax :SBUS<n>:I2S:TRIGger <operator>
<operator> ::= {EQUal | NOTequal | LESSthan | GREaterthan | INRange | OUTRange | INCReasing | DECReasing}
The :SBUS<n>:I2S:TRIGger command sets the I2S trigger operator: · EQUal-- triggers on the specified audio channel's data word when it equals the
specified word. · NOTequal -- triggers on any word other than the specified word. · LESSthan -- triggers when the channel's data word is less than the specified
value. · GREaterthan -- triggers when the channel's data word is greater than the
specified value. · INRange -- enter upper and lower values to specify the range in which to
trigger. · OUTRange -- enter upper and lower values to specify range in which trigger will
not occur. · INCReasing -- triggers when the data value makes a certain increase over time
and the specified value is met or exceeded. Use the :SBUS<n>:I2S:TRIGger:RANGe command to set "Trigger" and "Armed" values. The "Trigger" value is the value that must be met or exceeded to cause the trigger. The "Armed" value is the value the data must go below in order to re-arm the oscilloscope (ready it to trigger again).

5SJHHFS

5SJHHFS

/PUSJHHFS

5SJHHFSWBMVF "SNFEWBMVF

Query Syntax Return Format

· DECReasing -- similar to INCReasing except the trigger occurs on a certain descrease over time and the "Trigger" data value is less than the "Armed" data value.
:SBUS<n>:I2S:TRIGger?
The :SBUS<n>:I2S:TRIGger? query returns the current I2S trigger operator.
<operator><NL>

714

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

See Also

<operator> ::= {EQU | NOT | LESS | GRE | INR | OUTR | INCR | DECR}
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:I2S:TRIGger:AUDio" on page 716 · ":SBUS<n>:I2S:TRIGger:RANGe" on page 720 · ":SBUS<n>:I2S:TRIGger:PATTern:FORMat" on page 719

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

715

27 :SBUS<n> Commands

:SBUS<n>:I2S:TRIGger:AUDio

(see page 1164)

Command Syntax :SBUS<n>:I2S:TRIGger:AUDio <audio_ch>

<audio_ch> ::= {RIGHt | LEFT | EITHer}
The :SBUS<n>:I2S:TRIGger:AUDio command specifies the audio channel to trigger on: · RIGHt -- right channel. · LEFT-- left channel. · EITHer -- right or left channel.

Query Syntax Return Format

:SBUS<n>:I2S:TRIGger:AUDio?
The :SBUS<n>:I2S:TRIGger:AUDio? query returns the current audio channel for the I2S trigger.
<audio_ch><NL>

See Also

<audio_ch> ::= {RIGH | LEFT | EITH}
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:I2S:TRIGger" on page 714

716

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:I2S:TRIGger:PATTern:DATA

(see page 1164) Command Syntax :SBUS<n>:I2S:TRIGger:PATTern:DATA <string>
<string> ::= "n" where n ::= 32-bit integer in signed decimal when <base> = DECimal
<string> ::= "nn...n" where n ::= {0 | 1 | X | $} when <base> = BINary
<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $} when <base> = HEX

NOTE

<base> is specified with the :SBUS<n>:I2S:TRIGger:PATTern:FORMat command. The default <base> is DECimal.

NOTE NOTE

The :SBUS<n>:I2S:TRIGger:PATTern:DATA command specifies the I2S trigger data pattern searched for in each I2S message. Set a <string> bit to "0" or "1" to set the corresponding bit in the data pattern to low or high, respectively. Set a <string> bit to "X" to ignore (mask off) that bit in the data pattern. Use the "$" character to indicate that the value of the corresponding bit will not be changed (the existing bit value is used). When <base> = DECimal, the "X" and "$" characters cannot be entered. When queried, the "$" character is returned when any bits in the pattern have the value of "X" and <base> = DECimal. When any bits in a given nibble have the value of "X" and <base> = HEX, the "$" character is returned for the corresponding nibble.
The :SBUS<n>:I2S:TRIGger:PATTern:DATA command specifies the I2S trigger data pattern used by the EQUal, NOTequal, GREaterthan, and LESSthan trigger conditions. If the GREaterthan or LESSthan trigger condition is selected, the bits specified to be masked off ("X") will be interpreted as 0's.
The length of the trigger data value is determined by the :SBUS<n>:I2S:RWIDth and :SBUS<n>:I2S:TWIDth commands. When the receiver word size is less than the transmitter word size, the data length is equal to the receiver word size. When the receiver word size is greater than the transmitter word size, the data length is equal to the transmitter word size.

NOTE

If more bits are sent for <string> than the specified trigger data length, the most significant bits will be truncated. If the word size is changed after the <string> is programmed, the added or deleted bits will be added to or deleted from the least significant bits.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

717

27 :SBUS<n> Commands

Query Syntax
Return Format See Also

:SBUS<n>:I2S:TRIGger:PATTern:DATA?
The :SBUS<n>:I2S:TRIGger:PATTern:DATA? query returns the currently specified I2S trigger data pattern.
<string><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:I2S:TRIGger:PATTern:FORMat" on page 719 · ":SBUS<n>:I2S:TRIGger" on page 714 · ":SBUS<n>:I2S:RWIDth" on page 710 · ":SBUS<n>:I2S:TWIDth" on page 722 · ":SBUS<n>:I2S:TRIGger:AUDio" on page 716

718

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:I2S:TRIGger:PATTern:FORMat

(see page 1164)

Command Syntax :SBUS<n>:I2S:TRIGger:PATTern:FORMat <base>

Query Syntax Return Format

<base> ::= {BINary | HEX | DECimal}
The :SBUS<n>:I2S:TRIGger:PATTern:FORMat command sets the entry (and query) number base used by the :SBUS<n>:I2S:TRIGger:PATTern:DATA command. The default <base> is DECimal.
:SBUS<n>:I2S:TRIGger:PATTern:FORMat?
The :SBUS<n>:I2S:TRIGger:PATTern:FORMat? query returns the currently set number base for I2S pattern data.
<base><NL>

See Also

<base> ::= {BIN | HEX | DEC}
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:I2S:TRIGger:AUDio" on page 716 · ":SBUS<n>:I2S:TRIGger" on page 714

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

719

27 :SBUS<n> Commands

:SBUS<n>:I2S:TRIGger:RANGe

(see page 1164) Command Syntax :SBUS<n>:I2S:TRIGger:RANGe <lower>,<upper>
<lower> ::= 32-bit integer in signed decimal, <nondecimal> or <string>
<upper> ::= 32-bit integer in signed decimal, <nondecimal>, or <string>
<nondecimal> ::= #Hnn...n where n ::= {0,..,9 | A,..,F} for hexadecimal
<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary
<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F} for hexadecimal
The :SBUS<n>:I2S:TRIGger:RANGe command sets the lower and upper range boundaries used by the INRange, OUTRange, INCReasing, and DECReasing trigger conditions. You can enter the parameters in any order -- the smaller value becomes the <lower> and the larger value becomes the <upper>. Note that for INCReasing and DECReasing, the <lower> and <upper> values correspond to the "Armed" and "Trigger" softkeys.

NOTE

The length of the <lower> and <upper> values is determined by the :SBUS<n>:I2S:RWIDth and :SBUS<n>:I2S:TWIDth commands. When the receiver word size is less than the transmitter word size, the length is equal to the receiver word size. When the receiver word size is greater than the transmitter word size, the length is equal to the transmitter word size.

Query Syntax Return Format

:SBUS<n>:I2S:TRIGger:RANGe?
The :SBUS<n>:I2S:TRIGger:RANGe? query returns the currently set lower and upper range boundaries.
<lower>,<upper><NL>

<lower> ::= 32-bit integer in signed decimal, <nondecimal> or <string>

<upper> ::= 32-bit integer in signed decimal, <nondecimal>, or <string>

<nondecimal> ::= #Hnn...n where n ::= {0,..,9 | A,..,F} for hexadecimal

<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary

See Also

<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F} for hexadecimal
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:I2S:TRIGger" on page 714

720

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

· ":SBUS<n>:I2S:RWIDth" on page 710 · ":SBUS<n>:I2S:TWIDth" on page 722 · ":SBUS<n>:I2S:WSLow" on page 723

:SBUS<n> Commands 27

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

721

27 :SBUS<n> Commands

:SBUS<n>:I2S:TWIDth

(see page 1164)

Command Syntax :SBUS<n>:I2S:TWIDth <word_size>

<word_size> ::= 4-32 in NR1 format
The :SBUS<n>:I2S:TWIDth command sets the width of the transmitted data word in I2S anywhere from 4 bits to 32 bits.

Query Syntax Return Format

:SBUS<n>:I2S:TWIDth?
The :SBUS<n>:I2S:TWIDth? query returns the currently set I2S transmitted data word width.
<word_size><NL>

See Also

<word_size> ::= 4-32 in NR1 format
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:I2S:ALIGnment" on page 707 · ":SBUS<n>:I2S:CLOCk:SLOPe" on page 709 · ":SBUS<n>:I2S:RWIDth" on page 710 · ":SBUS<n>:I2S:WSLow" on page 723

722

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:I2S:WSLow

(see page 1164)

Command Syntax :SBUS<n>:I2S:WSLow <low_def>

Query Syntax Return Format

<low_def> ::= {LEFT | RIGHt}
The :SBUS<n>:I2S:WSLow command selects the polarity of the word select (WS) signal: · LEFT-- a word select (WS) state of low indicates left channel data is active on
the I2S bus, and a WS state of high indicates right channel data is active on the bus. · RIGHt -- a word select (WS) state of low indicates right channel data is active on the I2S bus, and a WS state of high indicates left channel data is active on the bus.
:SBUS<n>:I2S:WSLow?
The :SBUS<n>:I2S:WSLow? query returns the currently selected I2S word select (WS) polarity.
<low_def><NL>

See Also

<low_def> ::= {LEFT | RIGHt}
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:I2S:ALIGnment" on page 707 · ":SBUS<n>:I2S:CLOCk:SLOPe" on page 709 · ":SBUS<n>:I2S:RWIDth" on page 710 · ":SBUS<n>:I2S:TWIDth" on page 722

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

723

27 :SBUS<n> Commands

:SBUS<n>:IIC Commands

NOTE

These commands are only valid when the low-speed IIC and SPI serial decode option (Option LSS) has been licensed.

Table 104 :SBUS<n>:IIC Commands Summary

Command

Query

Options and Query Returns

:SBUS<n>:IIC:ASIZe

:SBUS<n>:IIC:ASIZe?

<size> (see page 726) (see page 726)

<size> ::= {BIT7 | BIT8}

:SBUS<n>:IIC[:SOURce]
:CLOCk <source> (see page 727)

:SBUS<n>:IIC[:SOURce] :CLOCk? (see page 727)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> } for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:IIC[:SOURce]
:DATA <source> (see page 728)

:SBUS<n>:IIC[:SOURce] :DATA? (see page 728)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> } for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:IIC:TRIGger: :SBUS<n>:IIC:TRIGger: <value> ::= integer or <string>

PATTern:ADDRess <value> (see page 729)

PATTern:ADDRess? (see page 729)

<string> ::= "0xnn" n ::= {0,..,9 | A,..,F}

:SBUS<n>:IIC:TRIGger: :SBUS<n>:IIC:TRIGger: <value> ::= integer or <string>

PATTern:DATA <value> PATTern:DATA? (see

(see page 730)

page 730)

<string> ::= "0xnn" n ::= {0,..,9 | A,..,F}

:SBUS<n>:IIC:TRIGger: :SBUS<n>:IIC:TRIGger: <value> ::= integer or <string>

PATTern:DATa2 <value> PATTern:DATa2? (see

(see page 731)

page 731)

<string> ::= "0xnn" n ::= {0,..,9 | A,..,F}

724

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

Table 104 :SBUS<n>:IIC Commands Summary (continued)

Command

Query

Options and Query Returns

:SBUS<n>:IIC:TRIGger: :SBUS<n>:IIC:TRIGger: <value> ::= {EQUal | NOTequal |

QUALifier <value> (see page 732)

QUALifier? (see page 732)

LESSthan | GREaterthan}

:SBUS<n>:IIC:TRIGger[
:TYPE] <type> (see page 733)

:SBUS<n>:IIC:TRIGger[ :TYPE]? (see page 733)

<type> ::= {STARt | STOP | READ7 | READEprom | WRITe7 | WRITe10 | NACKnowledge | ANACk | R7Data2 | W7Data2 | RESTart}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

725

27 :SBUS<n> Commands

:SBUS<n>:IIC:ASIZe

(see page 1164)

Command Syntax :SBUS<n>:IIC:ASIZe <size>

<size> ::= {BIT7 | BIT8}
The :SBUS<n>:IIC:ASIZe command determines whether the Read/Write bit is included as the LSB in the display of the IIC address field of the decode bus.

Query Syntax Return Format

:SBUS<n>:IIC:ASIZe?
The :SBUS<n>:IIC:ASIZe? query returns the current IIC address width setting.
<mode><NL>

<mode> ::= {BIT7 | BIT8}
Errors · "-241, Hardware missing" on page 1125

See Also · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:IIC Commands" on page 724

726

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:IIC[:SOURce]:CLOCk

(see page 1164)

Command Syntax :SBUS<n>:IIC:[SOURce:]CLOCk <source>

<source> ::= {CHANnel<n> | EXTernal} for the DSO models

<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax
Return Format See Also

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :SBUS<n>:IIC:[SOURce:]CLOCk command sets the source for the IIC serial clock (SCL).
:SBUS<n>:IIC:[SOURce:]CLOCk?
The :SBUS<n>:IIC:[SOURce:]CLOCk? query returns the current source for the IIC serial clock.
<source><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:IIC[:SOURce]:DATA" on page 728

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

727

27 :SBUS<n> Commands

:SBUS<n>:IIC[:SOURce]:DATA

(see page 1164)

Command Syntax :SBUS<n>:IIC:[SOURce:]DATA <source>

<source> ::= {CHANnel<n> | EXTernal} for the DSO models

<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax
Return Format See Also

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :SBUS<n>:IIC:[SOURce:]DATA command sets the source for IIC serial data (SDA).
:SBUS<n>:IIC:[SOURce:]DATA?
The :SBUS<n>:IIC:[SOURce:]DATA? query returns the current source for IIC serial data.
<source><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:IIC[:SOURce]:CLOCk" on page 727

728

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:IIC:TRIGger:PATTern:ADDRess

(see page 1164)

Command Syntax :SBUS<n>:IIC:TRIGger:PATTern:ADDRess <value>

<value> ::= integer or <string>

<string> ::= "0xnn" where n ::= {0,..,9 | A,..,F}
The :SBUS<n>:IIC:TRIGger:PATTern:ADDRess command sets the address for IIC data.The address can range from 0x00 to 0x7F (7-bit) or 0x3FF (10-bit) hexadecimal. Use the don't care address (-1 or 0xFFFFFFFF) to ignore the address value.

Query Syntax Return Format

:SBUS<n>:IIC:TRIGger:PATTern:ADDRess?
The :SBUS<n>:IIC:TRIGger:PATTern:ADDRess? query returns the current address for IIC data.
<value><NL>

See Also

<value> ::= integer
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:IIC:TRIGger:PATTern:DATA" on page 730 · ":SBUS<n>:IIC:TRIGger:PATTern:DATa2" on page 731 · ":SBUS<n>:IIC:TRIGger[:TYPE]" on page 733

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

729

27 :SBUS<n> Commands

:SBUS<n>:IIC:TRIGger:PATTern:DATA

(see page 1164)

Command Syntax :SBUS<n>:IIC:TRIGger:PATTern:DATA <value>

<value> ::= integer or <string>

<string> ::= "0xnn" where n ::= {0,..,9 | A,..,F}
The :SBUS<n>:IIC:TRIGger:PATTern:DATA command sets IIC data. The data value can range from 0x00 to 0x0FF (hexadecimal). Use the don't care data pattern (-1 or 0xFFFFFFFF) to ignore the data value.

Query Syntax
Return Format See Also

:SBUS<n>:IIC:TRIGger:PATTern:DATA?
The :SBUS<n>:IIC:TRIGger:PATTern:DATA? query returns the current pattern for IIC data.
<value><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:IIC:TRIGger:PATTern:ADDRess" on page 729 · ":SBUS<n>:IIC:TRIGger:PATTern:DATa2" on page 731 · ":SBUS<n>:IIC:TRIGger[:TYPE]" on page 733

730

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:IIC:TRIGger:PATTern:DATa2

(see page 1164)

Command Syntax :SBUS<n>:IIC:TRIGger:PATTern:DATa2 <value>

<value> ::= integer or <string>

<string> ::= "0xnn" where n ::= {0,..,9 | A,..,F}
The :SBUS<n>:IIC:TRIGger:PATTern:DATa2 command sets IIC data 2. The data value can range from 0x00 to 0x0FF (hexadecimal). Use the don't care data pattern (-1 or 0xFFFFFFFF) to ignore the data value.

Query Syntax
Return Format See Also

:SBUS<n>:IIC:TRIGger:PATTern:DATa2?
The :SBUS<n>:IIC:TRIGger:PATTern:DATa2? query returns the current pattern for IIC data 2.
<value><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:IIC:TRIGger:PATTern:ADDRess" on page 729 · ":SBUS<n>:IIC:TRIGger:PATTern:DATA" on page 730 · ":SBUS<n>:IIC:TRIGger[:TYPE]" on page 733

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

731

27 :SBUS<n> Commands

:SBUS<n>:IIC:TRIGger:QUALifier

(see page 1164)

Command Syntax :SBUS<n>:IIC:TRIGger:QUALifier <value>

<value> ::= {EQUal | NOTequal | LESSthan | GREaterthan}
The :SBUS<n>:IIC:TRIGger:QUALifier command sets the IIC data qualifier when TRIGger:IIC:TRIGger[:TYPE] is set to READEprom.

Query Syntax Return Format

:SBUS<n>:IIC:TRIGger:QUALifier?
The :SBUS<n>:IIC:TRIGger:QUALifier? query returns the current IIC data qualifier value.
<value><NL>

See Also

<value> ::= {EQUal | NOTequal | LESSthan | GREaterthan}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:IIC:TRIGger[:TYPE]" on page 733

732

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:IIC:TRIGger[:TYPE]

(see page 1164)
Command Syntax :SBUS<n>:IIC:TRIGger[:TYPE] <value>
<value> ::= {STARt | STOP | READ7 | READEprom | WRITe7 | WRITe10 | NACKnowledge | ANACk | R7Data2 | W7Data2 | RESTart}
The :SBUS<n>:IIC:TRIGger[:TYPE] command sets the IIC trigger type: · STARt -- Start condition. · STOP -- Stop condition. · READ7 -- 7-bit address frame containing (Start:Address7:Read:Ack:Data). The
value READ is also accepted for READ7. · R7Data2 -- 7-bit address frame containing
(Start:Address7:Read:Ack:Data:Ack:Data2). · READEprom -- EEPROM data read. · WRITe7 -- 7-bit address frame containing (Start:Address7:Write:Ack:Data). The
value WRITe is also accepted for WRITe7. · W7Data2 -- 7-bit address frame containing
(Start:Address7:Write:Ack:Data:Ack:Data2). · WRITe10 -- 10-bit address frame containing (Start:Address
byte1:Write:Ack:Address byte 2:Data). · NACKnowledge -- Missing acknowledge. · ANACk -- Address with no acknowledge. · RESTart -- Another start condition occurs before a stop condition.

NOTE

The short form of READ7 (READ7), READEprom (READE), WRITe7 (WRIT7), and WRITe10 (WRIT10) do not follow the defined Long Form to Short Form Truncation Rules (see page 1166).

Query Syntax Return Format

:SBUS<n>:IIC:TRIGger[:TYPE]?
The :SBUS<n>:IIC:TRIGger[:TYPE]? query returns the current IIC trigger type value.
<value><NL>

See Also

<value> ::= {STAR | STOP | READ7 | READE | WRIT7 | WRIT10 | NACK | ANAC | R7D2 | W7D2 | REST}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:IIC:TRIGger:PATTern:ADDRess" on page 729 · ":SBUS<n>:IIC:TRIGger:PATTern:DATA" on page 730

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

733

27 :SBUS<n> Commands
· ":SBUS<n>:IIC:TRIGger:PATTern:DATa2" on page 731 · ":SBUS<n>:IIC:TRIGger:QUALifier" on page 732 · "Long Form to Short Form Truncation Rules" on page 1166

734

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:LIN Commands

NOTE

These commands are valid when the automotive CAN and LIN serial decode option (Option AMS) has been licensed.

Table 105 :SBUS<n>:LIN Commands Summary

Command

Query

Options and Query Returns

:SBUS<n>:LIN:PARity
{{0 | OFF} | {1 | ON}} (see page 737)

:SBUS<n>:LIN:PARity? {0 | 1} (see page 737)

:SBUS<n>:LIN:SAMPlepo :SBUS<n>:LIN:SAMPlepo <value> ::= {60 | 62.5 | 68 | 70

int <value> (see

int? (see page 738)

| 75 | 80 | 87.5} in NR3 format

page 738)

:SBUS<n>:LIN:SIGNal:B :SBUS<n>:LIN:SIGNal:B <baudrate> ::= integer from 2400

AUDrate <baudrate> (see page 739)

AUDrate? (see page 739)

to 625000 in 100 b/s increments

:SBUS<n>:LIN:SOURce
<source> (see page 740)

:SBUS<n>:LIN:SOURce? (see page 740)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:LIN:STANdard :SBUS<n>:LIN:STANdard <std> ::= {LIN13 | LIN20}

<std> (see page 741)

? (see page 741)

:SBUS<n>:LIN:SYNCbrea :SBUS<n>:LIN:SYNCbrea <value> ::= integer = {11 | 12 |

k <value> (see

k? (see page 742)

13}

page 742)

:SBUS<n>:LIN:TRIGger
<condition> (see page 743)

:SBUS<n>:LIN:TRIGger? <condition> ::= {SYNCbreak | ID |

(see page 743)

DATA}

:SBUS<n>:LIN:TRIGger:
ID <value> (see page 744)

:SBUS<n>:LIN:TRIGger: ID? (see page 744)

<value> ::= 7-bit integer in decimal, <nondecimal>, or <string> from 0-63 or 0x00-0x3f
<nondecimal> ::= #Hnn where n ::= {0,..,9 | A,..,F} for hexadecimal
<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary
<string> ::= "0xnn" where n ::= {0,..,9 | A,..,F} for hexadecimal

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

735

27 :SBUS<n> Commands

Table 105 :SBUS<n>:LIN Commands Summary (continued)

Command

Query

Options and Query Returns

:SBUS<n>:LIN:TRIGger:
PATTern:DATA <string> (see page 745)

:SBUS<n>:LIN:TRIGger:
PATTern:DATA? (see page 745)

<string> ::= "n" where n ::= 32-bit integer in unsigned decimal when <base> = DECimal
<string> ::= "nn...n" where n ::= {0 | 1 | X | $} when <base> = BINary
<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $} when <base> = HEX

:SBUS<n>:LIN:TRIGger:
PATTern:DATA:LENGth
<length> (see page 747)

:SBUS<n>:LIN:TRIGger:
PATTern:DATA:LENGth? (see page 747)

<length> ::= integer from 1 to 8 in NR1 format

:SBUS<n>:LIN:TRIGger: :SBUS<n>:LIN:TRIGger: <base> ::= {BINary | HEX |

PATTern:FORMat <base> PATTern:FORMat? (see DECimal}

(see page 748)

page 748)

736

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:LIN:PARity

(see page 1164)

Command Syntax :SBUS<n>:LIN:PARity <display>

Query Syntax Return Format

<display> ::= {{1 | ON} | {0 | OFF}}
The :SBUS<n>:LIN:PARity command determines whether the parity bits are included as the most significant bits (MSB) in the display of the Frame Id field in the LIN decode bus.
:SBUS<n>:LIN:PARity?
The :SBUS<n>:LIN:PARity? query returns the current LIN parity bits display setting of the serial decode bus.
<display><NL>

Errors See Also

<display> ::= {0 | 1}
· "-241, Hardware missing" on page 1125 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:LIN Commands" on page 735

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

737

27 :SBUS<n> Commands

:SBUS<n>:LIN:SAMPlepoint

(see page 1164) Command Syntax :SBUS<n>:LIN:SAMPlepoint <value>
<value><NL> <value> ::= {60 | 62.5 | 68 | 70 | 75 | 80 | 87.5} in NR3 format
The :SBUS<n>:LIN:SAMPlepoint command sets the point during the bit time where the bit level is sampled to determine whether the bit is dominant or recessive. The sample point represents the percentage of time between the beginning of the bit time to the end of the bit time.

NOTE

The sample point values are not limited by the baud rate.

Query Syntax Return Format

:SBUS<n>:LIN:SAMPlepoint?
The :SBUS<n>:LIN:SAMPlepoint? query returns the current LIN sample point setting.
<value><NL>

See Also

<value> ::= {60 | 62.5 | 68 | 70 | 75 | 80 | 87.5} in NR3 format
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:LIN:TRIGger" on page 743

738

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:LIN:SIGNal:BAUDrate

(see page 1164)

Command Syntax :SBUS<n>:LIN:SIGNal:BAUDrate <baudrate>

Query Syntax Return Format

<baudrate> ::= integer from 2400 to 625000 in 100 b/s increments
The :SBUS<n>:LIN:SIGNal:BAUDrate command sets the standard baud rate of the LIN signal from 2400 b/s to 625 kb/s in 100 b/s increments. If you enter a baud rate that is not divisible by 100 b/s, the baud rate is set to the nearest baud rate divisible by 100 b/s.
:SBUS<n>:LIN:SIGNal:BAUDrate?
The :SBUS<n>:LIN:SIGNal:BAUDrate? query returns the current LIN baud rate setting.
<baudrate><NL>

See Also

<baudrate> ::= integer from 2400 to 625000 in 100 b/s increments
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:LIN:TRIGger" on page 743 · ":SBUS<n>:LIN:SOURce" on page 740

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

739

27 :SBUS<n> Commands

:SBUS<n>:LIN:SOURce

(see page 1164)

Command Syntax :SBUS<n>:LIN:SOURce <source>

<source> ::= {CHANnel<n> | EXTernal} for the DSO models

<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax
Return Format See Also

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :SBUS<n>:LIN:SOURce command sets the source for the LIN signal.
:SBUS<n>:LIN:SOURce?
The :SBUS<n>:LIN:SOURce? query returns the current source for the LIN signal.
<source><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:LIN:TRIGger" on page 743 · ":SBUS<n>:LIN:SIGNal:DEFinition" on page 1118

740

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:LIN:STANdard

(see page 1164)

Command Syntax :SBUS<n>:LIN:STANdard <std>

<std> ::= {LIN13 | LIN20}
The :SBUS<n>:LIN:STANdard command sets the LIN standard in effect for triggering and decoding to be LIN1.3 or LIN2.0.

Query Syntax Return Format

:SBUS<n>:LIN:STANdard?
The :SBUS<n>:LIN:STANdard? query returns the current LIN standard setting.
<std><NL>

See Also

<std> ::= {LIN13 | LIN20}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:LIN:SOURce" on page 740

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

741

27 :SBUS<n> Commands

:SBUS<n>:LIN:SYNCbreak

(see page 1164)

Command Syntax :SBUS<n>:LIN:SYNCbreak <value>

Query Syntax Return Format

<value> ::= integer = {11 | 12 | 13}
The :SBUS<n>:LIN:SYNCbreak command sets the length of the LIN sync break to be greater than or equal to 11, 12, or 13 clock lengths. The sync break is the idle period in the bus activity at the beginning of each packet that distinguishes one information packet from the previous one.
:SBUS<n>:LIN:SYNCbreak?
The :SBUS<n>:LIN:SYNCbreak? query returns the current LIN sync break setting.
<value><NL>

See Also

<value> ::= {11 | 12 | 13}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:LIN:SOURce" on page 740

742

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:LIN:TRIGger

(see page 1164)

Command Syntax :SBUS<n>:LIN:TRIGger <condition>

<condition> ::= {SYNCbreak | ID | DATA}
The :SBUS<n>:LIN:TRIGger command sets the LIN trigger condition to be: · SYNCbreak -- Sync Break. · ID -- Frame ID.

Query Syntax Return Format

Use the :SBUS<n>:LIN:TRIGger:ID command to specify the frame ID. · DATA -- Frame ID and Data.
Use the :SBUS<n>:LIN:TRIGger:ID command to specify the frame ID. Use the :SBUS<n>:LIN:TRIGger:PATTern:DATA:LENGth and :SBUS<n>:LIN:TRIGger:PATTern:DATA commands to specify the data string length and value.
:SBUS<n>:LIN:TRIGger?
The :SBUS<n>:LIN:TRIGger? query returns the current LIN trigger value.
<condition><NL>

Errors See Also

<condition> ::= {SYNC | ID | DATA}
· "-241, Hardware missing" on page 1125
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:LIN:TRIGger:ID" on page 744 · ":SBUS<n>:LIN:TRIGger:PATTern:DATA:LENGth" on page 747 · ":SBUS<n>:LIN:TRIGger:PATTern:DATA" on page 745 · ":SBUS<n>:LIN:SOURce" on page 740

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

743

27 :SBUS<n> Commands

:SBUS<n>:LIN:TRIGger:ID

(see page 1164)

Command Syntax :SBUS<n>:LIN:TRIGger:ID <value>

<value> ::= 7-bit integer in decimal, <nondecimal>, or <string> from 0-63 or 0x00-0x3f

<nondecimal> ::= #Hnn where n ::= {0,..,9 | A,..,F} for hexadecimal

<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary

<string> ::= "0xnn" where n ::= {0,..,9 | A,..,F} for hexadecimal
The :SBUS<n>:LIN:TRIGger:ID command defines the LIN identifier searched for in each CAN message when the LIN trigger mode is set to frame ID.

Query Syntax Return Format

Setting the ID to a value of "-1" results in "0xXX" which is equivalent to all IDs.
:SBUS<n>:LIN:TRIGger:ID?
The :SBUS<n>:LIN:TRIGger:ID? query returns the current LIN identifier setting.
<value><NL>

Errors See Also

<value> ::= integer in decimal
· "-241, Hardware missing" on page 1125
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:LIN:TRIGger" on page 743 · ":SBUS<n>:LIN:SOURce" on page 740

744

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:LIN:TRIGger:PATTern:DATA

(see page 1164) Command Syntax :SBUS<n>:LIN:TRIGger:PATTern:DATA <string>
<string> ::= "n" where n ::= 32-bit integer in unsigned decimal when <base> = DECimal
<string> ::= "nn...n" where n ::= {0 | 1 | X | $} when <base> = BINary
<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $} when <base> = HEX

NOTE

<base> is specified with the :SBUS<n>:LIN:TRIGger:PATTern:FORMat command. The default <base> is BINary.

NOTE

The :SBUS<n>:LIN:TRIGger:PATTern:DATA command specifies the LIN trigger data pattern searched for in each LIN data field. Set a <string> bit to "0" or "1" to set the corresponding bit in the data pattern to low or high, respectively. Set a <string> bit to "X" to ignore (mask off) that bit in the data pattern. Use the "$" character to indicate that the value of the corresponding bit will not be changed (the existing bit value is used). When <base> = DECimal, the "X" and "$" characters cannot be entered. When queried, the "$" character is returned when any bits in the pattern have the value of "X" and <base> = DECimal. When any bits in a given nibble have the value of "X" and <base> = HEX, the "$" character is returned for the corresponding nibble.
The length of the trigger data value is determined by the :SBUS<n>:LIN:TRIGger:PATTern:DATA:LENGth command.

NOTE

If more bits are sent for <string> than the specified trigger pattern data length, the most significant bits will be truncated. If the data length size is changed after the <string> is programmed, the added or deleted bits will be added to or deleted from the least significant bits.

Query Syntax Return Format

:SBUS<n>:LIN:TRIGger:PATTern:DATA?
The :SBUS<n>:LIN:TRIGger:PATTern:DATA? query returns the currently specified LIN trigger data pattern.
<string><NL>

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

745

27 :SBUS<n> Commands

See Also

· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:LIN:TRIGger:PATTern:FORMat" on page 748 · ":SBUS<n>:LIN:TRIGger" on page 743 · ":SBUS<n>:LIN:TRIGger:PATTern:DATA:LENGth" on page 747

746

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:LIN:TRIGger:PATTern:DATA:LENGth

(see page 1164)

Command Syntax :SBUS<n>:LIN:TRIGger:PATTern:DATA:LENGth <length>

Query Syntax Return Format

<length> ::= integer from 1 to 8 in NR1 format
The :SBUS<n>:LIN:TRIGger:PATTern:DATA:LENGth command sets the number of 8-bit bytes in the LIN data string. The number of bytes in the string can be anywhere from 1 bytes to 8 bytes (64 bits). The value for these bytes is set by the :SBUS<n>:LIN:TRIGger:PATTern:DATA command.
:SBUS<n>:LIN:TRIGger:PATTern:DATA:LENGth?
The :SBUS<n>:LIN:TRIGger:PATTern:DATA:LENGth? query returns the current LIN data pattern length setting.
<count><NL>

Errors See Also

<count> ::= integer from 1 to 8 in NR1 format
· "-241, Hardware missing" on page 1125 · "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:LIN:TRIGger:PATTern:DATA" on page 745 · ":SBUS<n>:LIN:SOURce" on page 740

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

747

27 :SBUS<n> Commands

:SBUS<n>:LIN:TRIGger:PATTern:FORMat

(see page 1164)

Command Syntax :SBUS<n>:LIN:TRIGger:PATTern:FORMat <base>

Query Syntax Return Format

<base> ::= {BINary | HEX | DECimal}
The :SBUS<n>:LIN:TRIGger:PATTern:FORMat command sets the entry (and query) number base used by the :SBUS<n>:LIN:TRIGger:PATTern:DATA command. The default <base> is BINary.
:SBUS<n>:LIN:TRIGger:PATTern:FORMat?
The :SBUS<n>:LIN:TRIGger:PATTern:FORMat? query returns the currently set number base for LIN pattern data.
<base><NL>

See Also

<base> ::= {BIN | HEX | DEC}
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:LIN:TRIGger:PATTern:DATA" on page 745 · ":SBUS<n>:LIN:TRIGger:PATTern:DATA:LENGth" on page 747

748

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:M1553 Commands

NOTE

These commands are valid when the DSOX3AERO MIL-STD-1553 and ARINC 429 triggering and serial decode option (Option AERO) has been licensed.

Table 106 :SBUS<n>:M1553 Commands Summary

Command

Query

Options and Query Returns

:SBUS<n>:M1553:AUTose n/a

n/a

tup (see page 750)

:SBUS<n>:M1553:BASE :SBUS<n>:M1553:BASE? <base> ::= {BINary | HEX} <base> (see page 751) (see page 751)

:SBUS<n>:M1553:SOURce :SBUS<n>:M1553:SOURce <source> ::= {CHANnel<n>}

<source> (see page 752)

? (see page 752)

<n> ::= 1 to (# analog channels) in NR1 format

:SBUS<n>:M1553:TRIGge
r:PATTern:DATA
<string> (see page 753)

:SBUS<n>:M1553:TRIGge
r:PATTern:DATA? (see page 753)

<string> ::= "nn...n" where n ::= {0 | 1 | X}

:SBUS<n>:M1553:TRIGge
r:RTA <value> (see page 754)

:SBUS<n>:M1553:TRIGge r:RTA? (see page 754)

<value> ::= 5-bit integer in decimal, <nondecimal>, or <string> from 0-31
<nondecimal> ::= #Hnn where n ::= {0,..,9|A,..,F}
<string> ::= "0xnn" where n::= {0,..,9|A,..,F}

:SBUS<n>:M1553:TRIGge :SBUS<n>:M1553:TRIGge <type> ::= {DSTArt | DSTOp |

r:TYPE <type> (see

r:TYPE? (see page 755) CSTArt | CSTOp | RTA | PERRor |

page 755)

SERRor | MERRor | RTA11}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

749

27 :SBUS<n> Commands

:SBUS<n>:M1553:AUTosetup

Command Syntax See Also

(see page 1164)
:SBUS<n>:M1553:TRIGger:AUTosetup
The :SBUS<n>:M1553:AUTosetup command automatically sets these options for decoding and triggering on MIL-STD-1553 signals: · High/Low Trigger Thresholds: to a voltage value equal to ±1/3 division based
on the source channel's current V/div setting. · Noise Reject: Off. · Probe Attenuation: 10.0. · Serial Decode: On. · Trigger: the specified serial bus (n of SBUS<n>).
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:M1553:SOURce" on page 752

750

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:M1553:BASE

(see page 1164)

Command Syntax :SBUS<n>:M1553:BASE <base>

<base> ::= {BINary | HEX}
The :SBUS<n>:M1553:BASE command determines the base to use for the MIL-STD-1553 decode display.

Query Syntax Return Format

:SBUS<n>:M1553:BASE?
The :SBUS<n>:M1553:BASE? query returns the current MIL-STD-1553 display decode base.
<base><NL>

Errors See Also

<base> ::= {BIN | HEX}
· "-241, Hardware missing" on page 1125 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:M1553 Commands" on page 749

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

751

27 :SBUS<n> Commands

:SBUS<n>:M1553:SOURce

(see page 1164)

Command Syntax :SBUS<n>:M1553:SOURce <source>

<source> ::= {CHANnel<n>}

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :SBUS<n>:M1553:SOURce command sets the source of the MIL-STD 1553 signal. Use the :TRIGger:LEVel:HIGH and :TRIGger:LEVel:LOW commands to set the thresold levels for the selected source.
:SBUS<n>:M1553:TRIGger:SOURce?
The :SBUS<n>:M1553:SOURce? query returns the currently set source of the MIL-STD 1553 signal.
<source><NL>

<source> ::= {CHAN<n>}

See Also

<n> ::= 1 to (# analog channels) in NR1 format
· ":TRIGger:LEVel:HIGH" on page 910 · ":TRIGger:LEVel:LOW" on page 911 · ":TRIGger:MODE" on page 912 · "Introduction to :TRIGger Commands" on page 903

752

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:M1553:TRIGger:PATTern:DATA

(see page 1164)

Command Syntax :SBUS<n>:M1553:TRIGger:PATTern:DATA <string>

Query Syntax Return Format

<string> ::= "nn...n" where n ::= {0 | 1 | X}
The :SBUS<n>:M1553:TRIGger:PATTern:DATA command sets the 11 bits to trigger on if the trigger type has been set to RTA11 (RTA + 11 Bits) using the :SBUS<n>:M1553:TRIGger:TYPE command.
:SBUS<n>:M1553:TRIGger:PATTern:DATA?
The :SBUS<n>:M1553:TRIGger:PATTern:DATA? query returns the current 11-bit setting.
<string><NL>

See Also

<string> ::= "nn...n" where n ::= {0 | 1 | X}
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:M1553:TRIGger:TYPE" on page 755 · ":SBUS<n>:M1553:TRIGger:RTA" on page 754

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

753

27 :SBUS<n> Commands

:SBUS<n>:M1553:TRIGger:RTA

(see page 1164)

Command Syntax :SBUS<n>:M1553:TRIGger:RTA <value>

<value> ::= 5-bit integer in decimal, <nondecimal>, or <string> from 0-31

<nondecimal> ::= #Hnn where n ::= {0,..,9|A,..,F}

Query Syntax
Return Format See Also

<string> ::= "0xnn" where n::= {0,..,9|A,..,F}
The :SBUS<n>:M1553:TRIGger:RTA command sets the Remote Terminal Address (RTA) to trigger on when the trigger type has been set to RTA or RTA11 (using the :SBUS<n>:M1553:TRIGger:TYPE command). To set the RTA value to don't cares (0xXX), set the value to -1.
:SBUS<n>:M1553:TRIGger:RTA?
The :SBUS<n>:M1553:TRIGger:RTA? query returns the RTA value.
<value><NL> in decimal format
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:M1553:TRIGger:TYPE" on page 755

754

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:M1553:TRIGger:TYPE

(see page 1164)

Command Syntax :SBUS<n>:M1553:TRIGger:TYPE <type>

Query Syntax Return Format

<type> ::= {DSTArt | DSTOp | CSTArt | CSTOp | RTA | PERRor | SERRor | MERRor | RTA11}
The :SBUS<n>:M1553:TRIGger:TYPE command specifies the type of MIL-STD-1553 trigger to be used: · DSTArt -- (Data Word Start) triggers on the start of a Data word (at the end of a
valid Data Sync pulse). · DSTOp -- (Data Word Stop) triggers on the end of a Data word. · CSTArt -- (Command/Status Word Start) triggers on the start of
Comamnd/Status word (at the end of a valid C/S Sync pulse). · CSTOp -- (Command/Status Word Stop) triggers on the end of a
Command/Status word. · RTA -- (Remote Terminal Address) triggers if the RTA of the Command/Status
word matches the specified value. The value is specified in hex. · RTA11 -- (RTA + 11 Bits) triggers if the RTA and the remaining 11 bits match the
specified criteria. The RTA can be specifed as a hex value, and the remaining 11 bits can be specifed as a 1, 0, or X (don't care). · PERRor -- (Parity Error) triggers if the (odd) parity bit is incorrect for the data in the word. · MERRor -- (Manchester Error) triggers if a Manchester encoding error is detected. · SERRor -- (Sync Error) triggers if an invalid Sync pulse is found.
:SBUS<n>:M1553:TRIGger:TYPE?
The :SBUS<n>:M1553:TRIGger:TYPE? query returns the currently set MIL-STD-1553 trigger type.
<type><NL>

See Also

<type> ::= {DSTA | DSTO | CSTA | CSTO | RTA | PERR | SERR | MERR | RTA11}
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:M1553:TRIGger:RTA" on page 754 · ":SBUS<n>:M1553:TRIGger:PATTern:DATA" on page 753 · ":TRIGger:MODE" on page 912

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

755

27 :SBUS<n> Commands

:SBUS<n>:SPI Commands

NOTE

These commands are only valid when the low-speed IIC and SPI serial decode option (Option LSS) has been licensed.

Table 107 :SBUS<n>:SPI Commands Summary

Command

Query

Options and Query Returns

:SBUS<n>:SPI:BITorder :SBUS<n>:SPI:BITorder <order> ::= {LSBFirst | MSBFirst} <order> (see page 758) ? (see page 758)

:SBUS<n>:SPI:CLOCk:SL :SBUS<n>:SPI:CLOCk:SL <slope> ::= {NEGative | POSitive}

OPe <slope> (see

OPe? (see page 759)

page 759)

:SBUS<n>:SPI:CLOCk:TI :SBUS<n>:SPI:CLOCk:TI <time_value> ::= time in seconds

Meout <time_value>

Meout? (see page 760) in NR3 format

(see page 760)

:SBUS<n>:SPI:FRAMing :SBUS<n>:SPI:FRAMing? <value> ::= {CHIPselect |

<value> (see page 761) (see page 761)

{NCHipselect | NOTC} | TIMeout}

:SBUS<n>:SPI:SOURce:C
LOCk <source> (see page 762)

:SBUS<n>:SPI:SOURce:C LOCk? (see page 762)

<value> ::= {CHANnel<n> | EXTernal} for the DSO models
<value> ::= {CHANnel<n> | DIGital<d>} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:SPI:SOURce:F
RAMe <source> (see page 763)

:SBUS<n>:SPI:SOURce:F RAMe? (see page 763)

<value> ::= {CHANnel<n> | EXTernal} for the DSO models
<value> ::= {CHANnel<n> | DIGital<d>} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

756

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

Table 107 :SBUS<n>:SPI Commands Summary (continued)

Command

Query

Options and Query Returns

:SBUS<n>:SPI:SOURce:M
ISO <source> (see page 764)

:SBUS<n>:SPI:SOURce:M ISO? (see page 764)

<value> ::= {CHANnel<n> | EXTernal} for the DSO models
<value> ::= {CHANnel<n> | DIGital<d>} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:SPI:SOURce:M
OSI <source> (see page 765)

:SBUS<n>:SPI:SOURce:M OSI? (see page 765)

<value> ::= {CHANnel<n> | EXTernal} for the DSO models
<value> ::= {CHANnel<n> | DIGital<d>} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:SPI:TRIGger:
PATTern:MISO:DATA
<string> (see page 766)

:SBUS<n>:SPI:TRIGger:
PATTern:MISO:DATA? (see page 766)

<string> ::= "nn...n" where n ::= {0 | 1 | X | $}
<string ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $}

:SBUS<n>:SPI:TRIGger: :SBUS<n>:SPI:TRIGger: <width> ::= integer from 4 to 64

PATTern:MISO:WIDTh

PATTern:MISO:WIDTh?

<width> (see page 767) (see page 767)

in NR1 format

:SBUS<n>:SPI:TRIGger:
PATTern:MOSI:DATA
<string> (see page 768)

:SBUS<n>:SPI:TRIGger:
PATTern:MOSI:DATA? (see page 768)

<string> ::= "nn...n" where n ::= {0 | 1 | X | $}
<string ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $}

:SBUS<n>:SPI:TRIGger: :SBUS<n>:SPI:TRIGger: <width> ::= integer from 4 to 64

PATTern:MOSI:WIDTh

PATTern:MOSI:WIDTh?

<width> (see page 769) (see page 769)

in NR1 format

:SBUS<n>:SPI:TRIGger: :SBUS<n>:SPI:TRIGger: <value> ::= {MOSI | MISO}

TYPE <value> (see

TYPE? (see page 770)

page 770)

:SBUS<n>:SPI:WIDTh
<word_width> (see page 771)

:SBUS<n>:SPI:WIDTh? (see page 771)

<word_width> ::= integer 4-16 in NR1 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

757

27 :SBUS<n> Commands

:SBUS<n>:SPI:BITorder

(see page 1164)

Command Syntax :SBUS<n>:SPI:BITorder <order>

Query Syntax Return Format

<order> ::= {LSBFirst | MSBFirst}
The :SBUS<n>:SPI:BITorder command selects the bit order, most significant bit first (MSB) or least significant bit first (LSB), used when displaying data in the serial decode waveform and in the Lister.
:SBUS<n>:SPI:BITorder?
The :SBUS<n>:SPI:BITorder? query returns the current SPI decode bit order.
<order><NL>

Errors See Also

<order> ::= {LSBF | MSBF}
· "-241, Hardware missing" on page 1125 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:SPI Commands" on page 756

758

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:SPI:CLOCk:SLOPe

(see page 1164)

Command Syntax :SBUS<n>:SPI:CLOCk:SLOPe <slope>

<slope> ::= {NEGative | POSitive}
The :SBUS<n>:SPI:CLOCk:SLOPe command specifies the rising edge (POSitive) or falling edge (NEGative) of the SPI clock source that will clock in the data.

Query Syntax Return Format

:SBUS<n>:SPI:CLOCk:SLOPe?
The :SBUS<n>:SPI:CLOCk:SLOPe? query returns the current SPI clock source slope.
<slope><NL>

See Also

<slope> ::= {NEG | POS}
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:SPI:CLOCk:TIMeout" on page 760 · ":SBUS<n>:SPI:SOURce:CLOCk" on page 762

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

759

27 :SBUS<n> Commands

:SBUS<n>:SPI:CLOCk:TIMeout

(see page 1164)

Command Syntax :SBUS<n>:SPI:CLOCk:TIMeout <time_value>

Query Syntax Return Format

<time_value> ::= time in seconds in NR3 format
The :SBUS<n>:SPI:CLOCk:TIMeout command sets the SPI signal clock timeout resource in seconds from 100 ns to 10 s when the :SBUS<n>:SPI:FRAMing command is set to TIMeout. The timer is used to frame a signal by a clock timeout.
:SBUS<n>:SPI:CLOCk:TIMeout?
The :SBUS<n>:SPI:CLOCk:TIMeout? query returns current SPI clock timeout setting.
<time value><NL>

See Also

<time_value> ::= time in seconds in NR3 format
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:SPI:CLOCk:SLOPe" on page 759 · ":SBUS<n>:SPI:SOURce:CLOCk" on page 762 · ":SBUS<n>:SPI:FRAMing" on page 761

760

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:SPI:FRAMing

(see page 1164) Command Syntax :SBUS<n>:SPI:FRAMing <value>
<value> ::= {CHIPselect | {NCHipselect | NOTC} | TIMeout}
The :SBUS<n>:SPI:FRAMing command sets the SPI trigger framing value. If TIMeout is selected, the timeout value is set by the :SBUS<n>:SPI:CLOCk:TIMeout command.

NOTE

The NOTC value is deprecated. It is the same as NCHipselect.

Query Syntax Return Format

:SBUS<n>:SPI:FRAMing?
The :SBUS<n>:SPI:FRAMing? query returns the current SPI framing value.
<value><NL>

See Also

<value> ::= {CHIP | NCH | TIM}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:SPI:CLOCk:TIMeout" on page 760 · ":SBUS<n>:SPI:SOURce:FRAMe" on page 763

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

761

27 :SBUS<n> Commands

:SBUS<n>:SPI:SOURce:CLOCk

(see page 1164)

Command Syntax :SBUS<n>:SPI:SOURce:CLOCk <source>

<source> ::= {CHANnel<n> | EXTernal} for the DSO models

<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax
Return Format See Also

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :SBUS<n>:SPI:SOURce:CLOCk command sets the source for the SPI serial clock.
:SBUS<n>:SPI:SOURce:CLOCk?
The :SBUS<n>:SPI:SOURce:CLOCk? query returns the current source for the SPI serial clock.
<source><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:SPI:CLOCk:SLOPe" on page 759 · ":SBUS<n>:SPI:CLOCk:TIMeout" on page 760 · ":SBUS<n>:SPI:SOURce:FRAMe" on page 763 · ":SBUS<n>:SPI:SOURce:MOSI" on page 765 · ":SBUS<n>:SPI:SOURce:MISO" on page 764 · ":SBUS<n>:SPI:SOURce:DATA" on page 1119

762

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:SPI:SOURce:FRAMe

(see page 1164)

Command Syntax :SBUS<n>:SPI:SOURce:FRAMe <source>

<source> ::= {CHANnel<n> | EXTernal} for the DSO models

<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax
Return Format See Also

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :SBUS<n>:SPI:SOURce:FRAMe command sets the frame source when :SBUS<n>:SPI:FRAMing is set to CHIPselect or NOTChipselect.
:SBUS<n>:SPI:SOURce:FRAMe?
The :SBUS<n>:SPI:SOURce:FRAMe? query returns the current frame source for the SPI serial frame.
<source><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:SPI:SOURce:CLOCk" on page 762 · ":SBUS<n>:SPI:SOURce:MOSI" on page 765 · ":SBUS<n>:SPI:SOURce:MISO" on page 764 · ":SBUS<n>:SPI:SOURce:DATA" on page 1119 · ":SBUS<n>:SPI:FRAMing" on page 761

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

763

27 :SBUS<n> Commands

:SBUS<n>:SPI:SOURce:MISO

(see page 1164)

Command Syntax :SBUS<n>:SPI:SOURce:MISO <source>

<source> ::= {CHANnel<n> | EXTernal} for the DSO models

<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax
Return Format See Also

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :SBUS<n>:SPI:SOURce:MISO command sets the source for the SPI serial MISO data.
:SBUS<n>:SPI:SOURce:MISO?
The :SBUS<n>:SPI:SOURce:MISO? query returns the current source for the SPI serial MISO data.
<source><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:SPI:SOURce:MOSI" on page 765 · ":SBUS<n>:SPI:SOURce:DATA" on page 1119 · ":SBUS<n>:SPI:SOURce:CLOCk" on page 762 · ":SBUS<n>:SPI:SOURce:FRAMe" on page 763 · ":SBUS<n>:SPI:TRIGger:PATTern:MISO:DATA" on page 766 · ":SBUS<n>:SPI:TRIGger:PATTern:MOSI:DATA" on page 768 · ":SBUS<n>:SPI:TRIGger:PATTern:MISO:WIDTh" on page 767 · ":SBUS<n>:SPI:TRIGger:PATTern:MOSI:WIDTh" on page 769

764

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:SPI:SOURce:MOSI

(see page 1164)

Command Syntax :SBUS<n>:SPI:SOURce:MOSI <source>

<source> ::= {CHANnel<n> | EXTernal} for the DSO models

<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax
Return Format See Also

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :SBUS<n>:SPI:SOURce:MOSI command sets the source for the SPI serial MOSI data. You can also use the equivalent :SBUS<n>:SPI:SOURce:DATA command to set the MOSI data source.
:SBUS<n>:SPI:SOURce:MOSI?
The :SBUS<n>:SPI:SOURce:MOSI? query returns the current source for the SPI serial MOSI data.
<source><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:SPI:SOURce:DATA" on page 1119 · ":SBUS<n>:SPI:SOURce:MISO" on page 764 · ":SBUS<n>:SPI:SOURce:CLOCk" on page 762 · ":SBUS<n>:SPI:SOURce:FRAMe" on page 763 · ":SBUS<n>:SPI:TRIGger:PATTern:MISO:DATA" on page 766 · ":SBUS<n>:SPI:TRIGger:PATTern:MOSI:DATA" on page 768 · ":SBUS<n>:SPI:TRIGger:PATTern:MISO:WIDTh" on page 767 · ":SBUS<n>:SPI:TRIGger:PATTern:MOSI:WIDTh" on page 769

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

765

27 :SBUS<n> Commands

:SBUS<n>:SPI:TRIGger:PATTern:MISO:DATA

(see page 1164) Command Syntax :SBUS<n>:SPI:TRIGger:PATTern:MISO:DATA <string>
<string> ::= "nn...n" where n ::= {0 | 1 | X | $}
<string ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $}
The :SBUS<n>:SPI:TRIGger:PATTern:MISO:DATA command defines the SPI data pattern resource according to the string parameter. This pattern, along with the data width, control the data pattern searched for in the data stream. If the string parameter starts with "0x", it is a hexadecimal string made up of hexadecimal and X (don't care) characters; otherwise, it is a binary string made up of 0, 1, and X (don't care) characters.

NOTE

The :SBUS<n>:SPI:TRIGger:PATTern:MISO:WIDTh should be set before :SBUS<n>:SPI:TRIGger:PATTern:MISO:DATA.

Query Syntax
Return Format See Also

:SBUS<n>:SPI:TRIGger:PATTern:MISO:DATA?
The :SBUS<n>:SPI:TRIGger:PATTern:MISO:DATA? query returns the current settings of the specified SPI data pattern resource in the binary string format.
<string><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:SPI:TRIGger:PATTern:MISO:WIDTh" on page 767 · ":SBUS<n>:SPI:SOURce:MISO" on page 764

766

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:SPI:TRIGger:PATTern:MISO:WIDTh

(see page 1164) Command Syntax :SBUS<n>:SPI:TRIGger:PATTern:MISO:WIDTh <width>
<width> ::= integer from 4 to 64 in NR1 format
The :SBUS<n>:SPI:TRIGger:PATTern:MISO:WIDTh command sets the width of the SPI data pattern anywhere from 4 bits to 64 bits.

NOTE

The :SBUS<n>:SPI:TRIGger:PATTern:MISO:WIDTh should be set before :SBUS<n>:SPI:TRIGger:PATTern:MISO:DATA.

Query Syntax Return Format

:SBUS<n>:SPI:TRIGger:PATTern:MISO:WIDTh?
The :SBUS<n>:SPI:TRIGger:PATTern:MISO:WIDTh? query returns the current SPI data pattern width setting.
<width><NL>

See Also

<width> ::= integer from 4 to 64 in NR1 format
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:SPI:TRIGger:PATTern:MISO:DATA" on page 766 · ":SBUS<n>:SPI:SOURce:MISO" on page 764

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

767

27 :SBUS<n> Commands

:SBUS<n>:SPI:TRIGger:PATTern:MOSI:DATA

(see page 1164) Command Syntax :SBUS<n>:SPI:TRIGger:PATTern:MOSI:DATA <string>
<string> ::= "nn...n" where n ::= {0 | 1 | X | $}
<string ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $}
The :SBUS<n>:SPI:TRIGger:PATTern:MOSI:DATA command defines the SPI data pattern resource according to the string parameter. This pattern, along with the data width, control the data pattern searched for in the data stream. If the string parameter starts with "0x", it is a hexadecimal string made up of hexadecimal and X (don't care) characters; otherwise, it is a binary string made up of 0, 1, and X (don't care) characters.

NOTE

The :SBUS<n>:SPI:TRIGger:PATTern:MOSI:WIDTh should be set before :SBUS<n>:SPI:TRIGger:PATTern:MOSI:DATA.

Query Syntax
Return Format See Also

:SBUS<n>:SPI:TRIGger:PATTern:MOSI:DATA?
The :SBUS<n>:SPI:TRIGger:PATTern:MOSI:DATA? query returns the current settings of the specified SPI data pattern resource in the binary string format.
<string><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:SPI:TRIGger:PATTern:MOSI:WIDTh" on page 769 · ":SBUS<n>:SPI:SOURce:MOSI" on page 765

768

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:SPI:TRIGger:PATTern:MOSI:WIDTh

(see page 1164) Command Syntax :SBUS<n>:SPI:TRIGger:PATTern:MOSI:WIDTh <width>
<width> ::= integer from 4 to 64 in NR1 format
The :SBUS<n>:SPI:TRIGger:PATTern:MOSI:WIDTh command sets the width of the SPI data pattern anywhere from 4 bits to 64 bits.

NOTE

The :SBUS<n>:SPI:TRIGger:PATTern:MOSI:WIDTh should be set before :SBUS<n>:SPI:TRIGger:PATTern:MOSI:DATA.

Query Syntax Return Format

:SBUS<n>:SPI:TRIGger:PATTern:MOSI:WIDTh?
The :SBUS<n>:SPI:TRIGger:PATTern:MOSI:WIDTh? query returns the current SPI data pattern width setting.
<width><NL>

See Also

<width> ::= integer from 4 to 64 in NR1 format
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:SPI:TRIGger:PATTern:MOSI:DATA" on page 768 · ":SBUS<n>:SPI:SOURce:MOSI" on page 765

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

769

27 :SBUS<n> Commands

:SBUS<n>:SPI:TRIGger:TYPE

(see page 1164)

Command Syntax :SBUS<n>:SPI:TRIGger:TYPE <value>

<value> ::= {MOSI | MISO}
The :SBUS<n>:SPI:TRIGger:TYPE command specifies whether the SPI trigger will be on the MOSI data or the MISO data.

Query Syntax Return Format

When triggering on MOSI data, the data value is specified by the :SBUS<n>:SPI:TRIGger:PATTern:MOSI:DATA and :SBUS<n>:SPI:TRIGger:PATTern:MOSI:WIDTh commands. When triggering on MISO data, the data value is specified by the :SBUS<n>:SPI:TRIGger:PATTern:MISO:DATA and :SBUS<n>:SPI:TRIGger:PATTern:MISO:WIDTh commands.
:SBUS<n>:SPI:TRIGger:TYPE?
The :SBUS<n>:SPI:TRIGger:TYPE? query returns the current SPI trigger type setting.
<value><NL>

See Also

<value> ::= {MOSI | MISO}
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:SPI:SOURce:MOSI" on page 765 · ":SBUS<n>:SPI:SOURce:MISO" on page 764 · ":SBUS<n>:SPI:TRIGger:PATTern:MISO:DATA" on page 766 · ":SBUS<n>:SPI:TRIGger:PATTern:MOSI:DATA" on page 768 · ":SBUS<n>:SPI:TRIGger:PATTern:MISO:WIDTh" on page 767 · ":SBUS<n>:SPI:TRIGger:PATTern:MOSI:WIDTh" on page 769 · ":TRIGger:MODE" on page 912

770

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:SPI:WIDTh

(see page 1164)

Command Syntax :SBUS<n>:SPI:WIDTh <word_width>

<word_width> ::= integer 4-16 in NR1 format
The :SBUS<n>:SPI:WIDTh command determines the number of bits in a word of data for SPI.

Query Syntax Return Format

:SBUS<n>:SPI:WIDTh?
The :SBUS<n>:SPI:WIDTh? query returns the current SPI decode word width.
<word_width><NL>

<word_width> ::= integer 4-16 in NR1 format
Errors · "-241, Hardware missing" on page 1125

See Also

· "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:SPI Commands" on page 756

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

771

27 :SBUS<n> Commands

:SBUS<n>:UART Commands

NOTE

These commands are only valid when the UART/RS-232 triggering and serial decode option (Option 232) has been licensed.

Table 108 :SBUS<n>:UART Commands Summary

Command

Query

Options and Query Returns

:SBUS<n>:UART:BASE

:SBUS<n>:UART:BASE?

<base> (see page 775) (see page 775)

<base> ::= {ASCii | BINary | HEX}

:SBUS<n>:UART:BAUDrat :SBUS<n>:UART:BAUDrat <baudrate> ::= integer from 100

e <baudrate> (see

e? (see page 776)

to 8000000

page 776)

:SBUS<n>:UART:BITorde :SBUS<n>:UART:BITorde <bitorder> ::= {LSBFirst |

r <bitorder> (see

r? (see page 777)

MSBFirst}

page 777)

n/a

:SBUS<n>:UART:COUNt:E <frame_count> ::= integer in NR1

RRor? (see page 778)

format

:SBUS<n>:UART:COUNt:R n/a

n/a

ESet (see page 779)

n/a

:SBUS<n>:UART:COUNt:R <frame_count> ::= integer in NR1

XFRames? (see page 780)

format

n/a

:SBUS<n>:UART:COUNt:T <frame_count> ::= integer in NR1

XFRames? (see page 781)

format

:SBUS<n>:UART:FRAMing <value> (see page 782)

:SBUS<n>:UART:FRAMing ? (see page 782)

<value> ::= {OFF | <decimal> | <nondecimal>}
<decimal> ::= 8-bit integer from 0-255 (0x00-0xff)
<nondecimal> ::= #Hnn where n ::= {0,..,9 | A,..,F} for hexadecimal
<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary

:SBUS<n>:UART:PARity
<parity> (see page 783)

:SBUS<n>:UART:PARity? <parity> ::= {EVEN | ODD | NONE} (see page 783)

:SBUS<n>:UART:POLarit :SBUS<n>:UART:POLarit <polarity> ::= {HIGH | LOW}

y <polarity> (see

y? (see page 784)

page 784)

772

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

Table 108 :SBUS<n>:UART Commands Summary (continued)

Command

Query

Options and Query Returns

:SBUS<n>:UART:SOURce:
RX <source> (see page 785)

:SBUS<n>:UART:SOURce: RX? (see page 785)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:UART:SOURce:
TX <source> (see page 786)

:SBUS<n>:UART:SOURce: TX? (see page 786)

<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:SBUS<n>:UART:TRIGger :SBUS<n>:UART:TRIGger <base> ::= {ASCii | HEX}

:BASE <base> (see

:BASE? (see page 787)

page 787)

:SBUS<n>:UART:TRIGger :SBUS<n>:UART:TRIGger <value> ::= {OFF | 1 to 4096 in :BURSt <value> (see :BURSt? (see page 788) NR1 format} page 788)

:SBUS<n>:UART:TRIGger
:DATA <value> (see page 789)

:SBUS<n>:UART:TRIGger :DATA? (see page 789)

<value> ::= 8-bit integer from 0-255 (0x00-0xff) in decimal, <hexadecimal>, <binary>, or <quoted_string> format
<hexadecimal> ::= #Hnn where n ::= {0,..,9 | A,..,F} for hexadecimal
<binary> ::= #Bnn...n where n ::= {0 | 1} for binary
<quoted_string> ::= any of the 128 valid 7-bit ASCII characters (or standard abbreviations)

:SBUS<n>:UART:TRIGger :SBUS<n>:UART:TRIGger <time_value> ::= time from 1 us

:IDLE <time_value>

:IDLE? (see page 790) to 10 s in NR3 format

(see page 790)

:SBUS<n>:UART:TRIGger :SBUS<n>:UART:TRIGger <value> ::= {EQUal | NOTequal |

:QUALifier <value> (see page 791)

:QUALifier? (see page 791)

GREaterthan | LESSthan}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

773

27 :SBUS<n> Commands

Table 108 :SBUS<n>:UART Commands Summary (continued)

Command

Query

Options and Query Returns

:SBUS<n>:UART:TRIGger
:TYPE <value> (see page 792)

:SBUS<n>:UART:TRIGger :TYPE? (see page 792)

<value> ::= {RSTArt | RSTOp | RDATa | RD1 | RD0 | RDX | PARityerror | TSTArt | TSTOp | TDATa | TD1 | TD0 | TDX}

:SBUS<n>:UART:WIDTh :SBUS<n>:UART:WIDTh? <width> ::= {5 | 6 | 7 | 8 | 9} <width> (see page 793) (see page 793)

774

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:UART:BASE

(see page 1164)

Command Syntax :SBUS<n>:UART:BASE <base>

<base> ::= {ASCii | BINary | HEX}
The :SBUS<n>:UART:BASE command determines the base to use for the UART decode and Lister display.

Query Syntax Return Format

:SBUS<n>:UART:BASE?
The :SBUS<n>:UART:BASE? query returns the current UART decode and Lister base setting.
<base><NL>

Errors See Also

<base> ::= {ASCii | BINary | HEX}
· "-241, Hardware missing" on page 1125 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:UART Commands" on page 772

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

775

27 :SBUS<n> Commands

:SBUS<n>:UART:BAUDrate

(see page 1164)

Command Syntax :SBUS<n>:UART:BAUDrate <baudrate>

Query Syntax Return Format

<baudrate> ::= integer from 100 to 8000000
The :SBUS<n>:UART:BAUDrate command selects the bit rate (in bps) for the serial decoder and/or trigger when in UART mode. The baud rate can be set from 100 b/s to 8 Mb/s. If the baud rate you select does not match the system baud rate, false triggers may occur.
:SBUS<n>:UART:BAUDrate?
The :SBUS<n>:UART:BAUDrate? query returns the current UART baud rate setting.
<baudrate><NL>

See Also

<baudrate> ::= integer from 100 to 8000000
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:UART:TRIGger:TYPE" on page 792

776

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:UART:BITorder

(see page 1164)

Command Syntax :SBUS<n>:UART:BITorder <bitorder>

Query Syntax Return Format

<bitorder> ::= {LSBFirst | MSBFirst}
The :SBUS<n>:UART:BITorder command specifies the order of transmission used by the physical Tx and Rx input signals for the serial decoder and/or trigger when in UART mode. LSBFirst sets the least significant bit of each message "byte" as transmitted first. MSBFirst sets the most significant bit as transmitted first.
:SBUS<n>:UART:BITorder?
The :SBUS<n>:UART:BITorder? query returns the current UART bit order setting.
<bitorder><NL>

See Also

<bitorder> ::= {LSBF | MSBF}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:UART:TRIGger:TYPE" on page 792 · ":SBUS<n>:UART:SOURce:RX" on page 785 · ":SBUS<n>:UART:SOURce:TX" on page 786

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

777

27 :SBUS<n> Commands

:SBUS<n>:UART:COUNt:ERRor

(see page 1164)

Query Syntax Return Format

:SBUS<n>:UART:COUNt:ERRor?
Returns the UART error frame count.
<frame_count><NL>

Errors See Also

<frame_count> ::= integer in NR1 format
· "-241, Hardware missing" on page 1125
· ":SBUS<n>:UART:COUNt:RESet" on page 779 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:UART Commands" on page 772

778

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:UART:COUNt:RESet

Command Syntax
Errors See Also

(see page 1164)
:SBUS<n>:UART:COUNt:RESet
Resets the UART frame counters. · "-241, Hardware missing" on page 1125 · ":SBUS<n>:UART:COUNt:ERRor" on page 778 · ":SBUS<n>:UART:COUNt:RXFRames" on page 780 · ":SBUS<n>:UART:COUNt:TXFRames" on page 781 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:UART Commands" on page 772

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

779

27 :SBUS<n> Commands

:SBUS<n>:UART:COUNt:RXFRames

(see page 1164)

Query Syntax Return Format

:SBUS<n>:UART:COUNt:RXFRames?
Returns the UART Rx frame count.
<frame_count><NL>

Errors See Also

<frame_count> ::= integer in NR1 format
· "-241, Hardware missing" on page 1125
· ":SBUS<n>:UART:COUNt:RESet" on page 779 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:UART Commands" on page 772

780

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:UART:COUNt:TXFRames

(see page 1164)

Query Syntax Return Format

:SBUS<n>:UART:COUNt:TXFRames?
Returns the UART Tx frame count.
<frame_count><NL>

Errors See Also

<frame_count> ::= integer in NR1 format
· "-241, Hardware missing" on page 1125
· ":SBUS<n>:UART:COUNt:RESet" on page 779 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SBUS<n>:UART Commands" on page 772

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

781

27 :SBUS<n> Commands

:SBUS<n>:UART:FRAMing

(see page 1164)

Command Syntax :SBUS<n>:UART:FRAMing <value>

<value> ::= {OFF | <decimal> | <nondecimal>}

<decimal> ::= 8-bit integer in decimal from 0-255 (0x00-0xff)

<nondecimal> ::= #Hnn where n ::= {0,..,9 | A,..,F} for hexadecimal

Query Syntax Return Format

<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary
The :SBUS<n>:UART:FRAMing command determines the byte value to use for framing (end of packet) or to turn off framing for UART decode.
:SBUS<n>:UART:FRAMing?
The :SBUS<n>:UART:FRAMing? query returns the current UART decode base setting.
<value><NL>

<value> ::= {OFF | <decimal>}

Errors See Also

<decimal> ::= 8-bit integer in decimal from 0-255
· "-241, Hardware missing" on page 1125 · "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:UART Commands" on page 772

782

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:UART:PARity

(see page 1164)

Command Syntax :SBUS<n>:UART:PARity <parity>

<parity> ::= {EVEN | ODD | NONE}
The :SBUS<n>:UART:PARity command selects the parity to be used with each message "byte" for the serial decoder and/or trigger when in UART mode.

Query Syntax Return Format

:SBUS<n>:UART:PARity?
The :SBUS<n>:UART:PARity? query returns the current UART parity setting.
<parity><NL>

See Also

<parity> ::= {EVEN | ODD | NONE}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:UART:TRIGger:TYPE" on page 792

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

783

27 :SBUS<n> Commands

:SBUS<n>:UART:POLarity

(see page 1164)

Command Syntax :SBUS<n>:UART:POLarity <polarity>

<polarity> ::= {HIGH | LOW}
The :SBUS<n>:UART:POLarity command selects the polarity as idle low or idle high for the serial decoder and/or trigger when in UART mode.

Query Syntax Return Format

:SBUS<n>:UART:POLarity?
The :SBUS<n>:UART:POLarity? query returns the current UART polarity setting.
<polarity><NL>

See Also

<polarity> ::= {HIGH | LOW}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:UART:TRIGger:TYPE" on page 792

784

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:UART:SOURce:RX

(see page 1164)

Command Syntax :SBUS<n>:UART:SOURce:RX <source>

<source> ::= {CHANnel<n> | EXTernal} for the DSO models

<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax
Return Format See Also

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :SBUS<n>:UART:SOURce:RX command controls which signal is used as the Rx source by the serial decoder and/or trigger when in UART mode.
:SBUS<n>:UART:SOURce:RX?
The :SBUS<n>:UART:SOURce:RX? query returns the current source for the UART Rx signal.
<source><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:UART:TRIGger:TYPE" on page 792 · ":SBUS<n>:UART:BITorder" on page 777

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

785

27 :SBUS<n> Commands

:SBUS<n>:UART:SOURce:TX

(see page 1164)

Command Syntax :SBUS<n>:UART:SOURce:TX <source>

<source> ::= {CHANnel<n> | EXTernal} for the DSO models

<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax
Return Format See Also

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :SBUS<n>:UART:SOURce:TX command controls which signal is used as the Tx source by the serial decoder and/or trigger when in UART mode.
:SBUS<n>:UART:SOURce:TX?
The :SBUS<n>:UART:SOURce:TX? query returns the current source for the UART Tx signal.
<source><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:UART:TRIGger:TYPE" on page 792 · ":SBUS<n>:UART:BITorder" on page 777

786

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:UART:TRIGger:BASE

(see page 1164) Command Syntax :SBUS<n>:UART:TRIGger:BASE <base>
<base> ::= {ASCii | HEX}
The :SBUS<n>:UART:TRIGger:BASE command sets the front panel UART/RS232 trigger setup data selection option: · ASCii -- front panel data selection is from ASCII values. · HEX -- front panel data selection is from hexadecimal values. The :SBUS<n>:UART:TRIGger:BASE setting does not affect the :SBUS<n>:UART:TRIGger:DATA command which can always set data values using ASCII or hexadecimal values.

NOTE

The :SBUS<n>:UART:TRIGger:BASE command is independent of the :SBUS<n>:UART:BASE command which affects decode and Lister only.

Query Syntax Return Format

:SBUS<n>:UART:TRIGger:BASE?
The :SBUS<n>:UART:TRIGger:BASE? query returns the current UART base setting.
<base><NL>

See Also

<base> ::= {ASC | HEX}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:UART:TRIGger:DATA" on page 789

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

787

27 :SBUS<n> Commands

:SBUS<n>:UART:TRIGger:BURSt

(see page 1164)

Command Syntax :SBUS<n>:UART:TRIGger:BURSt <value>

Query Syntax Return Format

<value> ::= {OFF | 1 to 4096 in NR1 format}
The :SBUS<n>:UART:TRIGger:BURSt command selects the burst value (Nth frame after idle period) in the range 1 to 4096 or OFF, for the trigger when in UART mode.
:SBUS<n>:UART:TRIGger:BURSt?
The :SBUS<n>:UART:TRIGger:BURSt? query returns the current UART trigger burst value.
<value><NL>

See Also

<value> ::= {OFF | 1 to 4096 in NR1 format}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:UART:TRIGger:IDLE" on page 790 · ":SBUS<n>:UART:TRIGger:TYPE" on page 792

788

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:UART:TRIGger:DATA

(see page 1164)

Command Syntax :SBUS<n>:UART:TRIGger:DATA <value>

<value> ::= 8-bit integer from 0-255 (0x00-0xff) in decimal, <hexadecimal>, <binary>, or <quoted_string> format

<hexadecimal> ::= #Hnn where n ::= {0,..,9 | A,..,F} for hexadecimal

<binary> ::= #Bnn...n where n ::= {0 | 1} for binary

Query Syntax

<quoted_string> ::= any of the 128 valid 7-bit ASCII characters (or standard abbreviations)
The :SBUS<n>:UART:TRIGger:DATA command selects the data byte value (0x00 to 0xFF) for the trigger QUALifier when in UART mode. The data value is used when one of the RD or TD trigger types is selected. When entering an ASCII character via the quoted string, it must be one of the 128 valid characters (case-sensitive): "NUL", "SOH", "STX", "ETX", "EOT", "ENQ", "ACK", "BEL", "BS", "HT", "LF", "VT", "FF", "CR", "SO","SI", "DLE", "DC1", "DC2", "DC3", "DC4", "NAK", "SYN", "ETB", "CAN", "EM", "SUB", "ESC", "FS","GS", "RS", "US", "SP", "!", "\"", "#", "$", "%","&", "\'", "(", ")", "*", "+", ",", "-", ".", "/","0", "1", "2", "3", "4", "5", "6", "7", "8", "9",":", ";", "<", "=", ">", "?", "@", "A", "B", "C","D", "E", "F", "G", "H", "I", "J", "K", "L", "M","N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z","[", "\\", "]", "^", "_", "`", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "{", "|", "}", "~", or "DEL".
:SBUS<n>:UART:TRIGger:DATA?
The :SBUS<n>:UART:TRIGger:DATA? query returns the current UART trigger data value.

Return Format <value><NL>

See Also

<value> ::= 8-bit integer in decimal from 0-255
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:UART:TRIGger:BASE" on page 787 · ":SBUS<n>:UART:TRIGger:TYPE" on page 792

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

789

27 :SBUS<n> Commands

:SBUS<n>:UART:TRIGger:IDLE

(see page 1164)

Command Syntax :SBUS<n>:UART:TRIGger:IDLE <time_value>

<time_value> ::= time from 1 us to 10 s in NR3 format
The :SBUS<n>:UART:TRIGger:IDLE command selects the value of the idle period for burst trigger in the range from 1 us to 10 s when in UART mode.

Query Syntax Return Format

:SBUS<n>:UART:TRIGger:IDLE?
The :SBUS<n>:UART:TRIGger:IDLE? query returns the current UART trigger idle period time.
<time_value><NL>

See Also

<time_value> ::= time from 1 us to 10 s in NR3 format
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:UART:TRIGger:BURSt" on page 788 · ":SBUS<n>:UART:TRIGger:TYPE" on page 792

790

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:UART:TRIGger:QUALifier

(see page 1164)

Command Syntax :SBUS<n>:UART:TRIGger:QUALifier <value>

Query Syntax Return Format

<value> ::= {EQUal | NOTequal | GREaterthan | LESSthan}
The :SBUS<n>:UART:TRIGger:QUALifier command selects the data qualifier when :TYPE is set to RDATa, RD1, RD0, RDX, TDATa, TD1, TD0, or TDX for the trigger when in UART mode.
:SBUS<n>:UART:TRIGger:QUALifier?
The :SBUS<n>:UART:TRIGger:QUALifier? query returns the current UART trigger qualifier.
<value><NL>

See Also

<value> ::= {EQU | NOT | GRE | LESS}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:UART:TRIGger:TYPE" on page 792

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

791

27 :SBUS<n> Commands

:SBUS<n>:UART:TRIGger:TYPE

(see page 1164)

Command Syntax :SBUS<n>:UART:TRIGger:TYPE <value>

<value> ::= {RSTArt | RSTOp | RDATa | RD1 | RD0 | RDX | PARityerror | TSTArt | TSTOp | TDATa | TD1 | TD0 | TDX}
The :SBUS<n>:UART:TRIGger:TYPE command selects the UART trigger type. When one of the RD or TD types is selected, the :SBUS<n>:UART:TRIGger:DATA and :SBUS<n>:UART:TRIGger:QUALifier commands are used to specify the data value and comparison operator.

Query Syntax Return Format

The RD1, RD0, RDX, TD1, TD0, and TDX types (for triggering on data and alert bit values) are only valid when a 9-bit width has been selected.
:SBUS<n>:UART:TRIGger:TYPE?
The :SBUS<n>:UART:TRIGger:TYPE? query returns the current UART trigger data value.
<value><NL>

See Also

<value> ::= {RSTA | RSTO | RDAT | RD1 | RD0 | RDX | PAR | TSTA | TSTO | TDAT | TD1 | TD0 | TDX}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:UART:TRIGger:DATA" on page 789 · ":SBUS<n>:UART:TRIGger:QUALifier" on page 791 · ":SBUS<n>:UART:WIDTh" on page 793

792

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SBUS<n> Commands 27

:SBUS<n>:UART:WIDTh

(see page 1164)

Command Syntax :SBUS<n>:UART:WIDTh <width>

<width> ::= {5 | 6 | 7 | 8 | 9}
The :SBUS<n>:UART:WIDTh command determines the number of bits (5-9) for each message "byte" for the serial decoder and/or trigger when in UART mode.

Query Syntax Return Format

:SBUS<n>:UART:WIDTh?
The :SBUS<n>:UART:WIDTh? query returns the current UART width setting.
<width><NL>

See Also

<width> ::= {5 | 6 | 7 | 8 | 9}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:UART:TRIGger:TYPE" on page 792

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

793

27 :SBUS<n> Commands

794

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
28 :SEARch Commands
Control the event search modes and parameters for each search type. See: · "General :SEARch Commands" on page 796 · ":SEARch:EDGE Commands" on page 800 · ":SEARch:GLITch Commands" on page 803 (Pulse Width search) · ":SEARch:RUNT Commands" on page 810 · ":SEARch:TRANsition Commands" on page 815 · ":SEARch:SERial:A429 Commands" on page 820 · ":SEARch:SERial:CAN Commands" on page 826 · ":SEARch:SERial:FLEXray Commands" on page 832 · ":SEARch:SERial:I2S Commands" on page 838 · ":SEARch:SERial:IIC Commands" on page 844 · ":SEARch:SERial:LIN Commands" on page 851 · ":SEARch:SERial:M1553 Commands" on page 857 · ":SEARch:SERial:SPI Commands" on page 861 · ":SEARch:SERial:UART Commands" on page 865
795

28 :SEARch Commands

General :SEARch Commands

Table 109 General :SEARch Commands Summary

Command

Query

n/a

:SEARch:COUNt? (see

page 797)

:SEARch:MODE <value> :SEARch:MODE? (see

(see page 798)

page 798)

:SEARch:STATe <value> :SEARch:STATe? (see

(see page 799)

page 799)

Options and Query Returns
<count> ::= an integer count value
<value> ::= {EDGE | GLITch | RUNT | TRANsition | SERial{1 | 2}}
<value> ::= {{0 | OFF} | {1 | ON}}

796

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:COUNt

(see page 1164)

Query Syntax Return Format

:SEARch:COUNt?
The :SEARch:COUNt? query returns the number of search events found.
<count><NL>

<count> ::= an integer count value
See Also · Chapter 28, ":SEARch Commands," starting on page 795

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

797

28 :SEARch Commands

:SEARch:MODE

(see page 1164)

Command Syntax :SEARch:MODE <value>

<value> ::= {EDGE | GLITch | RUNT | TRANsition | SERial{1 | 2}}
The :SEARch:MODE command selects the search mode.

Query Syntax Return Format

The command is only valid when the :SEARch:STATe is ON.
:SEARch:MODE?
The :SEARch:MODE? query returns the currently selected mode or OFF if the :SEARch:STATe is OFF.
<value><NL>

See Also

<value> ::= {EDGE | GLIT | RUNT | TRAN | SER{1 | 2} | OFF}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:STATe" on page 799

798

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:STATe

(see page 1164)

Command Syntax :SEARch:STATe <value>

<value> ::= {{0 | OFF} | {1 | ON}}
The :SEARch:STATe command enables or disables the search feature.

Query Syntax Return Format

:SEARch:STATe?
The :SEARch:STATe? query returns returns the current setting.
<value><NL>

See Also

<value> ::= {0 | 1}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:MODE" on page 798

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

799

28 :SEARch Commands

:SEARch:EDGE Commands

Table 110 :SEARch:EDGE Commands Summary

Command

Query

:SEARch:EDGE:SLOPe

:SEARch:EDGE:SLOPe?

<slope> (see page 801) (see page 801)

:SEARch:EDGE:SOURce
<source> (see page 802)

:SEARch:EDGE:SOURce? (see page 802)

Options and Query Returns
<slope> ::= {POSitive | NEGative | EITHer}
<source> ::= CHANnel<n> <n> ::= 1 to (# analog channels) in NR1 format

800

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:EDGE:SLOPe

(see page 1164)

Command Syntax :SEARch:EDGE:SLOPe <slope>

<slope> ::= {NEGative | POSitive | EITHer}
The :SEARch:EDGE:SLOPe command specifies the slope of the edge for the search.

Query Syntax Return Format

:SEARch:EDGE:SLOPe?
The :SEARch:EDGE:SLOPe? query returns the current slope setting.
<slope><NL>

<slope> ::= {NEG | POS | EITH}
See Also · Chapter 28, ":SEARch Commands," starting on page 795

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

801

28 :SEARch Commands

:SEARch:EDGE:SOURce

(see page 1164)

Command Syntax :SEARch:EDGE:SOURce <source>

<source> ::= CHANnel<n>

Query Syntax

<n> ::= 1 to (# analog channels) in NR1 format
The :SEARch:EDGE:SOURce command selects the channel on which to search for edges.
:SEARch:EDGE:SOURce?
The :SEARch:EDGE:SOURce? query returns the current source.

Return Format <source><NL>

<source> ::= CHAN<n>
See Also · Chapter 28, ":SEARch Commands," starting on page 795

802

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:GLITch Commands

Table 111 :SEARch:GLITch Commands Summary

Command

Query

Options and Query Returns

:SEARch:GLITch:GREate
rthan
<greater_than_time>[s uffix] (see page 804)

:SEARch:GLITch:GREate rthan? (see page 804)

<greater_than_time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

:SEARch:GLITch:LESSth
an
<less_than_time>[suff ix] (see page 805)

:SEARch:GLITch:LESSth an? (see page 805)

<less_than_time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

:SEARch:GLITch:POLari :SEARch:GLITch:POLari <polarity> ::= {POSitive |

ty <polarity> (see

ty? (see page 806)

NEGative}

page 806)

:SEARch:GLITch:QUALif :SEARch:GLITch:QUALif <qualifier> ::= {GREaterthan |

ier <qualifier> (see ier? (see page 807)

LESSthan | RANGe}

page 807)

:SEARch:GLITch:RANGe
<less_than_time>[suff
ix],
<greater_than_time>[s uffix] (see page 808)

:SEARch:GLITch:RANGe? (see page 808)

<less_than_time> ::= 15 ns to 10 seconds in NR3 format
<greater_than_time> ::= 10 ns to 9.99 seconds in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

:SEARch:GLITch:SOURce :SEARch:GLITch:SOURce <source> ::= CHANnel<n>

<source> (see page 809)

? (see page 809)

<n> ::= 1 to (# analog channels) in NR1 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

803

28 :SEARch Commands

:SEARch:GLITch:GREaterthan

(see page 1164)

Command Syntax :SEARch:GLITch:GREaterthan <greater_than_time>[<suffix>]

<greater_than_time> ::= floating-point number in NR3 format

Query Syntax Return Format

<suffix> ::= {s | ms | us | ns | ps}
The :SEARch:GLITch:GREaterthan command sets the minimum pulse width duration for the selected :SEARch:GLITch:SOURce.
:SEARch:GLITch:GREaterthan?
The :SEARch:GLITch:GREaterthan? query returns the minimum pulse width duration time for :SEARch:GLITch:SOURce.
<greater_than_time><NL>

See Also

<greater_than_time> ::= floating-point number in NR3 format.
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:GLITch:SOURce" on page 809 · ":SEARch:GLITch:QUALifier" on page 807 · ":SEARch:MODE" on page 798

804

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:GLITch:LESSthan

(see page 1164)

Command Syntax :SEARch:GLITch:LESSthan <less_than_time>[<suffix>]

<less_than_time> ::= floating-point number in NR3 format

Query Syntax Return Format

<suffix> ::= {s | ms | us | ns | ps}
The :SEARch:GLITch:LESSthan command sets the maximum pulse width duration for the selected :SEARch:GLITch:SOURce.
:SEARch:GLITch:LESSthan?
The :SEARch:GLITch:LESSthan? query returns the pulse width duration time for :SEARch:GLITch:SOURce.
<less_than_time><NL>

See Also

<less_than_time> ::= floating-point number in NR3 format.
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:GLITch:SOURce" on page 809 · ":SEARch:GLITch:QUALifier" on page 807 · ":SEARch:MODE" on page 798

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

805

28 :SEARch Commands

:SEARch:GLITch:POLarity

(see page 1164)

Command Syntax :SEARch:GLITch:POLarity <polarity>

<polarity> ::= {POSitive | NEGative}
The :SEARch:GLITch:POLarity command sets the polarity for the glitch (pulse width) search.

Query Syntax Return Format

:SEARch:GLITch:POLarity?
The :SEARch:GLITch:POLarity? query returns the current polarity setting for the glitch (pulse width) search.
<polarity><NL>

See Also

<polarity> ::= {POS | NEG}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:MODE" on page 798 · ":SEARch:GLITch:SOURce" on page 809

806

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:GLITch:QUALifier

(see page 1164)

Command Syntax :SEARch:GLITch:QUALifier <operator>

Query Syntax Return Format

<operator> ::= {GREaterthan | LESSthan | RANGe}
This command sets the mode of operation of the glitch (pulse width) search. The oscilloscope can search for a pulse width that is greater than a time value, less than a time value, or within a range of time values.
:SEARch:GLITch:QUALifier?
The :SEARch:GLITch:QUALifier? query returns the glitch (pulse width) qualifier.
<operator><NL>

See Also

<operator> ::= {GRE | LESS | RANG}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:GLITch:SOURce" on page 809 · ":SEARch:MODE" on page 798

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

807

28 :SEARch Commands

:SEARch:GLITch:RANGe

(see page 1164)

Command Syntax :SEARch:GLITch:RANGe <less_than_time>[suffix],
<greater_than_time>[suffix]

<less_than_time> ::= (15 ns - 10 seconds) in NR3 format

<greater_than_time> ::= (10 ns - 9.99 seconds) in NR3 format

Query Syntax
Return Format See Also

[suffix] ::= {s | ms | us | ns | ps}
The :SEARch:GLITch:RANGe command sets the pulse width duration for the selected :SEARch:GLITch:SOURce. You can enter the parameters in any order -- the smaller value becomes the <greater_than_time> and the larger value becomes the <less_than_time>.
:SEARch:GLITch:RANGe?
The :SEARch:GLITch:RANGe? query returns the pulse width duration time for :SEARch:GLITch:SOURce.
<less_than_time>,<greater_than_time><NL>
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:GLITch:SOURce" on page 809 · ":SEARch:GLITch:QUALifier" on page 807 · ":SEARch:MODE" on page 798

808

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:GLITch:SOURce

(see page 1164)

Command Syntax :SEARch:GLITch:SOURce <source>

<source> ::= CHANnel<n>

Query Syntax

<n> ::= 1 to (# analog channels) in NR1 format
The :SEARch:GLITch:SOURce command selects the channel on which to search for glitches (pulse widths).
:SEARch:GLITch:SOURce?
The :SEARch:GLITch:SOURce? query returns the current pulse width source.

Return Format See Also

If all channels are off, the query returns "NONE."
<source><NL>
· Chapter 28, ":SEARch Commands," starting on page 795 · Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:MODE" on page 798 · ":SEARch:GLITch:POLarity" on page 806 · ":SEARch:GLITch:QUALifier" on page 807 · ":SEARch:GLITch:RANGe" on page 808

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

809

28 :SEARch Commands

:SEARch:RUNT Commands

Table 112 :SEARch:RUNT Commands Summary

Command

Query

Options and Query Returns

:SEARch:RUNT:POLarity :SEARch:RUNT:POLarity <polarity> ::= {POSitive |

<polarity> (see

? (see page 811)

NEGative | EITHer}

page 811)

:SEARch:RUNT:QUALifie :SEARch:RUNT:QUALifie <qualifier> ::= {GREaterthan |

r <qualifier> (see

r? (see page 812)

LESSthan | NONE}

page 812)

:SEARch:RUNT:SOURce
<source> (see page 813)

:SEARch:RUNT:SOURce? (see page 813)

<source> ::= CHANnel<n>
<n> ::= 1 to (# analog channels) in NR1 format

:SEARch:RUNT:TIME
<time>[suffix] (see page 814)

:SEARch:RUNT:TIME? (see page 814)

<time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

810

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:RUNT:POLarity

(see page 1164)

Command Syntax :SEARch:RUNT:POLarity <slope>

<polarity> ::= {POSitive | NEGative | EITHer}
The :SEARch:RUNT:POLarity command sets the polarity for the runt search.

Query Syntax Return Format

:SEARch:RUNT:POLarity?
The :SEARch:RUNT:POLarity? query returns the currently set runt polarity.
<slope><NL>

See Also

<polarity> ::= {POS | NEG | EITH}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:MODE" on page 798 · ":SEARch:RUNT:SOURce" on page 813

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

811

28 :SEARch Commands

:SEARch:RUNT:QUALifier

(see page 1164)

Command Syntax :SEARch:RUNT:QUALifier <qualifier>

<qualifier> ::= {GREaterthan | LESSthan | NONE}
The :SEARch:RUNT:QUALifier command specifies whether to search for a runt that is greater than a time value, less than a time value, or any time value.

Query Syntax Return Format

:SEARch:RUNT:QUALifier?
The :SEARch:RUNT:QUALifier? query returns the current runt search qualifier.
<qualifier><NL>

See Also

<qualifier> ::= {GRE | LESS NONE}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:MODE" on page 798

812

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:RUNT:SOURce

(see page 1164)

Command Syntax :SEARch:RUNT:SOURce <source>

<source> ::= CHANnel<n>

Query Syntax

<n> ::= 1 to (# analog channels) in NR1 format
The :SEARch:RUNT:SOURce command selects the channel on which to search for the runt pulse.
:SEARch:RUNT:SOURce?
The :SEARch:RUNT:SOURce? query returns the current runt search source.

Return Format <source><NL>

See Also

<source> ::= CHAN<n>
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:RUNT:POLarity" on page 811

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

813

28 :SEARch Commands

:SEARch:RUNT:TIME

(see page 1164)

Command Syntax :SEARch:RUNT:TIME <time>[suffix]

<time> ::= floating-point number in NR3 format

[suffix] ::= {s | ms | us | ns | ps}
When searching for runt pulses whose widths are greater than or less than a time (see :SEARch:RUNT:QUALifier), the :SEARch:RUNT:TIME command specifies the time value.

Query Syntax Return Format

:SEARch:RUNT:TIME?
The :SEARch:RUNT:TIME? query returns the currently specified runt time value.
<time><NL>

See Also

<time> ::= floating-point number in NR3 format
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:RUNT:QUALifier" on page 812

814

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:TRANsition Commands

Table 113 :SEARch:TRANsition Commands Summary

Command

Query

Options and Query Returns

:SEARch:TRANsition:QU :SEARch:TRANsition:QU <qualifier> ::= {GREaterthan |

ALifier <qualifier> (see page 816)

ALifier? (see page 816)

LESSthan}

:SEARch:TRANsition:SL :SEARch:TRANsition:SL <slope> ::= {NEGative | POSitive}

OPe <slope> (see

OPe? (see page 817)

page 817)

:SEARch:TRANsition:SO :SEARch:TRANsition:SO <source> ::= CHANnel<n>

URce <source> (see page 818)

URce? (see page 818)

<n> ::= 1 to (# analog channels) in NR1 format

:SEARch:TRANsition:TI
ME <time>[suffix] (see page 819)

:SEARch:TRANsition:TI ME? (see page 819)

<time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

815

28 :SEARch Commands

:SEARch:TRANsition:QUALifier

(see page 1164)

Command Syntax :SEARch:TRANsition:QUALifier <qualifier>

<qualifier> ::= {GREaterthan | LESSthan}
The :SEARch:TRANsition:QUALifier command specifies whether to search for edge transitions greater than or less than a time.

Query Syntax Return Format

:SEARch:TRANsition:QUALifier?
The :SEARch:TRANsition:QUALifier? query returns the current transition search qualifier.
<qualifier><NL>

See Also

<qualifier> ::= {GRE | LESS}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:MODE" on page 798 · ":SEARch:TRANsition:TIME" on page 819

816

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:TRANsition:SLOPe

(see page 1164)

Command Syntax :SEARch:TRANsition:SLOPe <slope>

<slope> ::= {NEGative | POSitive}
The :SEARch:TRANsition:SLOPe command selects whether to search for rising edge (POSitive slope) transitions or falling edge (NEGative slope) transitions.

Query Syntax Return Format

:SEARch:TRANsition:SLOPe?
The :SEARch:TRANsition:SLOPe? query returns the current transition search slope setting.
<slope><NL>

See Also

<slope> ::= {NEG | POS}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:MODE" on page 798 · ":SEARch:TRANsition:SOURce" on page 818 · ":SEARch:TRANsition:TIME" on page 819

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

817

28 :SEARch Commands

:SEARch:TRANsition:SOURce

(see page 1164)

Command Syntax :SEARch:TRANsition:SOURce <source>

<source> ::= CHANnel<n>

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :SEARch:TRANsition:SOURce command selects the channel on which to search for edge transitions.
:SEARch:TRANsition:SOURce?
The :SEARch:TRANsition:SOURce? query returns the current transition search source.
<source><NL>

See Also

<source> ::= CHAN<n>
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:MODE" on page 798 · ":SEARch:TRANsition:SLOPe" on page 817

818

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:TRANsition:TIME

(see page 1164)

Command Syntax :SEARch:TRANsition:TIME <time>[suffix]

<time> ::= floating-point number in NR3 format

Query Syntax

[suffix] ::= {s | ms | us | ns | ps}
The :SEARch:TRANsition:TIME command sets the time of the transition to search for. You can search for transitions greater than or less than this time.
:SEARch:TRANsition:TIME?
The :SEARch:TRANsition:TIME? query returns the current transition time value.

Return Format <time><NL>

See Also

<time> ::= floating-point number in NR3 format
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:TRANsition:QUALifier" on page 816

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

819

28 :SEARch Commands

:SEARch:SERial:A429 Commands

Table 114 :SEARch:SERial:A429 Commands Summary

Command

Query

Options and Query Returns

:SEARch:SERial:A429:L
ABel <value> (see page 821)

:SEARch:SERial:A429:L ABel? (see page 821)

<value> ::= 8-bit integer in decimal, <hex>, <octal>, or <string> from 0-255
<hex> ::= #Hnn where n ::= {0,..,9 | A,..,F}
<octal> ::= #Qnnn where n ::= {0,..,7}
<string> ::= "0xnn" where n::= {0,..,9 | A,..,F}

:SEARch:SERial:A429:M :SEARch:SERial:A429:M <condition> ::= {LABel | LBITs |

ODE <condition> (see ODE? (see page 822)

PERRor | WERRor | GERRor |

page 822)

WGERrors | ALLerrors}

:SEARch:SERial:A429:P :SEARch:SERial:A429:P <string> ::= "nn...n" where n ::=

ATTern:DATA <string> ATTern:DATA? (see

(see page 823)

page 823)

{0 | 1}, length depends on FORMat

:SEARch:SERial:A429:P :SEARch:SERial:A429:P <string> ::= "nn" where n ::= {0

ATTern:SDI <string> (see page 824)

ATTern:SDI? (see page 824)

| 1}, length always 2 bits

:SEARch:SERial:A429:P :SEARch:SERial:A429:P <string> ::= "nn" where n ::= {0

ATTern:SSM <string> (see page 825)

ATTern:SSM? (see page 825)

| 1}, length always 2 bits

820

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:A429:LABel

(see page 1164)

Command Syntax :SEARch:SERial:A429:LABel <value>

<value> ::= 8-bit integer in decimal, <hex>, <octal>, or <string> from 0-255

<hex> ::= #Hnn where n ::= {0,..,9 | A,..,F}

<octal> ::= #Qnnn where n ::= {0,..,7}

<string> ::= "0xnn" where n::= {0,..,9 | A,..,F}
The :SEARch:SERial:A429:LABel command defines the ARINC 429 label value when labels are used in the selected search mode.

Query Syntax
Return Format Errors
See Also

:SEARch:SERial:A429:LABel?
The :SEARch:SERial:A429:LABel? query returns the current label value in decimal format.
<value><NL> in decimal format
· "-241, Hardware missing" on page 1125 · "Introduction to :TRIGger Commands" on page 903 · ":SEARch:SERial:A429:MODE" on page 822

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

821

28 :SEARch Commands

:SEARch:SERial:A429:MODE

(see page 1164)

Command Syntax :SEARch:SERial:A429:MODE <condition>

Query Syntax Return Format

<condition> ::= {LABel | LBITs | PERRor | WERRor | GERRor | WGERrors | ALLerrors}
The :SEARch:SERial:A429:MODE command selects the type of ARINC 429 information to find in the Lister display: · LABel -- finds the specified label value. · LBITs -- finds the label and the other word fields as specified. · PERRor -- finds words with a parity error. · WERRor -- finds an intra-word coding error. · GERRor -- finds an inter-word gap error. · WGERrors -- finds either a Word or Gap Error. · ALLerrors -- finds any of the above errors.
:SEARch:SERial:A429:MODE?
The :SEARch:SERial:A429:MODE? query returns the current ARINC 429 search mode condition.
<condition><NL>

Errors See Also

<condition> ::= {LAB | LBIT | PERR | WERR | GERR | WGER | ALL}
· "-241, Hardware missing" on page 1125
· "Introduction to :SBUS<n> Commands" on page 645 · ":SBUS<n>:MODE" on page 649 · ":SEARch:SERial:A429:LABel" on page 821 · ":SEARch:SERial:A429:PATTern:DATA" on page 823 · ":SEARch:SERial:A429:PATTern:SDI" on page 824 · ":SEARch:SERial:A429:PATTern:SSM" on page 825 · ":SBUS<n>:A429:SOURce" on page 659

822

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:A429:PATTern:DATA

(see page 1164) Command Syntax :SEARch:SERial:A429:PATTern:DATA <string>
<string> ::= "nn...n" where n ::= {0 | 1}, length depends on FORMat
The :SEARch:SERial:A429:PATTern:DATA command defines the ARINC 429 data pattern resource according to the string parameter. This pattern controls the data pattern searched for in each ARINC 429 word.

NOTE

If more bits are sent for <string> than specified by the :SBUS<n>:A429:FORMat command, the most significant bits will be truncated.

Query Syntax
Return Format Errors
See Also

:SEARch:SERial:A429:PATTern:DATA?
The :SEARch:SERial:A429:PATTern:DATA? query returns the current settings of the specified ARINC 429 data pattern resource in the binary string format.
<string><NL>
· "-241, Hardware missing" on page 1125 · "Introduction to :TRIGger Commands" on page 903 · ":SEARch:SERial:A429:MODE" on page 822 · ":SEARch:SERial:A429:PATTern:SDI" on page 824 · ":SEARch:SERial:A429:PATTern:SSM" on page 825

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

823

28 :SEARch Commands

:SEARch:SERial:A429:PATTern:SDI

(see page 1164)

Command Syntax :SEARch:SERial:A429:PATTern:SDI <string>

Query Syntax
Return Format Errors
See Also

<string> ::= "nn" where n ::= {0 | 1}, length always 2 bits
The :SEARch:SERial:A429:PATTern:SDI command defines the ARINC 429 two-bit SDI pattern resource according to the string parameter. This pattern controls the SDI pattern searched for in each ARINC 429 word. The specified SDI is only used if the :SBUS<n>:A429:FORMat includes the SDI field.
:SEARch:SERial:A429:PATTern:SDI?
The :SEARch:SERial:A429:PATTern:SDI? query returns the current settings of the specified ARINC 429 two-bit SDI pattern resource in the binary string format.
<string><NL>
· "-241, Hardware missing" on page 1125 · "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:A429:FORMat" on page 657 · ":SEARch:SERial:A429:MODE" on page 822 · ":SEARch:SERial:A429:PATTern:DATA" on page 823 · ":SEARch:SERial:A429:PATTern:SSM" on page 825

824

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:A429:PATTern:SSM

(see page 1164)

Command Syntax :SEARch:SERial:A429:PATTern:SSM <string>

Query Syntax
Return Format Errors
See Also

<string> ::= "nn" where n ::= {0 | 1}, length always 2 bits
The :SEARch:SERial:A429:PATTern:SSM command defines the ARINC 429 two-bit SSM pattern resource according to the string parameter. This pattern controls the SSM pattern searched for in each ARINC 429 word. The specified SSM is only used if the :SBUS<n>:A429:FORMat includes the SSM field.
:SEARch:SERial:A429:PATTern:SSM?
The :SEARch:SERial:A429:PATTern:SSM? query returns the current settings of the specified ARINC 429 two-bit SSM pattern resource in the binary string format.
<string><NL>
· "-241, Hardware missing" on page 1125 · "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:A429:FORMat" on page 657 · ":SEARch:SERial:A429:MODE" on page 822 · ":SEARch:SERial:A429:PATTern:DATA" on page 823 · ":SEARch:SERial:A429:PATTern:SDI" on page 824

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

825

28 :SEARch Commands

:SEARch:SERial:CAN Commands

Table 115 :SEARch:SERial:CAN Commands Summary

Command

Query

Options and Query Returns

:SEARch:SERial:CAN:MO :SEARch:SERial:CAN:MO <value> ::= {DATA | IDData |

DE <value> (see

DE? (see page 827)

IDEither | IDRemote | ALLerrors |

page 827)

OVERload | ERRor}

:SEARch:SERial:CAN:PA :SEARch:SERial:CAN:PA <string> ::= "0xnn...n" where n

TTern:DATA <string> (see page 828)

TTern:DATA? (see page 828)

::= {0,..,9 | A,..,F | X} for hexadecimal

:SEARch:SERial:CAN:PA
TTern:DATA:LENGth
<length> (see page 829)

:SEARch:SERial:CAN:PA
TTern:DATA:LENGth? (see page 829)

<length> ::= integer from 1 to 8 in NR1 format

:SEARch:SERial:CAN:PA :SEARch:SERial:CAN:PA <string> ::= "0xnn...n" where n

TTern:ID <string> (see page 830)

TTern:ID? (see page 830)

::= {0,..,9 | A,..,F | X} for hexadecimal

:SEARch:SERial:CAN:PA :SEARch:SERial:CAN:PA <value> ::= {STANdard | EXTended}

TTern:ID:MODE <value> TTern:ID:MODE? (see

(see page 831)

page 831)

826

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:CAN:MODE

(see page 1164)

Command Syntax :SEARch:SERial:CAN:MODE <value>

Query Syntax Return Format

<value> ::= {DATA | IDData | IDEither | IDRemote | ALLerrors | OVERload | ERRor}
The :SEARch:SERial:CAN:MODE command selects the type of CAN information to find in the Lister display: · DATA - searches for CAN Data frames matching the specified ID, Data, and the
DLC (Data length code). · IDData - searches for CAN frames matching the specified ID of a Data frame. · IDEither - searches for the specified ID, regardless if it is a Remote frame or a
Data frame. · IDRemote - searches for CAN frames matching the specified ID of a Remote
frame. · ALLerrors - searches for CAN active error frames and unknown bus conditions. · OVERload - searches for CAN overload frames. · ERRor - searches for CAN Error frame.
:SEARch:SERial:CAN:MODE?
The :SEARch:SERial:CAN:MODE? query returns the currently selected mode.
<value><NL>

See Also

<value> ::= {DATA | IDD | IDE | IDR | ALL | OVER | ERR}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:CAN:PATTern:DATA" on page 828 · ":SEARch:SERial:CAN:PATTern:ID" on page 830

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

827

28 :SEARch Commands

:SEARch:SERial:CAN:PATTern:DATA

(see page 1164)

Command Syntax :SEARch:SERial:CAN:PATTern:DATA <string>

<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X} for hexadecimal
The :SEARch:SERial:CAN:PATTern:DATA command specifies the data value when searching for Data Frame ID and Data. The length of the data value is specified using the :SEARch:SERial:CAN:PATTern:DATA:LENGth command.

Query Syntax Return Format

:SEARch:SERial:CAN:PATTern:DATA?
The :SEARch:SERial:CAN:PATTern:DATA? query returns the current data value setting.
<string><NL>

See Also

<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X} for hexadecimal
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:CAN:MODE" on page 827 · ":SEARch:SERial:CAN:PATTern:DATA:LENGth" on page 829

828

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:CAN:PATTern:DATA:LENGth

(see page 1164)

Command Syntax :SEARch:SERial:CAN:PATTern:DATA:LENGth <length>

<length> ::= integer from 1 to 8 in NR1 format
The :SEARch:SERial:CAN:PATTern:DATA:LENGth command specifies the length of the data value when searching for Data Frame ID and Data.

Query Syntax Return Format

The data value is specified using the :SEARch:SERial:CAN:PATTern:DATA command.
:SEARch:SERial:CAN:PATTern:DATA:LENGth?
The :SEARch:SERial:CAN:PATTern:DATA:LENGth? query returns the current data length setting.
<length><NL>

See Also

<length> ::= integer from 1 to 8 in NR1 format
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:CAN:MODE" on page 827 · ":SEARch:SERial:CAN:PATTern:DATA" on page 828

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

829

28 :SEARch Commands

:SEARch:SERial:CAN:PATTern:ID

(see page 1164)

Command Syntax :SEARch:SERial:CAN:PATTern:ID <string>

<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X} for hexadecimal
The :SEARch:SERial:CAN:PATTern:ID command specifies the ID value when searching for a CAN event. The value can be a standard ID or an extended ID, depending on the :SEARch:SERial:CAN:PATTern:ID:MODE command's setting.

Query Syntax Return Format

:SEARch:SERial:CAN:PATTern:ID?
The :SEARch:SERial:CAN:PATTern:ID? query returns the current ID value setting.
<string><NL>

See Also

<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X} for hexadecimal
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:CAN:MODE" on page 827 · ":SEARch:SERial:CAN:PATTern:ID:MODE" on page 831

830

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:CAN:PATTern:ID:MODE

(see page 1164)

Command Syntax :SEARch:SERial:CAN:PATTern:ID:MODE <value>

<value> ::= {STANdard | EXTended}
The :SEARch:SERial:CAN:PATTern:ID:MODE command specifies whether a standard ID value or an extended ID value is used when searching for a CAN event.

Query Syntax Return Format

The ID value is specified using the :SEARch:SERial:CAN:PATTern:ID command.
:SEARch:SERial:CAN:PATTern:ID:MODE?
The :SEARch:SERial:CAN:PATTern:ID:MODE? query returns the current setting.
<value><NL>

See Also

<value> ::= {STAN | EXT}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:CAN:MODE" on page 827 · ":SEARch:SERial:CAN:PATTern:ID" on page 830

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

831

28 :SEARch Commands

:SEARch:SERial:FLEXray Commands

Table 116 :SEARch:SERial:FLEXray Commands Summary

Command

Query

Options and Query Returns

:SEARch:SERial:FLEXra :SEARch:SERial:FLEXra <cycle> ::= {ALL | <cycle #>}

y:CYCLe <cycle> (see y:CYCLe? (see

page 833)

page 833)

<cycle #> ::= integer from 0-63

:SEARch:SERial:FLEXra :SEARch:SERial:FLEXra <string> ::= "0xnn...n" where n y:DATA <string> (see y:DATA? (see page 834) ::= {0,..,9 | A,..,F | X } page 834)

:SEARch:SERial:FLEXra
y:DATA:LENGth
<length> (see page 835)

:SEARch:SERial:FLEXra
y:DATA:LENGth? (see page 835)

<length> ::= integer from 1 to 12 in NR1 format

:SEARch:SERial:FLEXra :SEARch:SERial:FLEXra <frame_id> ::= {ALL | <frame #>}

y:FRAMe <frame id> (see page 836)

y:FRAMe? (see page 836)

<frame #> ::= integer from 1-2047

:SEARch:SERial:FLEXra :SEARch:SERial:FLEXra <value> := {FRAMe | CYCLe | DATA y:MODE <value> (see y:MODE? (see page 837) | HERRor | FERRor | AERRor} page 837)

832

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:FLEXray:CYCLe

(see page 1164)

Command Syntax :SEARch:SERial:FLEXray:CYCLe <cycle>

<cycle> ::= {ALL | <cycle #>}

Query Syntax Return Format

<cycle #> ::= integer from 0-63
The :SEARch:SERial:FLEXray:CYCLe command specifies the cycle value to find when searching for FlexRay frames. A cycle value of -1 is the same as ALL.
:SEARch:SERial:FLEXray:CYCLe?
The :SEARch:SERial:FLEXray:CYCLe? query returns the current cycle value setting.
<cycle><NL>

<cycle> ::= {ALL | <cycle #>}

See Also

<cycle #> ::= integer from 0-63
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:FLEXray:MODE" on page 837

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

833

28 :SEARch Commands

:SEARch:SERial:FLEXray:DATA

(see page 1164)

Command Syntax :SEARch:SERial:FLEXray:DATA <string>

<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X }
The :SEARch:SERial:FLEXray:DATA command specifies the data value to find when searching for FlexRay frames.

Query Syntax Return Format

The length of the data value is specified by the :SEARch:SERial:FLEXray:DATA:LENGth command.
:SEARch:SERial:FLEXray:DATA?
The :SEARch:SERial:FLEXray:DATA? query returns the current data value setting.
<string><NL>

See Also

<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X }
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:FLEXray:MODE" on page 837 · ":SEARch:SERial:FLEXray:DATA:LENGth" on page 835

834

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:FLEXray:DATA:LENGth

(see page 1164)

Command Syntax :SEARch:SERial:FLEXray:DATA:LENGth <length>

<length> ::= integer from 1 to 12 in NR1 format
The :SEARch:SERial:FLEXray:DATA:LENGth command specifies the length of data values when searching for FlexRay frames.

Query Syntax Return Format

The data value is specified using the :SEARch:SERial:FLEXray:DATA command.
:SEARch:SERial:FLEXray:DATA:LENGth?
The :SEARch:SERial:FLEXray:DATA:LENGth? query returns the current data length setting.
<length><NL>

See Also

<length> ::= integer from 1 to 12 in NR1 format
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:FLEXray:MODE" on page 837 · ":SEARch:SERial:FLEXray:DATA" on page 834

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

835

28 :SEARch Commands

:SEARch:SERial:FLEXray:FRAMe

(see page 1164)

Command Syntax :SEARch:SERial:FLEXray:FRAMe <frame_id>

<frame_id> ::= {ALL | <frame #>}

Query Syntax

<frame #> ::= integer from 1-2047
The :SEARch:SERial:FLEXray:FRAMe command specifies the frame ID value to find when searching for FlexRay frames.
:SEARch:SERial:FLEXray:FRAMe?
The :SEARch:SERial:FLEXray:FRAMe? query returns the current frame ID setting.

Return Format <frame_id><NL>

<frame_id> ::= {ALL | <frame #>}

See Also

<frame #> ::= integer from 1-2047
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:FLEXray:MODE" on page 837

836

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:FLEXray:MODE

(see page 1164)

Command Syntax :SEARch:SERial:FLEXray:MODE <value>

Query Syntax Return Format

<value> := {FRAMe | CYCLe | DATA | HERRor | FERRor | AERRor}
The :SEARch:SERial:FLEXray:MODE command selects the type of FlexRay information to find in the Lister display: · FRAMe -- searches for FlexRay frames with the specified frame ID. · CYCLe -- searches for FlexRay frames with the specified cycle number and
frame ID. · DATA -- searches for FlexRay frames with the specified data, cycle number, and
frame ID. · HERRor -- searches for header CRC errors. · FERRor -- searches for frame CRC errors. · AERRor -- searches for all errors.
:SEARch:SERial:FLEXray:MODE?
The :SEARch:SERial:FLEXray:MODE? query returns the currently selected mode.
<value><NL>

See Also

<value> := {FRAM | CYCL | DATA | HERR | FERR | AERR}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:FLEXray:FRAMe" on page 836 · ":SEARch:SERial:FLEXray:CYCLe" on page 833 · ":SEARch:SERial:FLEXray:DATA" on page 834

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

837

28 :SEARch Commands

:SEARch:SERial:I2S Commands

Table 117 :SEARch:SERial:I2S Commands Summary

Command

Query

Options and Query Returns

:SEARch:SERial:I2S:AU :SEARch:SERial:I2S:AU <audio_ch> ::= {RIGHt | LEFT |

Dio <audio_ch> (see Dio? (see page 839)

EITHer}

page 839)

:SEARch:SERial:I2S:MO :SEARch:SERial:I2S:MO <value> ::= {EQUal | NOTequal |

DE <value> (see

DE? (see page 840)

LESSthan | GREaterthan | INRange

page 840)

| OUTRange}

:SEARch:SERial:I2S:PA
TTern:DATA <string> (see page 841)

:SEARch:SERial:I2S:PA
TTern:DATA? (see page 841)

<string> ::= "n" where n ::= 32-bit integer in signed decimal when <base> = DECimal
<string> ::= "nn...n" where n ::= {0 | 1 | X} when <base> = BINary
<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X} when <base> = HEX

:SEARch:SERial:I2S:PA :SEARch:SERial:I2S:PA <base> ::= {BINary | HEX |

TTern:FORMat <base> (see page 842)

TTern:FORMat? (see page 842)

DECimal}

:SEARch:SERial:I2S:RA
NGe <lower>, <upper> (see page 843)

:SEARch:SERial:I2S:RA NGe? (see page 843)

<lower> ::= 32-bit integer in signed decimal, <nondecimal>, or <string>
<upper> ::= 32-bit integer in signed decimal, <nondecimal>, or <string>
<nondecimal> ::= #Hnn...n where n ::= {0,..,9 | A,..,F} for hexadecimal
<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary
<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F} for hexadecimal

838

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:I2S:AUDio

(see page 1164)

Command Syntax :SEARch:SERial:I2S:AUDio <audio_ch>

<audio_ch> ::= {RIGHt | LEFT | EITHer}
The :SEARch:SERial:I2S:AUDio command specifies the channel on which to search for I2S events: right, left, or either channel.

Query Syntax Return Format

:SEARch:SERial:I2S:AUDio?
The :SEARch:SERial:I2S:AUDio? query returns the current channel setting.
<audio_ch><NL>

See Also

<audio_ch> ::= {RIGH | LEFT | EITH}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:I2S:MODE" on page 840

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

839

28 :SEARch Commands

:SEARch:SERial:I2S:MODE

(see page 1164)

Command Syntax :SEARch:SERial:I2S:MODE <value>

Query Syntax Return Format

<value> ::= {EQUal | NOTequal | LESSthan | GREaterthan | INRange | OUTRange}
The :SEARch:SERial:I2S:MODE command selects the type of I2S information to find in the Lister display: · EQUal-- searches for the specified audio channel's data word when it equals
the specified word. · NOTequal -- searches for any word other than the specified word. · LESSthan -- searches for channel data words less than the specified value. · GREaterthan -- searches for channel data words greater than the specified
value. · INRange -- searches for channel data words in the range. · OUTRange -- searches for channel data words outside the range. Data word values are specified using the :SEARch:SERial:I2S:PATTern:DATA command. Value ranges are specified using the :SEARch:SERial:I2S:RANGe command.
:SEARch:SERial:I2S:MODE?
The :SEARch:SERial:I2S:MODE? query returns the currently selected mode.
<value><NL>

See Also

<value> ::= {EQU | NOT | LESS | GRE | INR | OUTR}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:I2S:PATTern:DATA" on page 841 · ":SEARch:SERial:I2S:RANGe" on page 843 · ":SEARch:SERial:I2S:AUDio" on page 839

840

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:I2S:PATTern:DATA

(see page 1164)

Command Syntax :SEARch:SERial:I2S:PATTern:DATA <string>

<string> ::= "n" where n ::= 32-bit integer in signed decimal when <base> = DECimal

<string> ::= "nn...n" where n ::= {0 | 1 | X} when <base> = BINary

Query Syntax Return Format

<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X} when <base> = HEX
The :SEARch:SERial:I2S:PATTern:DATA command specifies the data word value when searching for I2S events. The base of the value entered with this command is specified using the :SEARch:SERial:I2S:PATTern:FORMat command.
:SEARch:SERial:I2S:PATTern:DATA?
The :SEARch:SERial:I2S:PATTern:DATA? query returns the current data word value setting.
<string><NL>

<string> ::= "n" where n ::= 32-bit integer in signed decimal when <base> = DECimal

<string> ::= "nn...n" where n ::= {0 | 1 | X} when <base> = BINary

See Also

<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X} when <base> = HEX
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:I2S:MODE" on page 840 · ":SEARch:SERial:I2S:PATTern:FORMat" on page 842

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

841

28 :SEARch Commands

:SEARch:SERial:I2S:PATTern:FORMat

(see page 1164)

Command Syntax :SEARch:SERial:I2S:PATTern:FORMat <base>

<base> ::= {BINary | HEX | DECimal}
The :SEARch:SERial:I2S:PATTern:FORMat command specifies the number base used with the :SEARch:SERial:I2S:PATTern:DATA command.

Query Syntax Return Format

:SEARch:SERial:I2S:PATTern:FORMat?
The :SEARch:SERial:I2S:PATTern:FORMat? query returns the current number base setting.
<base><NL>

See Also

<base> ::= {BIN | HEX | DEC}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:I2S:PATTern:DATA" on page 841

842

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:I2S:RANGe

(see page 1164)

Command Syntax :SEARch:SERial:I2S:RANGe <lower>, <upper>

<lower> ::= 32-bit integer in signed decimal, <nondecimal>, or <string>

<upper> ::= 32-bit integer in signed decimal, <nondecimal>, or <string>

<nondecimal> ::= #Hnn...n where n ::= {0,..,9 | A,..,F} for hexadecimal

<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary

Query Syntax

<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F} for hexadecimal
The :SEARch:SERial:I2S:RANGe command specifies the data value range when searching for I2S events in the INRange and OUTRange search modes (set by the :SEARch:SERial:I2S:MODE command). You can enter the parameters in any order -- the smaller value becomes the <lower> and the larger value becomes the <upper>.
:SEARch:SERial:I2S:RANGe?
The :SEARch:SERial:I2S:RANGe? query returns the current data value range setting.

Return Format <lower>, <upper><NL>

<lower> ::= 32-bit integer in signed decimal

See Also

<upper> ::= 32-bit integer in signed decimal
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:I2S:MODE" on page 840

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

843

28 :SEARch Commands

:SEARch:SERial:IIC Commands

Table 118 :SEARch:SERial:IIC Commands Summary

Command

Query

Options and Query Returns

:SEARch:SERial:IIC:MO :SEARch:SERial:IIC:MO <value> ::= { READ7 | WRITE7 |

DE <value> (see

DE? (see page 845)

NACKnowledge | ANACk | R7Data2 |

page 845)

W7Data2 | RESTart | READEprom}

:SEARch:SERial:IIC:PA :SEARch:SERial:IIC:PA <value> ::= integer or <string>

TTern:ADDRess <value> TTern:ADDRess? (see

(see page 847)

page 847)

<string> ::= "0xnn" n ::= {0,..,9 | A,..,F}

:SEARch:SERial:IIC:PA :SEARch:SERial:IIC:PA <value> ::= integer or <string>

TTern:DATA <value> (see page 848)

TTern:DATA? (see page 848)

<string> ::= "0xnn" n ::= {0,..,9 | A,..,F}

:SEARch:SERial:IIC:PA :SEARch:SERial:IIC:PA <value> ::= integer or <string>

TTern:DATA2 <value> (see page 849)

TTern:DATA2? (see page 849)

<string> ::= "0xnn" n ::= {0,..,9 | A,..,F}

:SEARch:SERial:IIC:QU :SEARch:SERial:IIC:QU <value> ::= {EQUal | NOTequal |

ALifier <value> (see ALifier? (see

page 850)

page 850)

LESSthan | GREaterthan}

844

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:IIC:MODE

(see page 1164)
Command Syntax :SEARch:SERial:IIC:MODE <value>
<value> ::= {READ7 | WRITE7 | NACKnowledge | ANACk | R7Data2 | W7Data2 | RESTart | READEprom}
The :SEARch:SERial:IIC:MODE command selects the type of IIC information to find in the Lister display: · READ7 -- searches for 7-bit address frames containing
Start:Address7:Read:Ack:Data. The value READ is also accepted for READ7. · WRITe7 -- searches for 7-bit address frames containing
Start:Address7:Write:Ack:Data. The value WRITe is also accepted for WRITe7. · NACKnowledge -- searches for missing acknowledge events. · ANACk -- searches for address with no acknowledge events. · R7Data2 -- searches for 7-bit address frames containing
Start:Address7:Read:Ack:Data:Ack:Data2. · W7Data2 -- searches for 7-bit address frames containing
Start:Address7:Write:Ack:Data:Ack:Data2. · RESTart -- searches for another start condition occurring before a stop
condition. · READEprom -- searches for EEPROM data reads.

NOTE

The short form of READ7 (READ7), READEprom (READE), and WRITe7 (WRIT7) do not follow the defined Long Form to Short Form Truncation Rules (see page 1166).

Query Syntax

When searching for events containing addresses, address values are specified using the :SEARch:SERial:IIC:PATTern:ADDRess command. When searching for events containing data, data values are specified using the :SEARch:SERial:IIC:PATTern:DATA and :SEARch:SERial:IIC:PATTern:DATA2 commands.
:SEARch:SERial:IIC:MODE?
The :SEARch:SERial:IIC:MODE? query returns the currently selected mode.

Return Format <value><NL>

See Also

<value> ::= {READ7 | WRITE7 | NACK | ANAC | R7D2 | W7D2 | REST | READE}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:IIC:PATTern:ADDRess" on page 847

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

845

28 :SEARch Commands
· ":SEARch:SERial:IIC:PATTern:DATA" on page 848 · ":SEARch:SERial:IIC:PATTern:DATA2" on page 849 · ":SEARch:SERial:IIC:QUALifier" on page 850

846

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:IIC:PATTern:ADDRess

(see page 1164)

Command Syntax :SEARch:SERial:IIC:PATTern:ADDRess <value>

<value> ::= integer or <string>

Query Syntax Return Format

<string> ::= "0xnn" n ::= {0,..,9 | A,..,F}
The :SEARch:SERial:IIC:PATTern:ADDRess command specifies address values when searching for IIC events. To set don't care values, use the integer -1.
:SEARch:SERial:IIC:PATTern:ADDRess?
The :SEARch:SERial:IIC:PATTern:ADDRess? query returns the current address value setting.
<value><NL>

See Also

<value> ::= integer
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:IIC:MODE" on page 845

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

847

28 :SEARch Commands

:SEARch:SERial:IIC:PATTern:DATA

(see page 1164)

Command Syntax :SEARch:SERial:IIC:PATTern:DATA <value>

<value> ::= integer or <string>

Query Syntax Return Format

<string> ::= "0xnn" n ::= {0,..,9 | A,..,F}
The :SEARch:SERial:IIC:PATTern:DATA command specifies data values when searching for IIC events. To set don't care values, use the integer -1. When searching for IIC EEPROM data read events, you specify the data value qualifier using the :SEARch:SERial:IIC:QUALifier command.
:SEARch:SERial:IIC:PATTern:DATA?
The :SEARch:SERial:IIC:PATTern:DATA? query returns the current data value setting.
<value><NL>

See Also

<value> ::= integer
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:IIC:MODE" on page 845 · ":SEARch:SERial:IIC:QUALifier" on page 850 · ":SEARch:SERial:IIC:PATTern:DATA2" on page 849

848

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:IIC:PATTern:DATA2

(see page 1164)

Command Syntax :SEARch:SERial:IIC:PATTern:DATA2 <value>

<value> ::= integer or <string>

Query Syntax Return Format

<string> ::= "0xnn" n ::= {0,..,9 | A,..,F}
The :SEARch:SERial:IIC:PATTern:DATA2 command specifies the second data value when searching for IIC events with two data values. To set don't care values, use the integer -1.
:SEARch:SERial:IIC:PATTern:DATA2?
The :SEARch:SERial:IIC:PATTern:DATA2? query returns the current second data value setting.
<value><NL>

See Also

<value> ::= integer
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:IIC:MODE" on page 845 · ":SEARch:SERial:IIC:PATTern:DATA" on page 848

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

849

28 :SEARch Commands

:SEARch:SERial:IIC:QUALifier

(see page 1164)

Command Syntax :SEARch:SERial:IIC:QUALifier <value>

<value> ::= {EQUal | NOTequal | LESSthan | GREaterthan}
The :SEARch:SERial:IIC:QUALifier command specifies the data value qualifier used when searching for IIC EEPROM data read events.

Query Syntax Return Format

:SEARch:SERial:IIC:QUALifier?
The :SEARch:SERial:IIC:QUALifier? query returns the current data value qualifier setting.
<value><NL>

See Also

<value> ::= {EQU | NOT | LESS | GRE}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:IIC:MODE" on page 845 · ":SEARch:SERial:IIC:PATTern:DATA" on page 848

850

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:LIN Commands

Table 119 :SEARch:SERial:LIN Commands Summary

Command

Query

Options and Query Returns

:SEARch:SERial:LIN:ID <value> (see page 852)

:SEARch:SERial:LIN:ID ? (see page 852)

<value> ::= 7-bit integer in decimal, <nondecimal>, or <string> from 0-63 or 0x00-0x3f (with Option AMS)
<nondecimal> ::= #Hnn where n ::= {0,..,9 | A,..,F} for hexadecimal
<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary
<string> ::= "0xnn" where n ::= {0,..,9 | A,..,F} for hexadecimal

:SEARch:SERial:LIN:MO :SEARch:SERial:LIN:MO <value> ::= {ID | DATA | ERRor}

DE <value> (see

DE? (see page 853)

page 853)

:SEARch:SERial:LIN:PA
TTern:DATA <string> (see page 854)

:SEARch:SERial:LIN:PA
TTern:DATA? (see page 854)

When :SEARch:SERial:LIN:PATTern:FORMa t DECimal, <string> ::= "n" where n ::= 32-bit integer in unsigned decimal, returns "$" if data has any don't cares
When :SEARch:SERial:LIN:PATTern:FORMa t HEX, <string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X }

:SEARch:SERial:LIN:PA
TTern:DATA:LENGth
<length> (see page 855)

:SEARch:SERial:LIN:PA
TTern:DATA:LENGth? (see page 855)

<length> ::= integer from 1 to 8 in NR1 format

:SEARch:SERial:LIN:PA :SEARch:SERial:LIN:PA <base> ::= {HEX | DECimal}

TTern:FORMat <base> (see page 856)

TTern:FORMat? (see page 856)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

851

28 :SEARch Commands

:SEARch:SERial:LIN:ID

(see page 1164)

Command Syntax :SEARch:SERial:LIN:ID <value>

<value> ::= 7-bit integer in decimal, <nondecimal>, or <string> from 0-63 or 0x00-0x3f (with Option AMS)

<nondecimal> ::= #Hnn where n ::= {0,..,9 | A,..,F} for hexadecimal

<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary

<string> ::= "0xnn" where n ::= {0,..,9 | A,..,F} for hexadecimal
The :SEARch:SERial:LIN:ID command specifies the frame ID value when searching for LIN events.

Query Syntax Return Format

:SEARch:SERial:LIN:ID?
The :SEARch:SERial:LIN:ID? query returns the current frame ID setting.
<value><NL>

See Also

<value> ::= 7-bit integer in decimal (with Option AMS)
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:LIN:MODE" on page 853

852

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:LIN:MODE

(see page 1164)

Command Syntax :SEARch:SERial:LIN:MODE <value>

<value> ::= {ID | DATA | ERRor}
The :SEARch:SERial:LIN:MODE command selects the type of LIN information to find in the Lister display: · ID -- searches for a frame ID. · DATA -- searches for a frame ID and data. · ERRor -- searches for errors.

Query Syntax Return Format

Frame IDs are specified using the :SEARch:SERial:LIN:ID command. Data values are specified using the:SEARch:SERial:LIN:PATTern:DATA command.
:SEARch:SERial:LIN:MODE?
The :SEARch:SERial:LIN:MODE? query returns the currently selected mode.
<value><NL>

See Also

<value> ::= {ID | DATA | ERR}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:LIN:ID" on page 852 · ":SEARch:SERial:LIN:PATTern:DATA" on page 854

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

853

28 :SEARch Commands

:SEARch:SERial:LIN:PATTern:DATA

(see page 1164)

Command Syntax :SEARch:SERial:LIN:PATTern:DATA <string>

When :SEARch:SERial:LIN:PATTern:FORMat DECimal, <string> ::= "n" where n ::= 32-bit integer in unsigned decimal

When :SEARch:SERial:LIN:PATTern:FORMat HEX, <string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X }
The :SEARch:SERial:LIN:PATTern:DATA command specifies the data value when searching for LIN events.

Query Syntax Return Format

The number base of the value entered with this command is specified using the :SEARch:SERial:LIN:PATTern:FORMat command. To set don't care values with the DATA command, the FORMat must be HEX. The length of the data value entered is specified using the :SEARch:SERial:LIN:PATTern:DATA:LENGth command.
:SEARch:SERial:LIN:PATTern:DATA?
The :SEARch:SERial:LIN:PATTern:DATA? query returns the current data value setting.
<string><NL>

When :SEARch:SERial:LIN:PATTern:FORMat DECimal, <string> ::= "n" where n ::= 32-bit integer in unsigned decimal or
"$" if data has any don't cares

See Also

When :SEARch:SERial:LIN:PATTern:FORMat HEX, <string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X }
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:LIN:MODE" on page 853 · ":SEARch:SERial:LIN:PATTern:FORMat" on page 856 · ":SEARch:SERial:LIN:PATTern:DATA:LENGth" on page 855

854

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:LIN:PATTern:DATA:LENGth

(see page 1164)

Command Syntax :SEARch:SERial:LIN:PATTern:DATA:LENGth <length>

<length> ::= integer from 1 to 8 in NR1 format
The :SEARch:SERial:LIN:PATTern:DATA:LENGth command specifies the the length of the data value when searching for LIN events.

Query Syntax Return Format

The data value is specified using the :SEARch:SERial:LIN:PATTern:DATA command.
:SEARch:SERial:LIN:PATTern:DATA:LENGth?
The :SEARch:SERial:LIN:PATTern:DATA:LENGth? query returns the current data value length setting.
<length><NL>

See Also

<length> ::= integer from 1 to 8 in NR1 format
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:LIN:PATTern:DATA" on page 854

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

855

28 :SEARch Commands

:SEARch:SERial:LIN:PATTern:FORMat

(see page 1164)

Command Syntax :SEARch:SERial:LIN:PATTern:FORMat <base>

<base> ::= {HEX | DECimal}
The :SEARch:SERial:LIN:PATTern:FORMat command specifies the number base used with the :SEARch:SERial:LIN:PATTern:DATA command.

Query Syntax Return Format

:SEARch:SERial:LIN:PATTern:FORMat?
The :SEARch:SERial:LIN:PATTern:FORMat? query returns the current number base setting.
<base><NL>

See Also

<base> ::= {HEX | DEC}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:LIN:PATTern:DATA" on page 854

856

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:M1553 Commands

Table 120 :SEARch:SERial:M1553 Commands Summary

Command

Query

Options and Query Returns

:SEARch:SERial:M1553: :SEARch:SERial:M1553: <value> ::= {DSTArt | CSTArt |

MODE <value> (see

MODE? (see page 858)

RTA | RTA11 | PERRor | SERRor |

page 858)

MERRor}

:SEARch:SERial:M1553: :SEARch:SERial:M1553: <string> ::= "nn...n" where n ::=

PATTern:DATA <string> PATTern:DATA? (see

(see page 859)

page 859)

{0 | 1}

:SEARch:SERial:M1553:
RTA <value> (see page 860)

:SEARch:SERial:M1553: RTA? (see page 860)

<value> ::= 5-bit integer in decimal, <hexadecimal>, <binary>, or <string> from 0-31
< hexadecimal > ::= #Hnn where n ::= {0,..,9|A,..,F}
<binary> ::= #Bnn...n where n ::= {0 | 1} for binary
<string> ::= "0xnn" where n::= {0,..,9|A,..,F}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

857

28 :SEARch Commands

:SEARch:SERial:M1553:MODE

(see page 1164)

Command Syntax :SEARch:SERial:M1553:MODE <value>

Query Syntax Return Format

<value> ::= {DSTArt | CSTArt | RTA | RTA11 | PERRor | SERRor | MERRor}
The :SEARch:SERial:M1553:MODE command selects the type of MIL-STD-1553 information to find in the Lister display: · DSTArt -- searches for the start of a Data word (at the end of a valid Data Sync
pulse). · CSTArt -- searches for the start of a Comamnd/Status word (at the end of a
valid C/S Sync pulse). · RTA -- searches for the Remote Terminal Address (RTA) of a Command/Status
word. · RTA11 -- searches for the Remote Terminal Address (RTA) and the additional 11
bits of a Command/Status word. · PERRor -- searches for (odd) parity errors for the data in the word. · SERRor -- searches for invalid Sync pulses. · MERRor -- searches for Manchester encoding errors. In the RTA or RTA11 modes, the Remote Terminal Address is specified using the :SEARch:SERial:M1553:RTA command. In the RTA11 mode, the additional 11 bits are specified using the :SEARch:SERial:M1553:PATTern:DATA command.
:SEARch:SERial:M1553:MODE?
The :SEARch:SERial:M1553:MODE? query returns the currently selected mode.
<value><NL>

See Also

<value> ::= {DSTA | CSTA | RTA | RTA11 | PERR | SERR | MERR}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:M1553:RTA" on page 860 · ":SEARch:SERial:M1553:PATTern:DATA" on page 859

858

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:M1553:PATTern:DATA

(see page 1164)

Command Syntax :SEARch:SERial:M1553:PATTern:DATA <string>

<string> ::= "nn...n" where n ::= {0 | 1}
The :SEARch:SERial:M1553:PATTern:DATA command specifies the additional 11 bits when searching for the MIL-STD-1553 Remote Terminal Address + 11 Bits.

Query Syntax Return Format

:SEARch:SERial:M1553:PATTern:DATA?
The :SEARch:SERial:M1553:PATTern:DATA? query returns the current value setting for the additional 11 bits.
<string><NL>

See Also

<string> ::= "nn...n" where n ::= {0 | 1}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:M1553:MODE" on page 858

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

859

28 :SEARch Commands

:SEARch:SERial:M1553:RTA

(see page 1164)

Command Syntax :SEARch:SERial:M1553:RTA <value>

<value> ::= 5-bit integer in decimal, <hexadecimal>, <binary>, or <string> from 0-31

<hexadecimal> ::= #Hnn where n ::= {0,..,9|A,..,F}

<binary> ::= #Bnn...n where n ::= {0 | 1} for binary

<string> ::= "0xnn" where n::= {0,..,9|A,..,F}
The :SEARch:SERial:M1553:RTA command specifies the Remote Terminal Address (RTA) value when searching for MIL-STD-1553 events.

Query Syntax Return Format

:SEARch:SERial:M1553:RTA?
The :SEARch:SERial:M1553:RTA? query returns the current Remote Terminal Address value setting.
<value><NL>

<value> ::= 5-bit integer in decimal from 0-31
See Also · Chapter 28, ":SEARch Commands," starting on page 795

860

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:SPI Commands

Table 121 :SEARch:SERial:SPI Commands Summary

Command

Query

Options and Query Returns

:SEARch:SERial:SPI:MO :SEARch:SERial:SPI:MO <value> ::= {MOSI | MISO}

DE <value> (see

DE? (see page 862)

page 862)

:SEARch:SERial:SPI:PA :SEARch:SERial:SPI:PA <string> ::= "0xnn...n" where n

TTern:DATA <string> (see page 863)

TTern:DATA? (see page 863)

::= {0,..,9 | A,..,F | X}

:SEARch:SERial:SPI:PA :SEARch:SERial:SPI:PA <width> ::= integer from 1 to 10

TTern:WIDTh <width> (see page 864)

TTern:WIDTh? (see page 864)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

861

28 :SEARch Commands

:SEARch:SERial:SPI:MODE

(see page 1164)

Command Syntax :SEARch:SERial:SPI:MODE <value>

<value> ::= {MOSI | MISO}
The :SEARch:SERial:SPI:MODE command specifies whether the SPI search will be on the MOSI data or the MISO data.

Query Syntax Return Format

Data values are specified using the :SEARch:SERial:SPI:PATTern:DATA command.
:SEARch:SERial:SPI:MODE?
The :SEARch:SERial:SPI:MODE? query returns the current SPI search mode setting.
<value><NL>

See Also

<value> ::= {MOSI | MISO}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:SPI:PATTern:DATA" on page 863

862

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:SPI:PATTern:DATA

(see page 1164)

Command Syntax :SEARch:SERial:SPI:PATTern:DATA <string>

<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X}
The :SEARch:SERial:SPI:PATTern:DATA command specifies the data value when searching for SPI events.

Query Syntax Return Format

The width of the data value is specified using the :SEARch:SERial:SPI:PATTern:WIDTh command.
:SEARch:SERial:SPI:PATTern:DATA?
The :SEARch:SERial:SPI:PATTern:DATA? query returns the current data value setting.
<string><NL>

See Also

<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:SPI:PATTern:WIDTh" on page 864

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

863

28 :SEARch Commands

:SEARch:SERial:SPI:PATTern:WIDTh

(see page 1164)

Command Syntax :SEARch:SERial:SPI:PATTern:WIDTh <width>

<width> ::= integer from 1 to 10
The :SEARch:SERial:SPI:PATTern:WIDTh command specifies the width of the data value (in bytes) when searching for SPI events.

Query Syntax Return Format

The data value is specified using the :SEARch:SERial:SPI:PATTern:DATA command.
:SEARch:SERial:SPI:PATTern:WIDTh?
The :SEARch:SERial:SPI:PATTern:WIDTh? query returns the current data width setting.
<width><NL>

See Also

<width> ::= integer from 1 to 10
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:SPI:PATTern:DATA" on page 863

864

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:UART Commands

Table 122 :SEARch:SERial:UART Commands Summary

Command

Query

Options and Query Returns

:SEARch:SERial:UART:D
ATA <value> (see page 866)

:SEARch:SERial:UART:D ATA? (see page 866)

<value> ::= 8-bit integer from 0-255 (0x00-0xff) in decimal, <hexadecimal>, <binary>, or <quoted_string> format
<hexadecimal> ::= #Hnn where n ::= {0,..,9| A,..,F} for hexadecimal
<binary> ::= #Bnn...n where n ::= {0 | 1} for binary
<quoted_string> ::= any of the 128 valid 7-bit ASCII characters (or standard abbreviations)

:SEARch:SERial:UART:M :SEARch:SERial:UART:M <value> ::= {RDATa | RD1 | RD0 |

ODE <value> (see

ODE? (see page 867)

RDX | TDATa | TD1 | TD0 | TDX |

page 867)

PARityerror | AERRor}

:SEARch:SERial:UART:Q :SEARch:SERial:UART:Q <value> ::= {EQUal | NOTequal |

UALifier <value> (see UALifier? (see

page 868)

page 868)

GREaterthan | LESSthan}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

865

28 :SEARch Commands

:SEARch:SERial:UART:DATA

(see page 1164)

Command Syntax :SEARch:SERial:UART:DATA <value>

<value> ::= 8-bit integer from 0-255 (0x00-0xff) in decimal, <hexadecimal>, <binary>, or <quoted_string> format

<hexadecimal> ::= #Hnn where n ::= {0,..,9| A,..,F} for hexadecimal

<binary> ::= #Bnn...n where n ::= {0 | 1} for binary

Query Syntax Return Format

<quoted_string> ::= any of the 128 valid 7-bit ASCII characters (or standard abbreviations)
The :SEARch:SERial:UART:DATA command specifies a data value when searching for UART/RS232 events. The data value qualifier is specified using the :SEARch:SERial:UART:QUALifier command.
:SEARch:SERial:UART:DATA?
The :SEARch:SERial:UART:DATA? query returns the current data value setting.
<value><NL>

See Also

<value> ::= 8-bit integer from 0-255 (0x00-0xff) in decimal format
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:UART:MODE" on page 867 · ":SEARch:SERial:UART:QUALifier" on page 868

866

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SEARch Commands 28

:SEARch:SERial:UART:MODE

(see page 1164)

Command Syntax :SEARch:SERial:UART:MODE <value>

Query Syntax Return Format

<value> ::= {RDATa | RD1 | RD0 | RDX | TDATa | TD1 | TD0 | TDX | PARityerror | AERRor}
The :SEARch:SERial:UART:MODE command selects the type of UART/RS232 information to find in the Lister display: · RDATa -- searches for a receive data value when data words are from 5 to 8 bits
long. · RD1 -- searches for a receive data value when data words are 9 bits long and
the 9th (alert) bit is 1. · RD0 -- searches for a receive data value when data words are 9 bits long and
the 9th (alert) bit is 0. · RDX -- searches for a receive data value when data words are 9 bits long and
the 9th (alert) bit is a don't care (X). · TDATa -- searches for a transmit data value when data words are from 5 to 8
bits long. · TD1 -- searches for a transmit data value when data words are 9 bits long and
the 9th (alert) bit is 1. · TD0 -- searches for a transmit data value when data words are 9 bits long and
the 9th (alert) bit is 0. · TDX -- searches for a transmit data value when data words are 9 bits long and
the 9th (alert) bit is a don't care (X). · PARityerror -- searches for parity errors. · AERRor -- searches for any error. Data values are specified using the :SEARch:SERial:UART:DATA command. Data value qualifiers are specified using the :SEARch:SERial:UART:QUALifier command.
:SEARch:SERial:UART:MODE?
The :SEARch:SERial:UART:MODE? query returns ...
<value><NL>

See Also

<value> ::= {RDAT | RD1 | RD0 | RDX | TDAT | TD1 | TD0 | TDX | PAR | AERR}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:UART:DATA" on page 866 · ":SEARch:SERial:UART:QUALifier" on page 868

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

867

28 :SEARch Commands

:SEARch:SERial:UART:QUALifier

(see page 1164)

Command Syntax :SEARch:SERial:UART:QUALifier <value>

<value> ::= {EQUal | NOTequal | GREaterthan | LESSthan}
The :SEARch:SERial:UART:QUALifier command specifies the data value qualifier when searching for UART/RS232 events.

Query Syntax Return Format

:SEARch:SERial:UART:QUALifier?
The :SEARch:SERial:UART:QUALifier? query returns the current data value qualifier setting.
<value><NL>

See Also

<value> ::= {EQU | NOT | GRE | LESS}
· Chapter 28, ":SEARch Commands," starting on page 795 · ":SEARch:SERial:UART:DATA" on page 866

868

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
29 :SYSTem Commands

Control basic system functions of the oscilloscope. See "Introduction to :SYSTem Commands" on page 870.

Table 123 :SYSTem Commands Summary

Command

Query

Options and Query Returns

:SYSTem:DATE <date> (see page 871)

:SYSTem:DATE? (see page 871)

<date> ::= <year>,<month>,<day>
<year> ::= 4-digit year in NR1 format
<month> ::= {1,..,12 | JANuary | FEBruary | MARch | APRil | MAY | JUNe | JULy | AUGust | SEPtember | OCTober | NOVember | DECember}
<day> ::= {1,..31}

n/a

:SYSTem:DIDentifier? n/a

(see page 872)

:SYSTem:DSP <string> n/a (see page 873)

<string> ::= up to 75 characters as a quoted ASCII string

n/a

:SYSTem:ERRor? (see <error> ::= an integer error code

page 874)

<error string> ::= quoted ASCII

string.

See Error Messages (see page 1123).

:SYSTem:LOCK <value> :SYSTem:LOCK? (see

(see page 875)

page 875)

<value> ::= {{1 | ON} | {0 | OFF}}

:SYSTem:MENU <menu> n/a (see page 876)
:SYSTem:PRESet (see n/a page 877)

<menu> ::= {MASK | MEASure | SEGMented | LISTer | POWer}
See :SYSTem:PRESet (see page 877)

:SYSTem:PROTection:LO :SYSTem:PROTection:LO <value> ::= {{1 | ON} | {0 |

CK <value> (see

CK? (see page 880)

OFF}}

page 880)

869

29 :SYSTem Commands

Table 123 :SYSTem Commands Summary (continued)

Command

Query

Options and Query Returns

:SYSTem:RLOGger

n/a

<setting>[,<file_name

>[,<write_mode>]] (see page 881)

<setting> ::= {{0 | OFF} | {1 | ON}}
<file_name> ::= quoted ASCII string
<write_mode> ::= {CREate | APPend}

:SYSTem:RLOGger:DESTi :SYSTem:RLOGger:DESTi <dest> ::= {FILE | SCReen | BOTH}

nation <dest> (see

nation? (see page 882)

page 882)

:SYSTem:RLOGger:DISPl :SYSTem:RLOGger:DISPl <setting> ::= {0 | 1} ay {{0 | OFF} | {1 | ay? (see page 883) ON}} (see page 883)

:SYSTem:RLOGger:FNAMe :SYSTem:RLOGger:FNAMe <file_name> ::= quoted ASCII

<file_name> (see

? (see page 884)

string

page 884)

:SYSTem:RLOGger:STATe :SYSTem:RLOGger:STATe <setting> ::= {0 | 1}

{{0 | OFF} | {1 |

? (see page 885)

ON}} (see page 885)

:SYSTem:RLOGger:TRANs
parent {{0 | OFF} |
{1 | ON}} (see page 886)

:SYSTem:RLOGger:TRANs parent? (see page 886)

<setting> ::= {0 | 1}

:SYSTem:RLOGger:WMODe :SYSTem:RLOGger:WMODe <write_mode> ::= {CREate |

<write_mode> (see

? (see page 887)

APPend}

page 887)

:SYSTem:SETup
<setup_data> (see page 888)

:SYSTem:SETup? (see page 888)

<setup_data> ::= data in IEEE 488.2 # format.

:SYSTem:TIME <time> (see page 890)

:SYSTem:TIME? (see page 890)

<time> ::= hours,minutes,seconds in NR1 format

Introduction to :SYSTem
Commands

SYSTem subsystem commands enable writing messages to the display, setting and reading both the time and the date, querying for errors, and saving and recalling setups.

870

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SYSTem Commands 29

:SYSTem:DATE

(see page 1164)

Command Syntax :SYSTem:DATE <date>

<date> ::= <year>,<month>,<day>

<year> ::= 4-digit year in NR1 format

<month> ::= {1,..,12 | JANuary | FEBruary | MARch | APRil | MAY | JUNe | JULy | AUGust | SEPtember | OCTober | NOVember | DECember}

<day> ::= {1,..,31}
The :SYSTem:DATE command sets the date. Validity checking is performed to ensure that the date is valid.

Query Syntax
Return Format See Also

:SYSTem:DATE?
The SYSTem:DATE? query returns the date.
<year>,<month>,<day><NL>
· "Introduction to :SYSTem Commands" on page 870 · ":SYSTem:TIME" on page 890

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

871

29 :SYSTem Commands

:SYSTem:DIDentifier

Query Syntax

(see page 1164)
:SYSTem:DIDentifier?
The :SYSTem:DIDentifier? query returns the oscilloscope's Host ID as (part of) a quoted string. The oscilloscope's Host ID is needed when redeeming licenses for oscilloscope upgrades or other licensed features. The exact format of returned string are product-specific. This example returns the model number, serial number, and host ID in a comma-separated format:

Return Format

"X12345A,US12345678,G1EFDNLPAF2YPLRN"
Portable programs should not attempt to parse the contents of the returned string. Use the *IDN? query instead to get the model number and/or serial number in a defined portable format.
<host_id><NL>

<host_id> ::= quoted ASCII string
See Also · "*IDN (Identification Number)" on page 176

872

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SYSTem Commands 29

:SYSTem:DSP

(see page 1164)

Command Syntax :SYSTem:DSP <string>

See Also

<string> ::= quoted ASCII string (up to 75 characters)
The :SYSTem:DSP command writes the quoted string (excluding quotation marks) to a text box in the center of the display. Use :SYStem:DSP "" to remotely remove the message from the display. (Two sets of quote marks without a space between them creates a NULL string.) Press any menu key to manually remove the message from the display. · "Introduction to :SYSTem Commands" on page 870

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

873

29 :SYSTem Commands

:SYSTem:ERRor

(see page 1164)

Query Syntax Return Format

:SYSTem:ERRor?
The :SYSTem:ERRor? query outputs the next error number and text from the error queue. The instrument has an error queue that is 30 errors deep and operates on a first-in, first-out basis. Repeatedly sending the :SYSTem:ERRor? query returns the errors in the order that they occurred until the queue is empty. Any further queries then return zero until another error occurs.
<error number>,<error string><NL>

<error number> ::= an integer error code in NR1 format

See Also

<error string> ::= quoted ASCII string containing the error message
Error messages are listed in Chapter 36, "Error Messages," starting on page 1123. · "Introduction to :SYSTem Commands" on page 870 · "*ESR (Standard Event Status Register)" on page 174 · "*CLS (Clear Status)" on page 171

874

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SYSTem Commands 29

:SYSTem:LOCK

(see page 1164)

Command Syntax :SYSTem:LOCK <value>

<value> ::= {{1 | ON} | {0 | OFF}}
The :SYSTem:LOCK command disables the front panel. LOCK ON is the equivalent of sending a local lockout message over the programming interface.

Query Syntax Return Format

:SYSTem:LOCK?
The :SYSTem:LOCK? query returns the lock status of the front panel.
<value><NL>

<value> ::= {1 | 0}
See Also · "Introduction to :SYSTem Commands" on page 870

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

875

29 :SYSTem Commands
:SYSTem:MENU
(see page 1164) Command Syntax :SYSTem:MENU <menu>
<menu> ::= {MASK | MEASure | SEGMented | LISTer | POWer}
The :SYSTem:MENU command changes the front panel softkey menu.

876

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SYSTem Commands 29

:SYSTem:PRESet

Command Syntax

(see page 1164)
:SYSTem:PRESet
The :SYSTem:PRESet command places the instrument in a known state. This is the same as pressing the [Default Setup] key or [Save/Recall] > Default/Erase > Default Setup on the front panel. When you perform a default setup, some user settings (like preferences) remain unchanged. To reset all user settings to their factory defaults, use the *RST command. Reset conditions are:

Acquire Menu Mode Averaging # Averages

Normal Off 8

Analog Channel Menu Channel 1 Channel 2 Volts/division Offset Coupling Probe attenuation Vernier Invert BW limit Impedance Units Skew

On Off 5.00 V 0.00 DC 10:1 Off Off Off 1 M Ohm (cannot be changed) Volts 0

Cursor Menu Source

Channel 1

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

877

29 :SYSTem Commands

Digital Channel Menu (MSO models only) Channel 0 - 7 Labels Threshold
Display Menu Persistence Grid
Quick Meas Menu Source
Run Control
Time Base Menu Main time/division Main time base delay Delay time/division Delay time base delay Reference Mode Vernier
Trigger Menu Type Mode Coupling Source Level Slope

Off Off TTL (1.4 V)
Off 20%
Channel 1
Scope is running
100 us 0.00 s 500 ns 0.00 s center main Off
Edge Auto dc Channel 1 0.0 V Positive

878

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SYSTem Commands 29

Trigger Menu HF Reject and noise reject Holdoff External probe attenuation External Units External Impedance

Off 40 ns 10:1 Volts 1 M Ohm (cannot be changed)

See Also · "Introduction to Common (*) Commands" on page 169 · "*RST (Reset)" on page 182

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

879

29 :SYSTem Commands

:SYSTem:PROTection:LOCK

(see page 1164)

Command Syntax :SYSTem:PROTection:LOCK <value>

<value> ::= {{1 | ON} | {0 | OFF}}
The :SYSTem:PROTection:LOCK command disables the fifty ohm impedance setting for all analog channels.

Query Syntax Return Format

:SYSTem:PROTection:LOCK?
The :SYSTem:PROTection:LOCK? query returns the analog channel protection lock status.
<value><NL>

<value> ::= {1 | 0}
See Also · "Introduction to :SYSTem Commands" on page 870

880

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SYSTem Commands 29

:SYSTem:RLOGger

(see page 1164)

Command Syntax :SYSTem:RLOGger <setting>[,<file_name>[,<write_mode>]]

<setting> ::= {{0 | OFF} | {1 | ON}}

<file_name> ::= quoted ASCII string

See Also

<write_mode> ::= {CREate | APPend}
The :SYSTem:RLOGger command enables or disables remote command logging, optionally specifying the log file name and write mode.
· ":SYSTem:RLOGger:DESTination" on page 882 · ":SYSTem:RLOGger:DISPlay" on page 883 · ":SYSTem:RLOGger:FNAMe" on page 884 · ":SYSTem:RLOGger:STATe" on page 885 · ":SYSTem:RLOGger:TRANsparent" on page 886 · ":SYSTem:RLOGger:WMODe" on page 887

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

881

29 :SYSTem Commands

:SYSTem:RLOGger:DESTination

(see page 1164) Command Syntax :SYSTem:RLOGger:DESTination <dest>
<dest> ::= {FILE | SCReen | BOTH}
The :SYSTem:RLOGger:DESTination command specifies whether remote commands are logged to a text file (on a connected USB storage device), logged to the screen, or both.

NOTE

If the destination is changed while remote command logging is running, remote command logging is turned off.

Query Syntax Return Format

:SYSTem:RLOGger:DESTination?
The :SYSTem:RLOGger:DESTination? query returns the remote command logging destination.
<dest><NL>

See Also

<dest> ::= {FILE | SCR | BOTH}
· ":SYSTem:RLOGger" on page 881 · ":SYSTem:RLOGger:DISPlay" on page 883 · ":SYSTem:RLOGger:FNAMe" on page 884 · ":SYSTem:RLOGger:STATe" on page 885 · ":SYSTem:RLOGger:TRANsparent" on page 886 · ":SYSTem:RLOGger:WMODe" on page 887

882

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SYSTem Commands 29

:SYSTem:RLOGger:DISPlay

(see page 1164)

Command Syntax Query Syntax Return Format

:SYSTem:RLOGger:DISPlay {{0 | OFF} | {1 | ON}}
The :SYSTem:RLOGger:DISPlay command enables or disables the screen display of logged remote commands and their return values (if applicable).
:SYSTem:RLOGger:DISPlay?
The :SYSTem:RLOGger:DISPlay? query returns whether the screen display for remote command logging is enabled or disabled.
<setting><NL>

See Also

<setting> ::= {0 | 1}
· ":SYSTem:RLOGger" on page 881 · ":SYSTem:RLOGger:DESTination" on page 882 · ":SYSTem:RLOGger:FNAMe" on page 884 · ":SYSTem:RLOGger:STATe" on page 885 · ":SYSTem:RLOGger:TRANsparent" on page 886 · ":SYSTem:RLOGger:WMODe" on page 887

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

883

29 :SYSTem Commands

:SYSTem:RLOGger:FNAMe

(see page 1164)

Command Syntax :SYSTem:RLOGger:FNAMe <file_name>

<file_name> ::= quoted ASCII string
The :SYSTem:RLOGger:FNAMe command specifies the remote command log file name.

Query Syntax
Return Format See Also

Because log files are ASCII text files, the ".txt" extension is automatically added to the name specified.
:SYSTem:RLOGger:FNAMe?
The :SYSTem:RLOGger:FNAMe? query returns the remote command log file name.
<file_name><NL>
· ":SYSTem:RLOGger" on page 881 · ":SYSTem:RLOGger:DESTination" on page 882 · ":SYSTem:RLOGger:DISPlay" on page 883 · ":SYSTem:RLOGger:STATe" on page 885 · ":SYSTem:RLOGger:TRANsparent" on page 886 · ":SYSTem:RLOGger:WMODe" on page 887

884

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SYSTem Commands 29

:SYSTem:RLOGger:STATe

(see page 1164)

Command Syntax Query Syntax Return Format

:SYSTem:RLOGger:STATe {{0 | OFF} | {1 | ON}}
The :SYSTem:RLOGger:STATe command enables or disables remote command logging.
:SYSTem:RLOGger:STATe?
The :SYSTem:RLOGger:STATe? query returns the remote command logging state.
<setting><NL>

See Also

<setting> ::= {0 | 1}
· ":SYSTem:RLOGger" on page 881 · ":SYSTem:RLOGger:DESTination" on page 882 · ":SYSTem:RLOGger:DISPlay" on page 883 · ":SYSTem:RLOGger:FNAMe" on page 884 · ":SYSTem:RLOGger:TRANsparent" on page 886 · ":SYSTem:RLOGger:WMODe" on page 887

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

885

29 :SYSTem Commands

:SYSTem:RLOGger:TRANsparent

(see page 1164)

Command Syntax Query Syntax Return Format

:SYSTem:RLOGger:TRANsparent {{0 | OFF} | {1 | ON}}
The :SYSTem:RLOGger:TRANsparent command specifies whether the screen display background for remote command logging is transparent or solid.
:SYSTem:RLOGger:TRANsparent?
The :SYSTem:RLOGger:TRANsparent? query returns the setting for transparent screen display background.
<setting><NL>

See Also

<setting> ::= {0 | 1}
· ":SYSTem:RLOGger" on page 881 · ":SYSTem:RLOGger:DESTination" on page 882 · ":SYSTem:RLOGger:DISPlay" on page 883 · ":SYSTem:RLOGger:FNAMe" on page 884 · ":SYSTem:RLOGger:STATe" on page 885 · ":SYSTem:RLOGger:WMODe" on page 887

886

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SYSTem Commands 29

:SYSTem:RLOGger:WMODe

(see page 1164)

Command Syntax :SYSTem:RLOGger:WMODe <write_mode>

<write_mode> ::= {CREate | APPend}
The :SYSTem:RLOGger:WMODe command specifies the remote command logging write mode.

Query Syntax Return Format

:SYSTem:RLOGger:WMODe?
The :SYSTem:RLOGger:WMODe? query returns the remote command logging write mode.
<write_mode><NL>

See Also

<write_mode> ::= {CRE | APP}
· ":SYSTem:RLOGger" on page 881 · ":SYSTem:RLOGger:DESTination" on page 882 · ":SYSTem:RLOGger:DISPlay" on page 883 · ":SYSTem:RLOGger:FNAMe" on page 884 · ":SYSTem:RLOGger:STATe" on page 885 · ":SYSTem:RLOGger:TRANsparent" on page 886

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

887

29 :SYSTem Commands

:SYSTem:SETup

(see page 1164)

Command Syntax :SYSTem:SETup <setup_data>

Query Syntax Return Format

<setup_data> ::= binary block data in IEEE 488.2 # format.
The :SYSTem:SETup command sets the oscilloscope as defined by the data in the setup (learn) string sent from the controller. The setup string does not change the interface mode or interface address.
:SYSTem:SETup?
The :SYSTem:SETup? query operates the same as the *LRN? query. It outputs the current oscilloscope setup in the form of a learn string to the controller. The setup (learn) string is sent and received as a binary block of data. The format for the data transmission is the # format defined in the IEEE 488.2 specification.
<setup_data><NL>

See Also Example Code

<setup_data> ::= binary block data in IEEE 488.2 # format
· "Introduction to :SYSTem Commands" on page 870 · "*LRN (Learn Device Setup)" on page 177
' SAVE_SYSTEM_SETUP - The :SYSTEM:SETUP? query returns a program ' message that contains the current state of the instrument. Its ' format is a definite-length binary block, for example, ' #800075595<setup string><NL> ' where the setup string is 75595 bytes in length. myScope.WriteString ":SYSTEM:SETUP?" varQueryResult = myScope.ReadIEEEBlock(BinaryType_UI1) CheckForInstrumentErrors ' After reading query results.

' Output setup string to a file: Dim strPath As String strPath = "c:\scope\config\setup.dat"

' Open file for output. Close #1 ' If #1 is open, close it. Open strPath For Binary Access Write Lock Write As #1 Put #1, , varQueryResult ' Write data. Close #1 ' Close file.

' RESTORE_SYSTEM_SETUP - Read the setup string from a file and ' write it back to the oscilloscope. Dim varSetupString As Variant strPath = "c:\scope\config\setup.dat"

' Open file for input. Open strPath For Binary Access Read As #1 Get #1, , varSetupString ' Read data. Close #1 ' Close file.

888

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:SYSTem Commands 29
' Write setup string back to oscilloscope using ":SYSTEM:SETUP" ' command: myScope.WriteIEEEBlock ":SYSTEM:SETUP ", varSetupString CheckForInstrumentErrors
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

889

29 :SYSTem Commands

:SYSTem:TIME

(see page 1164)

Command Syntax :SYSTem:TIME <time>

Query Syntax Return Format

<time> ::= hours,minutes,seconds in NR1 format
The :SYSTem:TIME command sets the system time, using a 24-hour format. Commas are used as separators. Validity checking is performed to ensure that the time is valid.
:SYSTem:TIME? <time>
The :SYSTem:TIME? query returns the current system time.
<time><NL>

See Also

<time> ::= hours,minutes,seconds in NR1 format
· "Introduction to :SYSTem Commands" on page 870 · ":SYSTem:DATE" on page 871

890

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
30 :TIMebase Commands

Control all horizontal sweep functions. See "Introduction to :TIMebase Commands" on page 892.

Table 124 :TIMebase Commands Summary

Command

Query

Options and Query Returns

:TIMebase:MODE

:TIMebase:MODE? (see <value> ::= {MAIN | WINDow | XY |

<value> (see page 893) page 893)

ROLL}

:TIMebase:POSition <pos> (see page 894)

:TIMebase:POSition? (see page 894)

<pos> ::= time from the trigger event to the display reference point in NR3 format

:TIMebase:RANGe
<range_value> (see page 895)

:TIMebase:RANGe? (see <range_value> ::= time for 10 div

page 895)

in seconds in NR3 format

:TIMebase:REFerence
{LEFT | CENTer | RIGHt} (see page 896)

:TIMebase:REFerence? (see page 896)

<return_value> ::= {LEFT | CENTer | RIGHt}

:TIMebase:SCALe
<scale_value> (see page 897)

:TIMebase:SCALe? (see <scale_value> ::= time/div in

page 897)

seconds in NR3 format

:TIMebase:VERNier {{0
| OFF} | {1 | ON}} (see page 898)

:TIMebase:VERNier? (see page 898)

{0 | 1}

:TIMebase:WINDow:POSi :TIMebase:WINDow:POSi <pos> ::= time from the trigger

tion <pos> (see

tion? (see page 899)

event to the zoomed view

page 899)

reference point in NR3 format

:TIMebase:WINDow:RANG :TIMebase:WINDow:RANG <range value> ::= range value in

e <range_value> (see e? (see page 900)

seconds in NR3 format for the

page 900)

zoomed window

:TIMebase:WINDow:SCAL :TIMebase:WINDow:SCAL <scale_value> ::= scale value in

e <scale_value> (see e? (see page 901)

seconds in NR3 format for the

page 901)

zoomed window

891

30 :TIMebase Commands

Introduction to :TIMebase Commands

The TIMebase subsystem commands control the horizontal (X-axis) functions and set the oscilloscope to X-Y mode (where channel 1 becomes the X input and channel 2 becomes the Y input). The time per division, delay, vernier control, and reference can be controlled for the main and window (zoomed) time bases.

Reporting the Setup Use :TIMebase? to query setup information for the TIMebase subsystem.

Return Format The following is a sample response from the :TIMebase? query. In this case, the query was issued following a *RST command.

:TIM:MODE MAIN;REF CENT;MAIN:RANG +1.00E-03;POS +0.0E+00

892

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TIMebase Commands 30

:TIMebase:MODE

(see page 1164)

Command Syntax :TIMebase:MODE <value>

Query Syntax

<value> ::= {MAIN | WINDow | XY | ROLL}
The :TIMebase:MODE command sets the current time base. There are four time base modes: · MAIN -- The normal time base mode is the main time base. It is the default time
base mode after the *RST (Reset) command. · WINDow -- In the WINDow (zoomed or delayed) time base mode,
measurements are made in the zoomed time base if possible; otherwise, the measurements are made in the main time base. · XY -- In the XY mode, the :TIMebase:RANGe, :TIMebase:POSition, and :TIMebase:REFerence commands are not available. No measurements are available in this mode. · ROLL -- In the ROLL mode, data moves continuously across the display from left to right. The oscilloscope runs continuously and is untriggered. The :TIMebase:REFerence selection changes to RIGHt.
:TIMebase:MODE?
The :TIMebase:MODE query returns the current time base mode.

Return Format <value><NL>

See Also

<value> ::= {MAIN | WIND | XY | ROLL}
· "Introduction to :TIMebase Commands" on page 892 · "*RST (Reset)" on page 182 · ":TIMebase:RANGe" on page 895 · ":TIMebase:POSition" on page 894 · ":TIMebase:REFerence" on page 896

Example Code

' TIMEBASE_MODE - (not executed in this example) ' Set the time base mode to MAIN, DELAYED, XY, or ROLL.

' Set time base mode to main. myScope.WriteString ":TIMEBASE:MODE MAIN"
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

893

30 :TIMebase Commands

:TIMebase:POSition

(see page 1164) Command Syntax :TIMebase:POSition <pos>
<pos> ::= time in seconds from the trigger to the display reference in NR3 format
The :TIMebase:POSition command sets the time interval between the trigger event and the display reference point on the screen. The display reference point is either left, right, or center and is set with the :TIMebase:REFerence command. The maximum position value depends on the time/division settings.

NOTE

This command is an alias for the :TIMebase:DELay command.

Query Syntax Return Format

:TIMebase:POSition?
The :TIMebase:POSition? query returns the current time from the trigger to the display reference in seconds.
<pos><NL>

See Also

<pos> ::= time in seconds from the trigger to the display reference in NR3 format
· "Introduction to :TIMebase Commands" on page 892 · ":TIMebase:REFerence" on page 896 · ":TIMebase:RANGe" on page 895 · ":TIMebase:SCALe" on page 897 · ":TIMebase:WINDow:POSition" on page 899 · ":TIMebase:DELay" on page 1120

894

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TIMebase Commands 30

:TIMebase:RANGe

(see page 1164)

Command Syntax :TIMebase:RANGe <range_value>

<range_value> ::= time for 10 div in seconds in NR3 format
The :TIMebase:RANGe command sets the full-scale horizontal time in seconds for the main window. The range is 10 times the current time-per-division setting.

Query Syntax Return Format

:TIMebase:RANGe?
The :TIMebase:RANGe query returns the current full-scale range value for the main window.
<range_value><NL>

See Also Example Code

<range_value> ::= time for 10 div in seconds in NR3 format
· "Introduction to :TIMebase Commands" on page 892 · ":TIMebase:MODE" on page 893 · ":TIMebase:SCALe" on page 897 · ":TIMebase:WINDow:RANGe" on page 900
' TIME_RANGE - Sets the full scale horizontal time in seconds. The ' range value is 10 times the time per division. myScope.WriteString ":TIM:RANG 2e-3" ' Set the time range to 0.002 seconds.
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

895

30 :TIMebase Commands

:TIMebase:REFerence

(see page 1164)

Command Syntax :TIMebase:REFerence <reference>

Query Syntax Return Format

<reference> ::= {LEFT | CENTer | RIGHt}
The :TIMebase:REFerence command sets the time reference to one division from the left side of the screen, to the center of the screen, or to one division from the right side of the screen. Time reference is the point on the display where the trigger point is referenced.
:TIMebase:REFerence?
The :TIMebase:REFerence? query returns the current display reference for the main window.
<reference><NL>

See Also Example Code

<reference> ::= {LEFT | CENT | RIGH}
· "Introduction to :TIMebase Commands" on page 892 · ":TIMebase:MODE" on page 893
' TIME_REFERENCE - Possible values are LEFT, CENTer, or RIGHt. ' - LEFT sets the display reference one time division from the left. ' - CENTer sets the display reference to the center of the screen. ' - RIGHt sets the display reference one time division from the righ t. myScope.WriteString ":TIMebase:REFerence CENTer" ' Set reference to center.
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

896

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TIMebase Commands 30

:TIMebase:SCALe

(see page 1164)

Command Syntax :TIMebase:SCALe <scale_value>

<scale_value> ::= time/div in seconds in NR3 format
The :TIMebase:SCALe command sets the horizontal scale or units per division for the main window.

Query Syntax Return Format

:TIMebase:SCALe?
The :TIMebase:SCALe? query returns the current horizontal scale setting in seconds per division for the main window.
<scale_value><NL>

See Also

<scale_value> ::= time/div in seconds in NR3 format
· "Introduction to :TIMebase Commands" on page 892 · ":TIMebase:RANGe" on page 895 · ":TIMebase:WINDow:SCALe" on page 901 · ":TIMebase:WINDow:RANGe" on page 900

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

897

30 :TIMebase Commands

:TIMebase:VERNier

(see page 1164)

Command Syntax :TIMebase:VERNier <vernier value>

<vernier value> ::= {{1 | ON} | {0 | OFF}
The :TIMebase:VERNier command specifies whether the time base control's vernier (fine horizontal adjustment) setting is ON (1) or OFF (0).

Query Syntax Return Format

:TIMebase:VERNier?
The :TIMebase:VERNier? query returns the current state of the time base control's vernier setting.
<vernier value><NL>

<vernier value> ::= {0 | 1}
See Also · "Introduction to :TIMebase Commands" on page 892

898

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TIMebase Commands 30

:TIMebase:WINDow:POSition

(see page 1164)

Command Syntax :TIMebase:WINDow:POSition <pos value>

Query Syntax Return Format

<pos value> ::= time from the trigger event to the zoomed (delayed) view reference point in NR3 format
The :TIMebase:WINDow:POSition command sets the horizontal position in the zoomed (delayed) view of the main sweep. The main sweep range and the main sweep horizontal position determine the range for this command. The value for this command must keep the zoomed view window within the main sweep range.
:TIMebase:WINDow:POSition?
The :TIMebase:WINDow:POSition? query returns the current horizontal window position setting in the zoomed view.
<value><NL>

See Also

<value> ::= position value in seconds
· "Introduction to :TIMebase Commands" on page 892 · ":TIMebase:MODE" on page 893 · ":TIMebase:POSition" on page 894 · ":TIMebase:RANGe" on page 895 · ":TIMebase:SCALe" on page 897 · ":TIMebase:WINDow:RANGe" on page 900 · ":TIMebase:WINDow:SCALe" on page 901

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

899

30 :TIMebase Commands

:TIMebase:WINDow:RANGe

(see page 1164)

Command Syntax :TIMebase:WINDow:RANGe <range value>

Query Syntax Return Format

<range value> ::= range value in seconds in NR3 format
The :TIMebase:WINDow:RANGe command sets the full-scale horizontal time in seconds for the zoomed (delayed) window. The range is 10 times the current zoomed view window seconds per division setting. The main sweep range determines the range for this command. The maximum value is one half of the :TIMebase:RANGe value.
:TIMebase:WINDow:RANGe?
The :TIMebase:WINDow:RANGe? query returns the current window timebase range setting.
<value><NL>

See Also

<value> ::= range value in seconds
· "Introduction to :TIMebase Commands" on page 892 · ":TIMebase:RANGe" on page 895 · ":TIMebase:POSition" on page 894 · ":TIMebase:SCALe" on page 897

900

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TIMebase Commands 30

:TIMebase:WINDow:SCALe

(see page 1164)

Command Syntax :TIMebase:WINDow:SCALe <scale_value>

Query Syntax Return Format

<scale_value> ::= scale value in seconds in NR3 format
The :TIMebase:WINDow:SCALe command sets the zoomed (delayed) window horizontal scale (seconds/division). The main sweep scale determines the range for this command. The maximum value is one half of the :TIMebase:SCALe value.
:TIMebase:WINDow:SCALe?
The :TIMebase:WINDow:SCALe? query returns the current zoomed window scale setting.
<scale_value><NL>

See Also

<scale_value> ::= current seconds per division for the zoomed window
· "Introduction to :TIMebase Commands" on page 892 · ":TIMebase:RANGe" on page 895 · ":TIMebase:POSition" on page 894 · ":TIMebase:SCALe" on page 897 · ":TIMebase:WINDow:RANGe" on page 900

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

901

30 :TIMebase Commands

902

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
31 :TRIGger Commands

Introduction to :TRIGger
Commands

Control the trigger modes and parameters for each trigger type. See: · "Introduction to :TRIGger Commands" on page 903 · "General :TRIGger Commands" on page 905 · ":TRIGger:DELay Commands" on page 915 · ":TRIGger:EBURst Commands" on page 922 · ":TRIGger[:EDGE] Commands" on page 927 · ":TRIGger:GLITch Commands" on page 933 (Pulse Width trigger) · ":TRIGger:OR Commands" on page 942 · ":TRIGger:PATTern Commands" on page 944 · ":TRIGger:RUNT Commands" on page 952 · ":TRIGger:SHOLd Commands" on page 957 · ":TRIGger:TRANsition Commands" on page 963 · ":TRIGger:TV Commands" on page 968 · ":TRIGger:USB Commands" on page 978
The commands in the TRIGger subsystem define the conditions for an internal trigger. Many of these commands are valid in multiple trigger modes.
The default trigger mode is :EDGE.
The trigger subsystem controls the trigger sweep mode and the trigger specification. The trigger sweep (see ":TRIGger:SWEep" on page 914) can be AUTO or NORMal. · NORMal mode -- displays a waveform only if a trigger signal is present and the
trigger conditions are met. Otherwise the oscilloscope does not trigger and the display is not updated. This mode is useful for low-repetitive-rate signals. · AUTO trigger mode -- generates an artificial trigger event if the trigger specification is not satisfied within a preset time, acquires unsynchronized data and displays it.
AUTO mode is useful for signals other than low-repetitive-rate signals. You must use this mode to display a DC signal because there are no edges on which to trigger.

903

31 :TRIGger Commands
The following trigger types are available (see ":TRIGger:MODE" on page 912). · Edge triggering-- identifies a trigger by looking for a specified slope and voltage
level on a waveform. · Nth Edge Burst triggering-- lets you trigger on the Nth edge of a burst that occurs
after an idle time. · Pulse width triggering-- (:TRIGger:GLITch commands) sets the oscilloscope to
trigger on a positive pulse or on a negative pulse of a specified width. · Pattern triggering-- identifies a trigger condition by looking for a specified
pattern. This pattern is a logical AND combination of the channels. You can also trigger on a specified time duration of a pattern. · TV triggering-- is used to capture the complicated waveforms of television equipment. The trigger circuitry detects the vertical and horizontal interval of the waveform and produces triggers based on the TV trigger settings you selected. TV triggering requires greater than ¼ division of sync amplitude with any analog channel as the trigger source. · USB (Universal Serial Bus) triggering-- will trigger on a Start of Packet (SOP), End of Packet (EOP), Reset Complete, Enter Suspend, or Exit Suspend signal on the differential USB data lines. USB Low Speed and Full Speed are supported by this trigger.
Reporting the Setup Use :TRIGger? to query setup information for the TRIGger subsystem.
Return Format The return format for the TRIGger? query varies depending on the current mode. The following is a sample response from the :TRIGger? query. In this case, the query was issued following a *RST command.
:TRIG:MODE EDGE;SWE AUTO;NREJ 0;HFR 0;HOLD +60.0000000000000E-09; :TRIG:EDGE:SOUR CHAN1;LEV +0.00000E+00;SLOP POS;REJ OFF;COUP DC

904

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

General :TRIGger Commands

Table 125 General :TRIGger Commands Summary

Command

Query

:TRIGger:FORCe (see n/a page 906)

:TRIGger:HFReject {{0
| OFF} | {1 | ON}} (see page 907)

:TRIGger:HFReject? (see page 907)

:TRIGger:HOLDoff
<holdoff_time> (see page 908)

:TRIGger:HOLDoff? (see page 908)

:TRIGger:LEVel:ASETup n/a (see page 909)

:TRIGger:LEVel:HIGH
<level>, <source> (see page 910)

:TRIGger:LEVel:HIGH?
<source> (see page 910)

:TRIGger:LEVel:LOW
<level>, <source> (see page 911)

:TRIGger:LEVel:LOW?
<source> (see page 911)

:TRIGger:MODE <mode> :TRIGger:MODE? (see

(see page 912)

page 912)

:TRIGger:NREJect {{0
| OFF} | {1 | ON}} (see page 913)

:TRIGger:NREJect? (see page 913)

:TRIGger:SWEep

:TRIGger:SWEep? (see

<sweep> (see page 914) page 914)

Options and Query Returns n/a
{0 | 1}
<holdoff_time> ::= 40 ns to 10 s in NR3 format
n/a
<level> ::= .75 x full-scale voltage from center screen in NR3 format. <source> ::= CHANnel<n> <n> ::= 1 to (# analog channels) in NR1 format <level> ::= .75 x full-scale voltage from center screen in NR3 format. <source> ::= CHANnel<n> <n> ::= 1 to (# analog channels) in NR1 format <mode> ::= {EDGE | GLITch | PATTern | TV | DELay | EBURst | OR | RUNT | SHOLd | TRANsition | SBUS{1 | 2} | USB} <return_value> ::= {<mode> | <none>} <none> ::= query returns "NONE" if the :TIMebase:MODE is ROLL or XY {0 | 1}
<sweep> ::= {AUTO | NORMal}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

905

31 :TRIGger Commands

:TRIGger:FORCe

Command Syntax See Also

(see page 1164)
:TRIGger:FORCe
The :TRIGger:FORCe command causes an acquisition to be captured even though the trigger condition has not been met. This command is equivalent to the front panel [Force Trigger] key. · "Introduction to :TRIGger Commands" on page 903

906

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:HFReject

(see page 1164)

Command Syntax :TRIGger:HFReject <value>

Query Syntax Return Format

<value> ::= {{0 | OFF} | {1 | ON}}
The :TRIGger:HFReject command turns the high frequency reject filter off and on. The high frequency reject filter adds a 50 kHz low-pass filter in the trigger path to remove high frequency components from the trigger waveform. Use this filter to remove high-frequency noise, such as AM or FM broadcast stations, from the trigger path.
:TRIGger:HFReject?
The :TRIGger:HFReject? query returns the current high frequency reject filter mode.
<value><NL>

See Also

<value> ::= {0 | 1}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger[:EDGE]:REJect" on page 930

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

907

31 :TRIGger Commands

:TRIGger:HOLDoff

(see page 1164)

Command Syntax :TRIGger:HOLDoff <holdoff_time>

Query Syntax Return Format

<holdoff_time> ::= 40 ns to 10 s in NR3 format
The :TRIGger:HOLDoff command defines the holdoff time value in seconds. Holdoff keeps a trigger from occurring until after a certain amount of time has passed since the last trigger. This feature is valuable when a waveform crosses the trigger level multiple times during one period of the waveform. Without holdoff, the oscilloscope could trigger on each of the crossings, producing a confusing waveform. With holdoff set correctly, the oscilloscope always triggers on the same crossing. The correct holdoff setting is typically slightly less than one period.
:TRIGger:HOLDoff?
The :TRIGger:HOLDoff? query returns the holdoff time value for the current trigger mode.
<holdoff_time><NL>

<holdoff_time> ::= the holdoff time value in seconds in NR3 format.
See Also · "Introduction to :TRIGger Commands" on page 903

908

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:LEVel:ASETup

Command Syntax See Also

(see page 1164)
:TRIGger:LEVel:ASETup
The :TRIGger:LEVel:ASETup command automatically sets the trigger levels of all displayed analog channels to their waveforms' 50% values. If AC coupling is used, the trigger levels are set to 0 V. When High and Low (dual) trigger levels are used (as with Rise/Fall Time and Runt triggers, for example), this command has no effect. · ":TRIGger[:EDGE]:LEVel" on page 929

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

909

31 :TRIGger Commands

:TRIGger:LEVel:HIGH

(see page 1164)

Command Syntax :TRIGger:LEVel:HIGH <level>, <source>

<level> ::= 0.75 x full-scale voltage from center screen in NR3 format for internal triggers

<source> ::= CHANnel<n>

Query Syntax
Return Format See Also

<n> ::= 1 to (# analog channels) in NR1 format
The :TRIGger:LEVel:HIGH command sets the high trigger voltage level voltage for the specified source. High and low trigger levels are used with runt triggers and rise/fall time (transition) triggers.
:TRIGger:LEVel:HIGH? <source>
The :TRIGger:LEVel:HIGH? query returns the high trigger voltage level for the specified source.
<level><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:LEVel:LOW" on page 911 · ":TRIGger:RUNT Commands" on page 952 · ":TRIGger:TRANsition Commands" on page 963 · ":TRIGger[:EDGE]:SOURce" on page 932

910

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:LEVel:LOW

(see page 1164)

Command Syntax :TRIGger:LEVel:LOW <level>, <source>

<level> ::= 0.75 x full-scale voltage from center screen in NR3 format for internal triggers

<source> ::= CHANnel<n>

Query Syntax
Return Format See Also

<n> ::= 1 to (# analog channels) in NR1 format
The :TRIGger:LEVel:LOW command sets the low trigger voltage level voltage for the specified source. High and low trigger levels are used with runt triggers and rise/fall time (transition) triggers.
:TRIGger:LEVel:LOW? <source>
The :TRIGger:LEVel:LOW? query returns the low trigger voltage level for the specified source.
<level><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:LEVel:HIGH" on page 910 · ":TRIGger:RUNT Commands" on page 952 · ":TRIGger:TRANsition Commands" on page 963 · ":TRIGger[:EDGE]:SOURce" on page 932

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

911

31 :TRIGger Commands

:TRIGger:MODE

(see page 1164)

Command Syntax :TRIGger:MODE <mode>

Query Syntax Return Format

<mode> ::= {EDGE | GLITch | PATTern | TV | DELay | EBURst | OR | RUNT | SHOLd | TRANsition | SBUS{1 | 2} | USB}
The :TRIGger:MODE command selects the trigger mode (trigger type).
:TRIGger:MODE?
The :TRIGger:MODE? query returns the current trigger mode. If the :TIMebase:MODE is ROLL or XY, the query returns "NONE".
<mode><NL>

See Also Example Code

<mode> ::= {EDGE | GLIT | PATT | TV | DEL | EBUR | OR | RUNT | SHOL | TRAN | SBUS{1 | 2} | USB}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:SWEep" on page 914 · ":TIMebase:MODE" on page 893
' TRIGGER_MODE - Set the trigger mode to EDGE. myScope.WriteString ":TRIGger:MODE EDGE"
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

912

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:NREJect

(see page 1164)

Command Syntax :TRIGger:NREJect <value>

Query Syntax Return Format

<value> ::= {{0 | OFF} | {1 | ON}}
The :TRIGger:NREJect command turns the noise reject filter off and on. When the noise reject filter is on, the trigger circuitry is less sensitive to noise but may require a greater amplitude waveform to trigger the oscilloscope. This command is not valid in TV trigger mode.
:TRIGger:NREJect?
The :TRIGger:NREJect? query returns the current noise reject filter mode.
<value><NL>

<value> ::= {0 | 1}
See Also · "Introduction to :TRIGger Commands" on page 903

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

913

31 :TRIGger Commands

:TRIGger:SWEep

(see page 1164) Command Syntax :TRIGger:SWEep <sweep>
<sweep> ::= {AUTO | NORMal}
The :TRIGger:SWEep command selects the trigger sweep mode. When AUTO sweep mode is selected, a baseline is displayed in the absence of a signal. If a signal is present but the oscilloscope is not triggered, the unsynchronized signal is displayed instead of a baseline. When NORMal sweep mode is selected and no trigger is present, the instrument does not sweep, and the data acquired on the previous trigger remains on the screen.

NOTE

This feature is called "Mode" on the instrument's front panel.

Query Syntax :TRIGger:SWEep? The :TRIGger:SWEep? query returns the current trigger sweep mode.
Return Format <sweep><NL>
<sweep> ::= current trigger sweep mode
See Also · "Introduction to :TRIGger Commands" on page 903

914

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:DELay Commands

Table 126 :TRIGger:DELay Commands Summary

Command

Query

Options and Query Returns

:TRIGger:DELay:ARM:SL :TRIGger:DELay:ARM:SL <slope> ::= {NEGative | POSitive}

OPe <slope> (see

OPe? (see page 916)

page 916)

:TRIGger:DELay:ARM:SO
URce <source> (see page 917)

:TRIGger:DELay:ARM:SO URce? (see page 917)

<source> ::= {CHANnel<n> | DIGital<d>}
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:TRIGger:DELay:TDELay :TRIGger:DELay:TDELay <time_value> ::= time in seconds

:TIME <time_value>

:TIME? (see page 918) in NR3 format

(see page 918)

:TRIGger:DELay:TRIGge :TRIGger:DELay:TRIGge <count> ::= integer in NR1 format

r:COUNt <count> (see r:COUNt? (see

page 919)

page 919)

:TRIGger:DELay:TRIGge :TRIGger:DELay:TRIGge <slope> ::= {NEGative | POSitive}

r:SLOPe <slope> (see r:SLOPe? (see

page 920)

page 920)

:TRIGger:DELay:TRIGge
r:SOURce <source> (see page 921)

:TRIGger:DELay:TRIGge
r:SOURce? (see page 921)

<source> ::= {CHANnel<n> | DIGital<d>}
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

The :TRIGger:DELay:ARM:SOURce and :TRIGger:DELay:TRIGger:SOURce commands are used to specify the source channel for the arming edge and the trigger edge in the Edge Then Edge trigger. If an analog channel is selected as a source, the :TRIGger:EDGE:LEVel command is used to set the trigger level. If a digital channel is selected as the source, the :DIGital<n>:THReshold or :POD<n>:THReshold command is used to set the trigger level.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

915

31 :TRIGger Commands

:TRIGger:DELay:ARM:SLOPe

(see page 1164)

Command Syntax :TRIGger:DELay:ARM:SLOPe <slope>

<slope> ::= {NEGative | POSitive}
The :TRIGger:DELay:ARM:SLOPe command specifies rising (POSitive) or falling (NEGative) for the arming edge in the Edge Then Edge triggger.

Query Syntax Return Format

:TRIGger:DELay:ARM:SLOPe?
The :TRIGger:DELay:ARM:SLOPe? query returns the current arming edge slope setting.
<slope><NL>

See Also

<slope> ::= {NEG | POS}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:DELay:ARM:SOURce" on page 917 · ":TRIGger:DELay:TDELay:TIME" on page 918

916

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:DELay:ARM:SOURce

(see page 1164)

Command Syntax :TRIGger:DELay:ARM:SOURce <source>

<source> ::= {CHANnel<n> | DIGital<d>}

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax Return Format

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :TRIGger:DELay:ARM:SOURce command selects the input used for the arming edge in the Edge Then Edge trigger.
:TRIGger:DELay:ARM:SOURce?
The :TRIGger:DELay:ARM:SOURce? query returns the current arming edge source.
<source><NL>

See Also

<source> ::= {CHAN<n> | DIG<d>}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:DELay:ARM:SLOPe" on page 916 · ":TRIGger:DELay:TDELay:TIME" on page 918 · ":TRIGger:MODE" on page 912

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

917

31 :TRIGger Commands

:TRIGger:DELay:TDELay:TIME

(see page 1164)

Command Syntax :TRIGger:DELay:TDELay:TIME <time_value>

Query Syntax Return Format

<time_value> ::= time in seconds in NR3 format
The :TRIGger:DELay:TDELay:TIME command sets the delay time between the arming edge and the trigger edge in the Edge Then Edge trigger. The time is in seconds and must be from 4 ns to 10 s.
:TRIGger:DELay:TDELay:TIME?
The :TRIGger:DELay:TDELay:TIME? query returns current delay time setting.
<time value><NL>

See Also

<time_value> ::= time in seconds in NR3 format
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:DELay:TRIGger:SLOPe" on page 920 · ":TRIGger:DELay:TRIGger:COUNt" on page 919

918

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:DELay:TRIGger:COUNt

(see page 1164)

Command Syntax :TRIGger:DELay:TRIGger:COUNt <count>

<count> ::= integer in NR1 format
The :TRIGger:DELay:TRIGger:COUNt command sets the Nth edge of the trigger source to trigger on.

Query Syntax Return Format

:TRIGger:DELay:TRIGger:COUNt?
The :TRIGger:DELay:TRIGger:COUNt? query returns the current Nth trigger edge setting.
<count><NL>

See Also

<count> ::= integer in NR1 format
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:DELay:TRIGger:SLOPe" on page 920 · ":TRIGger:DELay:TRIGger:SOURce" on page 921 · ":TRIGger:DELay:TDELay:TIME" on page 918

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

919

31 :TRIGger Commands

:TRIGger:DELay:TRIGger:SLOPe

(see page 1164)

Command Syntax :TRIGger:DELay:TRIGger:SLOPe <slope>

<slope> ::= {NEGative | POSitive}
The :TRIGger:DELay:TRIGger:SLOPe command specifies rising (POSitive) or falling (NEGative) for the trigger edge in the Edge Then Edge triggger.

Query Syntax Return Format

:TRIGger:DELay:TRIGger:SLOPe?
The :TRIGger:DELay:TRIGger:SLOPe? query returns the current trigger edge slope setting.
<slope><NL>

See Also

<slope> ::= {NEG | POS}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:DELay:TRIGger:SOURce" on page 921 · ":TRIGger:DELay:TDELay:TIME" on page 918 · ":TRIGger:DELay:TRIGger:COUNt" on page 919

920

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:DELay:TRIGger:SOURce

(see page 1164)

Command Syntax :TRIGger:DELay:TRIGger:SOURce <source>

<source> ::= {CHANnel<n> | DIGital<d>}

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax Return Format

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :TRIGger:DELay:TRIGger:SOURce command selects the input used for the trigger edge in the Edge Then Edge trigger.
:TRIGger:DELay:TRIGger:SOURce?
The :TRIGger:DELay:TRIGger:SOURce? query returns the current trigger edge source.
<source><NL>

See Also

<source> ::= {CHAN<n> | DIG<d>}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:DELay:TRIGger:SLOPe" on page 920 · ":TRIGger:DELay:TDELay:TIME" on page 918 · ":TRIGger:DELay:TRIGger:COUNt" on page 919 · ":TRIGger:MODE" on page 912

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

921

31 :TRIGger Commands

:TRIGger:EBURst Commands

Table 127 :TRIGger:EBURst Commands Summary

Command

Query

Options and Query Returns

:TRIGger:EBURst:COUNt :TRIGger:EBURst:COUNt <count> ::= integer in NR1 format <count> (see page 923) ? (see page 923)

:TRIGger:EBURst:IDLE
<time_value> (see page 924)

:TRIGger:EBURst:IDLE? <time_value> ::= time in seconds

(see page 924)

in NR3 format

:TRIGger:EBURst:SLOPe :TRIGger:EBURst:SLOPe <slope> ::= {NEGative | POSitive} <slope> (see page 925) ? (see page 925)

:TRIGger:EBURst:SOURc
e <source> (see page 926)

:TRIGger:EBURst:SOURc e? (see page 926)

<source> ::= {CHANnel<n> | DIGital<d>}
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

The :TRIGger:EBURst:SOURce command is used to specify the source channel for the Nth Edge Burst trigger. If an analog channel is selected as the source, the :TRIGger:EDGE:LEVel command is used to set the Nth Edge Burst trigger level. If a digital channel is selected as the source, the :DIGital<n>:THReshold or :POD<n>:THReshold command is used to set the Nth Edge Burst trigger level.

922

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:EBURst:COUNt

(see page 1164)

Command Syntax :TRIGger:EBURst:COUNt <count>

Query Syntax Return Format

<count> ::= integer in NR1 format
The :TRIGger:EBURst:COUNt command sets the Nth edge at burst counter resource. The edge counter is used in the trigger stage to determine which edge in a burst will generate a trigger.
:TRIGger:EBURst:COUNt?
The :TRIGger:EBURst:COUNt? query returns the current Nth edge of burst edge counter setting.
<count><NL>

See Also

<count> ::= integer in NR1 format
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:EBURst:SLOPe" on page 925 · ":TRIGger:EBURst:IDLE" on page 924

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

923

31 :TRIGger Commands

:TRIGger:EBURst:IDLE

(see page 1164)

Command Syntax :TRIGger:EBURst:IDLE <time_value>

Query Syntax Return Format

<time_value> ::= time in seconds in NR3 format
The :TRIGger:EBURst:IDLE command sets the Nth edge in a burst idle resource in seconds from 10 ns to 10 s. The timer is used to set the minimum time before the next burst.
:TRIGger:EBURst:IDLE?
The :TRIGger:EBURst:IDLE? query returns current Nth edge in a burst idle setting.
<time value><NL>

See Also

<time_value> ::= time in seconds in NR3 format
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:EBURst:SLOPe" on page 925 · ":TRIGger:EBURst:COUNt" on page 923

924

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:EBURst:SLOPe

(see page 1164)

Command Syntax :TRIGger:EBURst:SLOPe <slope>

Query Syntax Return Format

<slope> ::= {NEGative | POSitive}
The :TRIGger:EBURst:SLOPe command specifies whether the rising edge (POSitive) or falling edge (NEGative) of the Nth edge in a burst will generate a trigger.
:TRIGger:EBURst:SLOPe?
The :TRIGger:EBURst:SLOPe? query returns the current Nth edge in a burst slope.
<slope><NL>

See Also

<slope> ::= {NEG | POS}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:EBURst:IDLE" on page 924 · ":TRIGger:EBURst:COUNt" on page 923

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

925

31 :TRIGger Commands

:TRIGger:EBURst:SOURce

(see page 1164)

Command Syntax :TRIGger:EBURst:SOURce <source>

<source> ::= {CHANnel<n> | DIGital<d>}

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax Return Format

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :TRIGger:EBURst:SOURce command selects the input that produces the Nth edge burst trigger.
:TRIGger:EBURst:SOURce?
The :TRIGger:EBURst:SOURce? query returns the current Nth edge burst trigger source. If all channels are off, the query returns "NONE."
<source><NL>

See Also

<source> ::= {CHAN<n> | DIG<d>}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912

926

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger[:EDGE] Commands

Table 128 :TRIGger[:EDGE] Commands Summary

Command

Query

Options and Query Returns

:TRIGger[:EDGE]:COUPl
ing {AC | DC |
LFReject} (see page 928)

:TRIGger[:EDGE]:COUPl ing? (see page 928)

{AC | DC | LFReject}

:TRIGger[:EDGE]:LEVel
<level> [,<source>] (see page 929)

:TRIGger[:EDGE]:LEVel
? [<source>] (see page 929)

For internal triggers, <level> ::= .75 x full-scale voltage from center screen in NR3 format.
For external triggers, <level> ::= ±(external range setting) in NR3 format.
For digital channels (MSO models), <level> ::= ±8 V.
<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d> | EXTernal } for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:TRIGger[:EDGE]:REJec
t {OFF | LFReject |
HFReject} (see page 930)

:TRIGger[:EDGE]:REJec t? (see page 930)

{OFF | LFReject | HFReject}

:TRIGger[:EDGE]:SLOPe :TRIGger[:EDGE]:SLOPe <polarity> ::= {POSitive |

<polarity> (see

? (see page 931)

NEGative | EITHer | ALTernate}

page 931)

:TRIGger[:EDGE]:SOURc
e <source> (see page 932)

:TRIGger[:EDGE]:SOURc e? (see page 932)

<source> ::= {CHANnel<n> | EXTernal | LINE | WGEN} for the DSO models
<source> ::= {CHANnel<n> | DIGital<d> | EXTernal | LINE | WGEN} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

927

31 :TRIGger Commands

:TRIGger[:EDGE]:COUPling

(see page 1164) Command Syntax :TRIGger[:EDGE]:COUPling <coupling>
<coupling> ::= {AC | DC | LFReject}
The :TRIGger[:EDGE]:COUPling command sets the input coupling for the selected trigger sources. The coupling can be set to AC, DC, or LFReject. · AC coupling places a high-pass filter (10 Hz for analog channels, and 3.5 Hz for
all External trigger inputs) in the trigger path, removing dc offset voltage from the trigger waveform. Use AC coupling to get a stable edge trigger when your waveform has a large dc offset. · LFReject coupling places a 50 KHz high-pass filter in the trigger path. · DC coupling allows dc and ac signals into the trigger path.

NOTE

The :TRIGger[:EDGE]:COUPling and the :TRIGger[:EDGE]:REJect selections are coupled. Changing the setting of the :TRIGger[:EDGE]:REJect can change the COUPling setting.

Query Syntax Return Format

:TRIGger[:EDGE]:COUPling?
The :TRIGger[:EDGE]:COUPling? query returns the current coupling selection.
<coupling><NL>

See Also

<coupling> ::= {AC | DC | LFR}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":TRIGger[:EDGE]:REJect" on page 930

928

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger[:EDGE]:LEVel

(see page 1164) Command Syntax :TRIGger[:EDGE]:LEVel <level>
<level> ::= <level>[,<source>]
<level> ::= 0.75 x full-scale voltage from center screen in NR3 format for internal triggers
<level> ::= ±(external range setting) in NR3 format for external triggers
<level> ::= ±8 V for digital channels (MSO models)
<source> ::= {CHANnel<n> | EXTernal} for the DSO models
<source> ::= {CHANnel<n> | DIGital<d> | EXTernal} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
The :TRIGger[:EDGE]:LEVel command sets the trigger level voltage for the active trigger source.

NOTE

If the optional source is specified and is not the active source, the level on the active source is not affected and the active source is not changed.

Query Syntax
Return Format See Also

:TRIGger[:EDGE]:LEVel? [<source>]
The :TRIGger[:EDGE]:LEVel? query returns the trigger level of the current trigger source.
<level><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger[:EDGE]:SOURce" on page 932 · ":EXTernal:RANGe" on page 330 · ":POD<n>:THReshold" on page 543 · ":DIGital<d>:THReshold" on page 303

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

929

31 :TRIGger Commands

:TRIGger[:EDGE]:REJect

(see page 1164) Command Syntax :TRIGger[:EDGE]:REJect <reject>
<reject> ::= {OFF | LFReject | HFReject}
The :TRIGger[:EDGE]:REJect command turns the low-frequency or high-frequency reject filter on or off. You can turn on one of these filters at a time. · The high frequency reject filter adds a 50 kHz low-pass filter in the trigger path
to remove high frequency components from the trigger waveform. Use the high frequency reject filter to remove high-frequency noise, such as AM or FM broadcast stations, from the trigger path. · The low frequency reject filter adds a 50 kHz high-pass filter in series with the trigger waveform to remove any unwanted low frequency components from a trigger waveform, such as power line frequencies, that can interfere with proper triggering.

NOTE

The :TRIGger[:EDGE]:REJect and the :TRIGger[:EDGE]:COUPling selections are coupled. Changing the setting of the :TRIGger[:EDGE]:COUPling can change the COUPling setting.

Query Syntax Return Format

:TRIGger[:EDGE]:REJect?
The :TRIGger[:EDGE]:REJect? query returns the current status of the reject filter.
<reject><NL>

See Also

<reject> ::= {OFF | LFR | HFR}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:HFReject" on page 907 · ":TRIGger[:EDGE]:COUPling" on page 928

930

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger[:EDGE]:SLOPe

(see page 1164)

Command Syntax :TRIGger[:EDGE]:SLOPe <slope>

Query Syntax Return Format

<slope> ::= {NEGative | POSitive | EITHer | ALTernate}
The :TRIGger[:EDGE]:SLOPe command specifies the slope of the edge for the trigger. The SLOPe command is not valid in TV trigger mode. Instead, use :TRIGger:TV:POLarity to set the polarity in TV trigger mode.
:TRIGger[:EDGE]:SLOPe?
The :TRIGger[:EDGE]:SLOPe? query returns the current trigger slope.
<slope><NL>

See Also Example Code

<slope> ::= {NEG | POS | EITH | ALT}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":TRIGger:TV:POLarity" on page 971
' TRIGGER_EDGE_SLOPE - Sets the slope of the edge for the trigger.

' Set the slope to positive. myScope.WriteString ":TRIGGER:EDGE:SLOPE POSITIVE"
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

931

31 :TRIGger Commands

:TRIGger[:EDGE]:SOURce

(see page 1164)

Command Syntax :TRIGger[:EDGE]:SOURce <source>

<source> ::= {CHANnel<n> | EXTernal | LINE | WGEN} for the DSO models

<source> ::= {CHANnel<n> | DIGital<d> | EXTernal | LINE | WGEN} for the MSO models

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax Return Format

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :TRIGger[:EDGE]:SOURce command selects the input that produces the trigger. · EXTernal -- triggers on the rear panel EXT TRIG IN signal. · LINE -- triggers at the 50% level of the rising or falling edge of the AC power
source signal. · WGEN -- triggers at the 50% level of the rising edge of the waveform generator
output signal. This option is not available when the DC, NOISe, or CARDiac waveforms are selected.
:TRIGger[:EDGE]:SOURce?
The :TRIGger[:EDGE]:SOURce? query returns the current source. If all channels are off, the query returns "NONE."
<source><NL>

<source> ::= {CHAN<n> | EXT | LINE | WGEN | NONE} for the DSO models

See Also Example Code

<source> ::= {CHAN<n> | DIG<d> | EXTernal | LINE | WGEN | NONE} for the MSO models
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912
' TRIGGER_EDGE_SOURCE - Selects the channel that actually produces th e
' edge trigger. Any channel can be selected. myScope.WriteString ":TRIGger:EDGE:SOURce CHANnel1"
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

932

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:GLITch Commands

Table 129 :TRIGger:GLITch Commands Summary

Command

Query

Options and Query Returns

:TRIGger:GLITch:GREat
erthan
<greater_than_time>[s uffix] (see page 935)

:TRIGger:GLITch:GREat erthan? (see page 935)

<greater_than_time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

:TRIGger:GLITch:LESSt
han
<less_than_time>[suff ix] (see page 936)

:TRIGger:GLITch:LESSt han? (see page 936)

<less_than_time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

:TRIGger:GLITch:LEVel
<level> [<source>] (see page 937)

:TRIGger:GLITch:LEVel ? (see page 937)

For internal triggers, <level> ::= .75 x full-scale voltage from center screen in NR3 format.
For external triggers (DSO models), <level> ::= ±(external range setting) in NR3 format.
For digital channels (MSO models), <level> ::= ±8 V.
<source> ::= {CHANnel<n> | EXTernal} for DSO models
<source> ::= {CHANnel<n> | DIGital<d>} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:TRIGger:GLITch:POLar :TRIGger:GLITch:POLar <polarity> ::= {POSitive |

ity <polarity> (see ity? (see page 938)

NEGative}

page 938)

:TRIGger:GLITch:QUALi :TRIGger:GLITch:QUALi <qualifier> ::= {GREaterthan |

fier <qualifier> (see fier? (see page 939)

LESSthan | RANGe}

page 939)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

933

31 :TRIGger Commands

Table 129 :TRIGger:GLITch Commands Summary (continued)

Command

Query

Options and Query Returns

:TRIGger:GLITch:RANGe
<less_than_time>[suff
ix],
<greater_than_time>[s uffix] (see page 940)

:TRIGger:GLITch:RANGe ? (see page 940)

<less_than_time> ::= 15 ns to 10 seconds in NR3 format
<greater_than_time> ::= 10 ns to 9.99 seconds in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

:TRIGger:GLITch:SOURc
e <source> (see page 941)

:TRIGger:GLITch:SOURc e? (see page 941)

<source> ::= {CHANnel<n> | DIGital<d>}
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

934

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:GLITch:GREaterthan

(see page 1164)

Command Syntax :TRIGger:GLITch:GREaterthan <greater_than_time>[<suffix>]

<greater_than_time> ::= floating-point number in NR3 format

Query Syntax Return Format

<suffix> ::= {s | ms | us | ns | ps}
The :TRIGger:GLITch:GREaterthan command sets the minimum pulse width duration for the selected :TRIGger:GLITch:SOURce.
:TRIGger:GLITch:GREaterthan?
The :TRIGger:GLITch:GREaterthan? query returns the minimum pulse width duration time for :TRIGger:GLITch:SOURce.
<greater_than_time><NL>

See Also

<greater_than_time> ::= floating-point number in NR3 format.
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:GLITch:SOURce" on page 941 · ":TRIGger:GLITch:QUALifier" on page 939 · ":TRIGger:MODE" on page 912

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

935

31 :TRIGger Commands

:TRIGger:GLITch:LESSthan

(see page 1164)

Command Syntax :TRIGger:GLITch:LESSthan <less_than_time>[<suffix>]

<less_than_time> ::= floating-point number in NR3 format

Query Syntax Return Format

<suffix> ::= {s | ms | us | ns | ps}
The :TRIGger:GLITch:LESSthan command sets the maximum pulse width duration for the selected :TRIGger:GLITch:SOURce.
:TRIGger:GLITch:LESSthan?
The :TRIGger:GLITch:LESSthan? query returns the pulse width duration time for :TRIGger:GLITch:SOURce.
<less_than_time><NL>

See Also

<less_than_time> ::= floating-point number in NR3 format.
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:GLITch:SOURce" on page 941 · ":TRIGger:GLITch:QUALifier" on page 939 · ":TRIGger:MODE" on page 912

936

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:GLITch:LEVel

(see page 1164)

Command Syntax :TRIGger:GLITch:LEVel <level_argument>

<level_argument> ::= <level>[, <source>]

<level> ::= .75 x full-scale voltage from center screen in NR3 format for internal triggers

<level> ::= ±(external range setting) in NR3 format for external triggers (DSO models)

<level> ::= ±8 V for digital channels (MSO models)

<source> ::= {CHANnel<n> | EXTernal} for DSO models

<source> ::= {CHANnel<n> | DIGital<d>} for MSO models

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax
Return Format See Also

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :TRIGger:GLITch:LEVel command sets the trigger level voltage for the active pulse width trigger.
:TRIGger:GLITch:LEVel?
The :TRIGger:GLITch:LEVel? query returns the trigger level of the current pulse width trigger mode. If all channels are off, the query returns "NONE."
<level_argument><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":TRIGger:GLITch:SOURce" on page 941 · ":EXTernal:RANGe" on page 330

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

937

31 :TRIGger Commands

:TRIGger:GLITch:POLarity

(see page 1164)

Command Syntax :TRIGger:GLITch:POLarity <polarity>

<polarity> ::= {POSitive | NEGative}
The :TRIGger:GLITch:POLarity command sets the polarity for the glitch pulse width trigger.

Query Syntax Return Format

:TRIGger:GLITch:POLarity?
The :TRIGger:GLITch:POLarity? query returns the glitch pulse width trigger polarity.
<polarity><NL>

See Also

<polarity> ::= {POS | NEG}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":TRIGger:GLITch:SOURce" on page 941

938

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:GLITch:QUALifier

(see page 1164)

Command Syntax :TRIGger:GLITch:QUALifier <operator>

Query Syntax Return Format

<operator> ::= {GREaterthan | LESSthan | RANGe}
This command sets the mode of operation of the glitch pulse width trigger. The oscilloscope can trigger on a pulse width that is greater than a time value, less than a time value, or within a range of time values.
:TRIGger:GLITch:QUALifier?
The :TRIGger:GLITch:QUALifier? query returns the glitch pulse width qualifier.
<operator><NL>

See Also

<operator> ::= {GRE | LESS | RANG}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:GLITch:SOURce" on page 941 · ":TRIGger:MODE" on page 912

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

939

31 :TRIGger Commands

:TRIGger:GLITch:RANGe

(see page 1164)

Command Syntax :TRIGger:GLITch:RANGe <less_than_time>[suffix],
<greater_than_time>[suffix]

<less_than_time> ::= (15 ns - 10 seconds) in NR3 format

<greater_than_time> ::= (10 ns - 9.99 seconds) in NR3 format

Query Syntax
Return Format See Also

[suffix] ::= {s | ms | us | ns | ps}
The :TRIGger:GLITch:RANGe command sets the pulse width duration for the selected :TRIGger:GLITch:SOURce. You can enter the parameters in any order -- the smaller value becomes the <greater_than_time> and the larger value becomes the <less_than_time>.
:TRIGger:GLITch:RANGe?
The :TRIGger:GLITch:RANGe? query returns the pulse width duration time for :TRIGger:GLITch:SOURce.
<less_than_time>,<greater_than_time><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:GLITch:SOURce" on page 941 · ":TRIGger:GLITch:QUALifier" on page 939 · ":TRIGger:MODE" on page 912

940

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:GLITch:SOURce

(see page 1164)

Command Syntax :TRIGger:GLITch:SOURce <source>

<source> ::= {DIGital<d> | CHANnel<n>}

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax Return Format
See Also
Example Code

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :TRIGger:GLITch:SOURce command selects the channel that produces the pulse width trigger.
:TRIGger:GLITch:SOURce?
The :TRIGger:GLITch:SOURce? query returns the current pulse width source. If all channels are off, the query returns "NONE".
<source><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":TRIGger:GLITch:LEVel" on page 937 · ":TRIGger:GLITch:POLarity" on page 938 · ":TRIGger:GLITch:QUALifier" on page 939 · ":TRIGger:GLITch:RANGe" on page 940 · "Example Code" on page 932

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

941

31 :TRIGger Commands

:TRIGger:OR Commands

Table 130 :TRIGger:OR Commands Summary

Command

Query

:TRIGger:OR <string> :TRIGger:OR? (see

(see page 943)

page 943)

Options and Query Returns
<string> ::= "nn...n" where n ::= {R | F | E | X}
R = rising edge, F = falling edge, E = either edge, X = don't care.
Each character in the string is for an analog or digital channel as shown on the front panel display.

942

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:OR

(see page 1164) Command Syntax :TRIGger:OR <string>
<string> ::= "nn...n" where n ::= {R | F | E | X}
R = rising edge, F = falling edge, E = either edge, X = don't care.
The :TRIGger:OR command specifies the edges to include in the OR'ed edge trigger. In the <string> parameter, each bit corresponds to a channel as described in the following table:

Oscilloscope Models 4 analog + 16 digital channels (mixed-signal)
2 analog + 16 digital channels (mixed-signal) 4 analog channels only 2 analog channels only

Value and Mask Bit Assignments Bits 0 through 15 - digital channels 0 through 15. Bits 16 through 19 - analog channels 4 through 1. Bits 0 through 15 - digital channels 0 through 15. Bits 16 and 17 - analog channels 2 and 1. Bits 0 through 3 - analog channels 4 through 1. Bits 0 and 1 - analog channels 2 and 1.

Query Syntax
Return Format See Also

:TRIGger:OR?
The :TRIGger:OR? query returns the current OR'ed edge trigger string.
<string><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

943

31 :TRIGger Commands

:TRIGger:PATTern Commands

Table 131 :TRIGger:PATTern Commands Summary

Command

Query

Options and Query Returns

:TRIGger:PATTern
<string>[,<edge_sourc
e>,<edge>] (see page 945)

:TRIGger:PATTern? (see page 946)

<string> ::= "nn...n" where n ::= {0 | 1 | X | R | F} when <base> = ASCii <string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $} when <base> = HEX
<edge_source> ::= {CHANnel<n> | NONE} for DSO models
<edge_source> ::= {CHANnel<n> | DIGital<d> | NONE} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<edge> ::= {POSitive | NEGative}

:TRIGger:PATTern:FORM :TRIGger:PATTern:FORM <base> ::= {ASCii | HEX}

at <base> (see

at? (see page 947)

page 947)

:TRIGger:PATTern:GREa
terthan
<greater_than_time>[s uffix] (see page 948)

:TRIGger:PATTern:GREa
terthan? (see page 948)

<greater_than_time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

:TRIGger:PATTern:LESS
than
<less_than_time>[suff ix] (see page 949)

:TRIGger:PATTern:LESS than? (see page 949)

<less_than_time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

:TRIGger:PATTern:QUAL :TRIGger:PATTern:QUAL <qualifier> ::= {ENTered |

ifier <qualifier>

ifier? (see page 950) GREaterthan | LESSthan | INRange

(see page 950)

| OUTRange | TIMeout}

:TRIGger:PATTern:RANG e <less_than_time>[suff ix], <greater_than_time>[s uffix] (see page 951)

:TRIGger:PATTern:RANG e? (see page 951)

<less_than_time> ::= 15 ns to 10 seconds in NR3 format
<greater_than_time> ::= 10 ns to 9.99 seconds in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

944

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:PATTern

(see page 1164) Command Syntax :TRIGger:PATTern <pattern>
<pattern> ::= <string>[,<edge_source>,<edge>]
<string> ::= "nn...n" where n ::= {0 | 1 | X | R | F} when <base> = ASCii
<string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $} when <base> = HEX
<edge_source> ::= {CHANnel<n> | NONE} for DSO models
<edge_source> ::= {CHANnel<n> | DIGital<d> | NONE} for MSO models
<n> ::= 1 to (# of analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
<edge> ::= {POSitive | NEGative}
The :TRIGger:PATTern command specifies the channel values to be used in the pattern trigger. In the <string> parameter, each bit corresponds to a channel as described in the following table:

Oscilloscope Models 4 analog + 16 digital channels (mixed-signal)
2 analog + 16 digital channels (mixed-signal) 4 analog channels only 2 analog channels only

Value and Mask Bit Assignments Bits 0 through 15 - digital channels 0 through 15. Bits 16 through 19 - analog channels 4 through 1. Bits 0 through 15 - digital channels 0 through 15. Bits 16 and 17 - analog channels 2 and 1. Bits 0 through 3 - analog channels 4 through 1. Bits 0 and 1 - analog channels 2 and 1.

The format of the <string> parameter depends on the :TRIGger:PATTern:FORMat command setting: · When the format is ASCii, the string looks just like the string you see on the
oscilloscope's front panel, made up of 0, 1, X (don't care), R (rising edge), and F (falling edge) characters. · When the format is HEX, the string begins with "0x" and contains hex digit characters or X (don't care for all four bits in the nibble).
With the hex format string, you can use the <edge_source> and <edge> parameters to specify an edge on one of the channels.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

945

31 :TRIGger Commands

NOTE

The optional <edge_source> and <edge> parameters should be sent together or not at all. The edge can be specified in the ASCII <string> parameter. If the edge source and edge parameters are used, they take precedence.

Query Syntax
Return Format See Also

You can only specify an edge on one channel. When an edge is specified, the :TRIGger:PATTern:QUALifier does not apply.
:TRIGger:PATTern?
The :TRIGger:PATTern? query returns the pattern string, edge source, and edge.
<string>,<edge_source>,<edge><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:PATTern:FORMat" on page 947 · ":TRIGger:PATTern:QUALifier" on page 950 · ":TRIGger:MODE" on page 912

946

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:PATTern:FORMat

(see page 1164)

Command Syntax :TRIGger:PATTern:FORMat <base>

<base> ::= {ASCii | HEX}
The :TRIGger:PATTern:FORMat command sets the entry (and query) number base used by the :TRIGger:PATTern command. The default <base> is ASCii.

Query Syntax Return Format

:TRIGger:PATTern:FORMat?
The :TRIGger:PATTern:FORMat? query returns the currently set number base for pattern trigger patterns.
<base><NL>

See Also

<base> ::= {ASC | HEX}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:PATTern" on page 945

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

947

31 :TRIGger Commands

:TRIGger:PATTern:GREaterthan

(see page 1164)

Command Syntax :TRIGger:PATTern:GREaterthan <greater_than_time>[<suffix>]

<greater_than_time> ::= minimum trigger duration in seconds in NR3 format

Query Syntax
Return Format See Also

<suffix> ::= {s | ms | us | ns | ps }
The :TRIGger:PATTern:GREaterthan command sets the minimum duration for the defined pattern when :TRIGger:PATTern:QUALifier is set to GREaterthan. The command also sets the timeout value when the :TRIGger:PATTern:QUALifier is set to TIMeout.
:TRIGger:PATTern:GREaterthan?
The :TRIGger:PATTern:GREaterthan? query returns the minimum duration time for the defined pattern.
<greater_than_time><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:PATTern" on page 945 · ":TRIGger:PATTern:QUALifier" on page 950 · ":TRIGger:MODE" on page 912

948

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:PATTern:LESSthan

(see page 1164)

Command Syntax :TRIGger:PATTern:LESSthan <less_than_time>[<suffix>]

<less_than_time> ::= maximum trigger duration in seconds in NR3 format

Query Syntax
Return Format See Also

<suffix> ::= {s | ms | us | ns | ps}
The :TRIGger:PATTern:LESSthan command sets the maximum duration for the defined pattern when :TRIGger:PATTern:QUALifier is set to LESSthan.
:TRIGger:PATTern:LESSthan?
The :TRIGger:PATTern:LESSthan? query returns the duration time for the defined pattern.
<less_than_time><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:PATTern" on page 945 · ":TRIGger:PATTern:QUALifier" on page 950 · ":TRIGger:MODE" on page 912

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

949

31 :TRIGger Commands

:TRIGger:PATTern:QUALifier

(see page 1164)

Command Syntax :TRIGger:PATTern:QUALifier <qualifier>

<qualifier> ::= {ENTered | GREaterthan | LESSthan | INRange | OUTRange | TIMeout}
The :TRIGger:PATTern:QUALifier command qualifies when the trigger occurs: · ENTered -- when the pattern is entered. · LESSthan -- when the pattern is present for less than a time value. · GREaterthan -- when the pattern is present for greater than a time value. The
trigger occurs when the pattern exits (not when the GREaterthan time value is exceeded). · TIMeout -- when the pattern is present for greater than a time value. In this case, the trigger occurs when the GREaterthan time value is exceeded (not when the pattern exits). · INRange -- when the pattern is present for a time within a range of values. · OUTRange -- when the pattern is present for a time outside of range of values.
Pattern durations are evaluated using a timer. The timer starts on the last edge that makes the pattern (logical AND) true. Except when the TIMeout qualifier is selected, the trigger occurs on the first edge that makes the pattern false, provided the time qualifier criteria has been met.
Set the GREaterthan qualifier value with the :TRIGger:PATTern:GREaterthan command.

Query Syntax
Return Format See Also

Set the LESSthan qualifier value with the :TRIGger:PATTern:LESSthan command. Set the INRange and OUTRange qualifier values with the :TRIGger:PATTern:RANGe command. Set the TIMeout qualifier value with the :TRIGger:PATTern:GREaterthan command.
:TRIGger:PATTern:QUALifier?
The :TRIGger:PATTern:QUALifier? query returns the trigger duration qualifier.
<qualifier><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:PATTern:GREaterthan" on page 948 · ":TRIGger:PATTern:LESSthan" on page 949 · ":TRIGger:PATTern:RANGe" on page 951

950

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:PATTern:RANGe

(see page 1164)

Command Syntax :TRIGger:PATTern:RANGe <less_than_time>[<suffix>],
<greater_than_time>[<suffix>]

<greater_than_time> ::= 10 ns to 9.99 seconds in NR3 format

<less_than_time> ::= 15 ns to 10 seconds in NR3 format

Query Syntax
Return Format See Also

<suffix> ::= {s | ms | us | ns | ps}
The :TRIGger:PATTern:RANGe command sets the duration for the defined pattern when the :TRIGger:PATTern:QUALifier command is set to INRange or OUTRange. You can enter the parameters in any order -- the smaller value becomes the <greater_than_time> and the larger value becomes the <less_than_time>.
:TRIGger:PATTern:RANGe?
The :TRIGger:PATTern:RANGe? query returns the duration time for the defined pattern.
<less_than_time>,<greater_than_time><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:PATTern" on page 945 · ":TRIGger:PATTern:QUALifier" on page 950 · ":TRIGger:MODE" on page 912

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

951

31 :TRIGger Commands

:TRIGger:RUNT Commands

Table 132 :TRIGger:RUNT Commands Summary

Command

Query

Options and Query Returns

:TRIGger:RUNT:POLarit :TRIGger:RUNT:POLarit <polarity> ::= {POSitive |

y <polarity> (see

y? (see page 953)

NEGative | EITHer}

page 953)

:TRIGger:RUNT:QUALifi :TRIGger:RUNT:QUALifi <qualifier> ::= {GREaterthan |

er <qualifier> (see er? (see page 954)

LESSthan | NONE}

page 954)

:TRIGger:RUNT:SOURce
<source> (see page 955)

:TRIGger:RUNT:SOURce? <source> ::= CHANnel<n>

(see page 955)

<n> ::= 1 to (# analog channels)

in NR1 format

:TRIGger:RUNT:TIME
<time>[suffix] (see page 956)

:TRIGger:RUNT:TIME? (see page 956)

<time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

952

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:RUNT:POLarity

(see page 1164)

Command Syntax :TRIGger:RUNT:POLarity <polarity>

<polarity> ::= {POSitive | NEGative | EITHer}
The :TRIGger:RUNT:POLarity command sets the polarity for the runt trigger: · POSitive -- positive runt pulses. · NEGative -- negative runt pulses. · EITHer -- either positive or negative runt pulses.

Query Syntax Return Format

:TRIGger:RUNT:POLarity?
The :TRIGger:RUNT:POLarity? query returns the runt trigger polarity.
<polarity><NL>

See Also

<polarity> ::= {POS | NEG | EITH}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":TRIGger:LEVel:HIGH" on page 910 · ":TRIGger:LEVel:LOW" on page 911 · ":TRIGger:RUNT:SOURce" on page 955

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

953

31 :TRIGger Commands

:TRIGger:RUNT:QUALifier

(see page 1164)

Command Syntax :TRIGger:RUNT:QUALifier <qualifier>

Query Syntax Return Format

<qualifier> ::= {GREaterthan | LESSthan | NONE}
The :TRIGger:RUNT:QUALifier command selects the qualifier used for specifying runt pulse widths: · GREaterthan -- triggers on runt pulses whose width is greater than the
:TRIGger:RUNT:TIME. · LESSthan -- triggers on runt pulses whose width is less than the
:TRIGger:RUNT:TIME. · NONE -- triggers on runt pulses of any width.
:TRIGger:RUNT:QUALifier?
The :TRIGger:RUNT:QUALifier? query returns the runt trigger qualifier setting.
<qualifier><NL>

See Also

<qualifier> ::= {GRE | LESS NONE}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":TRIGger:RUNT:TIME" on page 956

954

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:RUNT:SOURce

(see page 1164)

Command Syntax :TRIGger:RUNT:SOURce <source>

<source> ::= CHANnel<n>

Query Syntax

<n> ::= 1 to (# analog channels) in NR1 format
The :TRIGger:RUNT:SOURce command selects the channel used to produce the trigger.
:TRIGger:RUNT:SOURce?
The :TRIGger:RUNT:SOURce? query returns the current runt trigger source.

Return Format <source><NL>

See Also

<source> ::= CHAN<n>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:RUNT:POLarity" on page 953

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

955

31 :TRIGger Commands

:TRIGger:RUNT:TIME

(see page 1164)

Command Syntax :TRIGger:RUNT:TIME <time>[suffix]

<time> ::= floating-point number in NR3 format

[suffix] ::= {s | ms | us | ns | ps}
When triggering on runt pulses whose width is greater than or less than a certain value (see :TRIGger:RUNT:QUALifier), the :TRIGger:RUNT:TIME command specifies the time used with the qualifer.

Query Syntax Return Format

:TRIGger:RUNT:TIME?
The :TRIGger:RUNT:TIME? query returns the current runt pulse qualifier time setting.
<time><NL>

See Also

<time> ::= floating-point number in NR3 format
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:RUNT:QUALifier" on page 954

956

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:SHOLd Commands

Table 133 :TRIGger:SHOLd Commands Summary

Command

Query

Options and Query Returns

:TRIGger:SHOLd:SLOPe :TRIGger:SHOLd:SLOPe? <slope> ::= {NEGative | POSitive} <slope> (see page 958) (see page 958)

:TRIGger:SHOLd:SOURce
:CLOCk <source> (see page 959)

:TRIGger:SHOLd:SOURce :CLOCk? (see page 959)

<source> ::= {CHANnel<n> | DIGital<d>}
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:TRIGger:SHOLd:SOURce
:DATA <source> (see page 960)

:TRIGger:SHOLd:SOURce :DATA? (see page 960)

<source> ::= {CHANnel<n> | DIGital<d>}
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:TRIGger:SHOLd:TIME:H
OLD <time>[suffix] (see page 961)

:TRIGger:SHOLd:TIME:H OLD? (see page 961)

<time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

:TRIGger:SHOLd:TIME:S
ETup <time>[suffix] (see page 962)

:TRIGger:SHOLd:TIME:S ETup? (see page 962)

<time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

957

31 :TRIGger Commands

:TRIGger:SHOLd:SLOPe

(see page 1164)

Command Syntax :TRIGger:SHOLd:SLOPe <slope>

<slope> ::= {NEGative | POSitive}
The :TRIGger:SHOLd:SLOPe command specifies whether the rising edge or the falling edge of the clock signal is used.

Query Syntax Return Format

:TRIGger:SHOLd:SLOPe?
The :TRIGger:SHOLd:SLOPe? query returns the current rising or falling edge setting.
<slope><NL>

See Also

<slope> ::= {NEG | POS}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":TRIGger:SHOLd:SOURce:CLOCk" on page 959 · ":TRIGger:SHOLd:SOURce:DATA" on page 960

958

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:SHOLd:SOURce:CLOCk

(see page 1164)

Command Syntax :TRIGger:SHOLd:SOURce:CLOCk <source>

<source> ::= {CHANnel<n> | DIGital<d>}

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax Return Format

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :TRIGger:SHOLd:SOURce:CLOCk command selects the input channel probing the clock signal.
:TRIGger:SHOLd:SOURce:CLOCk?
The :TRIGger:SHOLd:SOURce:CLOCk? query returns the currently set clock signal source.
<source><NL>

See Also

<source> ::= {CHAN<n> | DIG<d>}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":TRIGger:SHOLd:SLOPe" on page 958

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

959

31 :TRIGger Commands

:TRIGger:SHOLd:SOURce:DATA

(see page 1164)

Command Syntax :TRIGger:SHOLd:SOURce:DATA <source>

<source> ::= {CHANnel<n> | DIGital<d>}

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax Return Format

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :TRIGger:SHOLd:SOURce:DATA command selects the input channel probing the data signal.
:TRIGger:SHOLd:SOURce:DATA?
The :TRIGger:SHOLd:SOURce:DATA? query returns the currently set data signal source.
<source><NL>

See Also

<source> ::= {CHAN<n> | DIG<d>}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":TRIGger:SHOLd:SLOPe" on page 958

960

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:SHOLd:TIME:HOLD

(see page 1164)

Command Syntax :TRIGger:SHOLd:TIME:HOLD <time>[suffix]

<time> ::= floating-point number in NR3 format

Query Syntax Return Format

[suffix] ::= {s | ms | us | ns | ps}
The :TRIGger:SHOLd:TIME:HOLD command sets the hold time.
:TRIGger:SHOLd:TIME:HOLD?
The :TRIGger:SHOLd:TIME:HOLD? query returns the currently specified hold time.
<time><NL>

<time> ::= floating-point number in NR3 format
See Also · "Introduction to :TRIGger Commands" on page 903

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

961

31 :TRIGger Commands

:TRIGger:SHOLd:TIME:SETup

(see page 1164)

Command Syntax :TRIGger:SHOLd:TIME:SETup <time>[suffix]

<time> ::= floating-point number in NR3 format

Query Syntax

[suffix] ::= {s | ms | us | ns | ps}
The :TRIGger:SHOLd:TIME:SETup command sets the setup time.
:TRIGger:SHOLd:TIME:SETup?
The :TRIGger:SHOLd:TIME:SETup? query returns the currently specified setup time.

Return Format <time><NL>

<time> ::= floating-point number in NR3 format
See Also · "Introduction to :TRIGger Commands" on page 903

962

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:TRANsition Commands

The :TRIGger:TRANsition comamnds set the rise/fall time trigger options.

Table 134 :TRIGger:TRANsition Commands Summary

Command

Query

Options and Query Returns

:TRIGger:TRANsition:Q :TRIGger:TRANsition:Q <qualifier> ::= {GREaterthan |

UALifier <qualifier> UALifier? (see

(see page 964)

page 964)

LESSthan}

:TRIGger:TRANsition:S :TRIGger:TRANsition:S <slope> ::= {NEGative | POSitive}

LOPe <slope> (see

LOPe? (see page 965)

page 965)

:TRIGger:TRANsition:S :TRIGger:TRANsition:S <source> ::= CHANnel<n>

OURce <source> (see page 966)

OURce? (see page 966)

<n> ::= 1 to (# analog channels) in NR1 format

:TRIGger:TRANsition:T
IME <time>[suffix] (see page 967)

:TRIGger:TRANsition:T IME? (see page 967)

<time> ::= floating-point number in NR3 format
[suffix] ::= {s | ms | us | ns | ps}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

963

31 :TRIGger Commands

:TRIGger:TRANsition:QUALifier

(see page 1164)

Command Syntax :TRIGger:TRANsition:QUALifier <qualifier>

Query Syntax Return Format

<qualifier> ::= {GREaterthan | LESSthan}
The :TRIGger:TRANsition:QUALifier command specifies whether you are looking for rise/fall times greater than or less than a certain time value. The time value is set using the :TRIGger:TRANsition:TIME command.
:TRIGger:TRANsition:QUALifier?
The :TRIGger:TRANsition:QUALifier? query returns the current rise/fall time trigger qualifier setting.
<qualifier><NL>

See Also

<qualifier> ::= {GRE | LESS}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:TRANsition:TIME" on page 967 · ":TRIGger:MODE" on page 912

964

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:TRANsition:SLOPe

(see page 1164)

Command Syntax :TRIGger:TRANsition:SLOPe <slope>

<slope> ::= {NEGative | POSitive}
The :TRIGger:TRANsition:SLOPe command specifies a POSitive rising edge or a NEGative falling edge.

Query Syntax Return Format

:TRIGger:TRANsition:SLOPe?
The :TRIGger:TRANsition:SLOPe? query returns the current rise/fall time trigger slope setting.
<slope><NL>

See Also

<slope> ::= {NEG | POS}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":TRIGger:TRANsition:SOURce" on page 966

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

965

31 :TRIGger Commands

:TRIGger:TRANsition:SOURce

(see page 1164)

Command Syntax :TRIGger:TRANsition:SOURce <source>

<source> ::= CHANnel<n>

Query Syntax Return Format

<n> ::= 1 to (# analog channels) in NR1 format
The :TRIGger:TRANsition:SOURce command selects the channel used to produce the trigger.
:TRIGger:TRANsition:SOURce?
The :TRIGger:TRANsition:SOURce? query returns the current transition trigger source.
<source><NL>

See Also

<source> ::= CHAN<n>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":TRIGger:TRANsition:SLOPe" on page 965

966

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:TRANsition:TIME

(see page 1164)

Command Syntax :TRIGger:TRANsition:TIME <time>[suffix]

<time> ::= floating-point number in NR3 format

[suffix] ::= {s | ms | us | ns | ps}
The :TRIGger:TRANsition:TIME command sets the time value for rise/fall time triggers. You also use the :TRIGger:TRANsition:QUALifier command to specify whether you are triggering on times greater than or less than this time value.

Query Syntax Return Format

:TRIGger:TRANsition:TIME?
The :TRIGger:TRANsition:TIME? query returns the current rise/fall time trigger time value.
<time><NL>

See Also

<time> ::= floating-point number in NR3 format
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:TRANsition:QUALifier" on page 964

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

967

31 :TRIGger Commands

:TRIGger:TV Commands

Table 135 :TRIGger:TV Commands Summary

Command

Query

Options and Query Returns

:TRIGger:TV:LINE
<line number> (see page 969)

:TRIGger:TV:LINE? (see page 969)

<line number> ::= integer in NR1 format

:TRIGger:TV:MODE <tv :TRIGger:TV:MODE?

mode> (see page 970)

(see page 970)

<tv mode> ::= {FIEld1 | FIEld2 | AFIelds | ALINes | LINE | LFIeld1 | LFIeld2 | LALTernate}

:TRIGger:TV:POLarity
<polarity> (see page 971)

:TRIGger:TV:POLarity? <polarity> ::= {POSitive |

(see page 971)

NEGative}

:TRIGger:TV:SOURce
<source> (see page 972)

:TRIGger:TV:SOURce? (see page 972)

<source> ::= {CHANnel<n>}
<n> ::= 1 to (# analog channels) in NR1 format

:TRIGger:TV:STANdard
<standard> (see page 973)

:TRIGger:TV:STANdard? (see page 973)

<standard> ::= {NTSC | PAL | PALM | SECam}
<standard> ::= {GENeric | {P480L60HZ | P480} | {P720L60HZ | P720} | {P1080L24HZ | P1080} | P1080L25HZ | P1080L50HZ | P1080L60HZ | {I1080L50HZ | I1080} | I1080L60HZ} with extended video triggering license

:TRIGger:TV:UDTV:ENUM :TRIGger:TV:UDTV:ENUM <count> ::= edge number in NR1

ber <count> (see

ber? (see page 974)

format

page 974)

:TRIGger:TV:UDTV:HSYN :TRIGger:TV:UDTV:HSYN {0 | 1} c {{0 | OFF} | {1 | c? (see page 975) ON}} (see page 975)

:TRIGger:TV:UDTV:HTIM :TRIGger:TV:UDTV:HTIM <time> ::= seconds in NR3 format

e <time> (see

e? (see page 976)

page 976)

:TRIGger:TV:UDTV:PGTH :TRIGger:TV:UDTV:PGTH <min_time> ::= seconds in NR3

an <min_time> (see

an? (see page 977)

format

page 977)

968

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:TV:LINE

(see page 1164) Command Syntax :TRIGger:TV:LINE <line_number>
<line_number> ::= integer in NR1 format
The :TRIGger:TV:LINE command allows triggering on a specific line of video. The line number limits vary with the standard and mode, as shown in the following table.

Table 136 TV Trigger Line Number Limits

TV Standard
NTSC PAL PAL-M SECAM GENERIC P480L60HZ P720L60HZ P1080L24HZ P1080L25HZ P1080L50HZ P1080L60HZ I1080L50HZ I1080L60HZ

Mode LINE
1 to 525 1 to 750 1 to 1125 1 to 1125 1 to 1125 1 to 1125 1 to 1125 1 to 1125

LFIeld1 1 to 263 1 to 313 1 to 263 1 to 313 1 to 1024

LFIeld2 1 to 262 314 to 625 264 to 525 314 to 625 1 to 1024

LALTernate 1 to 262 1 to 312 1 to 262 1 to 312

VERTical 1 to 1024

Query Syntax Return Format
See Also

:TRIGger:TV:LINE?
The :TRIGger:TV:LINE? query returns the current TV trigger line number setting.
<line_number><NL>
<line_number>::= integer in NR1 format
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:TV:STANdard" on page 973 · ":TRIGger:TV:MODE" on page 970

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

969

31 :TRIGger Commands

:TRIGger:TV:MODE

(see page 1164) Command Syntax :TRIGger:TV:MODE <mode>
<mode> ::= {FIEld1 | FIEld2 | AFIelds | ALINes | LINE | LFIeld1 | LFIeld2 | LALTernate}
The :TRIGger:TV:MODE command selects the TV trigger mode and field. The LALTernate parameter is not available when :TRIGger:TV:STANdard is GENeric. Old forms for <mode> are accepted:

<mode> FIEld1 FIEld2 AFIelds ALINes LFIeld1 LFIeld2 LALTernate

Old Forms Accepted F1 F2 ALLFields, ALLFLDS ALLLines LINEF1, LINEFIELD1 LINEF2, LINEFIELD2 LINEAlt

Query Syntax :TRIGger:TV:MODE? The :TRIGger:TV:MODE? query returns the TV trigger mode.

Return Format <value><NL>

See Also

<value> ::= {FIE1 | FIE2 | AFI | ALIN | LINE | LFI1 | LFI2 | LALT}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:TV:STANdard" on page 973 · ":TRIGger:MODE" on page 912

970

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:TV:POLarity

(see page 1164)

Command Syntax :TRIGger:TV:POLarity <polarity>

<polarity> ::= {POSitive | NEGative}
The :TRIGger:TV:POLarity command sets the polarity for the TV trigger.

Query Syntax Return Format

:TRIGger:TV:POLarity?
The :TRIGger:TV:POLarity? query returns the TV trigger polarity.
<polarity><NL>

See Also

<polarity> ::= {POS | NEG}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":TRIGger:TV:SOURce" on page 972

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

971

31 :TRIGger Commands

:TRIGger:TV:SOURce

(see page 1164)

Command Syntax :TRIGger:TV:SOURce <source>

<source> ::= {CHANnel<n>}

Query Syntax

<n> ::= 1 to (# analog channels) in NR1 format
The :TRIGger:TV:SOURce command selects the channel used to produce the trigger.
:TRIGger:TV:SOURce?
The :TRIGger:TV:SOURce? query returns the current TV trigger source.

Return Format <source><NL>

See Also

<source> ::= {CHAN<n>}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":TRIGger:TV:POLarity" on page 971

Example Code · "Example Code" on page 932

972

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:TV:STANdard

(see page 1164)

Command Syntax :TRIGger:TV:STANdard <standard>

Query Syntax Return Format

<standard> ::= {GENeric | NTSC | PALM | PAL | SECam | {P480L60HZ | P480} | {P720L60HZ | P720} | {P1080L24HZ | P1080} | P1080L25HZ | P1080L50HZ | P1080L60HZ | {I1080L50HZ | I1080} | I1080L60HZ}
The :TRIGger:TV:STANdard command selects the video standard: · NTSC · PAL · PAL-M · SECAM
With an extended Video triggering license, the oscilloscope additionally supports these standards: · Generic -- GENeric mode is non-interlaced. · EDTV 480p/60 · HDTV 720p/60 · HDTV 1080p/24 · HDTV 1080p/25 · HDTV 1080i/50 · HDTV 1080i/60
:TRIGger:TV:STANdard?
The :TRIGger:TV:STANdard? query returns the current TV trigger standard setting.
<standard><NL>

<standard> ::= {GEN | NTSC | PALM | PAL | SEC | P480L60HZ | P760L60HZ | P1080L24HZ | P1080L25HZ | P1080L50HZ | P1080L60HZ | I1080L50HZ | I1080L60HZ}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

973

31 :TRIGger Commands

:TRIGger:TV:UDTV:ENUMber

(see page 1164)

Command Syntax :TRIGger:TV:UDTV:ENUMber <count>

<count> ::= edge number in NR1 format
The :TRIGger:TV:UDTV:ENUMber command specifies the Generic video trigger's Nth edge to trigger on after synchronizing with the vertical sync.

Query Syntax Return Format

This command is available with the DSOX3VID extended Video triggering license.
:TRIGger:TV:UDTV:ENUMber?
The :TRIGger:TV:UDTV:ENUMber query returns the edge count setting.
<count><NL>

See Also

<count> ::= edge number in NR1 format
· ":TRIGger:TV:STANdard" on page 973 · ":TRIGger:TV:UDTV:PGTHan" on page 977 · ":TRIGger:TV:UDTV:HSYNc" on page 975

974

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:TV:UDTV:HSYNc

Command Syntax
Query Syntax Return Format
See Also

(see page 1164)
:TRIGger:TV:UDTV:HSYNc {{0 | OFF} | {1 | ON}}
The :TRIGger:TV:UDTV:HSYNc command enables or disables the horizontal sync control in the Generic video trigger. For interleaved video, enabling the HSYNc control and setting the HTIMe adjustment to the sync time of the probed video signal allows the ENUMber function to count only lines and not double count during equalization. Additionally, the Field Holdoff can be adjusted so that the oscilloscope triggers once per frame. Similarly, for progressive video with a tri-level sync, enabling the HSYNc control and setting the HTIMe adjustment to the sync time of the probed video signal allows the ENUMber function to count only lines and not double count during vertical sync. This command is available with the DSOX3VID extended Video triggering license.
:TRIGger:TV:UDTV:HSYNc?
The :TRIGger:TV:UDTV:HSYNc query returns the horizontal sync control setting.
{0 | 1}
· ":TRIGger:TV:STANdard" on page 973 · ":TRIGger:TV:UDTV:HTIMe" on page 976 · ":TRIGger:TV:UDTV:ENUMber" on page 974 · ":TRIGger:TV:UDTV:PGTHan" on page 977

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

975

31 :TRIGger Commands

:TRIGger:TV:UDTV:HTIMe

(see page 1164)

Command Syntax :TRIGger:TV:UDTV:HTIMe <time>

Query Syntax Return Format

<time> ::= seconds in NR3 format
When the Generic video trigger's horizontal sync control is enabled, the :TRIGger:TV:UDTV:HTIMe command sets the minimum time the horizontal sync pulse must be present to be considered valid. This command is available with the DSOX3VID extended Video triggering license.
:TRIGger:TV:UDTV:HTIMe?
The :TRIGger:TV:UDTV:HTIMe query returns the horizontal sync time setting.
<time><NL>

See Also

<time> ::= seconds in NR3 format
· ":TRIGger:TV:STANdard" on page 973 · ":TRIGger:TV:UDTV:HSYNc" on page 975

976

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:TV:UDTV:PGTHan

(see page 1164)

Command Syntax :TRIGger:TV:UDTV:PGTHan <min_time>

Query Syntax Return Format

<min_time> ::= seconds in NR3 format
The :TRIGger:TV:UDTV:PGTHan command specifies the "greater than the sync pulse width" time in the Generic video trigger. This setting allows oscilloscope synchronization to the vertical sync. This command is available with the DSOX3VID extended Video triggering license.
:TRIGger:TV:UDTV:PGTHan?
The :TRIGger:TV:UDTV:PGTHan query returns the "greater than the sync pulse width" time setting.
<min_time><NL>

See Also

<min_time> ::= seconds in NR3 format
· ":TRIGger:TV:STANdard" on page 973 · ":TRIGger:TV:UDTV:ENUMber" on page 974 · ":TRIGger:TV:UDTV:HSYNc" on page 975

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

977

31 :TRIGger Commands

:TRIGger:USB Commands

Table 137 :TRIGger:USB Commands Summary

Command

Query

Options and Query Returns

:TRIGger:USB:SOURce:D
MINus <source> (see page 979)

:TRIGger:USB:SOURce:D MINus? (see page 979)

<source> ::= {CHANnel<n> | EXTernal} for the DSO models
<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:TRIGger:USB:SOURce:D
PLus <source> (see page 980)

:TRIGger:USB:SOURce:D PLus? (see page 980)

<source> ::= {CHANnel<n> | EXTernal} for the DSO models
<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format

:TRIGger:USB:SPEed

:TRIGger:USB:SPEed?

<value> (see page 981) (see page 981)

<value> ::= {LOW | FULL}

:TRIGger:USB:TRIGger :TRIGger:USB:TRIGger? <value> ::= {SOP | EOP |

<value> (see page 982) (see page 982)

ENTersuspend | EXITsuspend |

RESet}

978

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:USB:SOURce:DMINus

(see page 1164)

Command Syntax :TRIGger:USB:SOURce:DMINus <source>

<source> ::= {CHANnel<n> | EXTernal} for the DSO models

<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax
Return Format See Also

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :TRIGger:USB:SOURce:DMINus command sets the source for the USB Dsignal.
:TRIGger:USB:SOURce:DMINus?
The :TRIGger:USB:SOURce:DMINus? query returns the current source for the USB D- signal.
<source><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":TRIGger:USB:SOURce:DPLus" on page 980 · ":TRIGger:USB:TRIGger" on page 982

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

979

31 :TRIGger Commands

:TRIGger:USB:SOURce:DPLus

(see page 1164)

Command Syntax :TRIGger:USB:SOURce:DPLus <source>

<source> ::= {CHANnel<n> | EXTernal} for the DSO models

<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax
Return Format See Also

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :TRIGger:USB:SOURce:DPLus command sets the source for the USB D+ signal.
:TRIGger:USB:SOURce:DPLus?
The :TRIGger:USB:SOURce:DPLus? query returns the current source for the USB D+ signal.
<source><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":TRIGger:USB:SOURce:DMINus" on page 979 · ":TRIGger:USB:TRIGger" on page 982

980

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:TRIGger Commands 31

:TRIGger:USB:SPEed

(see page 1164)

Command Syntax :TRIGger:USB:SPEed <value>

<value> ::= {LOW | FULL}
The :TRIGger:USB:SPEed command sets the expected USB signal speed to be Low Speed (1.5 Mb/s) or Full Speed (12 Mb/s).

Query Syntax
Return Format See Also

:TRIGger:USB:SPEed?
The :TRIGger:USB:SPEed? query returns the current speed value for the USB signal.
<value><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":TRIGger:USB:SOURce:DMINus" on page 979 · ":TRIGger:USB:SOURce:DPLus" on page 980 · ":TRIGger:USB:TRIGger" on page 982

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

981

31 :TRIGger Commands

:TRIGger:USB:TRIGger

(see page 1164)

Command Syntax :TRIGger:USB:TRIGger <value>

<value> ::= {SOP | EOP | ENTersuspend | EXITsuspend | RESet}
The :TRIGger:USB:TRIGger command sets where the USB trigger will occur: · SOP -- Start of packet. · EOP -- End of packet. · ENTersuspend -- Enter suspend state. · EXITsuspend -- Exit suspend state. · RESet -- Reset complete.

Query Syntax Return Format

:TRIGger:USB:TRIGger?
The :TRIGger:USB:TRIGger? query returns the current USB trigger value.
<value><NL>

See Also

<value> ::= {SOP | EOP | ENTersuspend | EXITsuspend | RESet}
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":TRIGger:USB:SPEed" on page 981

982

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
32 :WAVeform Commands

Provide access to waveform data. See "Introduction to :WAVeform Commands" on page 985.

Table 138 :WAVeform Commands Summary

Command

Query

Options and Query Returns

:WAVeform:BYTeorder :WAVeform:BYTeorder? <value> ::= {LSBFirst | MSBFirst} <value> (see page 991) (see page 991)

n/a

:WAVeform:COUNt? (see <count> ::= an integer from 1 to

page 992)

65536 in NR1 format

n/a

:WAVeform:DATA? (see <binary block length bytes>,

page 993)

<binary data>

For example, to transmit 1000 bytes of data, the syntax would be: #800001000<1000 bytes of data><NL>

8 is the number of digits that follow

00001000 is the number of bytes to be transmitted

<1000 bytes of data> is the actual data

:WAVeform:FORMat

:WAVeform:FORMat?

<value> (see page 995) (see page 995)

<value> ::= {WORD | BYTE | ASCII}

:WAVeform:POINts
<# points> (see page 996)

:WAVeform:POINts? (see page 996)

<# points> ::= {100 | 250 | 500 | 1000 | <points_mode>} if waveform points mode is NORMal
<# points> ::= {100 | 250 | 500 | 1000 | 2000 ... 8000000 in 1-2-5 sequence | <points_mode>} if waveform points mode is MAXimum or RAW
<points_mode> ::= {NORMal | MAXimum | RAW}

983

32 :WAVeform Commands

Table 138 :WAVeform Commands Summary (continued)

Command

Query

Options and Query Returns

:WAVeform:POINts:MODE :WAVeform:POINts:MODE <points_mode> ::= {NORMal |

<points_mode> (see

? (see page 999)

MAXimum | RAW}

page 998)

n/a

:WAVeform:PREamble? <preamble_block> ::= <format

(see page 1000)

NR1>, <type NR1>,<points

NR1>,<count NR1>, <xincrement

NR3>, <xorigin NR3>, <xreference

NR1>,<yincrement NR3>, <yorigin

NR3>, <yreference NR1>

<format> ::= an integer in NR1 format:

· 0 for BYTE format · 1 for WORD format · 2 for ASCii format
<type> ::= an integer in NR1 format:

· 0 for NORMal type · 1 for PEAK detect type · 3 for AVERage type · 4 for HRESolution type
<count> ::= Average count, or 1 if PEAK detect type or NORMal; an integer in NR1 format

n/a

:WAVeform:SEGMented:C <count> ::= an integer from 2 to

OUNt? (see page 1003) 1000 in NR1 format (with Option

SGM)

n/a

:WAVeform:SEGMented:T <time_tag> ::= in NR3 format

TAG? (see page 1004)

(with Option SGM)

:WAVeform:SOURce
<source> (see page 1005)

:WAVeform:SOURce? (see page 1005)

<source> ::= {CHANnel<n> | FUNCtion | MATH | SBUS{1 | 2}} for DSO models
<source> ::= {CHANnel<n> | POD{1 | 2} | BUS{1 | 2} | FUNCtion | MATH | SBUS{1 | 2}} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format

:WAVeform:SOURce:SUBS :WAVeform:SOURce:SUBS <subsource> ::= {{SUB0 | RX |

ource <subsource>

ource? (see page 1009) MOSI} | {SUB1 | TX | MISO}}

(see page 1009)

n/a

:WAVeform:TYPE? (see <return_mode> ::= {NORM | PEAK |

page 1010)

AVER | HRES}

984

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WAVeform Commands 32

Table 138 :WAVeform Commands Summary (continued)

Command

Query

Options and Query Returns

:WAVeform:UNSigned
{{0 | OFF} | {1 | ON}} (see page 1011)

:WAVeform:UNSigned? (see page 1011)

{0 | 1}

:WAVeform:VIEW <view> :WAVeform:VIEW? (see <view> ::= {MAIN}

(see page 1012)

page 1012)

n/a

:WAVeform:XINCrement? <return_value> ::= x-increment

(see page 1013)

in the current preamble in NR3

format

n/a

:WAVeform:XORigin?

<return_value> ::= x-origin

(see page 1014)

value in the current preamble in

NR3 format

n/a

:WAVeform:XREFerence? <return_value> ::= 0

(see page 1015)

(x-reference value in the current

preamble in NR1 format)

n/a

:WAVeform:YINCrement? <return_value> ::= y-increment

(see page 1016)

value in the current preamble in

NR3 format

n/a

:WAVeform:YORigin?

<return_value> ::= y-origin in

(see page 1017)

the current preamble in NR3

format

n/a

:WAVeform:YREFerence? <return_value> ::= y-reference

(see page 1018)

value in the current preamble in

NR1 format

Introduction to :WAVeform Commands

The WAVeform subsystem is used to transfer data to a controller from the oscilloscope waveform memories. The queries in this subsystem will only operate when the channel selected by :WAVeform:SOURce is on.

Waveform Data and Preamble The waveform record is actually contained in two portions: the preamble and waveform data. The waveform record must be read from the oscilloscope by the controller using two separate commands, :WAVeform:DATA (see page 993) and :WAVeform:PREamble (see page 1000). The waveform data is the actual data acquired for each point in the specified source. The preamble contains the information for interpreting the waveform data, which includes the number of points acquired, the format of acquired data, and the type of acquired data. The preamble also contains the X and Y increments, origins, and references for the acquired data, so that word and byte data can be translated to time and voltage values.

Data Acquisition Types

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

985

32 :WAVeform Commands

There are four types of waveform acquisitions that can be selected for analog channels with the :ACQuire:TYPE command (see page 245): NORMal, AVERage, PEAK, and HRESolution. Digital channels are always acquired using NORMal. When the data is acquired using the :DIGitize command (see page 205) or :RUN command (see page 225), the data is placed in the channel buffer of the specified source. Once you have acquired data with the :DIGitize command, the instrument is stopped. If the instrument is restarted (via the programming interface or the front panel), or if any instrument setting is changed, the data acquired with the :DIGitize command may be overwritten.You should first acquire the data with the :DIGitize command, then immediately read the data with the :WAVeform:DATA? query (see page 993) before changing any instrument setup. A waveform record consists of either all of the acquired points or a subset of the acquired points. The number of points acquired may be queried using :ACQuire:POINts? (see page 238). Helpful Hints: The number of points transferred to the computer is controlled using the :WAVeform:POINts command (see page 996). If :WAVeform:POINts MAXimum is specified and the instrument is not running (stopped), all of the points that are displayed are transferred. This can be as many as 4,000,000 in some operating modes or as many as 8,000,000 for a digital channel on the mixed signal oscilloscope. Fewer points may be specified to speed data transfers and minimize controller analysis time. The :WAVeform:POINts may be varied even after data on a channel is acquired. However, this decimation may result in lost pulses and transitions. The number of points selected for transfer using :WAVeform:POINts must be an even divisor of 1,000 or be set to MAXimum. :WAVeform:POINts determines the increment between time buckets that will be transferred. If POINts = MAXimum, the data cannot be decimated. For example: · :WAVeform:POINts 1000 -- returns time buckets 0, 1, 2, 3, 4 ,.., 999. · :WAVeform:POINts 500 -- returns time buckets 0, 2, 4, 6, 8 ,.., 998. · :WAVeform:POINts 250 -- returns time buckets 0, 4, 8, 12, 16 ,.., 996. · :WAVeform:POINts 100 -- returns time buckets 0, 10, 20, 30, 40 ,.., 990.
Analog Channel Data

NORMal Data Normal data consists of the last data point (hit) in each time bucket. This data is transmitted over the programming interface in a linear fashion starting with time bucket 0 and going through time bucket n - 1, where n is the number returned by the :WAVeform:POINts? query (see page 996). Only the magnitude values of each data point are transmitted. The first voltage value corresponds to the first time bucket on the left side of the screen and the last value corresponds to the

986

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WAVeform Commands 32

next-to-last time bucket on the right side of the screen. Time buckets without data return 0. The time values for each data point correspond to the position of the data point in the data array. These time values are not transmitted. AVERage Data AVERage data consists of the average of the first n hits in a time bucket, where n is the value returned by the :ACQuire:COUNt query (see page 236). Time buckets that have fewer than n hits return the average of the data they do have. If a time bucket does not have any data in it, it returns 0. This data is transmitted over the interface linearly, starting with time bucket 0 and proceeding through time bucket n-1, where n is the number returned by the :WAVeform:POINts? query (see page 996). The first value corresponds to a point at the left side of the screen and the last value corresponds to one point away from the right side of the screen. The maximum number of points that can be returned in average mode is 1000 unless ACQuire:COUNt has been set to 1. PEAK Data Peak detect display mode is used to detect glitches for time base settings of 500 us/div and slower. In this mode, the oscilloscope can sample more data than it can store and display. So, when peak detect is turned on, the oscilloscope scans through the extra data, picks up the minimum and maximum for each time bucket, then stores the data in an array. Each time bucket contains two data sample. The array is transmitted over the interface bus linearly, starting with time bucket 0 proceeding through time bucket n-1, where n is the number returned by the :WAVeform:POINts? query (see page 996). In each time bucket, two values are transmitted, first the minimum, followed by the maximum. The first pair of values corresponds to the time bucket at the leftmost side of the screen. The last pair of values corresponds to the time bucket at the far right side of the screen. In :ACQuire:TYPE PEAK mode (see page 245), the value returned by the :WAVeform:XINCrement query (see page 1013) should be doubled to find the time difference between the min-max pairs. HRESolution Data The high resolution (smoothing) mode is used to reduce noise at slower sweep speeds where the digitizer samples faster than needed to fill memory for the displayed time range. Data Conversion Word or byte data sent from the oscilloscope must be scaled for useful interpretation. The values used to interpret the data are the X and Y references, X and Y origins, and X and Y increments. These values are read from the waveform preamble. Each channel has its own waveform preamble. In converting a data value to a voltage value, the following formula is used:
voltage = [(data value - yreference) * yincrement] + yorigin

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

987

32 :WAVeform Commands
If the :WAVeform:FORMat data format is ASCii (see page 995), the data values are converted internally and sent as floating point values separated by commas. In converting a data value to time, the time value of a data point can be determined by the position of the data point. For example, the fourth data point sent with :WAVeform:XORigin = 16 ns, :WAVeform:XREFerence = 0, and :WAVeform:XINCrement = 2 ns, can be calculated using the following formula:
time = [(data point number - xreference) * xincrement] + xorigin This would result in the following calculation for time bucket 3:
time = [(3 - 0) * 2 ns] + 16 ns = 22 ns In :ACQuire:TYPE PEAK mode (see page 245), because data is acquired in max-min pairs, modify the previous time formula to the following:
time=[(data pair number - xreference) * xincrement * 2] + xorigin Data Format for Transfer There are three formats for transferring waveform data over the interface: BYTE, WORD and ASCii (see ":WAVeform:FORMat" on page 995). BYTE, WORD and ASCii formatted waveform records are transmitted using the arbitrary block program data format specified in IEEE 488.2. When you use the block data format, the ASCII character string "#8<DD...D>" is sent prior to sending the actual data. The 8 indicates how many Ds follow. The Ds are ASCII numbers that indicate how many data bytes follow. For example, if 1000 points will be transferred, and the WORD format was specified, the block header "#800001000" would be sent. The 8 indicates that eight length bytes follow, and 00001000 indicates that 1000 binary data bytes follow. Use the :WAVeform:UNSigned command (see page 1011) to control whether data values are sent as unsigned or signed integers. This command can be used to match the instrument's internal data type to the data type used by the programming language. This command has no effect if the data format is ASCii. Data Format for Transfer - ASCii format
The ASCii format (see ":WAVeform:FORMat" on page 995) provides access to the waveform data as real Y-axis values without using Y origin, Y reference, and Y increment to convert the binary data. Values are transferred as ASCii digits in floating point format separated by commas. In ASCii format, holes are represented by the value 9.9e+37. The setting of :WAVeform:BYTeorder (see page 991) and :WAVeform:UNSigned (see page 1011) have no effect when the format is ASCii. Data Format for Transfer - WORD format

988

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WAVeform Commands 32

WORD format (see ":WAVeform:FORMat" on page 995) provides 16-bit access to the waveform data. In the WORD format, the number of data bytes is twice the number of data points. The number of data points is the value returned by the :WAVeform:POINts? query (see page 996). If the data intrinsically has less than 16 bits of resolution, the data is left-shifted to provide 16 bits of resolution and the least significant bits are set to 0. Currently, the greatest intrinsic resolution of any data is 12 bits, so at least the lowest 4 bits of data will be 0. If there is a hole in the data, the hole is represented by a 16 bit value equal to 0. Use :WAVeform:BYTeorder (see page 991) to determine if the least significant byte or most significant byte is to be transferred first. The :BYTeorder command can be used to alter the transmit sequence to match the storage sequence of an integer in the programming language being used.
Data Format for Transfer - BYTE format The BYTE format (see ":WAVeform:FORMat" on page 995 ) allows 8-bit access to the waveform data. If the data intrinsically has more than 8 bits of resolution (averaged data), the data is right-shifted (truncated) to fit into 8 bits. If there is a hole in the data, the hole is represented by a value of 0. The BYTE-formatted data transfers over the programming interface faster than ASCii or WORD-formatted data, because in ASCii format, as many as 13 bytes per point are transferred, in BYTE format one byte per point is transferred, and in WORD format two bytes per point are transferred. The :WAVeform:BYTeorder command (see page 991) has no effect when the data format is BYTE.
Digital Channel Data (MSO models only) The waveform record for digital channels is similar to that of analog channels. The main difference is that the data points represent either DIGital0,..,7 (POD1), DIGital8,..,15 (POD2), or any grouping of digital channels (BUS1 or BUS2). For digital channels, :WAVeform:UNSigned (see page 1011) must be set to ON. Digital Channel POD Data Format Data for digital channels is only available in groups of 8 bits (Pod1 = D0 - D7, Pod2 = D8 - D15). The bytes are organized as:

:WAVeform:SOURce POD1 POD2

Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

D7

D6

D5

D4

D3

D2

D1

D0

D15 D14 D13 D12 D11 D10 D9

D8

If the :WAVeform:FORMat is WORD (see page 995) is WORD, every other data byte will be 0. The setting of :WAVeform:BYTeorder (see page 991) controls which byte is 0.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

989

32 :WAVeform Commands
If a digital channel is not displayed, its bit value in the pod data byte is not defined. Digital Channel BUS Data Format Digital channel BUS definitions can include any or all of the digital channels. Therefore, data is always returned as 16-bit values. :BUS commands (see page 247) are used to select the digital channels for a bus. Reporting the Setup The following is a sample response from the :WAVeform? query. In this case, the query was issued following a *RST command.
:WAV:UNS 1;VIEW MAIN;BYT MSBF;FORM BYTE;POIN +1000;SOUR CHAN1;SOUR:SUBS NONE

990

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WAVeform Commands 32

:WAVeform:BYTeorder

(see page 1164)

Command Syntax :WAVeform:BYTeorder <value>

<value> ::= {LSBFirst | MSBFirst}
The :WAVeform:BYTeorder command sets the output sequence of the WORD data. · MSBFirst -- sets the most significant byte to be transmitted first. · LSBFirst -- sets the least significant byte to be transmitted first.

Query Syntax Return Format

This command affects the transmitting sequence only when :WAVeform:FORMat WORD is selected. The default setting is MSBFirst.
:WAVeform:BYTeorder?
The :WAVeform:BYTeorder query returns the current output sequence.
<value><NL>

See Also Example Code

<value> ::= {LSBF | MSBF}
· "Introduction to :WAVeform Commands" on page 985 · ":WAVeform:DATA" on page 993 · ":WAVeform:FORMat" on page 995 · ":WAVeform:PREamble" on page 1000
· "Example Code" on page 1006 · "Example Code" on page 1001

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

991

32 :WAVeform Commands

:WAVeform:COUNt

(see page 1164)

Query Syntax Return Format

:WAVeform:COUNt?
The :WAVeform:COUNT? query returns the count used to acquire the current waveform. This may differ from current values if the unit has been stopped and its configuration modified. For all acquisition types except average, this value is 1.
<count_argument><NL>

See Also

<count_argument> ::= an integer from 1 to 65536 in NR1 format
· "Introduction to :WAVeform Commands" on page 985 · ":ACQuire:COUNt" on page 236 · ":ACQuire:TYPE" on page 245

992

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WAVeform Commands 32

:WAVeform:DATA

Query Syntax
Return Format See Also
Example Code

(see page 1164)
:WAVeform:DATA?
The :WAVeform:DATA query returns the binary block of sampled data points transmitted using the IEEE 488.2 arbitrary block data format. The binary data is formatted according to the settings of the :WAVeform:UNSigned, :WAVeform:BYTeorder, :WAVeform:FORMat, and :WAVeform:SOURce commands. The number of points returned is controlled by the :WAVeform:POINts command. In BYTE or WORD waveform formats, these data values have special meaning: · 0x00 or 0x0000 -- Hole. Holes are locations where data has not yet been
acquired. Another situation where there can be zeros in the data, incorrectly, is when programming over telnet port 5024. Port 5024 provides a command prompt and is intended for ASCII transfers. Use telnet port 5025 instead. · 0x01 or 0x0001 -- Clipped low. These are locations where the waveform is clipped at the bottom of the oscilloscope display. · 0xFF or 0xFFFF -- Clipped high. These are locations where the waveform is clipped at the top of the oscilloscope display.
<binary block data><NL>
· For a more detailed description of the data returned for different acquisition types, see: "Introduction to :WAVeform Commands" on page 985
· ":WAVeform:UNSigned" on page 1011 · ":WAVeform:BYTeorder" on page 991 · ":WAVeform:FORMat" on page 995 · ":WAVeform:POINts" on page 996 · ":WAVeform:PREamble" on page 1000 · ":WAVeform:SOURce" on page 1005 · ":WAVeform:TYPE" on page 1010
' QUERY_WAVE_DATA - Outputs waveform data that is stored in a buffer.

' Query the oscilloscope for the waveform data. myScope.WriteString ":WAV:DATA?"

' READ_WAVE_DATA - The wave data consists of two parts: the header, ' and the actual waveform data followed by a new line (NL) character. ' The query data has the following format: ' ' <header><waveform_data><NL> ' ' Where:

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

993

32 :WAVeform Commands
' <header> = #800001000 (This is an example header) ' The "#8" may be stripped off of the header and the remaining ' numbers are the size, in bytes, of the waveform data block. The ' size can vary depending on the number of points acquired for the ' waveform. You can then read that number of bytes from the ' oscilloscope and the terminating NL character. ' Dim lngI As Long Dim lngDataValue As Long
varQueryResult = myScope.ReadIEEEBlock(BinaryType_UI1) ' Unsigned integer bytes. For lngI = 0 To UBound(varQueryResult) _
Step (UBound(varQueryResult) / 20) ' 20 points. If intBytesPerData = 2 Then
lngDataValue = varQueryResult(lngI) * 256 _ + varQueryResult(lngI + 1) ' 16-bit value.
Else lngDataValue = varQueryResult(lngI) ' 8-bit value.
End If strOutput = strOutput + "Data point " + _
CStr(lngI / intBytesPerData) + ", " + _ FormatNumber((lngDataValue - lngYReference) _
* sngYIncrement + sngYOrigin) + " V, " + _ FormatNumber(((lngI / intBytesPerData - lngXReference) _
* sngXIncrement + dblXOrigin) * 1000000) + " us" + vbCrLf Next lngI MsgBox "Waveform data:" + vbCrLf + strOutput
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

994

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WAVeform Commands 32

:WAVeform:FORMat

(see page 1164)

Command Syntax :WAVeform:FORMat <value>

<value> ::= {WORD | BYTE | ASCii}
The :WAVeform:FORMat command sets the data transmission mode for waveform data points. This command controls how the data is formatted when sent from the oscilloscope. · ASCii formatted data converts the internal integer data values to real Y-axis
values. Values are transferred as ASCii digits in floating point notation, separated by commas.
ASCII formatted data is transferred ASCii text. · WORD formatted data transfers 16-bit data as two bytes. The
:WAVeform:BYTeorder command can be used to specify whether the upper or lower byte is transmitted first. The default (no command sent) is that the upper byte transmitted first. · BYTE formatted data is transferred as 8-bit bytes.

Query Syntax Return Format

When the :WAVeform:SOURce is the serial decode bus (SBUS1 or SBUS2), ASCii is the only waveform format allowed. When the :WAVeform:SOURce is one of the digital channel buses (BUS1 or BUS2), ASCii and WORD are the only waveform formats allowed.
:WAVeform:FORMat?
The :WAVeform:FORMat query returns the current output format for the transfer of waveform data.
<value><NL>

See Also

<value> ::= {WORD | BYTE | ASC}
· "Introduction to :WAVeform Commands" on page 985 · ":WAVeform:BYTeorder" on page 991 · ":WAVeform:SOURce" on page 1005 · ":WAVeform:DATA" on page 993 · ":WAVeform:PREamble" on page 1000

Example Code · "Example Code" on page 1006

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

995

32 :WAVeform Commands

:WAVeform:POINts

(see page 1164) Command Syntax :WAVeform:POINts <# points>
<# points> ::= {100 | 250 | 500 | 1000 | <points mode>} if waveform points mode is NORMal
<# points> ::= {100 | 250 | 500 | 1000 | 2000 | 5000 | 10000 | 20000 | 50000 | 100000 | 200000 | 500000 | 1000000 | 2000000 | 4000000 | 8000000 | <points mode>} if waveform points mode is MAXimum or RAW
<points mode> ::= {NORMal | MAXimum | RAW}

NOTE

The <points_mode> option is deprecated. Use the :WAVeform:POINts:MODE command instead.

Query Syntax

The :WAVeform:POINts command sets the number of waveform points to be transferred with the :WAVeform:DATA? query. This value represents the points contained in the waveform selected with the :WAVeform:SOURce command. For the analog or digital sources, the records that can be transferred depend on the waveform points mode. The maximum number of points returned for math (function) waveforms is determined by the NORMal waveform points mode. See the :WAVeform:POINts:MODE command (see page 998) for more information. Only data visible on the display will be returned. When the :WAVeform:SOURce is the serial decode bus (SBUS1 or SBUS2), this command is ignored, and all available serial decode bus data is returned.
:WAVeform:POINts?
The :WAVeform:POINts query returns the number of waveform points to be transferred when using the :WAVeform:DATA? query. Setting the points mode will affect what data is transferred (see the :WAVeform:POINts:MODE command (see page 998) for more information). When the :WAVeform:SOURce is the serial decode bus (SBUS1 or SBUS2), this query returns the number of messages that were decoded.

Return Format <# points><NL>

<# points> ::= {100 | 250 | 500 | 1000 | <maximum # points>} if waveform points mode is NORMal

<# points> ::= {100 | 250 | 500 | 1000 | 2000 | 5000 | 10000 | 20000 | 50000 | 100000 | 200000 | 500000 | 1000000 | 2000000 | 4000000 | 8000000 | <maximum # points>} if waveform points mode is MAXimum or RAW

996

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WAVeform Commands 32

NOTE

If a full screen of data is not displayed, the number of points returned will not be 1000 or an even divisor of it.

See Also Example Code

· "Introduction to :WAVeform Commands" on page 985 · ":ACQuire:POINts" on page 238 · ":WAVeform:DATA" on page 993 · ":WAVeform:SOURce" on page 1005 · ":WAVeform:VIEW" on page 1012 · ":WAVeform:PREamble" on page 1000 · ":WAVeform:POINts:MODE" on page 998
' WAVE_POINTS - Specifies the number of points to be transferred ' using the ":WAVEFORM:DATA?" query. myScope.WriteString ":WAVEFORM:POINTS 1000"
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

997

32 :WAVeform Commands

:WAVeform:POINts:MODE

(see page 1164) Command Syntax :WAVeform:POINts:MODE <points_mode>
<points_mode> ::= {NORMal | MAXimum | RAW}
The :WAVeform:POINts:MODE command sets the data record to be transferred with the :WAVeform:DATA? query. For the analog or digital sources, there are two different records that can be transferred: · The first is the raw acquisition record. The maximum number of points available
in this record is returned by the :ACQuire:POINts? query. The raw acquisition record can only be transferred when the oscilloscope is not running and can only be retrieved from the analog or digital sources. · The second is referred to as the measurement record and is a 62,500-point (maximum) representation of the raw acquisition record. The measurement record can be retrieved from any source. If the <points_mode> is NORMal the measurement record is retrieved. If the <points_mode> is RAW, the raw acquisition record is used. Under some conditions, such as when the oscilloscope is running, this data record is unavailable. If the <points_mode> is MAXimum, whichever record contains the maximum amount of points is used. Usually, this is the raw acquisition record. But, if the raw acquisition record is unavailable (for example, when the oscilloscope is running), the measurement record may have more data. If data is being retrieved as the oscilloscope is stopped and as the data displayed is changing, the data being retrieved can switch between the measurement and raw acquisition records.

NOTE

If the :WAVeform:SOURce is not an analog or digital source, the only valid parameters for WAVeform:POINts:MODE is NORMal or MAXimum.

Considerations for MAXimum or RAW
data retrieval

· The instrument must be stopped (see the :STOP command (see page 229) or the :DIGitize command (see page 205) in the root subsystem) in order to return more than the measurement record.
· :TIMebase:MODE must be set to MAIN. · :ACQuire:TYPE must be set to NORMal or HRESolution. · MAXimum or RAW will allow up to 4,000,000 points to be returned. The
number of points returned will vary as the instrument's configuration is changed. Use the :WAVeform:POINts? MAXimum query to determine the maximum number of points that can be retrieved at the current settings.

998

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WAVeform Commands 32

Query Syntax

:WAVeform:POINts:MODE?
The :WAVeform:POINts:MODE? query returns the current points mode. Setting the points mode will affect what data is transferred. See the discussion above.

Return Format <points_mode><NL>

See Also

<points_mode> ::= {NORMal | MAXimum | RAW}
· "Introduction to :WAVeform Commands" on page 985 · ":WAVeform:DATA" on page 993 · ":ACQuire:POINts" on page 238 · ":WAVeform:VIEW" on page 1012 · ":WAVeform:PREamble" on page 1000 · ":WAVeform:POINts" on page 996 · ":TIMebase:MODE" on page 893 · ":ACQuire:TYPE" on page 245 · ":ACQuire:COUNt" on page 236

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

999

32 :WAVeform Commands

:WAVeform:PREamble

(see page 1164)

Query Syntax Return Format

:WAVeform:PREamble?
The :WAVeform:PREamble query requests the preamble information for the selected waveform source. The preamble data contains information concerning the vertical and horizontal scaling of the data of the corresponding channel.
<preamble_block><NL>

<preamble_block> ::= <format 16-bit NR1>, <type 16-bit NR1>, <points 32-bit NR1>, <count 32-bit NR1>, <xincrement 64-bit floating point NR3>, <xorigin 64-bit floating point NR3>, <xreference 32-bit NR1>, <yincrement 32-bit floating point NR3>, <yorigin 32-bit floating point NR3>, <yreference 32-bit NR1>

<format> ::= 0 for BYTE format, 1 for WORD format, 4 for ASCii format; an integer in NR1 format (format set by :WAVeform:FORMat).

<type> ::= 2 for AVERage type, 0 for NORMal type, 1 for PEAK detect type; an integer in NR1 format (type set by :ACQuire:TYPE).

<count> ::= Average count or 1 if PEAK or NORMal; an integer in NR1 format (count set by :ACQuire:COUNt).

%FMBZ QPJOUT
9JODSFNFOU9

:JODSFNFOU WPMUBHFPG7TUFQ
:PSJHJO 7


0GGTFU

:SFGFSFODF7TUFQT
7TUFQT  JGGPSNBU803%

 JGGPSNBU#:5&

9PSJHJO U

9SFGFSFODF 9JODSFNFOU U
UJNFCFUXFFOTVDDFTTJWFQPJOUT

See Also

· "Introduction to :WAVeform Commands" on page 985 · ":ACQuire:COUNt" on page 236 · ":ACQuire:POINts" on page 238 · ":ACQuire:TYPE" on page 245

1000

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WAVeform Commands 32

Example Code

· ":DIGitize" on page 205 · ":WAVeform:COUNt" on page 992 · ":WAVeform:DATA" on page 993 · ":WAVeform:FORMat" on page 995 · ":WAVeform:POINts" on page 996 · ":WAVeform:TYPE" on page 1010 · ":WAVeform:XINCrement" on page 1013 · ":WAVeform:XORigin" on page 1014 · ":WAVeform:XREFerence" on page 1015 · ":WAVeform:YINCrement" on page 1016 · ":WAVeform:YORigin" on page 1017 · ":WAVeform:YREFerence" on page 1018

' GET_PREAMBLE - The preamble block contains all of the current

' WAVEFORM settings. It is returned in the form <preamble_block><NL>

' where <preamble_block> is:

' FORMAT

: int16 - 0 = BYTE, 1 = WORD, 4 = ASCII.

' TYPE

: int16 - 0 = NORMAL, 1 = PEAK DETECT, 2 = AVERAGE

' POINTS

: int32 - number of data points transferred.

' COUNT

: int32 - 1 and is always 1.

' XINCREMENT : float64 - time difference between data points.

' XORIGIN

: float64 - always the first data point in memory.

' XREFERENCE : int32 - specifies the data point associated with

'

x-origin.

' YINCREMENT : float32 - voltage diff between data points.

' YORIGIN

: float32 - value is the voltage at center screen.

' YREFERENCE : int32 - specifies the data point where y-origin

'

occurs.

Dim Preamble()

Dim intFormat As Integer

Dim intType As Integer

Dim lngPoints As Long

Dim lngCount As Long

Dim dblXIncrement As Double

Dim dblXOrigin As Double

Dim lngXReference As Long

Dim sngYIncrement As Single

Dim sngYOrigin As Single

Dim lngYReference As Long

Dim strOutput As String

myScope.WriteString ":WAVEFORM:PREAMBLE?" ' Query for the preamble. Preamble() = myScope.ReadList ' Read preamble information. intFormat = Preamble(0) intType = Preamble(1) lngPoints = Preamble(2) lngCount = Preamble(3) dblXIncrement = Preamble(4) dblXOrigin = Preamble(5) lngXReference = Preamble(6)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1001

32 :WAVeform Commands
sngYIncrement = Preamble(7) sngYOrigin = Preamble(8) lngYReference = Preamble(9)
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

1002

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WAVeform Commands 32

:WAVeform:SEGMented:COUNt

Query Syntax

(see page 1164)
:WAVeform:SEGMented:COUNt?

NOTE

This command is available when the segmented memory option (Option SGM) is enabled.

Return Format See Also
Example Code

The :WAVeform:SEGMented:COUNt query returns the number of memory segments in the acquired data. You can use the :WAVeform:SEGMented:COUNt? query while segments are being acquired (although :DIGitize blocks subsequent queries until the full segmented acquisition is complete). The segmented memory acquisition mode is enabled with the :ACQuire:MODE command. The number of segments to acquire is set using the :ACQuire:SEGMented:COUNt command, and data is acquired using the :DIGitize, :SINGle, or :RUN commands.
<count> ::= an integer from 2 to 1000 in NR1 format (count set by :ACQuire:SEGMented:COUNt).
· ":ACQuire:MODE" on page 237 · ":ACQuire:SEGMented:COUNt" on page 240 · ":DIGitize" on page 205 · ":SINGle" on page 227 · ":RUN" on page 225 · "Introduction to :WAVeform Commands" on page 985 · "Example Code" on page 241

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1003

32 :WAVeform Commands

:WAVeform:SEGMented:TTAG

Query Syntax

(see page 1164)
:WAVeform:SEGMented:TTAG?

NOTE

This command is available when the segmented memory license (SGM) is enabled.

Return Format See Also
Example Code

The :WAVeform:SEGMented:TTAG? query returns the time tag of the currently selected segmented memory index. The index is selected using the :ACQuire:SEGMented:INDex command.
<time_tag> ::= in NR3 format
· ":ACQuire:SEGMented:INDex" on page 241 · "Introduction to :WAVeform Commands" on page 985 · "Example Code" on page 241

1004

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WAVeform Commands 32

:WAVeform:SOURce

(see page 1164)

Command Syntax :WAVeform:SOURce <source>

<source> ::= {CHANnel<n> | FUNCtion | MATH | WMEMory<r> | SBUS{1 | 2}} for DSO models

<source> ::= {CHANnel<n> | POD{1 | 2} | BUS{1 | 2} | FUNCtion | MATH | WMEMory<r> | SBUS{1 | 2}} for MSO models

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax

<r> ::= {1 | 2}
The :WAVeform:SOURce command selects the analog channel, function, digital pod, digital bus, reference waveform, or serial decode bus to be used as the source for the :WAVeform commands. Function capabilities include add, subtract, multiply, integrate, differentiate, and FFT (Fast Fourier Transform) operations. When the :WAVeform:SOURce is the serial decode bus (SBUS1 or SBUS2), ASCii is the only waveform format allowed, and the :WAVeform:DATA? query returns a string with timestamps and associated bus decode information. With MSO oscilloscope models, you can choose a POD or BUS as the waveform source. There are some differences between POD and BUS when formatting and getting data from the oscilloscope: · When POD1 or POD2 is selected as the waveform source, you can choose the
BYTE, WORD, or ASCii formats (see ":WAVeform:FORMat" on page 995). When the WORD format is chosen, every other data byte will be 0. The setting of :WAVeform:BYTeorder controls which byte is 0. When the ASCii format is chosen, the :WAVeform:DATA? query returns a string with unsigned decimal values separated by commas. · When BUS1 or BUS2 is selected as the waveform source, you can choose the WORD or ASCii formats (but not BYTE because bus values are always returned as 16-bit values). When the ASCii format is chosen, the :WAVeform:DATA? query returns a string with hexadecimal bus values, for example: 0x1938,0xff38,...
:WAVeform:SOURce?
The :WAVeform:SOURce? query returns the currently selected source for the WAVeform commands.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1005

32 :WAVeform Commands

NOTE

MATH is an alias for FUNCtion. The :WAVeform:SOURce? Query returns FUNC if the source is FUNCtion or MATH.

Return Format <source><NL>

<source> ::= {CHAN<n> | FUNC | WMEM<r> | SBUS{1 | 2}} for DSO models

<source> ::= {CHAN<n> | POD{1 | 2} | BUS{1 | 2} | FUNC | WMEM<r> | SBUS{1 | 2}} for MSO models

<n> ::= 1 to (# analog channels) in NR1 format

See Also Example Code

<r> ::= {1 | 2}
· "Introduction to :WAVeform Commands" on page 985 · ":DIGitize" on page 205 · ":WAVeform:FORMat" on page 995 · ":WAVeform:BYTeorder" on page 991 · ":WAVeform:DATA" on page 993 · ":WAVeform:PREamble" on page 1000
' WAVEFORM_DATA - To obtain waveform data, you must specify the ' WAVEFORM parameters for the waveform data prior to sending the ' ":WAVEFORM:DATA?" query. Once these parameters have been sent, ' the waveform data and the preamble can be read. ' ' WAVE_SOURCE - Selects the channel to be used as the source for ' the waveform commands. myScope.WriteString ":WAVEFORM:SOURCE CHAN1"

' WAVE_POINTS - Specifies the number of points to be transferred ' using the ":WAVEFORM:DATA?" query. myScope.WriteString ":WAVEFORM:POINTS 1000"

' WAVE_FORMAT - Sets the data transmission mode for the waveform ' data output. This command controls whether data is formatted in ' a word or byte format when sent from the oscilloscope. Dim lngVSteps As Long Dim intBytesPerData As Integer

' Data in range 0 to 65535. myScope.WriteString ":WAVEFORM:FORMAT WORD" lngVSteps = 65536 intBytesPerData = 2

' Data in range 0 to 255. 'myScope.WriteString ":WAVEFORM:FORMAT BYTE" 'lngVSteps = 256 'intBytesPerData = 1

' GET_PREAMBLE - The preamble block contains all of the current ' WAVEFORM settings. It is returned in the form <preamble_block><NL>

1006

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WAVeform Commands 32

' where <preamble_block> is:

' FORMAT

: int16 - 0 = BYTE, 1 = WORD, 4 = ASCII.

' TYPE

: int16 - 0 = NORMAL, 1 = PEAK DETECT, 2 = AVERAGE

' POINTS

: int32 - number of data points transferred.

' COUNT

: int32 - 1 and is always 1.

' XINCREMENT : float64 - time difference between data points.

' XORIGIN

: float64 - always the first data point in memory.

' XREFERENCE : int32 - specifies the data point associated with

'

x-origin.

' YINCREMENT : float32 - voltage diff between data points.

' YORIGIN

: float32 - value is the voltage at center screen.

' YREFERENCE : int32 - specifies the data point where y-origin

'

occurs.

Dim Preamble()

Dim intFormat As Integer

Dim intType As Integer

Dim lngPoints As Long

Dim lngCount As Long

Dim dblXIncrement As Double

Dim dblXOrigin As Double

Dim lngXReference As Long

Dim sngYIncrement As Single

Dim sngYOrigin As Single

Dim lngYReference As Long

Dim strOutput As String

myScope.WriteString ":WAVEFORM:PREAMBLE?" ' Query for the preamble.

Preamble() = myScope.ReadList ' Read preamble information.

intFormat = Preamble(0)

intType = Preamble(1)

lngPoints = Preamble(2)

lngCount = Preamble(3)

dblXIncrement = Preamble(4)

dblXOrigin = Preamble(5)

lngXReference = Preamble(6)

sngYIncrement = Preamble(7)

sngYOrigin = Preamble(8)

lngYReference = Preamble(9)

strOutput = ""

'strOutput = strOutput + "Format = " + CStr(intFormat) + vbCrLf

'strOutput = strOutput + "Type = " + CStr(intType) + vbCrLf

'strOutput = strOutput + "Points = " + CStr(lngPoints) + vbCrLf

'strOutput = strOutput + "Count = " + CStr(lngCount) + vbCrLf

'strOutput = strOutput + "X increment = " + _

'

FormatNumber(dblXIncrement * 1000000) + " us" + vbCrLf

'strOutput = strOutput + "X origin = " + _

'

FormatNumber(dblXOrigin * 1000000) + " us" + vbCrLf

'strOutput = strOutput + "X reference = " + _

'

CStr(lngXReference) + vbCrLf

'strOutput = strOutput + "Y increment = " + _

'

FormatNumber(sngYIncrement * 1000) + " mV" + vbCrLf

'strOutput = strOutput + "Y origin = " + _

'

FormatNumber(sngYOrigin) + " V" + vbCrLf

'strOutput = strOutput + "Y reference = " + _

'

CStr(lngYReference) + vbCrLf

strOutput = strOutput + "Volts/Div = " + _

FormatNumber(lngVSteps * sngYIncrement / 8) + _

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1007

32 :WAVeform Commands
" V" + vbCrLf strOutput = strOutput + "Offset = " + _
FormatNumber((lngVSteps / 2 - lngYReference) * _ sngYIncrement + sngYOrigin) + " V" + vbCrLf strOutput = strOutput + "Sec/Div = " + _ FormatNumber(lngPoints * dblXIncrement / 10 * _ 1000000) + " us" + vbCrLf strOutput = strOutput + "Delay = " + _ FormatNumber(((lngPoints / 2 - lngXReference) * _ dblXIncrement + dblXOrigin) * 1000000) + " us" + vbCrLf
' QUERY_WAVE_DATA - Outputs waveform data that is stored in a buffer.
' Query the oscilloscope for the waveform data. myScope.WriteString ":WAV:DATA?"
' READ_WAVE_DATA - The wave data consists of two parts: the header, ' and the actual waveform data followed by a new line (NL) character. ' The query data has the following format: ' ' <header><waveform_data><NL> ' ' Where: ' <header> = #800001000 (This is an example header) ' The "#8" may be stripped off of the header and the remaining ' numbers are the size, in bytes, of the waveform data block. The ' size can vary depending on the number of points acquired for the ' waveform. You can then read that number of bytes from the ' oscilloscope and the terminating NL character. ' Dim lngI As Long Dim lngDataValue As Long
' Unsigned integer bytes. varQueryResult = myScope.ReadIEEEBlock(BinaryType_UI1)
For lngI = 0 To UBound(varQueryResult) _ Step (UBound(varQueryResult) / 20) ' 20 points.
If intBytesPerData = 2 Then lngDataValue = varQueryResult(lngI) * 256 _ + varQueryResult(lngI + 1) ' 16-bit value.
Else lngDataValue = varQueryResult(lngI) ' 8-bit value.
End If strOutput = strOutput + "Data point " + _
CStr(lngI / intBytesPerData) + ", " + _ FormatNumber((lngDataValue - lngYReference) _
* sngYIncrement + sngYOrigin) + " V, " + _ FormatNumber(((lngI / intBytesPerData - lngXReference) _
* sngXIncrement + dblXOrigin) * 1000000) + " us" + vbCrLf Next lngI MsgBox "Waveform data:" + vbCrLf + strOutput
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

1008

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WAVeform Commands 32

:WAVeform:SOURce:SUBSource

(see page 1164)

Command Syntax :WAVeform:SOURce:SUBSource <subsource>

<subsource> ::= {{SUB0 | RX | MOSI} | {SUB1 | TX | MISO}}
If the :WAVeform:SOURce is SBUS<n> (serial decode), more than one data set may be available, and this command lets you choose from the available data sets.

When using UART serial decode, this option lets you get "TX" data. (TX is an alias for SUB1.) The default, SUB0, specifies "RX" data. (RX is an alias for SUB0.) When using SPI serial decode, this option lets you get "MISO" data. (MISO is an alias for SUB1.) The default, SUB0, specifies "MOSI" data. (MOSI is an alias for SUB0.)

Query Syntax Return Format

If the :WAVeform:SOURce is not SBUS, or the :SBUS<n>:MODE is not UART or SPI, the only valid subsource is SUB0.
:WAVeform:SOURce:SUBSource?
The :WAVeform:SOURce:SUBSource? query returns the current waveform subsource setting.
<subsource><NL>

See Also

<subsource> ::= {SUB0 | SUB1}
· "Introduction to :WAVeform Commands" on page 985 · ":WAVeform:SOURce" on page 1005

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1009

32 :WAVeform Commands

:WAVeform:TYPE

(see page 1164)

Query Syntax Return Format

:WAVeform:TYPE?
The :WAVeform:TYPE? query returns the acquisition mode associated with the currently selected waveform. The acquisition mode is set by the :ACQuire:TYPE command.
<mode><NL>

<mode> ::= {NORM | PEAK | AVER | HRES}

NOTE

If the :WAVeform:SOURce is POD1, POD2, or SBUS1, SBUS2, the type is always NORM.

See Also

· "Introduction to :WAVeform Commands" on page 985 · ":ACQuire:TYPE" on page 245 · ":WAVeform:DATA" on page 993 · ":WAVeform:PREamble" on page 1000 · ":WAVeform:SOURce" on page 1005

1010

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WAVeform Commands 32

:WAVeform:UNSigned

(see page 1164)

Command Syntax :WAVeform:UNSigned <unsigned>

Query Syntax Return Format

<unsigned> ::= {{0 | OFF} | {1 | ON}}
The :WAVeform:UNSigned command turns unsigned mode on or off for the currently selected waveform. Use the WAVeform:UNSigned command to control whether data values are sent as unsigned or signed integers. This command can be used to match the instrument's internal data type to the data type used by the programming language. This command has no effect if the data format is ASCii. If :WAVeform:SOURce is set to POD1, POD2, BUS1, or BUS2, WAVeform:UNSigned must be set to ON.
:WAVeform:UNSigned?
The :WAVeform:UNSigned? query returns the status of unsigned mode for the currently selected waveform.
<unsigned><NL>

See Also

<unsigned> ::= {0 | 1}
· "Introduction to :WAVeform Commands" on page 985 · ":WAVeform:SOURce" on page 1005

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1011

32 :WAVeform Commands

:WAVeform:VIEW

(see page 1164)

Command Syntax :WAVeform:VIEW <view>

<view> ::= {MAIN}
The :WAVeform:VIEW command sets the view setting associated with the currently selected waveform. Currently, the only legal value for the view setting is MAIN.

Query Syntax Return Format

:WAVeform:VIEW?
The :WAVeform:VIEW? query returns the view setting associated with the currently selected waveform.
<view><NL>

See Also

<view> ::= {MAIN}
· "Introduction to :WAVeform Commands" on page 985 · ":WAVeform:POINts" on page 996

1012

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WAVeform Commands 32

:WAVeform:XINCrement

(see page 1164)

Query Syntax Return Format

:WAVeform:XINCrement?
The :WAVeform:XINCrement? query returns the x-increment value for the currently specified source. This value is the time difference between consecutive data points in seconds.
<value><NL>

See Also Example Code

<value> ::= x-increment in the current preamble in 64-bit floating point NR3 format
· "Introduction to :WAVeform Commands" on page 985 · ":WAVeform:PREamble" on page 1000 · "Example Code" on page 1001

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1013

32 :WAVeform Commands

:WAVeform:XORigin

(see page 1164)

Query Syntax Return Format

:WAVeform:XORigin?
The :WAVeform:XORigin? query returns the x-origin value for the currently specified source. XORigin is the X-axis value of the data point specified by the :WAVeform:XREFerence value. In this product, that is always the X-axis value of the first data point (XREFerence = 0).
<value><NL>

See Also

<value> ::= x-origin value in the current preamble in 64-bit floating point NR3 format
· "Introduction to :WAVeform Commands" on page 985 · ":WAVeform:PREamble" on page 1000 · ":WAVeform:XREFerence" on page 1015

Example Code · "Example Code" on page 1001

1014

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WAVeform Commands 32

:WAVeform:XREFerence

(see page 1164)

Query Syntax Return Format

:WAVeform:XREFerence?
The :WAVeform:XREFerence? query returns the x-reference value for the currently specified source. This value specifies the index of the data point associated with the x-origin data value. In this product, the x-reference point is the first point displayed and XREFerence is always 0.
<value><NL>

See Also Example Code

<value> ::= x-reference value = 0 in 32-bit NR1 format
· "Introduction to :WAVeform Commands" on page 985 · ":WAVeform:PREamble" on page 1000 · ":WAVeform:XORigin" on page 1014 · "Example Code" on page 1001

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1015

32 :WAVeform Commands

:WAVeform:YINCrement

(see page 1164)

Query Syntax Return Format

:WAVeform:YINCrement?
The :WAVeform:YINCrement? query returns the y-increment value in volts for the currently specified source. This value is the voltage difference between consecutive data values. The y-increment for digital waveforms is always "1".
<value><NL>

See Also Example Code

<value> ::= y-increment value in the current preamble in 32-bit floating point NR3 format
· "Introduction to :WAVeform Commands" on page 985 · ":WAVeform:PREamble" on page 1000 · "Example Code" on page 1001

1016

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WAVeform Commands 32

:WAVeform:YORigin

(see page 1164)

Query Syntax Return Format

:WAVeform:YORigin?
The :WAVeform:YORigin? query returns the y-origin value for the currently specified source. This value is the Y-axis value of the data value specified by the :WAVeform:YREFerence value. For this product, this is the Y-axis value of the center of the screen.
<value><NL>

See Also

<value> ::= y-origin in the current preamble in 32-bit floating point NR3 format
· "Introduction to :WAVeform Commands" on page 985 · ":WAVeform:PREamble" on page 1000 · ":WAVeform:YREFerence" on page 1018

Example Code · "Example Code" on page 1001

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1017

32 :WAVeform Commands

:WAVeform:YREFerence

(see page 1164)

Query Syntax Return Format

:WAVeform:YREFerence?
The :WAVeform:YREFerence? query returns the y-reference value for the currently specified source. This value specifies the data point value where the y-origin occurs. In this product, this is the data point value of the center of the screen. It is undefined if the format is ASCii.
<value><NL>

See Also

<value> ::= y-reference value in the current preamble in 32-bit NR1 format
· "Introduction to :WAVeform Commands" on page 985 · ":WAVeform:PREamble" on page 1000 · ":WAVeform:YORigin" on page 1017

Example Code · "Example Code" on page 1001

1018

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
33 :WGEN Commands

When the built-in waveform generator is licensed (Option WGN), you can use it to output sine, square, ramp, pulse, DC, noise, sine cardinal, exponential rise, exponential fall, cardiac, and gaussian pulse waveforms. The :WGEN commands are used to select the waveform function and parameters. See "Introduction to :WGEN Commands" on page 1021.

Table 139 :WGEN Commands Summary

Command

Query

Options and Query Returns

:WGEN:ARBitrary:BYTeo :WGEN:ARBitrary:BYTeo <order> ::= {MSBFirst | LSBFirst}

rder <order> (see

rder? (see page 1023)

page 1023)

:WGEN:ARBitrary:DATA n/a
{<binary> | <value>,
<value> ...} (see page 1024)

<binary> ::= single-presision floating point values between -1.0 to +1.0 in IEEE 488.2 binary block format
<value> ::= floating point values between -1.0 to +1.0 in comma-separated format

n/a

:WGEN:ARBitrary:DATA: <points> ::= number of points in

ATTRibute:POINts? (see page 1027)

NR1 format

:WGEN:ARBitrary:DATA: n/a

n/a

CLEar (see page 1028)

:WGEN:ARBitrary:DATA: n/a
DAC {<binary> |
<value>, <value> ...} (see page 1029)

<binary> ::= decimal 16-bit integer values between -512 to +511 in IEEE 488.2 binary block format
<value> ::= decimal integer values between -512 to +511 in comma-separated NR1 format

:WGEN:ARBitrary:INTer
polate {{0 | OFF} |
{1 | ON}} (see page 1030)

:WGEN:ARBitrary:INTer
polate? (see page 1030)

{0 | 1}

1019

33 :WGEN Commands

Table 139 :WGEN Commands Summary (continued)

Command

Query

Options and Query Returns

:WGEN:ARBitrary:STORe n/a
<source> (see page 1031)

<source> ::= {CHANnel<n> | WMEMory<r> | FUNCtion | MATH}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= 1-2 in NR1 format

:WGEN:FREQuency
<frequency> (see page 1032)

:WGEN:FREQuency? (see <frequency> ::= frequency in Hz

page 1032)

in NR3 format

:WGEN:FUNCtion
<signal> (see page 1033)

:WGEN:FUNCtion? (see page 1036)

<signal> ::= {SINusoid | SQUare | RAMP | PULSe | NOISe | DC | SINC | EXPRise | EXPFall | CARDiac | GAUSsian | ARBitrary}

:WGEN:FUNCtion:PULSe: :WGEN:FUNCtion:PULSe: <width> ::= pulse width in

WIDTh <width> (see

WIDTh? (see page 1037) seconds in NR3 format

page 1037)

:WGEN:FUNCtion:RAMP:S :WGEN:FUNCtion:RAMP:S <percent> ::= symmetry

YMMetry <percent> (see page 1038)

YMMetry? (see page 1038)

percentage from 0% to 100% in NR1 format

:WGEN:FUNCtion:SQUare :WGEN:FUNCtion:SQUare <percent> ::= duty cycle

:DCYCle <percent> (see page 1039)

:DCYCle? (see page 1039)

percentage from 20% to 80% in NR1 format

:WGEN:MODulation:AM:D :WGEN:MODulation:AM:D <percent> ::= AM depth percentage EPTh <percent> (see EPTh? (see page 1040) from 0% to 100% in NR1 format page 1040)

:WGEN:MODulation:AM:F :WGEN:MODulation:AM:F <frequency> ::= modulating

REQuency <frequency> REQuency? (see

(see page 1041)

page 1041)

waveform frequency in Hz in NR3 format

:WGEN:MODulation:FM:D :WGEN:MODulation:FM:D <frequency> ::= frequency

EViation <frequency> EViation? (see

(see page 1042)

page 1042)

deviation in Hz in NR3 format

:WGEN:MODulation:FM:F :WGEN:MODulation:FM:F <frequency> ::= modulating

REQuency <frequency> REQuency? (see

(see page 1043)

page 1043)

waveform frequency in Hz in NR3 format

:WGEN:MODulation:FSKe :WGEN:MODulation:FSKe <frequency> ::= hop frequency in

y:FREQuency <percent> y:FREQuency? (see

(see page 1044)

page 1044)

Hz in NR3 format

:WGEN:MODulation:FSKe :WGEN:MODulation:FSKe <rate> ::= FSK modulation rate in

y:RATE <rate> (see page 1045)

y:RATE? (see page 1045)

Hz in NR3 format

1020

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33

Table 139 :WGEN Commands Summary (continued)

Command

Query

Options and Query Returns

:WGEN:MODulation:FUNC :WGEN:MODulation:FUNC <shape> ::= {SINusoid | SQUare|

tion <shape> (see

tion? (see page 1046) RAMP}

page 1046)

:WGEN:MODulation:FUNC
tion:RAMP:SYMMetry
<percent> (see page 1047)

:WGEN:MODulation:FUNC
tion:RAMP:SYMMetry? (see page 1047)

<percent> ::= symmetry percentage from 0% to 100% in NR1 format

:WGEN:MODulation:NOIS :WGEN:MODulation:NOIS <percent> ::= 0 to 100

e <percent> (see

e? (see page 1048)

page 1048)

:WGEN:MODulation:STAT :WGEN:MODulation:STAT {0 | 1} e {{0 | OFF} | {1 | e? (see page 1049) ON}} (see page 1049)

:WGEN:MODulation:TYPE :WGEN:MODulation:TYPE <type> ::= {AM | FM | FSK} <type> (see page 1050) ? (see page 1050)

:WGEN:OUTPut {{0 |
OFF} | {1 | ON}} (see page 1052)

:WGEN:OUTPut? (see page 1052)

{0 | 1}

:WGEN:OUTPut:LOAD
<impedance> (see page 1053)

:WGEN:OUTPut:LOAD? (see page 1053)

<impedance> ::= {ONEMeg | FIFTy}

:WGEN:PERiod <period> :WGEN:PERiod? (see

(see page 1054)

page 1054)

<period> ::= period in seconds in NR3 format

:WGEN:RST (see

n/a

n/a

page 1055)

:WGEN:VOLTage
<amplitude> (see page 1056)

:WGEN:VOLTage? (see page 1056)

<amplitude> ::= amplitude in volts in NR3 format

:WGEN:VOLTage:HIGH

:WGEN:VOLTage:HIGH?

<high> (see page 1057) (see page 1057)

<high> ::= high-level voltage in volts, in NR3 format

:WGEN:VOLTage:LOW

:WGEN:VOLTage:LOW?

<low> (see page 1058) (see page 1058)

<low> ::= low-level voltage in volts, in NR3 format

:WGEN:VOLTage:OFFSet
<offset> (see page 1059)

:WGEN:VOLTage:OFFSet? <offset> ::= offset in volts in

(see page 1059)

NR3 format

Introduction to The :WGEN subsystem provides commands to select the waveform generator :WGEN Commands function and parameters.
Reporting the Setup

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1021

33 :WGEN Commands
Use :WGEN? to query setup information for the WGEN subsystem. Return Format The following is a sample response from the :WGEN? query. In this case, the query was issued following the *RST command.
:WGEN:FUNC SIN;OUTP 0;FREQ +1.0000E+03;VOLT +500.0E-03;VOLT:OFFS +0.0E+00;:WGEN:OUTP:LOAD ONEM

1022

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33

:WGEN:ARBitrary:BYTeorder

(see page 1164)

Command Syntax :WGEN:ARBitrary:BYTeorder <order>

<order> ::= {MSBFirst | LSBFirst}
The :WGEN:ARBitrary:BYTeorder command selects the byte order for binary transfers.

Query Syntax Return Format

:WGEN:ARBitrary:BYTeorder?
The :WGEN:ARBitrary:BYTeorder query returns the current byte order selection.
<order><NL>

See Also

<order> ::= {MSBFirst | LSBFirst}
· ":WGEN:ARBitrary:DATA" on page 1024 · ":WGEN:ARBitrary:DATA:DAC" on page 1029

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1023

33 :WGEN Commands

:WGEN:ARBitrary:DATA

(see page 1164)

Command Syntax :WGEN:ARBitrary:DATA {<binary> | <value>, <value> ...}

<binary> ::= single-precision floating point values between -1.0 to +1.0 in IEEE 488.2 binary block format

<value> ::= floating point values between -1.0 to +1.0 in comma-separated format
The :WGEN:ARBitrary:DATA command downloads an arbitrary waveform in floating-point values format.

See Also Example Code

· ":WGEN:ARBitrary:DATA:DAC" on page 1029 · ":SAVE:ARBitrary[:STARt]" on page 624 · ":RECall:ARBitrary[:STARt]" on page 615
' Waveform generator arbitrary data commands example. ' -------------------------------------------------------------------

Option Explicit

Public myMgr As VisaComLib.ResourceManager Public myScope As VisaComLib.FormattedIO488 Public varQueryResult As Variant Public strQueryResult As String

Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" ( _
dest As Any, _ source As Any, _ ByVal bytes As Long)

Sub Main()

On Error GoTo VisaComError

' Create the VISA COM I/O resource. Set myMgr = New VisaComLib.ResourceManager Set myScope = New VisaComLib.FormattedIO488 Set myScope.IO = _
myMgr.Open("TCPIP0::a-mx3104a-90028.cos.is.keysight.com::inst0:: INSTR")
myScope.IO.Clear ' Clear the interface.

' Turn on arbitrary waveform generator function. myScope.WriteString ":WGEN1:OUTPut ON" myScope.WriteString ":WGEN1:FUNCtion ARBitrary" myScope.WriteString ":WGEN1:FUNCtion?" strQueryResult = myScope.ReadString Debug.Print "WaveGen1 function: " + strQueryResult

DefaultArbitraryWaveform

1024

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33

' Download comma-separated floating-point values. myScope.WriteString ":WGEN1:ARBitrary:DATA 0.0, 0.5, 1.0, 0.5, 0.0, -0 .5, -1.0, -0.5" Debug.Print "WaveGen1 CSV floating-point values downloaded." Sleep 5000
DefaultArbitraryWaveform
' Download comma-separated 16-bit integer (DAC) values. myScope.WriteString ":WGEN1:ARBitrary:DATA:DAC 0, 255, 511, 255, 0, -2 56, -512, -256" Debug.Print "WaveGen1 CSV 16-bit integer (DAC) values downloaded." Sleep 5000
' Set the byte order for binary data. myScope.WriteString ":WGEN1:ARBitrary:BYTeorder LSBFirst" myScope.WriteString ":WGEN1:ARBitrary:BYTeorder?" strQueryResult = myScope.ReadString Debug.Print "WaveGen1 byte order for binary data: " + strQueryResult
DefaultArbitraryWaveform
' Download binary floating-point values. Dim mySingleArray(8) As Single mySingleArray(0) = 0! mySingleArray(1) = 0.5! mySingleArray(2) = 1! mySingleArray(3) = 0.5! mySingleArray(4) = 0! mySingleArray(5) = -0.5! mySingleArray(6) = -1! mySingleArray(7) = -0.5!
Dim myByteArray(32) As Byte CopyMemory myByteArray(0), mySingleArray(0), 32 * LenB(myByteArray(0))
myScope.WriteIEEEBlock ":WGEN1:ARBitrary:DATA", myByteArray, True Debug.Print "WaveGen1 binary floating-point values downloaded." Sleep 5000
DefaultArbitraryWaveform
' Download binary 16-bit integer (DAC) values. Dim myIntegerArray(8) As Integer myIntegerArray(0) = 0 myIntegerArray(1) = 255 myIntegerArray(2) = 511 myIntegerArray(3) = 255 myIntegerArray(4) = 0 myIntegerArray(5) = -256 myIntegerArray(6) = -512 myIntegerArray(7) = -256
Dim myByteArray2(16) As Byte CopyMemory myByteArray2(0), myIntegerArray(0), 16 * LenB(myByteArray2( 0))

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1025

33 :WGEN Commands
myScope.WriteIEEEBlock ":WGEN1:ARBitrary:DATA:DAC", myByteArray2, True Debug.Print "WaveGen1 binary 16-bit integer (DAC) values downloaded." Sleep 5000
Exit Sub
VisaComError: MsgBox "VISA COM Error:" + vbCrLf + Err.Description
End Sub
' ' Initialize WaveGen1 to a known state. ' ------------------------------------------------------------------Private Sub DefaultArbitraryWaveform()
On Error GoTo VisaComError
' Load default arbitrary waveform. myScope.WriteString ":WGEN1:ARBitrary:DATA:CLEar" Debug.Print "WaveGen1 default arbitrary waveform loaded." Sleep 5000
Exit Sub
VisaComError: MsgBox "VISA COM Error:" + vbCrLf + Err.Description End
End Sub

1026

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33

:WGEN:ARBitrary:DATA:ATTRibute:POINts

Query Syntax
Return Format See Also

(see page 1164)
:WGEN:ARBitrary:DATA:ATTRibute:POINts?
The :WGEN:ARBitrary:DATA:ATTRibute:POINts query returns the number of points used by the current arbitrary waveform.
<points> ::= number of points in NR1 format
· ":WGEN:ARBitrary:DATA" on page 1024 · ":WGEN:ARBitrary:DATA:DAC" on page 1029 · ":SAVE:ARBitrary[:STARt]" on page 624 · ":RECall:ARBitrary[:STARt]" on page 615

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1027

33 :WGEN Commands

:WGEN:ARBitrary:DATA:CLEar

Command Syntax See Also
Example Code

(see page 1164)
:WGEN:ARBitrary:DATA:CLEar
The :WGEN:ARBitrary:DATA:CLEar command clears the arbitrary waveform memory and loads it with the default waveform. · ":WGEN:ARBitrary:DATA" on page 1024 · ":WGEN:ARBitrary:DATA:DAC" on page 1029 · ":SAVE:ARBitrary[:STARt]" on page 624 · ":RECall:ARBitrary[:STARt]" on page 615 · "Example Code" on page 1024

1028

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33

:WGEN:ARBitrary:DATA:DAC

(see page 1164)

Command Syntax :WGEN:ARBitrary:DATA:DAC {<binary> | <value>, <value> ...}

<binary> ::= decimal 16-bit integer values between -512 to +511 in IEEE 488.2 binary block format

<value> ::= decimal integer values between -512 to +511 in comma-separated NR1 format
The :WGEN:ARBitrary:DATA:DAC command downloads an arbitrary waveform using 16-bit integer (DAC) values.

See Also Example Code

· ":WGEN:ARBitrary:DATA" on page 1024 · ":SAVE:ARBitrary[:STARt]" on page 624 · ":RECall:ARBitrary[:STARt]" on page 615
· "Example Code" on page 1024

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1029

33 :WGEN Commands

:WGEN:ARBitrary:INTerpolate

Command Syntax
Query Syntax Return Format
See Also

(see page 1164)
:WGEN:ARBitrary:INTerpolate {{0 | OFF} | {1 | ON}}
The :WGEN:ARBitrary:INTerpolate command enables or disables the Interpolation control. Interpolation specifies how lines are drawn between arbitrary waveform points: · When ON, lines are drawn between points in the arbitrary waveform. Voltage
levels change linearly between one point and the next. · When OFF, all line segments in the arbitrary waveform are horizontal. The
voltage level of one point remains until the next point.
:WGEN:ARBitrary:INTerpolate?
The :WGEN:ARBitrary:INTerpolate query returns the current interpolation setting.
{0 | 1}
· ":WGEN:ARBitrary:DATA" on page 1024 · ":WGEN:ARBitrary:DATA:DAC" on page 1029 · ":SAVE:ARBitrary[:STARt]" on page 624 · ":RECall:ARBitrary[:STARt]" on page 615

1030

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33

:WGEN:ARBitrary:STORe

(see page 1164)

Command Syntax :WGEN:ARBitrary:STORe <source>

<source> ::= {CHANnel<n> | WMEMory<r> | FUNCtion | MATH}

<n> ::= 1 to (# analog channels) in NR1 format

See Also

<r> ::= 1-2 in NR1 format
The :WGEN:ARBitrary:STORe command stores the source's waveform into the arbitrary waveform memory.
· ":WGEN:ARBitrary:DATA" on page 1024 · ":WGEN:ARBitrary:DATA:DAC" on page 1029 · ":SAVE:ARBitrary[:STARt]" on page 624 · ":RECall:ARBitrary[:STARt]" on page 615

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1031

33 :WGEN Commands

:WGEN:FREQuency

(see page 1164)

Command Syntax :WGEN:FREQuency <frequency>

<frequency> ::= frequency in Hz in NR3 format
For all waveforms except Noise and DC, the :WGEN:FREQuency command specifies the frequency of the waveform.

Query Syntax Return Format

You can also specify the frequency indirectly using the :WGEN:PERiod command.
:WGEN:FREQuency?
The :WGEN:FREQuency? query returns the currently set waveform generator frequency.
<frequency><NL>

See Also

<frequency> ::= frequency in Hz in NR3 format
· "Introduction to :WGEN Commands" on page 1021 · ":WGEN:FUNCtion" on page 1033 · ":WGEN:PERiod" on page 1054

1032

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33

:WGEN:FUNCtion

(see page 1164) Command Syntax :WGEN:FUNCtion <signal>
<signal> ::= {SINusoid | SQUare | RAMP | PULSe | DC | NOISe | SINC | EXPRise | EXPFall | CARDiac | GAUSsian | ARBitrary}
The :WGEN:FUNCtion command selects the type of waveform:

Waveform Type SINusoid
SQUare

Characteristics

Frequency Range

Use these commands to set the sine signal parameters:
· ":WGEN:FREQuency" on page 1032 · ":WGEN:PERiod" on page 1054 · ":WGEN:VOLTage" on page 1056 · ":WGEN:VOLTage:OFFSet" on page 1059 · ":WGEN:VOLTage:HIGH" on page 1057 · ":WGEN:VOLTage:LOW" on page 1058
Use these commands to set the square wave signal parameters:
· ":WGEN:FREQuency" on page 1032 · ":WGEN:PERiod" on page 1054 · ":WGEN:VOLTage" on page 1056 · ":WGEN:VOLTage:OFFSet" on page 1059 · ":WGEN:VOLTage:HIGH" on page 1057 · ":WGEN:VOLTage:LOW" on page 1058 · ":WGEN:FUNCtion:SQUare:DCYCle" on
page 1039
The duty cycle can be adjusted from 20% to 80%.

100 mHz to 20 MHz 100 mHz to 10 MHz

Max. Amplitude (High-Z)1 20 mVpp to 5 Vpp
20 mVpp to 5 Vpp

Offset (High-Z)1 ±2.50 V
±2.50 V

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1033

33 :WGEN Commands

Waveform Type RAMP
PULSe
DC NOISe

Characteristics

Frequency Range

Use these commands to set the ramp signal parameters:
· ":WGEN:FREQuency" on page 1032 · ":WGEN:PERiod" on page 1054 · ":WGEN:VOLTage" on page 1056 · ":WGEN:VOLTage:OFFSet" on page 1059 · ":WGEN:VOLTage:HIGH" on page 1057 · ":WGEN:VOLTage:LOW" on page 1058 · ":WGEN:FUNCtion:RAMP:SYMMetry" on
page 1038 Symmetry represents the amount of time per cycle that the ramp waveform is rising and can be adjusted from 0% to 100%.
Use these commands to set the pulse signal parameters:
· ":WGEN:FREQuency" on page 1032 · ":WGEN:PERiod" on page 1054 · ":WGEN:VOLTage" on page 1056 · ":WGEN:VOLTage:OFFSet" on page 1059 · ":WGEN:VOLTage:HIGH" on page 1057 · ":WGEN:VOLTage:LOW" on page 1058 · ":WGEN:FUNCtion:PULSe:WIDTh" on
page 1037 The pulse width can be adjusted from 20 ns to the period minus 20 ns.
Use this command to set the DC level:
· ":WGEN:VOLTage:OFFSet" on page 1059
Use these commands to set the noise signal parameters:
· ":WGEN:VOLTage" on page 1056 · ":WGEN:VOLTage:OFFSet" on page 1059 · ":WGEN:VOLTage:HIGH" on page 1057 · ":WGEN:VOLTage:LOW" on page 1058

100 mHz to 200 kHz
100 mHz to 10 MHz.
n/a n/a

Max. Amplitude (High-Z)1 20 mVpp to 5 Vpp
20 mVpp to 5 Vpp
n/a 20 mVpp to 5 Vpp

Offset (High-Z)1 ±2.50 V
±2.50 V
±2.50 V ±2.50 V

1034

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33

Waveform Type SINC EXPRise
EXPFall
CARDiac GAUSsian

Characteristics

Frequency Range

Use these commands to set the sine cardinal signal parameters:
· ":WGEN:FREQuency" on page 1032 · ":WGEN:PERiod" on page 1054 · ":WGEN:VOLTage" on page 1056 · ":WGEN:VOLTage:OFFSet" on page 1059
Use these commands to set the exponential rise signal parameters:
· ":WGEN:FREQuency" on page 1032 · ":WGEN:PERiod" on page 1054 · ":WGEN:VOLTage" on page 1056 · ":WGEN:VOLTage:OFFSet" on page 1059 · ":WGEN:VOLTage:HIGH" on page 1057 · ":WGEN:VOLTage:LOW" on page 1058
Use these commands to set the exponential fall signal parameters:
· ":WGEN:FREQuency" on page 1032 · ":WGEN:PERiod" on page 1054 · ":WGEN:VOLTage" on page 1056 · ":WGEN:VOLTage:OFFSet" on page 1059 · ":WGEN:VOLTage:HIGH" on page 1057 · ":WGEN:VOLTage:LOW" on page 1058
Use these commands to set the cardiac signal parameters:
· ":WGEN:FREQuency" on page 1032 · ":WGEN:PERiod" on page 1054 · ":WGEN:VOLTage" on page 1056 · ":WGEN:VOLTage:OFFSet" on page 1059
Use these commands to set the gaussian pulse signal parameters:
· ":WGEN:FREQuency" on page 1032 · ":WGEN:PERiod" on page 1054 · ":WGEN:VOLTage" on page 1056 · ":WGEN:VOLTage:OFFSet" on page 1059

100 mHz to 1 MHz 100 mHz to 5 MHz 100 mHz to 5 MHz 100 mHz to 200 kHz 100 mHz to 5 MHz

Max. Amplitude (High-Z)1 20 mVpp to 5 Vpp 20 mVpp to 5 Vpp
20 mVpp to 5 Vpp
20 mVpp to 5 Vpp 20 mVpp to 4 Vpp

Offset (High-Z)1 ±1.25 V ±2.50 V
±2.50 V
±1.25 V ±1.25 V

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1035

33 :WGEN Commands

Waveform Type

Characteristics

ARBitrary

Use these commands to set the arbitrary signal parameters:
· ":WGEN:FREQuency" on page 1032 · ":WGEN:PERiod" on page 1054 · ":WGEN:VOLTage" on page 1056 · ":WGEN:VOLTage:OFFSet" on page 1059 · ":WGEN:VOLTage:HIGH" on page 1057 · ":WGEN:VOLTage:LOW" on page 1058

1When the output load is 50 , these values are halved.

Frequency Range 100 mHz to 12 MHz

Max. Amplitude (High-Z)1 20 mVpp to 5 Vpp

Offset (High-Z)1 ±2.50 V

Query Syntax Return Format

:WGEN:FUNCtion?
The :WGEN:FUNCtion? query returns the currently selected signal type.
<signal><NL>

See Also

<signal> ::= {SIN | SQU | RAMP | PULS | DC | NOIS | SINC | EXPR | EXPF | CARD | GAUS | ARB}
· "Introduction to :WGEN Commands" on page 1021 · ":WGEN:MODulation:NOISe" on page 1048

1036

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33

:WGEN:FUNCtion:PULSe:WIDTh

(see page 1164)

Command Syntax :WGEN:FUNCtion:PULSe:WIDTh <width>

<width> ::= pulse width in seconds in NR3 format
For Pulse waveforms, the :WGEN:FUNCtion:PULSe:WIDTh command specifies the width of the pulse.

Query Syntax Return Format

The pulse width can be adjusted from 20 ns to the period minus 20 ns.
:WGEN:FUNCtion:PULSe:WIDTh?
The :WGEN:FUNCtion:PULSe:WIDTh? query returns the currently set pulse width.
<width><NL>

See Also

<width> ::= pulse width in seconds in NR3 format
· "Introduction to :WGEN Commands" on page 1021 · ":WGEN:FUNCtion" on page 1033

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1037

33 :WGEN Commands

:WGEN:FUNCtion:RAMP:SYMMetry

(see page 1164)

Command Syntax :WGEN:FUNCtion:RAMP:SYMMetry <percent>

<percent> ::= symmetry percentage from 0% to 100% in NR1 format
For Ramp waveforms, the :WGEN:FUNCtion:RAMP:SYMMetry command specifies the symmetry of the waveform.

Query Syntax Return Format

Symmetry represents the amount of time per cycle that the ramp waveform is rising.
:WGEN:FUNCtion:RAMP:SYMMetry?
The :WGEN:FUNCtion:RAMP:SYMMetry? query returns the currently set ramp symmetry.
<percent><NL>

See Also

<percent> ::= symmetry percentage from 0% to 100% in NR1 format
· "Introduction to :WGEN Commands" on page 1021 · ":WGEN:FUNCtion" on page 1033

1038

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33

:WGEN:FUNCtion:SQUare:DCYCle

(see page 1164)

Command Syntax :WGEN:FUNCtion:SQUare:DCYCle <percent>

<percent> ::= duty cycle percentage from 20% to 80% in NR1 format
For Square waveforms, the :WGEN:FUNCtion:SQUare:DCYCle command specifies the square wave duty cycle.

Query Syntax Return Format

Duty cycle is the percentage of the period that the waveform is high.
:WGEN:FUNCtion:SQUare:DCYCle?
The :WGEN:FUNCtion:SQUare:DCYCle? query returns the currently set square wave duty cycle.
<percent><NL>

See Also

<percent> ::= duty cycle percentage from 20% to 80% in NR1 format
· "Introduction to :WGEN Commands" on page 1021 · ":WGEN:FUNCtion" on page 1033

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1039

33 :WGEN Commands

:WGEN:MODulation:AM:DEPTh

(see page 1164)

Command Syntax :WGEN:MODulation:AM:DEPTh <percent>

<percent> ::= AM depth percentage from 0% to 100% in NR1 format
The :WGEN:MODulation:AM:DEPTh command specifies the amount of amplitude modulation.

Query Syntax

AM Depth refers to the portion of the amplitude range that will be used by the modulation. For example, a depth setting of 80% causes the output amplitude to vary from 10% to 90% (90% ­ 10% = 80%) of the original amplitude as the modulating signal goes from its minimum to maximum amplitude.
:WGEN:MODulation:AM:DEPTh?
The :WGEN:MODulation:AM:DEPTh? query returns the AM depth percentage setting.

Return Format <percent><NL>

See Also

<percent> ::= AM depth percentage from 0% to 100% in NR1 format
· ":WGEN:MODulation:AM:FREQuency" on page 1041 · ":WGEN:MODulation:FM:DEViation" on page 1042 · ":WGEN:MODulation:FM:FREQuency" on page 1043 · ":WGEN:MODulation:FSKey:FREQuency" on page 1044 · ":WGEN:MODulation:FSKey:RATE" on page 1045 · ":WGEN:MODulation:FUNCtion" on page 1046 · ":WGEN:MODulation:FUNCtion:RAMP:SYMMetry" on page 1047 · ":WGEN:MODulation:STATe" on page 1049 · ":WGEN:MODulation:TYPE" on page 1050

1040

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33

:WGEN:MODulation:AM:FREQuency

(see page 1164)

Command Syntax :WGEN:MODulation:AM:FREQuency <frequency>

<frequency> ::= modulating waveform frequency in Hz in NR3 format
The :WGEN:MODulation:AM:FREQuency command specifies the frequency of the modulating signal.

Query Syntax Return Format

:WGEN:MODulation:AM:FREQuency?
The :WGEN:MODulation:AM:FREQuency? query returns the frequency of the modulating signal.
<frequency><NL>

See Also

<frequency> ::= modulating waveform frequency in Hz in NR3 format
· ":WGEN:MODulation:AM:DEPTh" on page 1040 · ":WGEN:MODulation:FM:DEViation" on page 1042 · ":WGEN:MODulation:FM:FREQuency" on page 1043 · ":WGEN:MODulation:FSKey:FREQuency" on page 1044 · ":WGEN:MODulation:FSKey:RATE" on page 1045 · ":WGEN:MODulation:FUNCtion" on page 1046 · ":WGEN:MODulation:FUNCtion:RAMP:SYMMetry" on page 1047 · ":WGEN:MODulation:STATe" on page 1049 · ":WGEN:MODulation:TYPE" on page 1050

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1041

33 :WGEN Commands

:WGEN:MODulation:FM:DEViation

(see page 1164)

Command Syntax :WGEN:MODulation:FM:DEViation <frequency>

<frequency> ::= frequency deviation in Hz in NR3 format
The :WGEN:MODulation:FM:DEViation command specifies the frequency deviation from the original carrier signal frequency.

Query Syntax

When the modulating signal is at its maximum amplitude, the output frequency is the carrier signal frequency plus the deviation amount, and when the modulating signal is at its minimum amplitude, the output frequency is the carrier signal frequency minus the deviation amount. The frequency deviation cannot be greater than the original carrier signal frequency. Also, the sum of the original carrier signal frequency and the frequency deviation must be less than or equal to the maximum frequency for the selected waveform generator function plus 100 kHz.
:WGEN:MODulation:FM:DEViation?
The :WGEN:MODulation:FM:DEViation? query returns the frequency deviation setting.

Return Format <frequency><NL>

See Also

<frequency> ::= frequency deviation in Hz in NR3 format
· ":WGEN:MODulation:AM:DEPTh" on page 1040 · ":WGEN:MODulation:AM:FREQuency" on page 1041 · ":WGEN:MODulation:FM:FREQuency" on page 1043 · ":WGEN:MODulation:FSKey:FREQuency" on page 1044 · ":WGEN:MODulation:FSKey:RATE" on page 1045 · ":WGEN:MODulation:FUNCtion" on page 1046 · ":WGEN:MODulation:FUNCtion:RAMP:SYMMetry" on page 1047 · ":WGEN:MODulation:STATe" on page 1049 · ":WGEN:MODulation:TYPE" on page 1050

1042

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33

:WGEN:MODulation:FM:FREQuency

(see page 1164)

Command Syntax :WGEN:MODulation:FM:FREQuency <frequency>

<frequency> ::= modulating waveform frequency in Hz in NR3 format
The :WGEN:MODulation:FM:FREQuency command specifies the frequency of the modulating signal.

Query Syntax Return Format

:WGEN:MODulation:FM:FREQuency?
The :WGEN:MODulation:FM:FREQuency? query returns the frequency of the modulating signal.
<frequency><NL>

See Also

<frequency> ::= modulating waveform frequency in Hz in NR3 format
· ":WGEN:MODulation:AM:DEPTh" on page 1040 · ":WGEN:MODulation:AM:FREQuency" on page 1041 · ":WGEN:MODulation:FM:DEViation" on page 1042 · ":WGEN:MODulation:FSKey:FREQuency" on page 1044 · ":WGEN:MODulation:FSKey:RATE" on page 1045 · ":WGEN:MODulation:FUNCtion" on page 1046 · ":WGEN:MODulation:FUNCtion:RAMP:SYMMetry" on page 1047 · ":WGEN:MODulation:STATe" on page 1049 · ":WGEN:MODulation:TYPE" on page 1050

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1043

33 :WGEN Commands

:WGEN:MODulation:FSKey:FREQuency

(see page 1164)

Command Syntax :WGEN:MODulation:FSKey:FREQuency <frequency>

<frequency> ::= hop frequency in Hz in NR3 format
The :WGEN:MODulation:FSKey:FREQuency command specifies the "hop frequency".

Query Syntax Return Format

The output frequency "shifts" between the original carrier frequency and this "hop frequency".
:WGEN:MODulation:FSKey:FREQuency?
The :WGEN:MODulation:FSKey:FREQuency? query returns the "hop frequency" setting.
<frequency><NL>

See Also

<frequency> ::= hop frequency in Hz in NR3 format
· ":WGEN:MODulation:AM:DEPTh" on page 1040 · ":WGEN:MODulation:AM:FREQuency" on page 1041 · ":WGEN:MODulation:FM:DEViation" on page 1042 · ":WGEN:MODulation:FM:FREQuency" on page 1043 · ":WGEN:MODulation:FSKey:RATE" on page 1045 · ":WGEN:MODulation:FUNCtion" on page 1046 · ":WGEN:MODulation:FUNCtion:RAMP:SYMMetry" on page 1047 · ":WGEN:MODulation:STATe" on page 1049 · ":WGEN:MODulation:TYPE" on page 1050

1044

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33

:WGEN:MODulation:FSKey:RATE

(see page 1164)

Command Syntax :WGEN:MODulation:FSKey:RATE <rate>

<rate> ::= FSK modulation rate in Hz in NR3 format
The :WGEN:MODulation:FSKey:RATE command specifies the rate at which the output frequency "shifts".

Query Syntax Return Format

The FSK rate specifies a digital square wave modulating signal.
:WGEN:MODulation:FSKey:RATE?
The :WGEN:MODulation:FSKey:RATE? query returns the FSK rate setting.
<rate><NL>

See Also

<rate> ::= FSK modulation rate in Hz in NR3 format
· ":WGEN:MODulation:AM:DEPTh" on page 1040 · ":WGEN:MODulation:AM:FREQuency" on page 1041 · ":WGEN:MODulation:FM:DEViation" on page 1042 · ":WGEN:MODulation:FM:FREQuency" on page 1043 · ":WGEN:MODulation:FSKey:FREQuency" on page 1044 · ":WGEN:MODulation:FUNCtion" on page 1046 · ":WGEN:MODulation:FUNCtion:RAMP:SYMMetry" on page 1047 · ":WGEN:MODulation:STATe" on page 1049 · ":WGEN:MODulation:TYPE" on page 1050

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1045

33 :WGEN Commands

:WGEN:MODulation:FUNCtion

(see page 1164)

Command Syntax :WGEN:MODulation:FUNCtion <shape>

<shape> ::= {SINusoid | SQUare| RAMP}
The :WGEN:MODulation:FUNCtion command specifies the shape of the modulating signal.

When the RAMP shape is selected, you can specify the amount of time per cycle that the ramp waveform is rising with the :WGEN:MODulation:FUNCtion:RAMP:SYMMetry command. This command applies to AM and FM modulation. (The FSK modulation signal is a square wave shape.)

Query Syntax Return Format

:WGEN:MODulation:FUNCtion?
The :WGEN:MODulation:FUNCtion? query returns the specified modulating signal shape.
<shape><NL>

See Also

<shape> ::= {SIN | SQU| RAMP}
· ":WGEN:MODulation:AM:DEPTh" on page 1040 · ":WGEN:MODulation:AM:FREQuency" on page 1041 · ":WGEN:MODulation:FM:DEViation" on page 1042 · ":WGEN:MODulation:FM:FREQuency" on page 1043 · ":WGEN:MODulation:FSKey:FREQuency" on page 1044 · ":WGEN:MODulation:FSKey:RATE" on page 1045 · ":WGEN:MODulation:FUNCtion:RAMP:SYMMetry" on page 1047 · ":WGEN:MODulation:STATe" on page 1049 · ":WGEN:MODulation:TYPE" on page 1050

1046

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33

:WGEN:MODulation:FUNCtion:RAMP:SYMMetry

(see page 1164)

Command Syntax :WGEN:MODulation:FUNCtion:RAMP:SYMMetry <percent>

Query Syntax Return Format

<percent> ::= symmetry percentage from 0% to 100% in NR1 format
The :WGEN:MODulation:FUNCtion:RAMP:SYMMetry command specifies the amount of time per cycle that the ramp waveform is rising. The ramp modulating waveform shape is specified with the :WGEN:MODulation:FUNCtion command.
:WGEN:MODulation:FUNCtion:RAMP:SYMMetry?
The :WGEN:MODulation:FUNCtion:RAMP:SYMMetry? query returns ramp symmetry percentage setting.
<percent><NL>

See Also

<percent> ::= symmetry percentage from 0% to 100% in NR1 format
· ":WGEN:MODulation:AM:DEPTh" on page 1040 · ":WGEN:MODulation:AM:FREQuency" on page 1041 · ":WGEN:MODulation:FM:DEViation" on page 1042 · ":WGEN:MODulation:FM:FREQuency" on page 1043 · ":WGEN:MODulation:FSKey:FREQuency" on page 1044 · ":WGEN:MODulation:FSKey:RATE" on page 1045 · ":WGEN:MODulation:FUNCtion" on page 1046 · ":WGEN:MODulation:STATe" on page 1049 · ":WGEN:MODulation:TYPE" on page 1050

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1047

33 :WGEN Commands

:WGEN:MODulation:NOISe

(see page 1164)

Command Syntax :WGEN:MODulation:NOISe <percent>

Query Syntax Return Format

<percent> ::= 0 to 100
The :WGEN:MODulation:NOISe command adds noise to the currently selected signal. The sum of the amplitude between the original signal and injected noise is limited to the regular amplitude limit (for example, 5 Vpp in 1 MOhm), so the range for <percent> varies according to current amplitude. Note that adding noise affects edge triggering on the waveform generator source as well as the waveform generator sync pulse output signal (which can be sent to TRIG OUT). This is because the trigger comparator is located after the noise source.
:WGEN:MODulation:NOISe?
The :WGEN:MODulation:NOISe query returns the percent of added noise.
<percent><NL>

<percent> ::= 0 to 100
See Also · ":WGEN:FUNCtion" on page 1033

1048

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33

:WGEN:MODulation:STATe

(see page 1164)

Command Syntax :WGEN:MODulation:STATe <setting>

<setting> ::= {{OFF | 0} | {ON | 1}}
The :WGEN:MODulation:STATe command enables or disables modulated waveform generator output.

Query Syntax Return Format

You can enable modulation for all waveform generator function types except pulse, DC, and noise.
:WGEN:MODulation:STATe?
The :WGEN:MODulation:STATe? query returns whether the modulated waveform generator output is enabled of disabled.
<setting><NL>

See Also

<setting> ::= {0 | 1}
· ":WGEN:MODulation:AM:DEPTh" on page 1040 · ":WGEN:MODulation:AM:FREQuency" on page 1041 · ":WGEN:MODulation:FM:DEViation" on page 1042 · ":WGEN:MODulation:FM:FREQuency" on page 1043 · ":WGEN:MODulation:FSKey:FREQuency" on page 1044 · ":WGEN:MODulation:FSKey:RATE" on page 1045 · ":WGEN:MODulation:FUNCtion" on page 1046 · ":WGEN:MODulation:FUNCtion:RAMP:SYMMetry" on page 1047 · ":WGEN:MODulation:TYPE" on page 1050

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1049

33 :WGEN Commands

:WGEN:MODulation:TYPE

(see page 1164)

Command Syntax :WGEN:MODulation:TYPE <type>

<type> ::= {AM | FM | FSK}
The :WGEN:MODulation:TYPE command selects the modulation type: · AM (amplitude modulation) -- the amplitude of the original carrier signal is
modified according to the amplitude of the modulating signal.

Use the :WGEN:MODulation:AM:FREQuency command to set the modulating signal frequency. Use the :WGEN:MODulation:AM:DEPTh command to specify the amount of amplitude modulation. · FM (frequency modulation) -- the frequency of the original carrier signal is modified according to the amplitude of the modulating signal.

Query Syntax Return Format

Use the :WGEN:MODulation:FM:FREQuency command to set the modulating signal frequency. Use the :WGEN:MODulation:FM:DEViation command to specify the frequency deviation from the original carrier signal frequency. · FSK (frequency-shift keying modulation) -- the output frequency "shifts" between the original carrier frequency and a "hop frequency" at the specified FSK rate. The FSK rate specifies a digital square wave modulating signal. Use the :WGEN:MODulation:FSKey:FREQuency command to specify the "hop frequency". Use the :WGEN:MODulation:FSKey:RATE command to specify the rate at which the output frequency "shifts".
:WGEN:MODulation:TYPE?
The :WGEN:MODulation:TYPE? query returns the selected modulation type.
<type><NL>

See Also

<type> ::= {AM | FM | FSK}
· ":WGEN:MODulation:AM:DEPTh" on page 1040 · ":WGEN:MODulation:AM:FREQuency" on page 1041 · ":WGEN:MODulation:FM:DEViation" on page 1042 · ":WGEN:MODulation:FM:FREQuency" on page 1043 · ":WGEN:MODulation:FSKey:FREQuency" on page 1044

1050

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33
· ":WGEN:MODulation:FSKey:RATE" on page 1045 · ":WGEN:MODulation:FUNCtion" on page 1046 · ":WGEN:MODulation:FUNCtion:RAMP:SYMMetry" on page 1047 · ":WGEN:MODulation:STATe" on page 1049

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1051

33 :WGEN Commands

:WGEN:OUTPut

(see page 1164)

Command Syntax :WGEN:OUTPut <on_off>

<on_off> ::= {{1 | ON} | {0 | OFF}
The :WGEN:OUTPut command specifies whether the waveform generator signal output is ON (1) or OFF (0).

Query Syntax Return Format

:WGEN:OUTPut?
The :WGEN:OUTPut? query returns the current state of the waveform generator output setting.
<on_off><NL>

<on_off> ::= {1 | 0}
See Also · "Introduction to :WGEN Commands" on page 1021

1052

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33

:WGEN:OUTPut:LOAD

(see page 1164)

Command Syntax :WGEN:OUTPut:LOAD <impedance>

<impedance> ::= {ONEMeg | FIFTy}
The :WGEN:OUTPut:LOAD command selects the expected output load impedance.

The output impedance of the Gen Out BNC is fixed at 50 ohms. However, the output load selection lets the waveform generator display the correct amplitude and offset levels for the expected output load. If the actual load impedance is different than the selected value, the displayed amplitude and offset levels will be incorrect.

Query Syntax Return Format

:WGEN:OUTPut:LOAD?
The :WGEN:OUTPut:LOAD? query returns the current expected output load impedance.
<impedance><NL>

<impedance> ::= {ONEM | FIFT}
See Also · "Introduction to :WGEN Commands" on page 1021

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1053

33 :WGEN Commands

:WGEN:PERiod

(see page 1164)

Command Syntax :WGEN:PERiod <period>

<period> ::= period in seconds in NR3 format
For all waveforms except Noise and DC, the :WGEN:PERiod command specifies the period of the waveform.

Query Syntax Return Format

You can also specify the period indirectly using the :WGEN:FREQuency command.
:WGEN:PERiod?
The :WGEN:PERiod? query returns the currently set waveform generator period.
<period><NL>

See Also

<period> ::= period in seconds in NR3 format
· "Introduction to :WGEN Commands" on page 1021 · ":WGEN:FUNCtion" on page 1033 · ":WGEN:FREQuency" on page 1032

1054

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33

:WGEN:RST

Command Syntax See Also

(see page 1164)
:WGEN:RST
The :WGEN:RST command restores the waveform generator factory default settings (1 kHz sine wave, 500 mVpp, 0 V offset). · "Introduction to :WGEN Commands" on page 1021 · ":WGEN:FUNCtion" on page 1033 · ":WGEN:FREQuency" on page 1032

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1055

33 :WGEN Commands

:WGEN:VOLTage

(see page 1164)

Command Syntax :WGEN:VOLTage <amplitude>

Query Syntax

<amplitude> ::= amplitude in volts in NR3 format
For all waveforms except DC, the :WGEN:VOLTage command specifies the waveform's amplitude. Use the :WGEN:VOLTage:OFFSet command to specify the offset voltage or DC level. You can also specify the amplitude and offset indirectly using the :WGEN:VOLTage:HIGH and :WGEN:VOLTage:LOW commands. For example, an amplitude of 5 V and an offset of 1 V is the same as a high-level voltage of 4 V and a low-level voltage of -1 V.
:WGEN:VOLTage?
The :WGEN:VOLTage? query returns the currently specified waveform amplitude.

Return Format <amplitude><NL>

See Also

<amplitude> ::= amplitude in volts in NR3 format
· "Introduction to :WGEN Commands" on page 1021 · ":WGEN:FUNCtion" on page 1033 · ":WGEN:VOLTage:OFFSet" on page 1059 · ":WGEN:VOLTage:HIGH" on page 1057 · ":WGEN:VOLTage:LOW" on page 1058

1056

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33

:WGEN:VOLTage:HIGH

(see page 1164)

Command Syntax :WGEN:VOLTage:HIGH <high>

Query Syntax Return Format

<high> ::= high-level voltage in volts, in NR3 format
For all waveforms except DC, the :WGEN:VOLTage:HIGH command specifies the waveform's high-level voltage. Use the :WGEN:VOLTage:LOW command to specify the low-level voltage. You can also specify the high-level and low-level voltages indirectly using the :WGEN:VOLTage and :WGEN:VOLTage:OFFSet commands. For example, a high-level voltage of 4 V and a low-level voltage of -1 V is the same as an amplitude of 5 V and an offset of 1 V.
:WGEN:VOLTage:HIGH?
The :WGEN:VOLTage:HIGH? query returns the currently specified waveform high-level voltage.
<high><NL>

See Also

<high> ::= high-level voltage in volts, in NR3 format
· "Introduction to :WGEN Commands" on page 1021 · ":WGEN:FUNCtion" on page 1033 · ":WGEN:VOLTage:LOW" on page 1058 · ":WGEN:VOLTage" on page 1056 · ":WGEN:VOLTage:OFFSet" on page 1059

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1057

33 :WGEN Commands

:WGEN:VOLTage:LOW

(see page 1164)

Command Syntax :WGEN:VOLTage:LOW <low>

Query Syntax Return Format

<low> ::= low-level voltage in volts, in NR3 format
For all waveforms except DC, the :WGEN:VOLTage:LOW command specifies the waveform's low-level voltage. Use the :WGEN:VOLTage:HIGH command to specify the high-level voltage. You can also specify the high-level and low-level voltages indirectly using the :WGEN:VOLTage and :WGEN:VOLTage:OFFSet commands. For example, a high-level voltage of 4 V and a low-level voltage of -1 V is the same as an amplitude of 5 V and an offset of 1 V.
:WGEN:VOLTage:LOW?
The :WGEN:VOLTage:LOW? query returns the currently specified waveform low-level voltage.
<low><NL>

See Also

<low> ::= low-level voltage in volts, in NR3 format
· "Introduction to :WGEN Commands" on page 1021 · ":WGEN:FUNCtion" on page 1033 · ":WGEN:VOLTage:LOW" on page 1058 · ":WGEN:VOLTage" on page 1056 · ":WGEN:VOLTage:OFFSet" on page 1059

1058

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WGEN Commands 33

:WGEN:VOLTage:OFFSet

(see page 1164)

Command Syntax :WGEN:VOLTage:OFFSet <offset>

<offset> ::= offset in volts in NR3 format
The :WGEN:VOLTage:OFFSet command specifies the waveform's offset voltage or the DC level. Use the :WGEN:VOLTage command to specify the amplitude.

Query Syntax

You can also specify the amplitude and offset indirectly using the :WGEN:VOLTage:HIGH and :WGEN:VOLTage:LOW commands. For example, an amplitude of 5 V and an offset of 1 V is the same as a high-level voltage of 4 V and a low-level voltage of -1 V.
:WGEN:VOLTage:OFFSet?
The :WGEN:VOLTage:OFFSet? query returns the currently specified waveform offset voltage.

Return Format <offset><NL>

See Also

<offset> ::= offset in volts in NR3 format
· "Introduction to :WGEN Commands" on page 1021 · ":WGEN:FUNCtion" on page 1033 · ":WGEN:VOLTage" on page 1056 · ":WGEN:VOLTage:HIGH" on page 1057 · ":WGEN:VOLTage:LOW" on page 1058

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1059

33 :WGEN Commands

1060

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
34 :WMEMory<r> Commands

Control reference waveforms.

Table 140 :WMEMory<r> Commands Summary

Command

Query

:WMEMory<r>:CLEar

n/a

(see page 1063)

:WMEMory<r>:DISPlay
{{0 | OFF} | {1 | ON}} (see page 1064)

:WMEMory<r>:DISPlay? (see page 1064)

:WMEMory<r>:LABel
<string> (see page 1065)

:WMEMory<r>:LABel? (see page 1065)

:WMEMory<r>:SAVE

n/a

<source> (see page 1066)

:WMEMory<r>:SKEW

:WMEMory<r>:SKEW?

<skew> (see page 1067) (see page 1067)

:WMEMory<r>:YOFFset
<offset>[suffix] (see page 1068)

:WMEMory<r>:YOFFset? (see page 1068)

Options and Query Returns <r> ::= 1-2 in NR1 format
<r> ::= 1-2 in NR1 format {0 | 1}
<r> ::= 1-2 in NR1 format <string> ::= any series of 10 or less ASCII characters enclosed in quotation marks
<r> ::= 1-2 in NR1 format <source> ::= {CHANnel<n> | FUNCtion | MATH} <n> ::= 1 to (# analog channels) in NR1 format NOTE: Only ADD or SUBtract math operations can be saved as reference waveforms.
<r> ::= 1-2 in NR1 format <skew> ::= time in seconds in NR3 format
<r> ::= 1-2 in NR1 format <offset> ::= vertical offset value in NR3 format [suffix] ::= {V | mV}

1061

34 :WMEMory<r> Commands

Table 140 :WMEMory<r> Commands Summary (continued)

Command

Query

:WMEMory<r>:YRANge
<range>[suffix] (see page 1069)

:WMEMory<r>:YRANge? (see page 1069)

:WMEMory<r>:YSCale
<scale>[suffix] (see page 1070)

:WMEMory<r>:YSCale? (see page 1070)

Options and Query Returns
<r> ::= 1-2 in NR1 format <range> ::= vertical full-scale range value in NR3 format [suffix] ::= {V | mV}
<r> ::= 1-2 in NR1 format <scale> ::= vertical units per division value in NR3 format [suffix] ::= {V | mV}

1062

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WMEMory<r> Commands 34

:WMEMory<r>:CLEar

(see page 1164)

Command Syntax :WMEMory<r>:CLEar

<r> ::= 1-2 in NR1 format
The :WMEMory<r>:CLEar command clears the specified reference waveform location.

See Also

· Chapter 34, ":WMEMory<r> Commands," starting on page 1061 · ":WMEMory<r>:SAVE" on page 1066 · ":WMEMory<r>:DISPlay" on page 1064

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1063

34 :WMEMory<r> Commands

:WMEMory<r>:DISPlay

(see page 1164)

Command Syntax :WMEMory<r>:DISPlay <on_off>

<r> ::= 1-2 in NR1 format

Query Syntax Return Format

<on_off> ::= {{1 | ON} | {0 | OFF}}
The :WMEMory<r>:DISPlay command turns the display of the specified reference waveform on or off. There are two reference waveform locations, but only one reference waveform can be displayed at a time. That means, if :WMEMory1:DISPlay is ON, sending the :WMEMory2:DISPlay ON command will automatically set :WMEMory1:DISPlay OFF.
:WMEMory<r>:DISPlay?
The :WMEMory<r>:DISPlay? query returns the current display setting for the reference waveform.
<on_off><NL>

See Also

<on_off> ::= {1 | 0}
· Chapter 34, ":WMEMory<r> Commands," starting on page 1061 · ":WMEMory<r>:CLEar" on page 1063 · ":WMEMory<r>:LABel" on page 1065

1064

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WMEMory<r> Commands 34

:WMEMory<r>:LABel

(see page 1164) Command Syntax :WMEMory<r>:LABel <string>
<r> ::= 1-2 in NR1 format <string> ::= quoted ASCII string

NOTE

Label strings are 10 characters or less, and may contain any commonly used ASCII characters. Labels with more than 10 characters are truncated to 10 characters. Lower case characters are converted to upper case.

Query Syntax Return Format

The :WMEMory<r>:LABel command sets the reference waveform label to the string that follows. Setting a label for a reference waveform also adds the name to the label list in non-volatile memory (replacing the oldest label in the list).
:WMEMory<r>:LABel?
The :WMEMory<r>:LABel? query returns the label associated with a particular reference waveform.
<string><NL>

See Also

<string> ::= quoted ASCII string
· Chapter 34, ":WMEMory<r> Commands," starting on page 1061 · ":WMEMory<r>:DISPlay" on page 1064

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1065

34 :WMEMory<r> Commands

:WMEMory<r>:SAVE

(see page 1164) Command Syntax :WMEMory<r>:SAVE <source>
<r> ::= 1-2 in NR1 format <source> ::= {CHANnel<n> | FUNCtion | MATH} <n> ::= 1 to (# analog channels) in NR1 format
The :WMEMory<r>:SAVE command copies the analog channel or math function waveform to the specified reference waveform location.

NOTE

Only ADD or SUBtract math operations can be saved as reference waveforms.

NOTE

:WMEMory<r>:SAVE is an overlapped command (see "Sequential vs. Overlapped Commands" on page 1172).

See Also · Chapter 34, ":WMEMory<r> Commands," starting on page 1061 · ":WMEMory<r>:DISPlay" on page 1064

1066

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WMEMory<r> Commands 34

:WMEMory<r>:SKEW

(see page 1164)

Command Syntax :WMEMory<r>:SKEW <skew>

<r> ::= 1-2 in NR1 format

Query Syntax Return Format

<skew> ::= time in seconds in NR3 format
The :WMEMory<r>:SKEW command sets the skew factor for the specified reference waveform.
:WMEMory<r>:SKEW?
The :WMEMory<r>:SKEW? query returns the current skew setting for the selected reference waveform.
<skew><NL>

See Also

<skew> ::= time in seconds in NR3 format
· Chapter 34, ":WMEMory<r> Commands," starting on page 1061 · ":WMEMory<r>:DISPlay" on page 1064 · ":WMEMory<r>:YOFFset" on page 1068 · ":WMEMory<r>:YRANge" on page 1069 · ":WMEMory<r>:YSCale" on page 1070

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1067

34 :WMEMory<r> Commands

:WMEMory<r>:YOFFset

(see page 1164)

Command Syntax :WMEMory<r>:YOFFset <offset> [<suffix>]

<r> ::= 1-2 in NR1 format

<offset> ::= vertical offset value in NR3 format

Query Syntax Return Format

<suffix> ::= {V | mV}
The :WMEMory<r>:YOFFset command sets the value that is represented at center screen for the selected reference waveform. The range of legal values varies with the value set by the :WMEMory<r>:YRANge or :WMEMory<r>:YSCale commands. If you set the offset to a value outside of the legal range, the offset value is automatically set to the nearest legal value. Legal values are affected by the probe attenuation setting.
:WMEMory<r>:YOFFset?
The :WMEMory<r>:YOFFset? query returns the current offset value for the selected reference waveform.
<offset><NL>

See Also

<offset> ::= vertical offset value in NR3 format
· Chapter 34, ":WMEMory<r> Commands," starting on page 1061 · ":WMEMory<r>:DISPlay" on page 1064 · ":WMEMory<r>:YRANge" on page 1069 · ":WMEMory<r>:YSCale" on page 1070 · ":WMEMory<r>:SKEW" on page 1067

1068

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

:WMEMory<r> Commands 34

:WMEMory<r>:YRANge

(see page 1164)

Command Syntax :WMEMory<r>:YRANge <range>[<suffix>]

<r> ::= 1-2 in NR1 format

<range> ::= vertical full-scale range value in NR3 format

Query Syntax Return Format

<suffix> ::= {V | mV}
The :WMEMory<r>:YRANge command defines the full-scale vertical axis of the selected reference waveform. Legal values for the range are copied from the original source waveform (that is, the analog channel or math function waveform that was originally saved as a reference waveform).
:WMEMory<r>:YRANge?
The :WMEMory<r>:YRANge? query returns the current full-scale range setting for the specified reference waveform.
<range><NL>

See Also

<range> ::= vertical full-scale range value in NR3 format
· Chapter 34, ":WMEMory<r> Commands," starting on page 1061 · ":WMEMory<r>:DISPlay" on page 1064 · ":WMEMory<r>:YOFFset" on page 1068 · ":WMEMory<r>:SKEW" on page 1067 · ":WMEMory<r>:YSCale" on page 1070

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1069

34 :WMEMory<r> Commands

:WMEMory<r>:YSCale

(see page 1164)

Command Syntax :WMEMory<r>:YSCale <scale>[<suffix>]

<r> ::= 1-2 in NR1 format

<scale> ::= vertical units per division in NR3 format

Query Syntax Return Format

<suffix> ::= {V | mV}
The :WMEMory<r>:YSCale command sets the vertical scale, or units per division, of the selected reference waveform. Legal values for the scale are copied from the original source waveform (that is, the analog channel or math function waveform that was originally saved as a reference waveform).
:WMEMory<r>:YSCale?
The :WMEMory<r>:YSCale? query returns the current scale setting for the specified reference waveform.
<scale><NL>

See Also

<scale> ::= vertical units per division in NR3 format
· Chapter 34, ":WMEMory<r> Commands," starting on page 1061 · ":WMEMory<r>:DISPlay" on page 1064 · ":WMEMory<r>:YOFFset" on page 1068 · ":WMEMory<r>:YRANge" on page 1069 · ":WMEMory<r>:SKEW" on page 1067

1070

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
35 Obsolete and Discontinued Commands

Obsolete commands are older forms of commands that are provided to reduce customer rework for existing systems and programs (see"Obsolete Commands" on page 1164).

Obsolete Command ANALog<n>:BWLimit ANALog<n>:COUPling ANALog<n>:INVert ANALog<n>:LABel ANALog<n>:OFFSet ANALog<n>:PROBe ANALog<n>:PMODe ANALog<n>:RANGe :CHANnel:ACTivity (see page 1077) :CHANnel:LABel (see page 1078)

Current Command Equivalent :CHANnel<n>:BWLimit (see page 271) :CHANnel<n>:COUPling (see page 272) :CHANnel<n>:INVert (see page 275) :CHANnel<n>:LABel (see page 276) :CHANnel<n>:OFFSet (see page 277) :CHANnel<n>:PROBe (see page 278) none :CHANnel<n>:RANGe (see page 284) :ACTivity (see page 197)

Behavior Differences

:CHANnel<n>:LABel (see page 276) or :DIGital<n>:LABel (see page 300)

use CHANnel<n>:LABel for analog channels and use DIGital<n>:LABel for digital channels

1071

35 Obsolete and Discontinued Commands

Obsolete Command :CHANnel:THReshold (see page 1079)
:CHANnel2:SKEW (see page 1080) :CHANnel<n>:INPut (see page 1081) :CHANnel<n>:PMODe (see page 1082) :DISPlay:CONNect (see page 1083) :DISPlay:ORDer (see page 1084) :ERASe (see page 1085) :EXTernal:PMODe (see page 1086) FUNCtion1, FUNCtion2
:FUNCtion:SOURce (see page 1087)
:FUNCtion:VIEW (see page 1088) :HARDcopy:DESTination (see page 1089) :HARDcopy:FILename (see page 1090)
:HARDcopy:GRAYscale (see page 1091) :HARDcopy:IGColors (see page 1092) :HARDcopy:PDRiver (see page 1093) :MEASure:LOWer (see page 1094)

Current Command Equivalent :POD<n>:THReshold (see page 543) or :DIGital<d>:THReshold (see page 303) :CHANnel<n>:PROBe:SKEW (see page 281) :CHANnel<n>:IMPedance (see page 274) none

Behavior Differences

:DISPlay:VECTors (see page 318) none

:DISplay:CLEar (see page 311) none

:FUNCtion Commands (see page 333) :FUNCtion:SOURce1 (see page 362)
:FUNCtion:DISPlay (see page 343) :HARDcopy:FILename (see page 1090) :RECall:FILename (see page 616) :SAVE:FILename (see page 616) :HARDcopy:PALette (see page 381) :HARDcopy:INKSaver (see page 373) :HARDcopy:APRinter (see page 370) :MEASure:DEFine:THResholds (see page 428)

ADD not included Obsolete command has ADD, SUBTract, and MULTiply parameters; current command has GOFT parameter.
MEASure:DEFine:THResholds can define absolute values or percentage

1072

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

Obsolete Command :MEASure:SCRatch (see page 1095) :MEASure:TDELta (see page 1096) :MEASure:THResholds (see page 1097)

Current Command Equivalent :MEASure:CLEar (see page 426) :MARKer:XDELta (see page 396) :MEASure:DEFine:THResholds (see page 428)

:MEASure:TMAX (see page 1098) :MEASure:TMIN (see page 1099) :MEASure:TSTArt (see page 1100) :MEASure:TSTOp (see page 1101) :MEASure:TVOLt (see page 1102) :MEASure:UPPer (see page 1103)

:MEASure:XMAX (see page 483) :MEASure:XMIN (see page 484) :MARKer:X1Position (see page 392) :MARKer:X2Position (see page 394) :MEASure:TVALue (see page 470) :MEASure:DEFine:THResholds (see page 428)

:MEASure:VDELta (see page 1104)

:MARKer:YDELta (see page 403)

:MEASure:VSTArt (see page 1105)

:MARKer:Y1Position (see page 399)

:MEASure:VSTOp (see page 1106)

:MARKer:Y2Position (see page 401)

:MTESt:AMASk:{SAVE | STORe} :SAVE:MASK[:STARt] (see

(see page 1107)

page 632)

:MTESt:AVERage (see page 1108)

:ACQuire:TYPE AVERage (see page 245)

:MTESt:AVERage:COUNt (see page 1109)

:ACQuire:COUNt (see page 236)

:MTESt:LOAD (see page 1110) :RECall:MASK[:STARt] (see page 617)

:MTESt:RUMode (see page 1111)

:MTESt:RMODe (see page 524)

:MTESt:RUMode:SOFailure (see :MTESt:RMODe:FACTion:STOP

page 1112)

(see page 528)

Behavior Differences MEASure:DEFine:THResholds can define absolute values or percentage
TVALue measures additional values such as db, Vs, etc. MEASure:DEFine:THResholds can define absolute values or percentage

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1073

35 Obsolete and Discontinued Commands

Obsolete Command :MTESt:{STARt | STOP} (see page 1113) :MTESt:TRIGger:SOURce (see page 1114) :PRINt? (see page 1115) :SAVE:IMAGe:AREA (see page 1117) :TIMebase:DELay (see page 1120)
:SBUS<n>:LIN:SIGNal:DEFinitio n (see page 1118) :SBUS<n>:SPI:SOURce:DATA (see page 1119) :TRIGger:THReshold (see page 1121)
:TRIGger:TV:TVMode (see page 1122)

Current Command Equivalent :RUN (see page 225) or :STOP (see page 229) :TRIGger Commands (see page 903)
:DISPlay:DATA? (see page 312) none
:TIMebase:POSition (see page 894) or :TIMebase:WINDow:POSition (see page 899)
none
:SBUS<n>:SPI:SOURce:MOSI (see page 765) :POD<n>:THReshold (see page 543) or :DIGital<d>:THReshold (see page 303) :TRIGger:TV:MODE (see page 970)

Behavior Differences There are various commands for setting the source with different types of triggers.
TIMebase:POSition is position value of main time base; TIMebase:WINDow:POSition is position value of zoomed (delayed) time base window.

Discontinued Commands

Discontinued commands are commands that were used by previous oscilloscopes, but are not supported by the InfiniiVision 3000 X-Series oscilloscopes. Listed below are the Discontinued commands and the nearest equivalent command available (if any).

Discontinued Command ASTore
CHANnel:MATH

Current Command Equivalent :DISPlay:PERSistence INFinite (see page 317) :FUNCtion:OPERation (see page 357)

Comments ADD not included

1074

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

Discontinued Command CHANnel<n>:PROTect
DISPlay:INVerse DISPlay:COLumn DISPlay:FREeze DISPlay:GRID DISPLay:LINE DISPlay:PIXel DISPlay:POSition DISPlay:ROW DISPlay:TEXT FUNCtion:MOVE FUNCtion:PEAKs HARDcopy:ADDRess
MASK :POWer:SIGNals:CYCLes
:POWer:SIGNals:DURation

Current Command Equivalent :CHANnel<n>:PROTection (see page 283)
none none none none none none none none none none none none
none
:POWer:SIGNals:CYCLes:HARM onics (see page 582) :POWer:SIGNals:CYCLes:QUALi ty (see page 583) :POWer:SIGNals:DURation:EFFi ciency (see page 584) :POWer:SIGNals:DURation:MO Dulation (see page 585) :POWer:SIGNals:DURation:ON OFf:OFF (see page 586) :POWer:SIGNals:DURation:ON OFf:ON (see page 587) :POWer:SIGNals:DURation:RIP Ple (see page 588) :POWer:SIGNals:DURation:TRA Nsient (see page 589)

Comments Previous form of this command was used to enable/disable 50 protection. The new command resets a tripped protect and the query returns the status of TRIPed or NORMal.
Only parallel printer port is supported. GPIB printing not supported All commands discontinued, feature not available This command was separated into several other commands for specific types of power analysis. This command was separated into several other commands for specific types of power analysis.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1075

35 Obsolete and Discontinued Commands

Discontinued Command :POWer:SIGNals:VMAXimum
:POWer:SIGNals:VSTeady
:POWer:SLEW:VALue
SYSTem:KEY TEST:ALL TRACE subsystem TRIGger:ADVanced subsystem TRIGger:TV:FIELd TRIGger:TV:TVHFrej TRIGger:TV:VIR VAUToscale

Current Command Equivalent :POWer:SIGNals:VMAXimum:IN Rush (see page 592) :POWer:SIGNals:VMAXimum:O NOFf:OFF (see page 593) :POWer:SIGNals:VMAXimum:O NOFf:ON (see page 594) :POWer:SIGNals:VSTeady:ONO Ff:OFF (see page 595) :POWer:SIGNals:VSTeady:ONO Ff:ON (see page 596) :POWer:SIGNals:VSTeady:TRA Nsient (see page 597) none
none *TST (Self Test) (see page 191) none
:TRIGger:TV:MODE (see page 970)

Comments This command was separated into several other commands for specific types of power analysis.
This command was separated into several other commands for specific types of power analysis.
Slew rate values are now displayed using max and min measurements of a differentiate math function signal.
All commands discontinued, feature not available Use new GLITch, PATTern, or TV trigger modes

none none

Discontinued Parameters

Some previous oscilloscope queries returned control setting values of OFF and ON. The InfiniiVision 3000 X-Series oscilloscopes only return the enumerated values 0 (for off) and 1 (for on).

1076

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:CHANnel:ACTivity

Command Syntax

(see page 1164)
:CHANnel:ACTivity
The :CHANnel:ACTivity command clears the cumulative edge variables for the next activity query.

NOTE

The :CHANnel:ACTivity command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :ACTivity command (see page 197) instead.

Query Syntax Return Format

:CHANnel:ACTivity?
The :CHANnel:ACTivity? query returns the active edges since the last clear, and returns the current logic levels.
<edges>,<levels><NL>

<edges> ::= presence of edges (32-bit integer in NR1 format).

<levels> ::= logical highs or lows (32-bit integer in NR1 format).

NOTE

A bit equal to zero indicates that no edges were detected at the specified threshold since the last clear on that channel. Edges may have occurred that were not detected because of the threshold setting.

A bit equal to one indicates that edges have been detected at the specified threshold since the last clear on that channel.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1077

35 Obsolete and Discontinued Commands

:CHANnel:LABel

(see page 1164) Command Syntax :CHANnel:LABel <source_text><string>
<source_text> ::= {CHANnel1 | CHANnel2 | DIGital<d>} <d> ::= 0 to (# digital channels - 1) in NR1 format <string> ::= quoted ASCII string
The :CHANnel:LABel command sets the source text to the string that follows. Setting a channel will also result in the name being added to the label list.

NOTE

The :CHANnel:LABel command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :CHANnel<n>:LABel command (see page 276) or :DIGital<n>:LABel command (see page 300).

Query Syntax Return Format

:CHANnel:LABel?
The :CHANnel:LABel? query returns the label associated with a particular analog channel.
<string><NL>

<string> ::= quoted ASCII string

1078

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:CHANnel:THReshold

(see page 1164) Command Syntax :CHANnel:THReshold <channel group>, <threshold type> [, <value>]
<channel group> ::= {POD1 | POD2} <threshold type> ::= {CMOS | ECL | TTL | USERdef} <value> ::= voltage for USERdef in NR3 format [volt_type] [volt_type] ::= {V | mV (-3) | uV (-6)}
The :CHANnel:THReshold command sets the threshold for a group of channels. The threshold is either set to a predefined value or to a user-defined value. For the predefined value, the voltage parameter is ignored.

NOTE

The :CHANnel:THReshold command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :POD<n>:THReshold command (see page 543) or :DIGital<n>:THReshold command (see page 303).

Query Syntax Return Format

:CHANnel:THReshold? <channel group>
The :CHANnel:THReshold? query returns the voltage and threshold text for a specific group of channels.
<threshold type> [, <value>]<NL>

<threshold type> ::= {CMOS | ECL | TTL | USERdef}

<value> ::= voltage for USERdef (float 32 NR3)

NOTE

· CMOS = 2.5V · TTL = 1.5V · ECL = -1.3V · USERdef ::= -6.0V to 6.0V

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1079

35 Obsolete and Discontinued Commands

:CHANnel2:SKEW

(see page 1164) Command Syntax :CHANnel2:SKEW <skew value>
<skew value> ::= skew time in NR3 format <skew value> ::= -100 ns to +100 ns
The :CHANnel2:SKEW command sets the skew between channels 1 and 2. The maximum skew is +/-100 ns. You can use the oscilloscope's analog probe skew control to remove cable delay errors between channel 1 and channel 2.

NOTE

The :CHANnel2:SKEW command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :CHANnel<n>:PROBe:SKEW command (see page 281) instead.

NOTE

This command is only valid for the two channel oscilloscope models.

Query Syntax Return Format

:CHANnel2:SKEW?
The :CHANnel2:SKEW? query returns the current probe skew setting for the selected channel.
<skew value><NL>

<skew value> ::= skew value in NR3 format
See Also · "Introduction to :CHANnel<n> Commands" on page 269

1080

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:CHANnel<n>:INPut

(see page 1164) Command Syntax :CHANnel<n>:INPut <impedance>
<impedance> ::= {ONEMeg | FIFTy} <n> ::= 1 to (# analog channels) in NR1 format
The :CHANnel<n>:INPut command selects the input impedance setting for the specified channel. The legal values for this command are ONEMeg (1 M) and FIFTy (50).

NOTE

The :CHANnel<n>:INPut command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :CHANnel<n>:IMPedance command (see page 274) instead.

Query Syntax

:CHANnel<n>:INPut?
The :CHANnel<n>:INPut? query returns the current input impedance setting for the specified channel.

Return Format <impedance value><NL>

<impedance value> ::= {ONEM | FIFT}

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1081

35 Obsolete and Discontinued Commands

:CHANnel<n>:PMODe

(see page 1164) Command Syntax :CHANnel<n>:PMODe <pmode value>
<pmode value> ::= {AUTo | MANual}
<n> ::= 1 to (# analog channels) in NR1 format
The probe sense mode is controlled internally and cannot be set. If a probe with sense is connected to the specified channel, auto sensing is enabled; otherwise, the mode is manual. If the PMODe sent matches the oscilloscope's setting, the command will be accepted. Otherwise, a setting conflict error is generated.

NOTE

The :CHANnel<n>:PMODe command is an obsolete command provided for compatibility to previous oscilloscopes.

Query Syntax Return Format

:CHANnel<n>:PMODe?
The :CHANnel<n>:PMODe? query returns AUT if an autosense probe is attached and MAN otherwise.
<pmode value><NL>

<pmode value> ::= {AUT | MAN}

1082

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:DISPlay:CONNect

(see page 1164) Command Syntax :DISPlay:CONNect <connect>
<connect> ::= {{ 1 | ON} | {0 | OFF}}
The :DISPlay:CONNect command turns vectors on and off. When vectors are turned on, the oscilloscope displays lines connecting sampled data points. When vectors are turned off, only the sampled data is displayed.

NOTE

The :DISPlay:CONNEct command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :DISPlay:VECTors command (see page 318) instead.

Query Syntax Return Format

:DISPlay:CONNect?
The :DISPlay:CONNect? query returns the current state of the vectors setting.
<connect><NL>

<connect> ::= {1 | 0}
See Also · ":DISPlay:VECTors" on page 318

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1083

35 Obsolete and Discontinued Commands

:DISPlay:ORDer

Query Syntax

(see page 1164)
:DISPlay:ORDer?
The :DISPlay:ORDer? query returns a list of digital channel numbers in screen order, from top to bottom, separated by commas. Busing is displayed as digital channels with no separator. For example, in the following list, the bus consists of digital channels 4 and 5: DIG1, DIG4 DIG5, DIG7.

NOTE

The :DISPlay:ORDer command is an obsolete command provided for compatibility to previous oscilloscopes. This command is only available on the MSO models.

Return Format

<order><NL> <order> ::= Unquoted ASCII string

NOTE

A return value is included for each digital channel. A return value of NONE indicates that a channel is turned off.

See Also Example Code

· ":DIGital<d>:POSition" on page 301
' DISP_ORDER - Set the order the channels are displayed on the ' analyzer. You can enter between 1 and 32 channels at one time. ' If you leave out channels, they will not be displayed.

' Display ONLY channel 0 and channel 10 in that order. myScope.WriteString ":DISPLAY:ORDER 0,10"
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

1084

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:ERASe

Command Syntax

(see page 1164)
:ERASe
The :ERASe command erases the screen.

NOTE

The :ERASe command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :DISplay:CLEar command (see page 311) instead.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1085

35 Obsolete and Discontinued Commands

:EXTernal:PMODe

(see page 1164) Command Syntax :EXTernal:PMODe <pmode value>
<pmode value> ::= {AUTo | MANual}
The probe sense mode is controlled internally and cannot be set. If a probe with sense is connected to the specified channel, auto sensing is enabled; otherwise, the mode is manual. If the pmode sent matches the oscilloscope's setting, the command will be accepted. Otherwise, a setting conflict error is generated.

NOTE

The :EXTernal:PMODe command is an obsolete command provided for compatibility to previous oscilloscopes.

Query Syntax Return Format

:EXTernal:PMODe?
The :EXTernal:PMODe? query returns AUT if an autosense probe is attached and MAN otherwise.
<pmode value><NL>

<pmode value> ::= {AUT | MAN}

1086

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:FUNCtion:SOURce

(see page 1164) Command Syntax :FUNCtion:SOURce <value>
<value> ::= {CHANnel<n> | ADD | SUBTract | MULTiply} <n> ::= 1 to (# analog channels) in NR1 format
The :FUNCtion:SOURce command is only used when an FFT (Fast Fourier Transform), DIFF, or INT operation is selected (see the:FUNCtion:OPERation command for more information about selecting an operation). The :FUNCtion:SOURce command selects the source for function operations. Choose CHANnel<n>, or ADD, SUBT, or MULT to specify the desired source for function DIFF (differentiate), INTegrate, and FFT operations specified by the :FUNCtion:OPERation command.

NOTE

The :FUNCtion:SOURce command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :FUNCtion:SOURce1 command (see page 362) instead.

Query Syntax Return Format

:FUNCtion:SOURce?
The :FUNCtion:SOURce? query returns the current source for function operations.
<value><NL>

<value> ::= {CHAN<n> | ADD | SUBT | MULT}

See Also

<n> ::= 1 to (# analog channels) in NR1 format
· "Introduction to :FUNCtion Commands" on page 336 · ":FUNCtion:OPERation" on page 357

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1087

35 Obsolete and Discontinued Commands

:FUNCtion:VIEW

(see page 1164) Command Syntax :FUNCtion:VIEW <view>
<view> ::= {{1 | ON} | (0 | OFF}}
The :FUNCtion:VIEW command turns the selected function on or off. When ON is selected, the function performs as specified using the other FUNCtion commands. When OFF is selected, function is neither calculated nor displayed.

NOTE

The :FUNCtion:VIEW command is provided for backward compatibility to previous oscilloscopes. Use the :FUNCtion:DISPlay command (see page 343) instead.

Query Syntax Return Format

:FUNCtion:VIEW?
The :FUNCtion:VIEW? query returns the current state of the selected function.
<view><NL>

<view> ::= {1 | 0}

1088

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:HARDcopy:DESTination

(see page 1164) Command Syntax :HARDcopy:DESTination <destination>
<destination> ::= {CENTronics | FLOPpy}
The :HARDcopy:DESTination command sets the hardcopy destination.

NOTE

The :HARDcopy:DESTination command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :HARDcopy:FILename command (see page 1090) instead.

Query Syntax Return Format

:HARDcopy:DESTination?
The :HARDcopy:DESTination? query returns the selected hardcopy destination.
<destination><NL>

<destination> ::= {CENT | FLOP}
See Also · "Introduction to :HARDcopy Commands" on page 368

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1089

35 Obsolete and Discontinued Commands

:HARDcopy:FILename

(see page 1164) Command Syntax :HARDcopy:FILename <string>
<string> ::= quoted ASCII string
The HARDcopy:FILename command sets the output filename for those print formats whose output is a file.

NOTE

The :HARDcopy:FILename command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :SAVE:FILename command (see page 625) and :RECall:FILename command (see page 616) instead.

Query Syntax Return Format

:HARDcopy:FILename?
The :HARDcopy:FILename? query returns the current hardcopy output filename.
<string><NL>

<string> ::= quoted ASCII string
See Also · "Introduction to :HARDcopy Commands" on page 368

1090

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:HARDcopy:GRAYscale

(see page 1164) Command Syntax :HARDcopy:GRAYscale <gray>
<gray> ::= {{OFF | 0} | {ON | 1}}
The :HARDcopy:GRAYscale command controls whether grayscaling is performed in the hardcopy dump.

NOTE

The :HARDcopy:GRAYscale command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :HARDcopy:PALette command (see page 381) instead. (":HARDcopy:GRAYscale ON" is the same as ":HARDcopy:PALette GRAYscale" and ":HARDcopy:GRAYscale OFF" is the same as ":HARDcopy:PALette COLor".)

Query Syntax Return Format

:HARDcopy:GRAYscale?
The :HARDcopy:GRAYscale? query returns a flag indicating whether grayscaling is performed in the hardcopy dump.
<gray><NL>

<gray> ::= {0 | 1}
See Also · "Introduction to :HARDcopy Commands" on page 368

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1091

35 Obsolete and Discontinued Commands

:HARDcopy:IGColors

(see page 1164) Command Syntax :HARDcopy:IGColors <value>
<value> ::= {{OFF | 0} | {ON | 1}}
The HARDcopy:IGColors command controls whether the graticule colors are inverted or not.

NOTE

The :HARDcopy:IGColors command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :HARDcopy:INKSaver (see page 373) command instead.

Query Syntax Return Format

:HARDcopy:IGColors?
The :HARDcopy:IGColors? query returns a flag indicating whether graticule colors are inverted or not.
<value><NL>

<value> ::= {0 | 1}
See Also · "Introduction to :HARDcopy Commands" on page 368

1092

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:HARDcopy:PDRiver

(see page 1164) Command Syntax :HARDcopy:PDRiver <driver>
<driver> ::= {AP2Xxx | AP21xx | {AP2560 | AP25} | {DJ350 | DJ35} | DJ6xx | {DJ630 | DJ63} | DJ6Special | DJ6Photo | DJ8Special | DJ8xx | DJ9Vip | OJPRokx50 | DJ9xx | GVIP | DJ55xx | {PS470 | PS47} {PS100 | PS10} | CLASer | MLASer | LJFastraster | POSTscript}
The HARDcopy:PDRiver command sets the hardcopy printer driver used for the selected printer. If the correct driver for the selected printer can be identified, it will be selected and cannot be changed.

NOTE

The :HARDcopy:PDRiver command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :HARDcopy:APRinter (see page 370) command instead.

Query Syntax Return Format

:HARDcopy:PDRiver?
The :HARDcopy:PDRiver? query returns the selected hardcopy printer driver.
<driver><NL>

See Also

<driver> ::= {AP2X | AP21 | AP25 | DJ35 | DJ6 | DJ63 | DJ6S | DJ6P | DJ8S | DJ8 | DJ9V | OJPR | DJ9 | GVIP | DJ55 | PS10 | PS47 | CLAS | MLAS | LJF | POST}
· "Introduction to :HARDcopy Commands" on page 368

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1093

35 Obsolete and Discontinued Commands

:MEASure:LOWer

Command Syntax

(see page 1164)
:MEASure:LOWer <voltage>
The :MEASure:LOWer command sets the lower measurement threshold value. This value and the UPPer value represent absolute values when the thresholds are ABSolute and percentage when the thresholds are PERCent as defined by the :MEASure:DEFine THResholds command.

NOTE

The :MEASure:LOWer command is obsolete and is provided for backward compatibility to previous oscilloscopes. Use the :MEASure:DEFine THResholds command (see page 428) instead.

Query Syntax Return Format

:MEASure:LOWer?
The :MEASure:LOWer? query returns the current lower threshold level.
<voltage><NL>

See Also

<voltage> ::= the user-defined lower threshold in volts in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:THResholds" on page 1097 · ":MEASure:UPPer" on page 1103

1094

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:MEASure:SCRatch

Command Syntax

(see page 1164)
:MEASure:SCRatch
The :MEASure:SCRatch command clears all selected measurements and markers from the screen.

NOTE

The :MEASure:SCRatch command is obsolete and is provided for backward compatibility to previous oscilloscopes. Use the :MEASure:CLEar command (see page 426) instead.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1095

35 Obsolete and Discontinued Commands

:MEASure:TDELta

Query Syntax

(see page 1164)
:MEASure:TDELta?
The :MEASure:TDELta? query returns the time difference between the Tstop marker (X2 cursor) and the Tstart marker (X1 cursor). Tdelta = Tstop - Tstart Tstart is the time at the start marker (X1 cursor) and Tstop is the time at the stop marker (X2 cursor). No measurement is made when the :MEASure:TDELta? query is received by the oscilloscope. The delta time value that is output is the current value. This is the same value as the front-panel cursors delta X value.

NOTE

The :MEASure:TDELta command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :MARKer:XDELta command (see page 396) instead.

Return Format <value><NL>

See Also

<value> ::= time difference between start and stop markers in NR3 format
· "Introduction to :MARKer Commands" on page 390 · "Introduction to :MEASure Commands" on page 420 · ":MARKer:X1Position" on page 392 · ":MARKer:X2Position" on page 394 · ":MARKer:XDELta" on page 396 · ":MEASure:TSTArt" on page 1100 · ":MEASure:TSTOp" on page 1101

1096

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:MEASure:THResholds

Command Syntax

(see page 1164)
:MEASure:THResholds {T1090 | T2080 | VOLTage}
The :MEASure:THResholds command selects the thresholds used when making time measurements.

NOTE

The :MEASure:THResholds command is obsolete and is provided for backward compatibility to previous oscilloscopes. Use the :MEASure:DEFine THResholds command (see page 428) instead.

Query Syntax Return Format

:MEASure:THResholds?
The :MEASure:THResholds? query returns the current thresholds selected when making time measurements.
{T1090 | T2080 | VOLTage}<NL>

{T1090} uses the 10% and 90% levels of the selected waveform.

{T2080} uses the 20% and 80% levels of the selected waveform.

See Also

{VOLTage} uses the upper and lower voltage thresholds set by the UPPer and LOWer commands on the selected waveform.
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:LOWer" on page 1094 · ":MEASure:UPPer" on page 1103

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1097

35 Obsolete and Discontinued Commands

:MEASure:TMAX

(see page 1164) Command Syntax :MEASure:TMAX [<source>]
<source> ::= {CHANnel<n> | FUNCtion | MATH} <n> ::= 1 to (# analog channels) in NR1 format
The :MEASure:TMAX command installs a screen measurement and starts an X-at-Max-Y measurement on the selected waveform. If the optional source is specified, the current source is modified.

NOTE

The :MEASure:TMAX command is obsolete and is provided for backward compatibility to previous oscilloscopes. Use the :MEASure:XMAX command (see page 483) instead.

Query Syntax Return Format

:MEASure:TMAX? [<source>]
The :MEASure:TMAX? query returns the horizontal axis value at which the maximum vertical value occurs on the current source. If the optional source is specified, the current source is modified. If all channels are off, the query returns 9.9E+37.
<value><NL>

See Also

<value> ::= time at maximum in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:TMIN" on page 1099 · ":MEASure:XMAX" on page 483 · ":MEASure:XMIN" on page 484

1098

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:MEASure:TMIN

(see page 1164) Command Syntax :MEASure:TMIN [<source>]
<source> ::= {CHANnel<n> | FUNCtion | MATH} <n> ::= 1 to (# analog channels) in NR1 format
The :MEASure:TMIN command installs a screen measurement and starts an X-at-Min-Y measurement on the selected waveform. If the optional source is specified, the current source is modified.

NOTE

The :MEASure:TMIN command is obsolete and is provided for backward compatibility to previous oscilloscopes. Use the :MEASure:XMIN command (see page 484) instead.

Query Syntax Return Format

:MEASure:TMIN? [<source>]
The :MEASure:TMIN? query returns the horizontal axis value at which the minimum vertical value occurs on the current source. If the optional source is specified, the current source is modified. If all channels are off, the query returns 9.9E+37.
<value><NL>

See Also

<value> ::= time at minimum in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:TMAX" on page 1098 · ":MEASure:XMAX" on page 483 · ":MEASure:XMIN" on page 484

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1099

35 Obsolete and Discontinued Commands

:MEASure:TSTArt

(see page 1164) Command Syntax :MEASure:TSTArt <value> [suffix]
<value> ::= time at the start marker in seconds [suffix] ::= {s | ms | us | ns | ps}
The :MEASure:TSTArt command moves the start marker (X1 cursor) to the specified time with respect to the trigger time.

NOTE

The short form of this command, TSTA, does not follow the defined Long Form to Short Form Truncation Rules (see page 1166). The normal short form "TST" would be the same for both TSTArt and TSTOp, so sending TST for the TSTArt command produces an error.

NOTE

The :MEASure:TSTArt command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :MARKer:X1Position command (see page 392) instead.

Query Syntax Return Format

:MEASure:TSTArt?
The :MEASure:TSTArt? query returns the time at the start marker (X1 cursor).
<value><NL>

See Also

<value> ::= time at the start marker in NR3 format
· "Introduction to :MARKer Commands" on page 390 · "Introduction to :MEASure Commands" on page 420 · ":MARKer:X1Position" on page 392 · ":MARKer:X2Position" on page 394 · ":MARKer:XDELta" on page 396 · ":MEASure:TDELta" on page 1096 · ":MEASure:TSTOp" on page 1101

1100

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:MEASure:TSTOp

(see page 1164) Command Syntax :MEASure:TSTOp <value> [suffix]
<value> ::= time at the stop marker in seconds [suffix] ::= {s | ms | us | ns | ps}
The :MEASure:TSTOp command moves the stop marker (X2 cursor) to the specified time with respect to the trigger time.

NOTE

The short form of this command, TSTO, does not follow the defined Long Form to Short Form Truncation Rules (see page 1166). The normal short form "TST" would be the same for both TSTArt and TSTOp, so sending TST for the TSTOp command produces an error.

NOTE

The :MEASure:TSTOp command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :MARKer:X2Position command (see page 394) instead.

Query Syntax Return Format

:MEASure:TSTOp?
The :MEASure:TSTOp? query returns the time at the stop marker (X2 cursor).
<value><NL>

See Also

<value> ::= time at the stop marker in NR3 format
· "Introduction to :MARKer Commands" on page 390 · "Introduction to :MEASure Commands" on page 420 · ":MARKer:X1Position" on page 392 · ":MARKer:X2Position" on page 394 · ":MARKer:XDELta" on page 396 · ":MEASure:TDELta" on page 1096 · ":MEASure:TSTArt" on page 1100

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1101

35 Obsolete and Discontinued Commands

:MEASure:TVOLt

(see page 1164) Query Syntax :MEASure:TVOLt? <value>, [<slope>]<occurrence>[,<source>]
<value> ::= the voltage level that the waveform must cross.
<slope> ::= direction of the waveform. A rising slope is indicated by a plus sign (+). A falling edge is indicated by a minus sign (-).
<occurrence> ::= the transition to be reported. If the occurrence number is one, the first crossing is reported. If the number is two, the second crossing is reported, etc.
<source> ::= {<digital channels> | CHANnel<n> | FUNCtion | MATH}
<digital channels> ::= {DIGital<d>} for the MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<d> ::= 0 to (# digital channels - 1) in NR1 format
When the :MEASure:TVOLt? query is sent, the displayed signal is searched for the specified voltage level and transition. The time interval between the trigger event and this defined occurrence is returned as the response to the query. The specified voltage can be negative or positive. To specify a negative voltage, use a minus sign (-). The sign of the slope selects a rising (+) or falling (-) edge. If no sign is specified for the slope, it is assumed to be the rising edge. The magnitude of the occurrence defines the occurrence to be reported. For example, +3 returns the time for the third time the waveform crosses the specified voltage level in the positive direction. Once this voltage crossing is found, the oscilloscope reports the time at that crossing in seconds, with the trigger point (time zero) as the reference. If the specified crossing cannot be found, the oscilloscope reports +9.9E+37. This value is returned if the waveform does not cross the specified voltage, or if the waveform does not cross the specified voltage for the specified number of times in the direction specified. If the optional source parameter is specified, the current source is modified.

NOTE

The :MEASure:TVOLt command is obsolete and is provided for backward compatibility to previous oscilloscopes. Use the :MEASure:TVALue command (see page 470).

Return Format <value><NL>
<value> ::= time in seconds of the specified voltage crossing in NR3 format

1102

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:MEASure:UPPer

Command Syntax

(see page 1164)
:MEASure:UPPer <value>
The :MEASure:UPPer command sets the upper measurement threshold value. This value and the LOWer value represent absolute values when the thresholds are ABSolute and percentage when the thresholds are PERCent as defined by the :MEASure:DEFine THResholds command.

NOTE

The :MEASure:UPPer command is obsolete and is provided for backward compatibility to previous oscilloscopes. Use the :MEASure:DEFine THResholds command (see page 428) instead.

Query Syntax Return Format

:MEASure:UPPer?
The :MEASure:UPPer? query returns the current upper threshold level.
<value><NL>

See Also

<value> ::= the user-defined upper threshold in NR3 format
· "Introduction to :MEASure Commands" on page 420 · ":MEASure:LOWer" on page 1094 · ":MEASure:THResholds" on page 1097

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1103

35 Obsolete and Discontinued Commands

:MEASure:VDELta

Query Syntax

(see page 1164)
:MEASure:VDELta?
The :MEASure:VDELta? query returns the voltage difference between vertical marker 1 (Y1 cursor) and vertical marker 2 (Y2 cursor). No measurement is made when the :MEASure:VDELta? query is received by the oscilloscope. The delta value that is returned is the current value. This is the same value as the front-panel cursors delta Y value. VDELta = value at marker 2 - value at marker 1

NOTE

The :MEASure:VDELta command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :MARKer:YDELta command (see page 403) instead.

Return Format <value><NL>

See Also

<value> ::= delta V value in NR1 format
· "Introduction to :MARKer Commands" on page 390 · "Introduction to :MEASure Commands" on page 420 · ":MARKer:Y1Position" on page 399 · ":MARKer:Y2Position" on page 401 · ":MARKer:YDELta" on page 403 · ":MEASure:TDELta" on page 1096 · ":MEASure:TSTArt" on page 1100

1104

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:MEASure:VSTArt

(see page 1164) Command Syntax :MEASure:VSTArt <vstart_argument>
<vstart_argument> ::= value for vertical marker 1
The :MEASure:VSTArt command moves the vertical marker (Y1 cursor) to the specified value corresponding to the selected source. The source can be selected by the MARKer:X1Y1source command.

NOTE

The short form of this command, VSTA, does not follow the defined Long Form to Short Form Truncation Rules (see page 1166). The normal short form, VST, would be the same for both VSTArt and VSTOp, so sending VST for the VSTArt command produces an error.

NOTE

The :MEASure:VSTArt command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :MARKer:Y1Position command (see page 399) instead.

Query Syntax Return Format

:MEASure:VSTArt?
The :MEASure:VSTArt? query returns the current value of the Y1 cursor.
<value><NL>

See Also

<value> ::= voltage at voltage marker 1 in NR3 format
· "Introduction to :MARKer Commands" on page 390 · "Introduction to :MEASure Commands" on page 420 · ":MARKer:Y1Position" on page 399 · ":MARKer:Y2Position" on page 401 · ":MARKer:YDELta" on page 403 · ":MARKer:X1Y1source" on page 393 · ":MEASure:SOURce" on page 460 · ":MEASure:TDELta" on page 1096 · ":MEASure:TSTArt" on page 1100

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1105

35 Obsolete and Discontinued Commands

:MEASure:VSTOp

(see page 1164) Command Syntax :MEASure:VSTOp <vstop_argument>
<vstop_argument> ::= value for Y2 cursor
The :MEASure:VSTOp command moves the vertical marker 2 (Y2 cursor) to the specified value corresponding to the selected source. The source can be selected by the MARKer:X2Y2source command.

NOTE

The short form of this command, VSTO, does not follow the defined Long Form to Short Form Truncation Rules (see page 1166). The normal short form, VST, would be the same for both VSTArt and VSTOp, so sending VST for the VSTOp command produces an error.

NOTE

The :MEASure:VSTOp command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :MARKer:Y2Position command (see page 401) instead.

Query Syntax Return Format

:MEASure:VSTOp?
The :MEASure:VSTOp? query returns the current value of the Y2 cursor.
<value><NL>

See Also

<value> ::= value of the Y2 cursor in NR3 format
· "Introduction to :MARKer Commands" on page 390 · "Introduction to :MEASure Commands" on page 420 · ":MARKer:Y1Position" on page 399 · ":MARKer:Y2Position" on page 401 · ":MARKer:YDELta" on page 403 · ":MARKer:X2Y2source" on page 395 · ":MEASure:SOURce" on page 460 · ":MEASure:TDELta" on page 1096 · ":MEASure:TSTArt" on page 1100

1106

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:MTESt:AMASk:{SAVE | STORe}

Command Syntax

(see page 1164)
:MTESt:AMASk:{SAVE | STORe} "<filename>"
The :MTESt:AMASk:SAVE command saves the automask generated mask to a file. If an automask has not been generated, an error occurs. The <filename> parameter is an MS-DOS compatible name of the file, a maximum of 254 characters long (including the path name, if used). The filename assumes the present working directory if a path does not precede the file name.

NOTE

The :MTESt:AMASk:{SAVE | STORe} command is obsolete and is provided for backward compatibility to previous oscilloscopes. Use the :SAVE:MASK[:STARt] command (see page 632) instead.

See Also · "Introduction to :MTESt Commands" on page 507

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1107

35 Obsolete and Discontinued Commands

:MTESt:AVERage

(see page 1164) Command Syntax :MTESt:AVERage <on_off>
<on_off> ::= {{1 | ON} | {0 | OFF}}
The :MTESt:AVERage command enables or disables averaging. When ON, the oscilloscope acquires multiple data values for each time bucket, and averages them. When OFF, averaging is disabled. To set the number of averages, use the :MTESt:AVERage:COUNt command described next.

NOTE

The :MTESt:AVERage command is obsolete and is provided for backward compatibility to previous oscilloscopes. Use the :ACQuire:TYPE AVERage command (see page 245) instead.

Query Syntax Return Format

:MTESt:AVERage?
The :MTESt:AVERage? query returns the current setting for averaging.
<on_off><NL>

See Also

<on_off> ::= {1 | 0}
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:AVERage:COUNt" on page 1109

1108

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:MTESt:AVERage:COUNt

(see page 1164) Command Syntax :MTESt:AVERage:COUNt <count>
<count> ::= an integer from 2 to 65536 in NR1 format
The :MTESt:AVERage:COUNt command sets the number of averages for the waveforms. With the AVERage acquisition type, the :MTESt:AVERage:COUNt command specifies the number of data values to be averaged for each time bucket before the acquisition is considered complete for that time bucket.

NOTE

The :MTESt:AVERage:COUNt command is obsolete and is provided for backward compatibility to previous oscilloscopes. Use the :ACQuire:COUNt command (see page 236) instead.

Query Syntax Return Format

:MTESt:AVERage:COUNt?
The :MTESt:AVERage:COUNt? query returns the currently selected count value.
<count><NL>

See Also

<count> ::= an integer from 2 to 65536 in NR1 format
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:AVERage" on page 1108

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1109

35 Obsolete and Discontinued Commands

:MTESt:LOAD

Command Syntax

(see page 1164)
:MTESt:LOAD "<filename>"
The :MTESt:LOAD command loads the specified mask file. The <filename> parameter is an MS-DOS compatible name of the file, a maximum of 254 characters long (including the path name, if used).

NOTE

The :MTESt:LOAD command is obsolete and is provided for backward compatibility to previous oscilloscopes. Use the :RECall:MASK[:STARt] command (see page 617) instead.

See Also · "Introduction to :MTESt Commands" on page 507 · ":MTESt:AMASk:{SAVE | STORe}" on page 1107

1110

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:MTESt:RUMode

(see page 1164) Command Syntax :MTESt:RUMode {FORever | TIME,<seconds> | {WAVeforms,<wfm_count>}}
<seconds> ::= from 1 to 86400 in NR3 format
<wfm_count> ::= number of waveforms in NR1 format from 1 to 1,000,000,000
The :MTESt:RUMode command determines the termination conditions for the mask test. The choices are FORever, TIME, or WAVeforms. · FORever -- runs the Mask Test until the test is turned off. · TIME -- sets the amount of time in seconds that a mask test will run before it
terminates. The <seconds> parameter is a real number from 1 to 86400 seconds. · WAVeforms -- sets the maximum number of waveforms that are required before the mask test terminates. The <wfm_count> parameter indicates the number of waveforms that are to be acquired; it is an integer from 1 to 1,000,000,000.

NOTE

The :MTESt:RUMode command is obsolete and is provided for backward compatibility to previous oscilloscopes. Use the :MTESt:RMODe command (see page 524) instead.

Query Syntax Return Format

:MTESt:RUMode?
The :MTESt:RUMode? query returns the currently selected termination condition and value.
{FOR | TIME,<seconds> | {WAV,<wfm_count>}}<NL>

<seconds> ::= from 1 to 86400 in NR3 format

See Also

<wfm_count> ::= number of waveforms in NR1 format from 1 to 1,000,000,000
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:RUMode:SOFailure" on page 1112

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1111

35 Obsolete and Discontinued Commands

:MTESt:RUMode:SOFailure

(see page 1164) Command Syntax :MTESt:RUMode:SOFailure <on_off>
<on_off> ::= {{1 | ON} | {0 | OFF}}
The :MTESt:RUMode:SOFailure command enables or disables the Stop On Failure run until criteria. When a mask test is run and a mask violation is detected, the mask test is stopped and the acquisition system is stopped.

NOTE

The :MTESt:RUMode:SOFailure command is obsolete and is provided for backward compatibility to previous oscilloscopes. Use the :MTESt:RMODe:FACTion:STOP command (see page 528) instead.

Query Syntax Return Format

:MTESt:RUMode:SOFailure?
The :MTESt:RUMode:SOFailure? query returns the current state of the Stop on Failure control.
<on_off><NL>

See Also

<on_off> ::= {1 | 0}
· "Introduction to :MTESt Commands" on page 507 · ":MTESt:RUMode" on page 1111

1112

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:MTESt:{STARt | STOP}

Command Syntax

(see page 1164)
:MTESt:{STARt | STOP}
The :MTESt:{STARt | STOP} command starts or stops the acquisition system.

NOTE

The :MTESt:STARt and :MTESt:STOP commands are obsolete and are provided for backward compatibility to previous oscilloscopes. Use the :RUN command (see page 225) and :STOP command (see page 229) instead.

See Also · "Introduction to :MTESt Commands" on page 507

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1113

35 Obsolete and Discontinued Commands

:MTESt:TRIGger:SOURce

(see page 1164) Command Syntax :MTESt:TRIGger:SOURce <source>
<source> ::= CHANnel<n> <n> ::= 1 to (# analog channels) in NR1 format
The :MTESt:TRIGger:SOURce command sets the channel to use as the trigger.

NOTE

The :MTESt:TRIGger:SOURce command is obsolete and is provided for backward compatibility to previous oscilloscopes. Use the trigger source commands (see page 903) instead.

Query Syntax Return Format

:MTESt:TRIGger:SOURce?
The :MTESt:TRIGger:SOURce? query returns the currently selected trigger source.
<source> ::= CHAN<n>

<n> ::= 1 to (# analog channels) in NR1 format
See Also · "Introduction to :MTESt Commands" on page 507

1114

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:PRINt?

(see page 1164) Query Syntax :PRINt? [<options>]
<options> ::= [<print option>][,..,<print option>] <print option> ::= {COLor | GRAYscale | BMP8bit | BMP}
The :PRINt? query pulls image data back over the bus for storage.

NOTE

The :PRINT command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :DISPlay:DATA command (see page 312) instead.

Print Option COLor GRAYscale PRINter0,1
BMP8bit BMP FACTors
NOFactors

:PRINt command Sets palette=COLor Sets palette=GRAYscale Causes the USB printer #0,1 to be selected as destination (if connected) Sets print format to 8-bit BMP Sets print format to BMP Selects outputting of additional settings information for :PRINT Deselects outputting of additional settings information for :PRINT

:PRINt? query
Not used
Selects 8-bit BMP formatting for query Selects BMP formatting for query Not used Not used

Query Default palette=COLor N/A
N/A N/A N/A N/A

Old Print Option: HIRes LORes PARallel DISK PCL

Is Now: COLor GRAYscale PRINter0 invalid invalid

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1115

35 Obsolete and Discontinued Commands

NOTE

The PRINt? query is not a core command.

See Also

· "Introduction to Root (:) Commands" on page 196 · "Introduction to :HARDcopy Commands" on page 368 · ":HARDcopy:FACTors" on page 371 · ":HARDcopy:GRAYscale" on page 1091 · ":DISPlay:DATA" on page 312

1116

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:SAVE:IMAGe:AREA

Query Syntax Return Format

(see page 1164)
:SAVE:IMAGe:AREA?
The :SAVE:IMAGe:AREA? query returns the selected image area. When saving images, this query returns SCR (screen). When saving setups or waveform data, this query returns GRAT (graticule) even though graticule images are not saved.
<area><NL>

See Also

<area> ::= {GRAT | SCR}
· "Introduction to :SAVE Commands" on page 623 · ":SAVE:IMAGe[:STARt]" on page 626 · ":SAVE:IMAGe:FACTors" on page 627 · ":SAVE:IMAGe:FORMat" on page 628 · ":SAVE:IMAGe:INKSaver" on page 629 · ":SAVE:IMAGe:PALette" on page 630

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1117

35 Obsolete and Discontinued Commands

:SBUS<n>:LIN:SIGNal:DEFinition

(see page 1164) Command Syntax :SBUS<n>:LIN:SIGNal:DEFinition <value>
<value> ::= {LIN | RX | TX}
The :SBUS<n>:LIN:SIGNal:DEFinition command sets the LIN signal type. These signals can be set to: Dominant low signals: · LIN -- the actual LIN single-end bus signal line. · RX -- the Receive signal from the LIN bus transceiver. · TX -- the Transmit signal to the LIN bus transceiver.

NOTE

This command is available, but the only legal value is LIN.

Query Syntax Return Format

:SBUS<n>:LIN:SIGNal:DEFinition?
The :SBUS<n>:LIN:SIGNal:DEFinition? query returns the current LIN signal type.
<value><NL>

See Also

<value> ::= LIN
· "Introduction to :TRIGger Commands" on page 903 · ":TRIGger:MODE" on page 912 · ":SBUS<n>:LIN:SIGNal:BAUDrate" on page 739 · ":SBUS<n>:LIN:SOURce" on page 740

1118

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:SBUS<n>:SPI:SOURce:DATA

(see page 1164)

Command Syntax :SBUS<n>:SPI:SOURce:DATA <source>

<source> ::= {CHANnel<n> | EXTernal} for the DSO models

<source> ::= {CHANnel<n> | DIGital<d>} for the MSO models

<n> ::= 1 to (# analog channels) in NR1 format

Query Syntax

<d> ::= 0 to (# digital channels - 1) in NR1 format
The :SBUS<n>:SPI:SOURce:DATA command sets the source for the SPI serial MOSI data. This command is the same as the :SBUS<n>:SPI:SOURce:MOSI command.
:SBUS<n>:SPI:SOURce:DATA?
The :SBUS<n>:SPI:SOURce:DATA? query returns the current source for the SPI serial MOSI data.

Return Format See Also

<source><NL>
· "Introduction to :TRIGger Commands" on page 903 · ":SBUS<n>:SPI:SOURce:MOSI" on page 765 · ":SBUS<n>:SPI:SOURce:MISO" on page 764 · ":SBUS<n>:SPI:SOURce:CLOCk" on page 762 · ":SBUS<n>:SPI:SOURce:FRAMe" on page 763 · ":SBUS<n>:SPI:TRIGger:PATTern:MISO:DATA" on page 766 · ":SBUS<n>:SPI:TRIGger:PATTern:MOSI:DATA" on page 768 · ":SBUS<n>:SPI:TRIGger:PATTern:MISO:WIDTh" on page 767 · ":SBUS<n>:SPI:TRIGger:PATTern:MOSI:WIDTh" on page 769

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1119

35 Obsolete and Discontinued Commands

:TIMebase:DELay

(see page 1164) Command Syntax :TIMebase:DELay <delay_value>
<delay_value> ::= time in seconds from trigger to the delay reference point on the screen.
The valid range for delay settings depends on the time/division setting for the main time base.
The :TIMebase:DELay command sets the main time base delay. This delay is the time between the trigger event and the delay reference point on the screen. The delay reference point is set with the :TIMebase:REFerence command (see page 896).

NOTE

The :TIMebase:DELay command is obsolete and is provided for backward compatibility to previous oscilloscopes. Use the :TIMebase:POSition command (see page 894) instead.

Query Syntax Return Format

:TIMebase:DELay?
The :TIMebase:DELay query returns the current delay value.
<delay_value><NL>

Example Code

<delay_value> ::= time from trigger to display reference in seconds in NR3 format.
' TIMEBASE_DELAY - Sets the time base delay. This delay ' is the internal time between the trigger event and the ' onscreen delay reference point.

' Set time base delay to 0.0. myScope.WriteString ":TIMEBASE:DELAY 0.0"
See complete example programs at: Chapter 40, "Programming Examples," starting on page 1173

1120

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Obsolete and Discontinued Commands 35

:TRIGger:THReshold

(see page 1164) Command Syntax :TRIGger:THReshold <channel group>, <threshold type> [, <value>]
<channel group> ::= {POD1 | POD2} <threshold type> ::= {CMOS | ECL | TTL | USERdef} <value>::= voltage for USERdef (floating-point number) [Volt type] [Volt type] ::= {V | mV | uV}
The :TRIGger:THReshold command sets the threshold (trigger level) for a pod of 8 digital channels (either digital channels 0 through 7 or 8 through 15). The threshold can be set to a predefined value or to a user-defined value. For the predefined value, the voltage parameter is not required.

NOTE

This command is only available on the MSO models.

NOTE

The :TRIGger:THReshold command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :POD<n>:THReshold command (see page 543), :DIGital<d>:THReshold command (see page 303), or :TRIGger[:EDGE]:LEVel command (see page 929).

Query Syntax Return Format

:TRIGger:THReshold? <channel group>
The :TRIGger:THReshold? query returns the voltage and threshold text for analog channel 1 or 2, or POD1 or POD2.
<threshold type>[, <value>]<NL>

<threshold type> ::= {CMOS | ECL | TTL | USER}

CMOS ::= 2.5V

TTL ::= 1.5V

ECL ::= -1.3V

USERdef ::= range from -8.0V to +8.0V.

<value> ::= voltage for USERdef (a floating-point number in NR1.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1121

35 Obsolete and Discontinued Commands
:TRIGger:TV:TVMode
(see page 1164) Command Syntax :TRIGger:TV:TVMode <mode>
<mode> ::= {FIEld1 | FIEld2 | AFIelds | ALINes | LINE | VERTical | LFIeld1 | LFIeld2 | LALTernate | LVERtical}
The :TRIGger:TV:MODE command selects the TV trigger mode and field. The LVERtical parameter is only available when :TRIGger:TV:STANdard is GENeric. The LALTernate parameter is not available when :TRIGger:TV:STANdard is GENeric (see page 973). Old forms for <mode> are accepted:

NOTE

<mode> FIEld1 FIEld2 AFIeld ALINes LFIeld1 LFIeld2 LALTernate LVERtical

Old Forms Accepted F1 F2 ALLFields, ALLFLDS ALLLines LINEF1, LINEFIELD1 LINEF2, LINEFIELD2 LINEAlt LINEVert

The :TRIGger:TV:TVMode command is an obsolete command provided for compatibility to previous oscilloscopes. Use the :TRIGger:TV:MODE command (see page 970) instead.

Query Syntax :TRIGger:TV:TVMode? The :TRIGger:TV:TVMode? query returns the TV trigger mode.
Return Format <value><NL>
<value> ::= {FIE1 | FIE2 | AFI | ALIN | LINE | VERT | LFI1 | LFI2 | LALT | LVER}

1122

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
36 Error Messages
-440, Query UNTERMINATED after indefinite response -430, Query DEADLOCKED -420, Query UNTERMINATED -410, Query INTERRUPTED -400, Query error -340, Calibration failed -330, Self-test failed -321, Out of memory -320, Storage fault
1123

36 Error Messages -315, Configuration memory lost -314, Save/recall memory lost -313, Calibration memory lost -311, Memory error -310, System error -300, Device specific error -278, Macro header not found -277, Macro redefinition not allowed -276, Macro recursion error -273, Illegal macro label -272, Macro execution error -258, Media protected -257, File name error

1124

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Error Messages 36
-256, File name not found -255, Directory full -254, Media full -253, Corrupt media -252, Missing media -251, Missing mass storage -250, Mass storage error -241, Hardware missing
This message can occur when a feature is unavailable or unlicensed. For example, some serial bus decode commands are only available when the serial decode options are licensed.
-240, Hardware error -231, Data questionable -230, Data corrupt or stale -224, Illegal parameter value

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1125

36 Error Messages -223, Too much data -222, Data out of range -221, Settings conflict -220, Parameter error -200, Execution error -183, Invalid inside macro definition -181, Invalid outside macro definition -178, Expression data not allowed -171, Invalid expression -170, Expression error -168, Block data not allowed -161, Invalid block data -158, String data not allowed

1126

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

-151, Invalid string data -150, String data error -148, Character data not allowed -138, Suffix not allowed -134, Suffix too long -131, Invalid suffix -128, Numeric data not allowed -124, Too many digits -123, Exponent too large -121, Invalid character in number -120, Numeric data error -114, Header suffix out of range -113, Undefined header
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Error Messages 36
1127

36 Error Messages -112, Program mnemonic too long -109, Missing parameter -108, Parameter not allowed -105, GET not allowed -104, Data type error -103, Invalid separator -102, Syntax error -101, Invalid character -100, Command error +10, Software Fault Occurred +100, File Exists +101, End-Of-File Found +102, Read Error

1128

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Error Messages 36 +103, Write Error +104, Illegal Operation +105, Print Canceled +106, Print Initialization Failed +107, Invalid Trace File +108, Compression Error +109, No Data For Operation
A remote operation wants some information, but there is no information available. For example, you may request a stored TIFF image using the :DISPlay:DATA? query, but there may be no image stored.
+112, Unknown File Type +113, Directory Not Supported

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1129

36 Error Messages

1130

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
37 Status Reporting
Status Reporting Data Structures / 1133 Status Byte Register (STB) / 1135 Service Request Enable Register (SRE) / 1137 Trigger Event Register (TER) / 1138 Output Queue / 1139 Message Queue / 1140 (Standard) Event Status Register (ESR) / 1141 (Standard) Event Status Enable Register (ESE) / 1142 Error Queue / 1143 Operation Status Event Register (:OPERegister[:EVENt]) / 1144 Operation Status Condition Register (:OPERegister:CONDition) / 1145 Arm Event Register (AER) / 1146 Overload Event Register (:OVLRegister) / 1147 Mask Test Event Event Register (:MTERegister[:EVENt]) / 1148 Power Event Event Register (:PWRRegister[:EVENt]) / 1149 Clearing Registers and Queues / 1150 Status Reporting Decision Chart / 1151
IEEE 488.2 defines data structures, commands, and common bit definitions for status reporting (for example, the Status Byte Register and the Standard Event Status Register). There are also instrument-defined structures and bits (for example, the Operation Status Event Register and the Overload Event Register). An overview of the oscilloscope's status reporting structure is shown in the following block diagram. The status reporting structure allows monitoring specified events in the oscilloscope. The ability to monitor and report these events allows determination of such things as the status of an operation, the availability and reliability of the measured data, and more.
1131

37 Status Reporting

Error Queue

Trigger Event Register

RUN Bit

Message Queue

Overload Event
Register
Power Event Register
Mask Test Event
Register

Arm Event Register
Overload Event Enable
Register
Power Event Enable Register
Mask Test Event Enable
Register

Standard Event Status
Register
Operation Status
Condition/ Event
Registers

Output Queue
(Mask)
Standard Event Status Enable
Register
.BTL

Operation Status Enable Register

Status Byte Register

(Mask)
Service Request Enable Register
Service Request Generation

Service Request (SRQ)
Interrupt to Computer

· To monitor an event, first clear the event; then, enable the event. All of the events are cleared when you initialize the instrument.
· To allow a service request (SRQ) interrupt to an external controller, enable at least one bit in the Status Byte Register (by setting, or unmasking, the bit in the Service Request Enable register).
The Status Byte Register, the Standard Event Status Register group, and the Output Queue are defined as the Standard Status Data Structure Model in IEEE 488.2-1987. The bits in the status byte act as summary bits for the data structures residing behind them. In the case of queues, the summary bit is set if the queue is not empty. For registers, the summary bit is set if any enabled bit in the event register is set. The events are enabled with the corresponding event enable register. Events captured by an event register remain set until the register is read or cleared. Registers are read with their associated commands. The *CLS command clears all event registers and all queues except the output queue. If you send *CLS immediately after a program message terminator, the output queue is also cleared.

1132

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Status Reporting 37

Status Reporting Data Structures
The following figure shows how the status register bits are masked and logically OR'ed to generate service requests (SRQ) on particular events.

Ext TrigChan4 Chan3 Chan2 Chan1 Fault Fault Fault Fault Fault

Ext TrigChan4 Chan3 Chan2 Chan1 :OVLR? OVL OVL OVL OVL OVL Overload Event Register

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 :OVL :OVL? Overload Event Enable (Mask) Register

Auto Mask

Started

Fail

$PN QMFUF

:MTERegister[:EVENt]? Mask Test Event Event Register

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 :MTEenable :MTEenable? Mask Test Event Enable (MASK) Register

Deskew

Apply 4FUVQ

:PWRRegister[:EVENt]? Power Event Event Register

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 :PWRenable :PWRenable? Power Event Enable (MASK) Register

OR

OR

OR



To bits in Operation Status Condition Register:

OVLR

MTE

PWR

From Overload Event Registers

From Mask Test Event Registers

From Power Event Registers
Arm Reg

AER?

Run bit set if oscilloscope not stopped

Wait

OVLR

MTE

PWR

Trig

Run

:OPERation:CONDition? Operation Status Condition Register

11

9

7

5

3

Wait

OVLR

MTE

PWR

Trig

Run

:OPERation[:EVENt]? Operation Status Event Register

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
:OPEE :OPEE? Operation Status Enable (Mask) Register

 OR

*ESR? PON URQ CME EXE DDE QYE RQL OPC (Standard) Event Status Register
76543210 *ESE *ESE? (Standard) Event Status Enable (Mask) Register

 OR

Output Queue

TRG TER? Reg Trigger Event Register

RQS/ OPER MSS ESB MAV
7654

MSG USR TRG 3210

*STB? Status Byte Register
*SRE *SRE? Service Request Enable (Mask) Register

 OR
SRQ

Service Request

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1133

37 Status Reporting
The status register bits are described in more detail in the following tables: · Table 68 · Table 66 · Table 73 · Table 74 · Table 76 · Table 71 · Table 78 The status registers picture above shows how the different status reporting data structures work together. To make it possible for any of the Standard Event Status Register bits to generate a summary bit, the bits must be enabled. These bits are enabled by using the *ESE common command to set the corresponding bit in the Standard Event Status Enable Register. To generate a service request (SRQ) interrupt to an external controller, at least one bit in the Status Byte Register must be enabled. These bits are enabled by using the *SRE common command to set the corresponding bit in the Service Request Enable Register. These enabled bits can then set RQS and MSS (bit 6) in the Status Byte Register.

1134

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Status Reporting 37

Status Byte Register (STB)
The Status Byte Register is the summary-level register in the status reporting structure. It contains summary bits that monitor activity in the other status registers and queues. The Status Byte Register is a live register. That is, its summary bits are set and cleared by the presence and absence of a summary bit from other event registers or queues. If the Status Byte Register is to be used with the Service Request Enable Register to set bit 6 (RQS/MSS) and to generate an SRQ, at least one of the summary bits must be enabled, then set. Also, event bits in all other status registers must be specifically enabled to generate the summary bit that sets the associated summary bit in the Status Byte Register. The Status Byte Register can be read using either the *STB? Common Command or the programming interface serial poll command. Both commands return the decimal-weighted sum of all set bits in the register. The difference between the two methods is that the serial poll command reads bit 6 as the Request Service (RQS) bit and clears the bit which clears the SRQ interrupt. The *STB? command reads bit 6 as the Master Summary Status (MSS) and does not clear the bit or have any affect on the SRQ interrupt. The value returned is the total bit weights of all of the bits that are set at the present time. The use of bit 6 can be confusing. This bit was defined to cover all possible computer interfaces, including a computer that could not do a serial poll. The important point to remember is that, if you are using an SRQ interrupt to an external computer, the serial poll command clears bit 6. Clearing bit 6 allows the oscilloscope to generate another SRQ interrupt when another enabled event occurs. No other bits in the Status Byte Register are cleared by either the *STB? query or the serial poll, except the Message Available bit (bit 4). If there are no other messages in the Output Queue, bit 4 (MAV) can be cleared as a result of reading the response to the *STB? command. If bit 4 (weight = 16) and bit 5 (weight = 32) are set, the program prints the sum of the two weights. Since these bits were not enabled to generate an SRQ, bit 6 (weight = 64) is not set. The following example uses the *STB? query to read the contents of the oscilloscope's Status Byte Register.
myScope.WriteString "*STB?" varQueryResult = myScope.ReadNumber MsgBox "Status Byte Register, Read: 0x" + Hex(varQueryResult)
The next program prints 0xD1 and clears bit 6 (RQS) and bit 4 (MAV) of the Status Byte Register. The difference in the output value between this example and the previous one is the value of bit 6 (weight = 64). Bit 6 is set when the first enabled summary bit is set and is cleared when the Status Byte Register is read by the serial poll command.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1135

37 Status Reporting

Example The following example uses the resource session object's ReadSTB method to read the contents of the oscilloscope's Status Byte Register.
varQueryResult = myScope.IO.ReadSTB MsgBox "Status Byte Register, Serial Poll: 0x" + Hex(varQueryResult)

NOTE

Use Serial Polling to Read Status Byte Register. Serial polling is the preferred method to read the contents of the Status Byte Register because it resets bit 6 and allows the next enabled event that occurs to generate a new SRQ interrupt.

1136

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Status Reporting 37

Service Request Enable Register (SRE)

Example

Setting the Service Request Enable Register bits enable corresponding bits in the Status Byte Register. These enabled bits can then set RQS and MSS (bit 6) in the Status Byte Register. Bits are set in the Service Request Enable Register using the *SRE command and the bits that are set are read with the *SRE? query. The following example sets bit 4 (MAV) and bit 5 (ESB) in the Service Request Enable Register.

myScope.WriteString "*SRE " + CStr(CInt("&H30"))
This example uses the decimal parameter value of 48, the string returned by CStr(CInt("&H30")), to enable the oscilloscope to generate an SRQ interrupt under the following conditions: · When one or more bytes in the Output Queue set bit 4 (MAV). · When an enabled event in the Standard Event Status Register generates a
summary bit that sets bit 5 (ESB).

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1137

37 Status Reporting
Trigger Event Register (TER)
This register sets the TRG bit in the status byte when a trigger event occurs. The TER event register stays set until it is cleared by reading the register or using the *CLS command. If your application needs to detect multiple triggers, the TER event register must be cleared after each one. If you are using the Service Request to interrupt a program or controller operation, you must clear the event register each time the trigger bit is set.

1138

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Status Reporting 37
Output Queue
The output queue stores the oscilloscope-to-controller responses that are generated by certain instrument commands and queries. The output queue generates the Message Available summary bit when the output queue contains one or more bytes. This summary bit sets the MAV bit (bit 4) in the Status Byte Register. When using the Keysight VISA COM library, the output queue may be read with the FormattedIO488 object's ReadString, ReadNumber, ReadList, or ReadIEEEBlock methods.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1139

37 Status Reporting
Message Queue
The message queue contains the text of the last message written to the advisory line on the screen of the oscilloscope. The length of the oscilloscope's message queue is 1. Note that messages sent with the :SYSTem:DSP command do not set the MSG status bit in the Status Byte Register.

1140

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Status Reporting 37

(Standard) Event Status Register (ESR)

Example

The (Standard) Event Status Register (ESR) monitors the following oscilloscope status events: · PON - Power On · URQ - User Request · CME - Command Error · EXE - Execution Error · DDE - Device Dependent Error · QYE - Query Error · RQC - Request Control · OPC - Operation Complete
When one of these events occur, the event sets the corresponding bit in the register. If the bits are enabled in the Standard Event Status Enable Register, the bits set in this register generate a summary bit to set bit 5 (ESB) in the Status Byte Register.
You can read the contents of the Standard Event Status Register and clear the register by sending the *ESR? query. The value returned is the total bit weights of all of the bits that are set at the present time.
The following example uses the *ESR query to read the contents of the Standard Event Status Register.

myScope.WriteString "*ESR?" varQueryResult = myScope.ReadNumber MsgBox "Standard Event Status Register: 0x" + Hex(varQueryResult)
If bit 4 (weight = 16) and bit 5 (weight = 32) are set, the program prints the sum of the two weights.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1141

37 Status Reporting

(Standard) Event Status Enable Register (ESE)

Example

To allow any of the (Standard) Event Status Register (ESR) bits to generate a summary bit, you must first enable that bit. Enable the bit by using the *ESE (Event Status Enable) common command to set the corresponding bit in the (Standard) Event Status Enable Register (ESE). Set bits are read with the *ESE? query. Suppose your application requires an interrupt whenever any type of error occurs. The error related bits in the (Standard) Event Status Register are bits 2 through 5 (hexadecimal value 0x3C). Therefore, you can enable any of these bits to generate the summary bit by sending:

myScope.WriteString "*ESE " + CStr(CInt("&H3C"))
Whenever an error occurs, it sets one of these bits in the (Standard) Event Status Register. Because all the error related bits are enabled, a summary bit is generated to set bit 5 (ESB) in the Status Byte Register. If bit 5 (ESB) in the Status Byte Register is enabled (via the *SRE command), an SRQ service request interrupt is sent to the controller PC.

NOTE

Disabled (Standard) Event Status Register bits respond but do not generate a summary bit. (Standard) Event Status Register bits that are not enabled still respond to their corresponding conditions (that is, they are set if the corresponding event occurs). However, because they are not enabled, they do not generate a summary bit to the Status Byte Register.

1142

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Status Reporting 37
Error Queue
As errors are detected, they are placed in an error queue. This queue is first in, first out. If the error queue overflows, the last error in the queue is replaced with error 350, Queue overflow. Any time the queue overflows, the least recent errors remain in the queue, and the most recent error is discarded. The length of the oscilloscope's error queue is 30 (29 positions for the error messages, and 1 position for the Queue overflow message). The error queue is read with the :SYSTem:ERRor? query. Executing this query reads and removes the oldest error from the head of the queue, which opens a position at the tail of the queue for a new error. When all the errors have been read from the queue, subsequent error queries return "0, No error". The error queue is cleared when: · the instrument is powered up, · the instrument receives the *CLS common command, or · the last item is read from the error queue.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1143

37 Status Reporting

Operation Status Event Register (:OPERegister[:EVENt])

The Operation Status Event Register register hosts these bits:

Name RUN bit
WAIT TRIG bit
PWR bit MTE bit OVLR bit

Location bit 3
bit 5
bit 7 bit 9 bit 11

Description Is set whenever the instrument goes from a stop state to a single or running state. Is set by the Trigger Armed Event Register and indicates that the trigger is armed. Comes from the Power Event Registers. Comes from the Mask Test Event Registers. Is set whenever a 50 input overload occurs.

If any of these bits are set, the OPER bit (bit 7) of the Status Byte Register is set. The Operation Status Event Register is read and cleared with the :OPERegister[:EVENt]? query. The register output is enabled or disabled using the mask value supplied with the OPEE command.

1144

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Status Reporting 37

Operation Status Condition Register (:OPERegister:CONDition)

The Operation Status Condition Register register hosts these bits:

Name RUN bit WAIT TRIG bit
PWR bit MTE bit OVLR bit

Location bit 3 bit 5
bit 7 bit 9 bit 11

Description Is set whenever the instrument is not stopped. Is set by the Trigger Armed Event Register and indicates that the trigger is armed. Comes from the Power Event Registers. Comes from the Mask Test Event Registers. Is set whenever a 50 input overload occurs.

The :OPERegister:CONDition? query returns the value of the Operation Status Condition Register.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1145

37 Status Reporting
Arm Event Register (AER)
This register sets bit 5 (Wait Trig bit) in the Operation Status Register and the OPER bit (bit 7) in the Status Byte Register when the instrument becomes armed. The ARM event register stays set until it is cleared by reading the register with the AER? query or using the *CLS command. If your application needs to detect multiple triggers, the ARM event register must be cleared after each one. If you are using the Service Request to interrupt a program or controller operation when the trigger bit is set, then you must clear the event register after each time it has been set.

1146

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Status Reporting 37

Overload Event Register (:OVLRegister)

The Overload Event Register register hosts these bits:

Name Channel 1 OVL Channel 2 OVL Channel 3 OVL Channel 4 OVL External Trigger OVL Channel 1 Fault Channel 2 Fault Channel 3 Fault Channel 4 Fault External Trigger Fault

Location bit 0 bit 1 bit 2 bit 3 bit 4
bit 6 bit 7 bit 8 bit 9 bit 10

Description Overload has occurred on Channel 1 input. Overload has occurred on Channel 2 input. Overload has occurred on Channel 3 input. Overload has occurred on Channel 4 input. Overload has occurred on External Trigger input.
Fault has occurred on Channel 1 input. Fault has occurred on Channel 2 input. Fault has occurred on Channel 3 input. Fault has occurred on Channel 4 input. Fault has occurred on External Trigger input.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1147

37 Status Reporting

Mask Test Event Event Register (:MTERegister[:EVENt])
The Mask Test Event Event Register register hosts these bits:

Name Complete Fail Started Auto Mask

Location bit 0 bit 1 bit 8 bit 10

Description Is set when the mask test is complete. Is set when there is a mask test failure. Is set when mask testing is started. Is set when auto mask creation is completed.

The :MTERegister[:EVENt]? query returns the value of, and clears, the Mask Test Event Event Register.

1148

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Status Reporting 37

Power Event Event Register (:PWRRegister[:EVENt])
The Power Event Event Register register hosts these bits:

Name Setup Complete

Location bit 0

Apply Complete

bit 1

Deskew Complete bit 2

Description Is set when the power analysis auto setup feature is complete. Is set when the power analysis apply feature is complete. Is set when the power analysis deskew is complete.

The :PWRRegister[:EVENt]? query returns the value of, and clears, the Power Event Event Register.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1149

37 Status Reporting
Clearing Registers and Queues
The *CLS common command clears all event registers and all queues except the output queue. If *CLS is sent immediately after a program message terminator, the output queue is also cleared.

1150

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Status Reporting 37

Status Reporting Decision Chart

OP

%PZPVXBOU

UPEPTUBUVT

SFQPSUJOH

ZFT

3FTFUUIFJOTUSVNFOUBOE DMFBSUIFTUBUVTSFHJTUFST
NZ4DPQF8SJUF4USJOH345 NZ4DPQF8SJUF4USJOH$-4

%PZPVXBOUUP TFOEB4FSWJDF3FRVFTU
432
JOUFSSVQUUPUIF DPOUSPMMFS

OP :PVSQSPHSBNTDBOSFBEUIFTUBUVTSFHJTUFSTJOTUFBE


ZFT 6TFUIFGPMMPXJOHUPSFBEUIF 4UBOEBSE&WFOU4UBUVT3FHJTUFS

%PZPVXBOUUP

no

SFQPSUFWFOUTNPOJUPSFECZ

UIF4UBOEBSE&WFOU4UBUVT

3FHJTUFS

"DUJWBUFUIFJOTUSVNFOUGVODUJPO UIBUZPVXBOUUPNPOJUPS

NZ4DPQF8SJUF4USJOH&43  WBS3NZ4DPQF3FBE/VNCFS .TH#PY&43Y)FY WBS3


ZFT

8IFOBOJOUFSSVQUPDDVST
JOUFSSVQU

IBOEMFSTIPVMETFSJBMQPMM45#XJUI

6TFUIF&4&DPNNPODPNNBOE UPFOBCMFUIFCJUTZPVXBOUUP VTFUPHFOFSBUFUIF&4#TVNNBSZ CJUJOUIF4UBUVT#ZUF3FHJTUFS
6TFUIF43&DPNNPODPNNBOE UPFOBCMFUIFCJUTZPVXBOUUP HFOFSBUFUIF324.44CJUUPTFU CJUJOUIF4UBUVT#ZUF3FHJTUFS BOETFOEBO432UPUIFDPNQVUFS *GFWFOUTBSFNPOJUPSFECZUIF 4UBOEBSE&WFOU4UBUVT3FHJTUFS
 BMTPFOBCMF&4#XJUIUIF43& DPNNBOE

WBS3NZ4DPQF*03FBE45#

6TFUIFGPMMPXJOHUPTFFJGBO PQFSBUJPOJTDPNQMFUF

5PSFBEUIF4UBUVT#ZUF3FHJTUFS
 VTFUIFGPMMPXJOH
NZ4DPQF8SJUF4USJOH45#  WBS3NZ4DPQF3FBE/VNCFS .TH#PY45#Y)FY WBS3


NZ4DPQF8SJUF4USJOH01$  WBS3NZ4DPQF3FBE/VNCFS .TH#PY01$Y)FY WBS3


5IJTEJTQMBZTUIFIFYBEFDNBMWBMVF PGUIF4UBUVT#ZUF3FHJTUFS

6TFUIFGPMMPXJOHUPSFBEUIF DPOUFOUTPGUIFTUBUVTCZUF

%FUFSNJOFXIJDICJUTJOUIF 4UBUVT#ZUF3FHJTUFSBSFTFU

NZ4DPQF8SJUF4USJOH45#  WBS3NZ4DPQF3FBE/VNCFS .TH#PY45#Y)FY WBS3


&/%

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1151

37 Status Reporting

1152

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
38 Synchronizing Acquisitions
Synchronization in the Programming Flow / 1154 Blocking Synchronization / 1155 Polling Synchronization With Timeout / 1156 Synchronizing with a Single-Shot Device Under Test (DUT) / 1158 Synchronization with an Averaging Acquisition / 1160 When remotely controlling an oscilloscope with programming commands, it is often necessary to know when the oscilloscope has finished the previous operation and is ready for the next command. The most common example is when an acquisition is started using the :DIGitize, :RUN, or :SINGle commands. Before a measurement result can be queried, the acquisition must complete. Too often fixed delays are used to accomplish this wait, but fixed delays often use excessive time or the time may not be long enough. A better solution is to use synchronous commands and status to know when the oscilloscope is ready for the next request.
1153

38 Synchronizing Acquisitions

Synchronization in the Programming Flow

Most remote programming follows these three general steps: 1 Set up the oscilloscope and device under test (see page 1154). 2 Acquire a waveform (see page 1154). 3 Retrieve results (see page 1154).

Set Up the Oscilloscope
Before making changes to the oscilloscope setup, it is best to make sure it is stopped using the :STOP command followed by the *OPC? query.

NOTE

It is not necessary to use *OPC?, hard coded waits, or status checking when setting up the oscilloscope. After the oscilloscope is configured, it is ready for an acquisition.

Acquire a Waveform
When acquiring a waveform there are two possible methods used to wait for the acquisition to complete. These methods are blocking and polling. The table below details when each method should be chosen and why.

Use When Advantages Disadvantages
Implementation Details

Blocking Wait You know the oscilloscope will trigger based on the oscilloscope setup and device under test. No need for polling. Fastest method. Remote interface may timeout. Device clear only way to get control of oscilloscope if there is no trigger.
See "Blocking Synchronization" on page 1155.

Polling Wait You know the oscilloscope may or may not trigger on the oscilloscope setup and device under test. Remote interface will not timeout No need for device clear if no trigger. Slower method. Requires polling loop. Requires known maximum wait time. See "Polling Synchronization With Timeout" on page 1156.

Retrieve Results
Once the acquisition is complete, it is safe to retrieve measurements and statistics.

1154

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Synchronizing Acquisitions 38
Blocking Synchronization
Use the :DIGitize command to start the acquisition. This blocks subsequent queries until the acquisition and processing is complete. For example:
' ' Synchronizing acquisition using blocking. ' ===================================================================
Option Explicit
Public myMgr As VisaComLib.ResourceManager Public myScope As VisaComLib.FormattedIO488 Public varQueryResult As Variant Public strQueryResult As String
Sub Main()
On Error GoTo VisaComError
' Create the VISA COM I/O resource. Set myMgr = New VisaComLib.ResourceManager Set myScope = New VisaComLib.FormattedIO488 Set myScope.IO = myMgr.Open("TCPIP0::130.29.69.12::inst0::INSTR") myScope.IO.Clear ' Clear the interface.
' Set up. ' ----------------------------------------------------------------myScope.WriteString ":TRIGger:MODE EDGE" myScope.WriteString ":TRIGger:EDGE:LEVel 2" myScope.WriteString ":TIMebase:SCALe 5e-8"
' Acquire. ' ----------------------------------------------------------------myScope.WriteString ":DIGitize"
' Get results. ' ----------------------------------------------------------------myScope.WriteString ":MEASure:RISetime" myScope.WriteString ":MEASure:RISetime?" varQueryResult = myScope.ReadNumber ' Read risetime. Debug.Print "Risetime: " + _
FormatNumber(varQueryResult * 1000000000, 1) + " ns"
Exit Sub
VisaComError: MsgBox "VISA COM Error:" + vbCrLf + Err.Description
End Sub

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1155

38 Synchronizing Acquisitions

Polling Synchronization With Timeout
This example requires a timeout value so the operation can abort if an acquisition does not occur within the timeout period:
' ' Synchronizing acquisition using polling. ' ===================================================================
Option Explicit
Public myMgr As VisaComLib.ResourceManager Public myScope As VisaComLib.FormattedIO488 Public varQueryResult As Variant Public strQueryResult As String
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Sub Main()
On Error GoTo VisaComError
' Create the VISA COM I/O resource. Set myMgr = New VisaComLib.ResourceManager Set myScope = New VisaComLib.FormattedIO488 Set myScope.IO = myMgr.Open("TCPIP0::130.29.69.12::inst0::INSTR") myScope.IO.Clear ' Clear the interface.
' Set up. ' ----------------------------------------------------------------' Set up the trigger and horizontal scale. myScope.WriteString ":TRIGger:MODE EDGE" myScope.WriteString ":TRIGger:EDGE:LEVel 2" myScope.WriteString ":TIMebase:SCALe 5e-8"
' Stop acquisitions and wait for the operation to complete. myScope.WriteString ":STOP" myScope.WriteString "*OPC?" strQueryResult = myScope.ReadString
' Acquire. ' ----------------------------------------------------------------' Start a single acquisition. myScope.WriteString ":SINGle"
' Oscilloscope is armed and ready, enable DUT here. Debug.Print "Oscilloscope is armed and ready, enable DUT."
' Look for RUN bit = stopped (acquisition complete). Dim lngTimeout As Long ' Max millisecs to wait for single-shot. Dim lngElapsed As Long lngTimeout = 10000 ' 10 seconds. lngElapsed = 0
Do While lngElapsed <= lngTimeout

1156

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Synchronizing Acquisitions 38
myScope.WriteString ":OPERegister:CONDition?" varQueryResult = myScope.ReadNumber ' Mask RUN bit (bit 3, &H8). If (varQueryResult And &H8) = 0 Then
Exit Do Else
Sleep 100 ' Small wait to prevent excessive queries. lngElapsed = lngElapsed + 100 End If Loop
' Get results. ' ----------------------------------------------------------------If lngElapsed < lngTimeout Then
myScope.WriteString ":MEASure:RISetime" myScope.WriteString ":MEASure:RISetime?" varQueryResult = myScope.ReadNumber ' Read risetime. Debug.Print "Risetime: " + _
FormatNumber(varQueryResult * 1000000000, 1) + " ns" Else
Debug.Print "Timeout waiting for single-shot trigger." End If
Exit Sub
VisaComError: MsgBox "VISA COM Error:" + vbCrLf + Err.Description
End Sub

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1157

38 Synchronizing Acquisitions

Synchronizing with a Single-Shot Device Under Test (DUT)

NOTE

The examples in "Blocking Synchronization" on page 1155 and "Polling Synchronization With Timeout" on page 1156 assume the DUT is continually running and therefore the oscilloscope will have more than one opportunity to trigger. With a single shot DUT, there is only one opportunity for the oscilloscope to trigger, so it is necessary for the oscilloscope to be armed and ready before the DUT is enabled. The blocking :DIGitize command cannot be used for a single shot DUT because once the :DIGitize command is issued, the oscilloscope is blocked from any further commands until the acquisition is complete.

This example is the same "Polling Synchronization With Timeout" on page 1156 with the addition of checking for the armed event status.
' ' Synchronizing single-shot acquisition using polling. ' ===================================================================
Option Explicit
Public myMgr As VisaComLib.ResourceManager Public myScope As VisaComLib.FormattedIO488 Public varQueryResult As Variant Public strQueryResult As String
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Sub Main()
On Error GoTo VisaComError
' Create the VISA COM I/O resource. Set myMgr = New VisaComLib.ResourceManager Set myScope = New VisaComLib.FormattedIO488 Set myScope.IO = myMgr.Open("TCPIP0::130.29.69.12::inst0::INSTR") myScope.IO.Clear ' Clear the interface.
' Set up. ' ----------------------------------------------------------------' Set up the trigger and horizontal scale. myScope.WriteString ":TRIGger:MODE EDGE" myScope.WriteString ":TRIGger:EDGE:LEVel 2" myScope.WriteString ":TIMebase:SCALe 5e-8"
' Stop acquisitions and wait for the operation to complete. myScope.WriteString ":STOP" myScope.WriteString "*OPC?" strQueryResult = myScope.ReadString
' Acquire.

1158

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Synchronizing Acquisitions 38
' ----------------------------------------------------------------' Start a single acquisition. myScope.WriteString ":SINGle"
' Wait until the trigger system is armed. Do
Sleep 100 ' Small wait to prevent excessive queries. myScope.WriteString ":AER?" varQueryResult = myScope.ReadNumber Loop Until varQueryResult = 1
' Oscilloscope is armed and ready, enable DUT here. Debug.Print "Oscilloscope is armed and ready, enable DUT."
' Now, look for RUN bit = stopped (acquisition complete). Dim lngTimeout As Long ' Max millisecs to wait for single-shot. Dim lngElapsed As Long lngTimeout = 10000 ' 10 seconds. lngElapsed = 0
Do While lngElapsed <= lngTimeout myScope.WriteString ":OPERegister:CONDition?" varQueryResult = myScope.ReadNumber ' Mask RUN bit (bit 3, &H8). If (varQueryResult And &H8) = 0 Then Exit Do Else Sleep 100 ' Small wait to prevent excessive queries. lngElapsed = lngElapsed + 100 End If
Loop
' Get results. ' ----------------------------------------------------------------If lngElapsed < lngTimeout Then
myScope.WriteString ":MEASure:RISetime" myScope.WriteString ":MEASure:RISetime?" varQueryResult = myScope.ReadNumber ' Read risetime. Debug.Print "Risetime: " + _
FormatNumber(varQueryResult * 1000000000, 1) + " ns" Else
Debug.Print "Timeout waiting for single-shot trigger." End If
Exit Sub
VisaComError: MsgBox "VISA COM Error:" + vbCrLf + Err.Description
End Sub

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1159

38 Synchronizing Acquisitions

Synchronization with an Averaging Acquisition
When averaging, it is necessary to know when the average count has been reached. The :SINGle command does not average. If it is known that a trigger will occur, a :DIGitize will acquire the complete number of averages, but if the number of averages is large, a timeout on the connection can occur. The example below polls during the :DIGitize to prevent a timeout on the connection.
' ' Synchronizing in averaging acquisition mode. ' ===================================================================
Option Explicit
Public myMgr As VisaComLib.ResourceManager Public myScope As VisaComLib.FormattedIO488 Public varQueryResult As Variant Public strQueryResult As String
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Sub Main()
On Error GoTo VisaComError
' Create the VISA COM I/O resource. Set myMgr = New VisaComLib.ResourceManager Set myScope = New VisaComLib.FormattedIO488 Set myScope.IO = myMgr.Open("TCPIP0::130.29.69.12::inst0::INSTR") myScope.IO.Clear ' Clear the interface. myScope.IO.Timeout = 5000
' Set up. ' ----------------------------------------------------------------' Set up the trigger and horizontal scale. myScope.WriteString ":TRIGger:SWEep NORMal" myScope.WriteString ":TRIGger:MODE EDGE" myScope.WriteString ":TRIGger:EDGE:LEVel 2" myScope.WriteString ":TIMebase:SCALe 5e-8"
' Stop acquisitions and wait for the operation to complete. myScope.WriteString ":STOP" myScope.WriteString "*OPC?" strQueryResult = myScope.ReadString
' Set up average acquisition mode. Dim lngAverages As Long lngAverages = 256 myScope.WriteString ":ACQuire:COUNt " + CStr(lngAverages) myScope.WriteString ":ACQuire:TYPE AVERage"

1160

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Synchronizing Acquisitions 38
' Save *ESE (Standard Event Status Enable register) mask ' (so it can be restored later). Dim varInitialESE As Variant myScope.WriteString "*ESE?" varInitialESE = myScope.ReadNumber
' Set *ESE mask to allow only OPC (Operation Complete) bit. myScope.WriteString "*ESE " + CStr(CInt("&H01"))
' Acquire using :DIGitize. Set up OPC bit to be set when the ' operation is complete. ' ----------------------------------------------------------------myScope.WriteString ":DIGitize" myScope.WriteString "*OPC"
' Assume the oscilloscope will trigger, if not put a check here.
' Wait until OPC becomes true (bit 5 of Status Byte register, STB, ' from Standard Event Status register, ESR, is set). STB can be ' read during :DIGitize without generating a timeout. Do
Sleep 4000 ' Poll more often than the timeout setting. varQueryResult = myScope.IO.ReadSTB Loop While (varQueryResult And &H20) = 0
' Clear ESR and restore previously saved *ESE mask. myScope.WriteString "*ESR?" ' Clear ESR by reading it. varQueryResult = myScope.ReadNumber myScope.WriteString "*ESE " + CStr(varInitialESE)
' Get results. ' ----------------------------------------------------------------myScope.WriteString ":WAVeform:COUNt?" varQueryResult = myScope.ReadNumber Debug.Print "Averaged waveforms: " + CStr(varQueryResult)
myScope.WriteString ":MEASure:RISetime" myScope.WriteString ":MEASure:RISetime?" varQueryResult = myScope.ReadNumber ' Read risetime. Debug.Print "Risetime: " + _
FormatNumber(varQueryResult * 1000000000, 1) + " ns"
Exit Sub
VisaComError: MsgBox "VISA COM Error:" + vbCrLf + Err.Description
End Sub

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1161

38 Synchronizing Acquisitions

1162

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
39 More About Oscilloscope Commands
Command Classifications / 1164 Valid Command/Query Strings / 1165 Query Return Values / 1171 Sequential vs. Overlapped Commands / 1172
1163

39 More About Oscilloscope Commands
Command Classifications
To help you use existing programs with your oscilloscope, or use current programs with the next generation of Keysight InfiniiVision oscilloscopes, commands are classified by the following categories: · "Core Commands" on page 1164 · "Non-Core Commands" on page 1164 · "Obsolete Commands" on page 1164
Core Commands
Core commands are a common set of commands that provide basic oscilloscope functionality on this oscilloscope and future Keysight InfiniiVision oscilloscopes. Core commands are unlikely to be modified in the future. If you restrict your programs to core commands, the programs should work across product offerings in the future, assuming appropriate programming methods are employed.
Non-Core Commands
Non-core commands are commands that provide specific features, but are not universal across all Keysight InfiniiVision oscilloscope models. Non-core commands may be modified or deleted in the future. With a command structure as complex as the one for your oscilloscope, some evolution over time is inevitable. Keysight's intent is to continue to expand command subsystems, such as the rich and evolving trigger feature set.
Obsolete Commands
Obsolete commands are older forms of commands that are provided to reduce customer rework for existing systems and programs. Generally, these commands are mapped onto some of the Core and Non-core commands, but may not strictly have the same behavior as the new command. None of the obsolete commands are guaranteed to remain functional in future products. New systems and programs should use the Core (and Non-core) commands. Obsolete commands are listed in: · Chapter 35, "Obsolete and Discontinued Commands," starting on page 1071

1164

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

More About Oscilloscope Commands 39

Valid Command/Query Strings

· "Program Message Syntax" on page 1165 · "Duplicate Mnemonics" on page 1169 · "Tree Traversal Rules and Multiple Commands" on page 1169
Program Message Syntax
To program the instrument remotely, you must understand the command format and structure expected by the instrument. The IEEE 488.2 syntax rules govern how individual elements such as headers, separators, program data, and terminators may be grouped together to form complete instructions. Syntax definitions are also given to show how query responses are formatted. The following figure shows the main syntactical parts of a typical program statement.

1SPHSBN.FTTBHF
":DISPLAY:LABEL ON"
*OTUSVDUJPO)FBEFS 4FQBSBUPS
1SPHSBN%BUB

Instruction Header

Instructions (both commands and queries) normally appear as a string embedded in a statement of your host language, such as Visual Basic or C/C++. The only time a parameter is not meant to be expressed as a string is when the instruction's syntax definition specifies <block data>, such as <learn string>. There are only a few instructions that use block data. Program messages can have long or short form commands (and data in some cases -- see "Long Form to Short Form Truncation Rules" on page 1166), and upper and/or lower case ASCII characters may be used. (Query responses, however, are always returned in upper case.) Instructions are composed of two main parts: · The header, which specifies the command or query to be sent. · The program data, which provide additional information needed to clarify the
meaning of the instruction. The instruction header is one or more mnemonics separated by colons (:) that represent the operation to be performed by the instrument. ":DISPlay:LABel ON" is a command. Queries are indicated by adding a question mark (?) to the end of the header, for example, ":DISPlay:LABel?". Many instructions can be used as either commands or queries, depending on whether or

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1165

39 More About Oscilloscope Commands

White Space (Separator)
Program Data
Program Message Terminator

not you have included the question mark. The command and query forms of an instruction usually have different program data. Many queries do not use any program data. There are three types of headers: · "Simple Command Headers" on page 1167 · "Compound Command Headers" on page 1167 · "Common Command Headers" on page 1167 White space is used to separate the instruction header from the program data. If the instruction does not require any program data parameters, you do not need to include any white space. White space is defined as one or more space characters. ASCII defines a space to be character 32 (in decimal). Program data are used to clarify the meaning of the command or query. They provide necessary information, such as whether a function should be on or off, or which waveform is to be displayed. Each instruction's syntax definition shows the program data, as well as the values they accept. "Program Data Syntax Rules" on page 1168 describes all of the general rules about acceptable values. When there is more than one data parameter, they are separated by commas(,). Spaces can be added around the commas to improve readability. The program instructions within a data message are executed after the program message terminator is received. The terminator may be either an NL (New Line) character, an EOI (End-Or-Identify) asserted in the programming interface, or a combination of the two. Asserting the EOI sets the EOI control line low on the last byte of the data message. The NL character is an ASCII linefeed (decimal 10).

NOTE

New Line Terminator Functions. The NL (New Line) terminator has the same function as an EOS (End Of String) and EOT (End Of Text) terminator.

Long Form to Short Form Truncation Rules
To get the short form of a command/keyword: · When the command/keyword is longer than four characters, use the first four
characters of the command/keyword unless the fourth character is a vowel; when the fourth character is a vowel, use the first three characters of the command/keyword. · When the command/keyword is four or fewer characters, use all of the characters.

Long Form RANGe PATTern

Short form RANG PATT

1166

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

More About Oscilloscope Commands 39

Long Form TIMebase DELay TYPE

Short form TIM DEL TYPE

In the oscilloscope programmer's documentation, the short form of a command is indicated by uppercase characters. Programs written in long form are easily read and are almost self-documenting. The short form syntax conserves the amount of controller memory needed for program storage and reduces I/O activity.
Simple Command Headers
Simple command headers contain a single mnemonic. :AUToscale and :DIGitize are examples of simple command headers typically used in the oscilloscope. The syntax is:
<program mnemonic><terminator>
Simple command headers must occur at the beginning of a program message; if not, they must be preceded by a colon. When program data must be included with the simple command header (for example, :DIGitize CHANnel1), white space is added to separate the data from the header. The syntax is:
<program mnemonic><separator><program data><terminator>
Compound Command Headers
Compound command headers are a combination of two or more program mnemonics. The first mnemonic selects the subsystem, and the second mnemonic selects the function within that subsystem. The mnemonics within the compound message are separated by colons. For example, to execute a single function within a subsystem:
:<subsystem>:<function><separator><program data><terminator>
For example, :CHANnel1:BWLimit ON
Common Command Headers
Common command headers control IEEE 488.2 functions within the instrument (such as clear status). Their syntax is:
*<command header><terminator>
No space or separator is allowed between the asterisk (*) and the command header. *CLS is an example of a common command header.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1167

39 More About Oscilloscope Commands

Program Data Syntax Rules
Program data is used to convey a parameter information related to the command header. At least one space must separate the command header or query header from the program data.

<program mnemonic><separator><data><terminator>
When a program mnemonic or query has multiple program data, a comma separates sequential program data.

Character Program Data
Numeric Program Data

<program mnemonic><separator><data>,<data><terminator>
For example, :MEASure:DELay CHANnel1,CHANnel2 has two program data: CHANnel1 and CHANnel2. Two main types of program data are used in commands: character and numeric. Character program data is used to convey parameter information as alpha or alphanumeric strings. For example, the :TIMebase:MODE command can be set to normal, zoomed (delayed), XY, or ROLL. The character program data in this case may be MAIN, WINDow, XY, or ROLL. The command :TIMebase:MODE WINDow sets the time base mode to zoomed. The available mnemonics for character program data are always included with the command's syntax definition. When sending commands, you may either the long form or short form (if one exists). Uppercase and lowercase letters may be mixed freely. When receiving query responses, uppercase letters are used exclusively. Some command headers require program data to be expressed numerically. For example, :TIMebase:RANGe requires the desired full scale range to be expressed numerically. For numeric program data, you have the option of using exponential notation or using suffix multipliers to indicate the numeric value. The following numbers are all equal:

28 = 0.28E2 = 280e-1 = 28000m = 0.028K = 28e-3K.
When a syntax definition specifies that a number is an integer, that means that the number should be whole. Any fractional part will be ignored, truncating the number. Numeric data parameters accept fractional values are called real numbers. All numbers must be strings of ASCII characters. Thus, when sending the number 9, you would send a byte representing the ASCII code for the character 9 (which is 57). A three-digit number like 102 would take up three bytes (ASCII codes 49, 48, and 50). This is handled automatically when you include the entire instruction in a string.

1168

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

More About Oscilloscope Commands 39
Duplicate Mnemonics
Identical function mnemonics can be used in more than one subsystem. For example, the function mnemonic RANGe may be used to change the vertical range or to change the horizontal range:
:CHANnel1:RANGe .4
Sets the vertical range of channel 1 to 0.4 volts full scale.
:TIMebase:RANGe 1
Sets the horizontal time base to 1 second full scale. :CHANnel1 and :TIMebase are subsystem selectors and determine which range is being modified.
Tree Traversal Rules and Multiple Commands
Command headers are created by traversing down the command tree. A legal command header would be :TIMebase:RANGe. This is referred to as a compound header. A compound header is a header made of two or more mnemonics separated by colons. The mnemonic created contains no spaces. The following rules apply to traversing the tree: · A leading colon (<NL> or EOI true on the last byte) places the parser at the root
of the command tree. A leading colon is a colon that is the first character of a program header. Executing a subsystem command lets you access that subsystem until a leading colon or a program message terminator (<NL>) or EOI true is found. · In the command tree, use the last mnemonic in the compound header as the reference point (for example, RANGe). Then find the last colon above that mnemonic (TIMebase:). That is the point where the parser resides. Any command below that point can be sent within the current program message without sending the mnemonics which appear above them (for example, POSition). The output statements in the examples are written using the Keysight VISA COM library in Visual Basic. The quoted string is placed on the bus, followed by a carriage return and linefeed (CRLF). To execute more than one function within the same subsystem, separate the functions with a semicolon (;):
:<subsystem>:<function><separator><data>;<function><separator><data><ter minator>
For example:
myScope.WriteString ":TIMebase:RANGe 0.5;POSition 0"

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1169

39 More About Oscilloscope Commands

NOTE

The colon between TIMebase and RANGe is necessary because TIMebase:RANGe is a compound command. The semicolon between the RANGe command and the POSition command is the required program message unit separator. The POSition command does not need TIMebase preceding it because the TIMebase:RANGe command sets the parser to the TIMebase node in the tree.

Example 2: Program Message
Terminator Sets Parser Back to
Root

myScope.WriteString ":TIMebase:REFerence CENTer;POSition 0.00001"
or
myScope.WriteString ":TIMebase:REFerence CENTer" myScope.WriteString ":TIMebase:POSition 0.00001"

NOTE

In the first line of example 2, the subsystem selector is implied for the POSition command in the compound command. The POSition command must be in the same program message as the REFerence command because the program message terminator places the parser back at the root of the command tree.

Example 3: Selecting Multiple
Subsystems

A second way to send these commands is by placing TIMebase: before the POSition command as shown in the second part of example 2. The space after POSition is required. You can send multiple program commands and program queries for different subsystems on the same line by separating each command with a semicolon. The colon following the semicolon enables you to enter a new subsystem. For example:

<program mnemonic><data>;:<program mnemonic><data><terminator>
For example:

myScope.WriteString ":TIMebase:REFerence CENTer;:DISPlay:VECTors ON"

NOTE

The leading colon before DISPlay:VECTors ON tells the parser to go back to the root of the command tree. The parser can then see the DISPlay:VECTors ON command. The space between REFerence and CENter is required; so is the space between VECTors and ON.

Multiple commands may be any combination of compound and simple commands.

1170

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

More About Oscilloscope Commands 39

Query Return Values

NOTE

Command headers immediately followed by a question mark (?) are queries. Queries are used to get results of measurements made by the instrument or to find out how the instrument is currently configured. After receiving a query, the instrument interrogates the requested function and places the answer in its output queue. The answer remains in the output queue until it is read or another command is issued. When read, the answer is transmitted across the bus to the designated listener (typically a controller). For example, the query :TIMebase:RANGe? places the current time base setting in the output queue. When using the Keysight VISA COM library in Visual Basic, the controller statements:
Dim strQueryResult As String myScope.WriteString ":TIMebase:RANGe?" strQueryResult = myScope.ReadString
pass the value across the bus to the controller and place it in the variable strQueryResult.
Read Query Results Before Sending Another Command. Sending another command or query before reading the result of a query clears the output buffer (the current response) and places a Query INTERRUPTED error in the error queue.

Infinity The representation of infinity is +9.9E+37. This is also the value returned when a Representation measurement cannot be made.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1171

39 More About Oscilloscope Commands

Sequential vs. Overlapped Commands
IEEE 488.2 makes the distinction between sequential and overlapped commands: · Sequential commands finish their task before the execution of the next
command starts. Most oscilloscope commands are sequential. · Overlapped commands run concurrently. Commands following an overlapped command may be started before the overlapped command is completed. Some oscilloscope commands are overlapped. For example, the oscilloscope's save and recall commands are overlapped as well as some commands that perform analysis. With overlapped commands, you can use the *OPC? query to prevent any more commands from being executed until the overlapped command is complete. This may be necessary when a command that follows an overlapped command interferes with the overlapped command's processing or analysis. For example:

See Also

:WMEMory1:SAVE CHAN1;*OPC?;:WMEMory2:SAVE CHAN2
You can also use the *ESR? query to look at the OPC bit (bit 0) in the Standard Event Status Register to determine when an operation is complete. · "*OPC (Operation Complete)" on page 178 · "*ESR (Standard Event Status Register)" on page 174

1172

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
40 Programming Examples
VISA COM Examples / 1174 VISA Examples / 1207 VISA.NET Examples / 1260 SICL Examples / 1279 SCPI.NET Examples / 1299

See Also

Example programs are ASCII text files that can be cut from the help file and pasted into your favorite text editor. · You can find additional programming examples for the InfiniiVision
3000 X-Series oscilloscopes on the Keysight Technologies website at: www.keysight.com/find/3000X-Series-examples

1173

40 Programming Examples

VISA COM Examples
· "VISA COM Example in Visual Basic" on page 1174 · "VISA COM Example in C#" on page 1183 · "VISA COM Example in Visual Basic .NET" on page 1192 · "VISA COM Example in Python" on page 1200
VISA COM Example in Visual Basic
To run this example in Visual Basic for Applications (VBA): 1 Start the application that provides Visual Basic for Applications (for example,
Microsoft Excel). 2 Press ALT+F11 to launch the Visual Basic editor. 3 Reference the Keysight VISA COM library:
a Choose Tools > References... from the main menu. b In the References dialog, check the "VISA COM 5.9 Type Library". c Click OK. 4 Choose Insert > Module. 5 Cut-and-paste the code that follows into the editor. 6 Edit the program to use the VISA address of your oscilloscope, and save the changes. 7 Run the program.
' ' Keysight VISA COM Example in Visual Basic ' ------------------------------------------------------------------' This program illustrates a few commonly-used programming ' features of your Keysight oscilloscope. ' -------------------------------------------------------------------
Option Explicit
Public myMgr As VisaComLib.ResourceManager Public myScope As VisaComLib.FormattedIO488 Public varQueryResult As Variant Public strQueryResult As String
' For Sleep subroutine. Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
' ' Main Program ' -------------------------------------------------------------------
Sub Main()

1174

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

On Error GoTo VisaComError
' Create the VISA COM I/O resource. Set myMgr = New VisaComLib.ResourceManager Set myScope = New VisaComLib.FormattedIO488 Set myScope.IO = _
myMgr.Open("USB0::0x0957::0x17A6::US50210029::0::INSTR") myScope.IO.Clear ' Clear the interface. myScope.IO.Timeout = 10000 ' Set I/O communication timeout.
' Initialize - start from a known state. Initialize
' Capture data. Capture
' Analyze the captured waveform. Analyze
Exit Sub
VisaComError: MsgBox "VISA COM Error:" + vbCrLf + Err.Description End
End Sub
' ' Initialize the oscilloscope to a known state. ' -------------------------------------------------------------------
Private Sub Initialize()
On Error GoTo VisaComError
' Get and display the device's *IDN? string. strQueryResult = DoQueryString("*IDN?") Debug.Print "Identification string: " + strQueryResult
' Clear status and load the default setup. DoCommand "*CLS" DoCommand "*RST"
Exit Sub
VisaComError: MsgBox "VISA COM Error:" + vbCrLf + Err.Description End
End Sub
' ' Capture the waveform. ' -------------------------------------------------------------------
Private Sub Capture()

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1175

40 Programming Examples

1176

On Error GoTo VisaComError
' Use auto-scale to automatically configure oscilloscope. ' ----------------------------------------------------------------DoCommand ":AUToscale"
' Set trigger mode (EDGE, PULSe, PATTern, etc., and input source. DoCommand ":TRIGger:MODE EDGE" Debug.Print "Trigger mode: " + _
DoQueryString(":TRIGger:MODE?")
' Set EDGE trigger parameters. DoCommand ":TRIGger:EDGE:SOURce CHANnel1" Debug.Print "Trigger edge source: " + _
DoQueryString(":TRIGger:EDGE:SOURce?")
DoCommand ":TRIGger:EDGE:LEVel 1.5" Debug.Print "Trigger edge level: " + _
DoQueryString(":TRIGger:EDGE:LEVel?")
DoCommand ":TRIGger:EDGE:SLOPe POSitive" Debug.Print "Trigger edge slope: " + _
DoQueryString(":TRIGger:EDGE:SLOPe?")
' Save oscilloscope configuration. ' ----------------------------------------------------------------varQueryResult = DoQueryIEEEBlock_UI1(":SYSTem:SETup?")
' Output setup string to a file: Dim strPath As String strPath = "c:\scope\config\setup.dat" Dim hFile As Long hFile = FreeFile Open strPath For Binary Access Write Lock Write As hFile Put hFile, , varQueryResult ' Write data. Close hFile ' Close file. Debug.Print "Setup bytes saved: " + CStr(LenB(varQueryResult))
' Change settings with individual commands: ' -----------------------------------------------------------------
' Set vertical scale and offset. DoCommand ":CHANnel1:SCALe 0.05" Debug.Print "Channel 1 vertical scale: " + _
DoQueryString(":CHANnel1:SCALe?")
DoCommand ":CHANnel1:OFFSet -1.5" Debug.Print "Channel 1 vertical offset: " + _
DoQueryString(":CHANnel1:OFFSet?")
' Set horizontal scale and offset. DoCommand ":TIMebase:SCALe 0.0002" Debug.Print "Timebase scale: " + _
DoQueryString(":TIMebase:SCALe?")
DoCommand ":TIMebase:POSition 0.0" Debug.Print "Timebase position: " + _
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

DoQueryString(":TIMebase:POSition?")
' Set the acquisition type (NORMal, PEAK, AVERage, or HRESolution). DoCommand ":ACQuire:TYPE NORMal" Debug.Print "Acquire type: " + _
DoQueryString(":ACQuire:TYPE?")
' Or, configure by loading a previously saved setup. ' ----------------------------------------------------------------Dim varSetupString As Variant strPath = "c:\scope\config\setup.dat" Open strPath For Binary Access Read As hFile ' Open file for input. Get hFile, , varSetupString ' Read data. Close hFile ' Close file. ' Write learn string back to oscilloscope using ":SYSTem:SETup" ' command: DoCommandIEEEBlock ":SYSTem:SETup", varSetupString Debug.Print "Setup bytes restored: " + CStr(LenB(varSetupString))
' Capture an acquisition using :DIGitize. ' ----------------------------------------------------------------DoCommand ":DIGitize CHANnel1"
Exit Sub
VisaComError: MsgBox "VISA COM Error:" + vbCrLf + Err.Description End
End Sub
' ' Analyze the captured waveform. ' -------------------------------------------------------------------
Private Sub Analyze()
On Error GoTo VisaComError
' Make a couple of measurements. ' ----------------------------------------------------------------DoCommand ":MEASure:SOURce CHANnel1" Debug.Print "Measure source: " + _
DoQueryString(":MEASure:SOURce?")
DoCommand ":MEASure:FREQuency" varQueryResult = DoQueryNumber(":MEASure:FREQuency?") MsgBox "Frequency:" + vbCrLf + _
FormatNumber(varQueryResult / 1000, 4) + " kHz"
DoCommand ":MEASure:VAMPlitude" varQueryResult = DoQueryNumber(":MEASure:VAMPlitude?") MsgBox "Vertical amplitude:" + vbCrLf + _
FormatNumber(varQueryResult, 4) + " V"

' Download the screen image.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1177

40 Programming Examples

1178

' ----------------------------------------------------------------' Get screen image. DoCommand ":HARDcopy:INKSaver OFF" Dim byteData() As Byte byteData = DoQueryIEEEBlock_UI1(":DISPlay:DATA? PNG, COLor")
' Save screen image to a file. Dim strPath As String strPath = "c:\scope\data\screen.png" If Len(Dir(strPath)) Then
Kill strPath ' Remove file if it exists. End If
Dim hFile As Long hFile = FreeFile Open strPath For Binary Access Write Lock Write As hFile Put hFile, , byteData ' Write data. Close hFile ' Close file. MsgBox "Screen image (" + CStr(UBound(byteData) + 1) + _
" bytes) written to " + strPath
' Download waveform data. ' -----------------------------------------------------------------
' Set the waveform points mode. DoCommand ":WAVeform:POINts:MODE RAW" Debug.Print "Waveform points mode: " + _
DoQueryString(":WAVeform:POINts:MODE?")
' Get the number of waveform points available. Debug.Print "Waveform points available: " + _
DoQueryString(":WAVeform:POINts?")
' Set the waveform source. DoCommand ":WAVeform:SOURce CHANnel1" Debug.Print "Waveform source: " + _
DoQueryString(":WAVeform:SOURce?")
' Choose the format of the data returned (WORD, BYTE, ASCII): DoCommand ":WAVeform:FORMat BYTE" Debug.Print "Waveform format: " + _
DoQueryString(":WAVeform:FORMat?")
' Display the waveform settings: Dim Preamble() Dim intFormat As Integer Dim intType As Integer Dim lngPoints As Long Dim lngCount As Long Dim dblXIncrement As Double Dim dblXOrigin As Double Dim lngXReference As Long Dim sngYIncrement As Single Dim sngYOrigin As Single Dim lngYReference As Long
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

Preamble() = DoQueryNumbers(":WAVeform:PREamble?")
intFormat = Preamble(0) intType = Preamble(1) lngPoints = Preamble(2) lngCount = Preamble(3) dblXIncrement = Preamble(4) dblXOrigin = Preamble(5) lngXReference = Preamble(6) sngYIncrement = Preamble(7) sngYOrigin = Preamble(8) lngYReference = Preamble(9)
If intFormat = 0 Then Debug.Print "Waveform format: BYTE"
ElseIf intFormat = 1 Then Debug.Print "Waveform format: WORD"
ElseIf intFormat = 4 Then Debug.Print "Waveform format: ASCii"
End If
If intType = 0 Then Debug.Print "Acquisition type: NORMal"
ElseIf intType = 1 Then Debug.Print "Acquisition type: PEAK"
ElseIf intType = 2 Then Debug.Print "Acquisition type: AVERage"
ElseIf intType = 3 Then Debug.Print "Acquisition type: HRESolution"
End If
Debug.Print "Waveform points: " + _ FormatNumber(lngPoints, 0)
Debug.Print "Waveform average count: " + _ FormatNumber(lngCount, 0)
Debug.Print "Waveform X increment: " + _ Format(dblXIncrement, "Scientific")
Debug.Print "Waveform X origin: " + _ Format(dblXOrigin, "Scientific")
Debug.Print "Waveform X reference: " + _ FormatNumber(lngXReference, 0)
Debug.Print "Waveform Y increment: " + _ Format(sngYIncrement, "Scientific")
Debug.Print "Waveform Y origin: " + _ FormatNumber(sngYOrigin, 0)
Debug.Print "Waveform Y reference: " + _ FormatNumber(lngYReference, 0)
' Get the waveform data varQueryResult = DoQueryIEEEBlock_UI1(":WAVeform:DATA?")
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1179

40 Programming Examples

1180

Debug.Print "Number of data values: " + _ CStr(UBound(varQueryResult) + 1)
' Set up output file: strPath = "c:\scope\data\waveform_data.csv"
' Open file for output. Open strPath For Output Access Write Lock Write As hFile
' Output waveform data in CSV format. Dim lngDataValue As Long Dim lngI As Long
For lngI = 0 To UBound(varQueryResult) lngDataValue = varQueryResult(lngI)
' Write time value, voltage value. Print #hFile, _
FormatNumber(dblXOrigin + (lngI * dblXIncrement), 9) + _ ", " + _ FormatNumber(((lngDataValue - lngYReference) * _ sngYIncrement) + sngYOrigin)
Next lngI
' Close output file. Close hFile ' Close file. MsgBox "Waveform format BYTE data written to " + _
"c:\scope\data\waveform_data.csv."
Exit Sub
VisaComError: MsgBox "VISA COM Error:" + vbCrLf + Err.Description End
End Sub
Private Sub DoCommand(command As String)
On Error GoTo VisaComError
myScope.WriteString command CheckInstrumentErrors
Exit Sub
VisaComError: MsgBox "VISA COM Error: " + vbCrLf + CStr(Err.Number) + ", " + _ Err.Source + ", " + _ Err.Description, vbExclamation, "VISA COM Error" End
End Sub
Private Sub DoCommandIEEEBlock(command As String, data As Variant)
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

On Error GoTo VisaComError
Dim strErrors As String
myScope.WriteIEEEBlock command, data CheckInstrumentErrors
Exit Sub
VisaComError: MsgBox "VISA COM Error: " + vbCrLf + CStr(Err.Number) + ", " + _ Err.Source + ", " + _ Err.Description, vbExclamation, "VISA COM Error" End
End Sub
Private Function DoQueryString(query As String) As String
On Error GoTo VisaComError
myScope.WriteString query DoQueryString = myScope.ReadString CheckInstrumentErrors
Exit Function
VisaComError: MsgBox "VISA COM Error: " + vbCrLf + CStr(Err.Number) + ", " + _ Err.Source + ", " + _ Err.Description, vbExclamation, "VISA COM Error" End
End Function
Private Function DoQueryNumber(query As String) As Variant
On Error GoTo VisaComError
myScope.WriteString query DoQueryNumber = myScope.ReadNumber CheckInstrumentErrors
Exit Function
VisaComError: MsgBox "VISA COM Error: " + vbCrLf + CStr(Err.Number) + ", " + _ Err.Source + ", " + _ Err.Description, vbExclamation, "VISA COM Error" End
End Function
Private Function DoQueryNumbers(query As String) As Variant()
On Error GoTo VisaComError

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1181

40 Programming Examples

1182

Dim strErrors As String

myScope.WriteString query DoQueryNumbers = myScope.ReadList CheckInstrumentErrors

Exit Function

VisaComError: MsgBox "VISA COM Error: " + vbCrLf + CStr(Err.Number) + ", " + _ Err.Source + ", " + _ Err.Description, vbExclamation, "VISA COM Error" End

End Function

Private Function DoQueryIEEEBlock_UI1(query As String) As Variant

On Error GoTo VisaComError

myScope.WriteString query DoQueryIEEEBlock_UI1 = myScope.ReadIEEEBlock(BinaryType_UI1) CheckInstrumentErrors

Exit Function

VisaComError: MsgBox "VISA COM Error: " + vbCrLf + CStr(Err.Number) + ", " + _ Err.Source + ", " + _ Err.Description, vbExclamation, "VISA COM Error" End

End Function

Private Sub CheckInstrumentErrors()

On Error GoTo VisaComError

Dim strErrVal As String Dim strOut As String

myScope.WriteString ":SYSTem:ERRor?" ' Query any errors data.

strErrVal = myScope.ReadString

' Read: Errnum,"Error String".

While Val(strErrVal) <> 0

' End if find: 0,"No Error".

strOut = strOut + "INST Error: " + strErrVal

myScope.WriteString ":SYSTem:ERRor?" ' Request error message.

strErrVal = myScope.ReadString

' Read error message.

Wend

If Not strOut = "" Then MsgBox strOut, vbExclamation, "INST Error Messages" myScope.FlushWrite (False) myScope.FlushRead

End If

Exit Sub

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

VisaComError: MsgBox "VISA COM Error: " + vbCrLf + Err.Description
End Sub
VISA COM Example in C#
To compile and run this example in Microsoft Visual Studio 2008: 1 Open Visual Studio. 2 Create a new Visual C#, Windows, Console Application project. 3 Cut-and-paste the code that follows into the C# source file. 4 Edit the program to use the VISA address of your oscilloscope. 5 Add a reference to the VISA COM 5.9 Type Library:
a Right-click the project you wish to modify (not the solution) in the Solution Explorer window of the Microsoft Visual Studio environment.
b Choose Add Reference.... c In the Add Reference dialog, select the COM tab. d Select VISA COM 5.9 Type Library; then click OK. 6 Build and run the program. For more information, see the VISA COM Help that comes with Keysight IO Libraries Suite.
/* * Keysight VISA COM Example in C# * ------------------------------------------------------------------* This program illustrates a few commonly used programming * features of your Keysight oscilloscope. * ------------------------------------------------------------------*/
using System; using System.IO; using System.Text; using Ivi.Visa.Interop; using System.Runtime.InteropServices;
namespace InfiniiVision {
class VisaComInstrumentApp {
private static VisaComInstrument myScope;
public static void Main(string[] args) {
try {
myScope = new

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1183

40 Programming Examples

1184

VisaComInstrument("USB0::0x0957::0x17A6::US50210029::0::INSTR" );
myScope.SetTimeoutSeconds(10);
// Initialize - start from a known state. Initialize();
// Capture data. Capture();
// Analyze the captured waveform. Analyze(); } catch (System.ApplicationException err) { Console.WriteLine("*** VISA COM Error : " + err.Message); } catch (System.SystemException err) { Console.WriteLine("*** System Error Message : " + err.Message); } catch (System.Exception err) { System.Diagnostics.Debug.Fail("Unexpected Error"); Console.WriteLine("*** Unexpected Error : " + err.Message); } finally { myScope.Close(); } }
/* * Initialize the oscilloscope to a known state. * -------------------------------------------------------------*/
private static void Initialize() {
string strResults;
// Get and display the device's *IDN? string. strResults = myScope.DoQueryString("*IDN?"); Console.WriteLine("*IDN? result is: {0}", strResults);
// Clear status and load the default setup. myScope.DoCommand("*CLS"); myScope.DoCommand("*RST"); }
/* * Capture the waveform. * -------------------------------------------------------------*/
private static void Capture() {
// Use auto-scale to automatically configure oscilloscope. myScope.DoCommand(":AUToscale");
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

// Set trigger mode (EDGE, PULSe, PATTern, etc., and input source. myScope.DoCommand(":TRIGger:MODE EDGE"); Console.WriteLine("Trigger mode: {0}",
myScope.DoQueryString(":TRIGger:MODE?"));
// Set EDGE trigger parameters. myScope.DoCommand(":TRIGger:EDGE:SOURce CHANnel1"); Console.WriteLine("Trigger edge source: {0}",
myScope.DoQueryString(":TRIGger:EDGE:SOURce?"));
myScope.DoCommand(":TRIGger:EDGE:LEVel 1.5"); Console.WriteLine("Trigger edge level: {0}",
myScope.DoQueryString(":TRIGger:EDGE:LEVel?"));
myScope.DoCommand(":TRIGger:EDGE:SLOPe POSitive"); Console.WriteLine("Trigger edge slope: {0}",
myScope.DoQueryString(":TRIGger:EDGE:SLOPe?"));
// Save oscilloscope configuration. byte[] ResultsArray; // Results array. int nLength; // Number of bytes returned from instrument. string strPath;
// Query and read setup string. ResultsArray = myScope.DoQueryIEEEBlock(":SYSTem:SETup?"); nLength = ResultsArray.Length;
// Write setup string to file. strPath = "c:\\scope\\config\\setup.stp"; FileStream fStream = File.Open(strPath, FileMode.Create); fStream.Write(ResultsArray, 0, nLength); fStream.Close(); Console.WriteLine("Setup bytes saved: {0}", nLength);
// Change settings with individual commands:
// Set vertical scale and offset. myScope.DoCommand(":CHANnel1:SCALe 0.05"); Console.WriteLine("Channel 1 vertical scale: {0}",
myScope.DoQueryString(":CHANnel1:SCALe?"));
myScope.DoCommand(":CHANnel1:OFFSet -1.5"); Console.WriteLine("Channel 1 vertical offset: {0}",
myScope.DoQueryString(":CHANnel1:OFFSet?"));
// Set horizontal scale and offset. myScope.DoCommand(":TIMebase:SCALe 0.0002"); Console.WriteLine("Timebase scale: {0}",
myScope.DoQueryString(":TIMebase:SCALe?"));
myScope.DoCommand(":TIMebase:POSition 0.0"); Console.WriteLine("Timebase position: {0}",
myScope.DoQueryString(":TIMebase:POSition?"));
// Set the acquisition type (NORMal, PEAK, AVERage, or HRESolution ).

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1185

40 Programming Examples

1186

myScope.DoCommand(":ACQuire:TYPE NORMal"); Console.WriteLine("Acquire type: {0}",
myScope.DoQueryString(":ACQuire:TYPE?"));
// Or, configure by loading a previously saved setup. byte[] DataArray; int nBytesWritten;
// Read setup string from file. strPath = "c:\\scope\\config\\setup.stp"; DataArray = File.ReadAllBytes(strPath); nBytesWritten = DataArray.Length;
// Restore setup string. myScope.DoCommandIEEEBlock(":SYSTem:SETup", DataArray); Console.WriteLine("Setup bytes restored: {0}", nBytesWritten);
// Capture an acquisition using :DIGitize. myScope.DoCommand(":DIGitize CHANnel1"); }
/* * Analyze the captured waveform. * -------------------------------------------------------------*/
private static void Analyze() {
byte[] ResultsArray; // Results array. int nLength; // Number of bytes returned from instrument. string strPath;
// Make a couple of measurements. // ----------------------------------------------------------myScope.DoCommand(":MEASure:SOURce CHANnel1"); Console.WriteLine("Measure source: {0}",
myScope.DoQueryString(":MEASure:SOURce?"));
double fResult; myScope.DoCommand(":MEASure:FREQuency"); fResult = myScope.DoQueryNumber(":MEASure:FREQuency?"); Console.WriteLine("Frequency: {0:F4} kHz", fResult / 1000);
myScope.DoCommand(":MEASure:VAMPlitude"); fResult = myScope.DoQueryNumber(":MEASure:VAMPlitude?"); Console.WriteLine("Vertical amplitude: {0:F2} V", fResult);
// Download the screen image. // ----------------------------------------------------------myScope.DoCommand(":HARDcopy:INKSaver OFF");
// Get the screen data. ResultsArray =
myScope.DoQueryIEEEBlock(":DISPlay:DATA? PNG, COLor"); nLength = ResultsArray.Length;
// Store the screen data to a file. strPath = "c:\\scope\\data\\screen.png";
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

FileStream fStream = File.Open(strPath, FileMode.Create); fStream.Write(ResultsArray, 0, nLength); fStream.Close(); Console.WriteLine("Screen image ({0} bytes) written to {1}",
nLength, strPath);
// Download waveform data. // -----------------------------------------------------------
// Set the waveform points mode. myScope.DoCommand(":WAVeform:POINts:MODE RAW"); Console.WriteLine("Waveform points mode: {0}",
myScope.DoQueryString(":WAVeform:POINts:MODE?"));
// Get the number of waveform points available. Console.WriteLine("Waveform points available: {0}",
myScope.DoQueryString(":WAVeform:POINts?"));
// Set the waveform source. myScope.DoCommand(":WAVeform:SOURce CHANnel1"); Console.WriteLine("Waveform source: {0}",
myScope.DoQueryString(":WAVeform:SOURce?"));
// Choose the format of the data returned (WORD, BYTE, ASCII): myScope.DoCommand(":WAVeform:FORMat BYTE"); Console.WriteLine("Waveform format: {0}",
myScope.DoQueryString(":WAVeform:FORMat?"));
// Display the waveform settings: double[] fResultsArray; fResultsArray = myScope.DoQueryNumbers(":WAVeform:PREamble?");
double fFormat = fResultsArray[0]; if (fFormat == 0.0) {
Console.WriteLine("Waveform format: BYTE"); } else if (fFormat == 1.0) {
Console.WriteLine("Waveform format: WORD"); } else if (fFormat == 2.0) {
Console.WriteLine("Waveform format: ASCii"); }
double fType = fResultsArray[1]; if (fType == 0.0) {
Console.WriteLine("Acquire type: NORMal"); } else if (fType == 1.0) {
Console.WriteLine("Acquire type: PEAK"); } else if (fType == 2.0) {

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1187

40 Programming Examples

1188

Console.WriteLine("Acquire type: AVERage"); } else if (fType == 3.0) {
Console.WriteLine("Acquire type: HRESolution"); }
double fPoints = fResultsArray[2]; Console.WriteLine("Waveform points: {0:e}", fPoints);
double fCount = fResultsArray[3]; Console.WriteLine("Waveform average count: {0:e}", fCount);
double fXincrement = fResultsArray[4]; Console.WriteLine("Waveform X increment: {0:e}", fXincrement);
double fXorigin = fResultsArray[5]; Console.WriteLine("Waveform X origin: {0:e}", fXorigin);
double fXreference = fResultsArray[6]; Console.WriteLine("Waveform X reference: {0:e}", fXreference);
double fYincrement = fResultsArray[7]; Console.WriteLine("Waveform Y increment: {0:e}", fYincrement);
double fYorigin = fResultsArray[8]; Console.WriteLine("Waveform Y origin: {0:e}", fYorigin);
double fYreference = fResultsArray[9]; Console.WriteLine("Waveform Y reference: {0:e}", fYreference);
// Read waveform data. ResultsArray = myScope.DoQueryIEEEBlock(":WAVeform:DATA?"); nLength = ResultsArray.Length; Console.WriteLine("Number of data values: {0}", nLength);
// Set up output file: strPath = "c:\\scope\\data\\waveform_data.csv"; if (File.Exists(strPath)) File.Delete(strPath);
// Open file for output. StreamWriter writer = File.CreateText(strPath);
// Output waveform data in CSV format. for (int i = 0; i < nLength - 1; i++)
writer.WriteLine("{0:f9}, {1:f6}", fXorigin + ((float)i * fXincrement), (((float)ResultsArray[i] - fYreference) * fYincrement) + fYorigin);
// Close output file. writer.Close(); Console.WriteLine("Waveform format BYTE data written to {0}",
strPath); } }
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

class VisaComInstrument {
private ResourceManagerClass m_ResourceManager; private FormattedIO488Class m_IoObject; private string m_strVisaAddress;
// Constructor. public VisaComInstrument(string strVisaAddress) {
// Save VISA address in member variable. m_strVisaAddress = strVisaAddress;
// Open the default VISA COM IO object. OpenIo();
// Clear the interface. m_IoObject.IO.Clear(); }
public void DoCommand(string strCommand) {
// Send the command. m_IoObject.WriteString(strCommand, true);
// Check for inst errors. CheckInstrumentErrors(strCommand); }
public void DoCommandIEEEBlock(string strCommand, byte[] DataArray)
{ // Send the command to the device. m_IoObject.WriteIEEEBlock(strCommand, DataArray, true);
// Check for inst errors. CheckInstrumentErrors(strCommand); }
public string DoQueryString(string strQuery) {
// Send the query. m_IoObject.WriteString(strQuery, true);
// Get the result string. string strResults; strResults = m_IoObject.ReadString();
// Check for inst errors. CheckInstrumentErrors(strQuery);
// Return results string. return strResults; }
public double DoQueryNumber(string strQuery) {
// Send the query.
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1189

40 Programming Examples

1190

m_IoObject.WriteString(strQuery, true);
// Get the result number. double fResult; fResult = (double)m_IoObject.ReadNumber(
IEEEASCIIType.ASCIIType_R8, true);
// Check for inst errors. CheckInstrumentErrors(strQuery);
// Return result number. return fResult; }
public double[] DoQueryNumbers(string strQuery) {
// Send the query. m_IoObject.WriteString(strQuery, true);
// Get the result numbers. double[] fResultsArray; fResultsArray = (double[])m_IoObject.ReadList(
IEEEASCIIType.ASCIIType_R8, ",;");
// Check for inst errors. CheckInstrumentErrors(strQuery);
// Return result numbers. return fResultsArray; }
public byte[] DoQueryIEEEBlock(string strQuery) {
// Send the query. m_IoObject.WriteString(strQuery, true);
// Get the results array. System.Threading.Thread.Sleep(2000); // Delay before reading. byte[] ResultsArray; ResultsArray = (byte[])m_IoObject.ReadIEEEBlock(
IEEEBinaryType.BinaryType_UI1, false, true);
// Check for inst errors. CheckInstrumentErrors(strQuery);
// Return results array. return ResultsArray; }
private void CheckInstrumentErrors(string strCommand) {
// Check for instrument errors. string strInstrumentError; bool bFirstError = true;
do // While not "0,No error". {
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

m_IoObject.WriteString(":SYSTem:ERRor?", true); strInstrumentError = m_IoObject.ReadString();
if (!strInstrumentError.ToString().StartsWith("+0,")) {
if (bFirstError) {
Console.WriteLine("ERROR(s) for command '{0}': ", strCommand);
bFirstError = false; } Console.Write(strInstrumentError); } } while (!strInstrumentError.ToString().StartsWith("+0,")); }
private void OpenIo() {
m_ResourceManager = new ResourceManagerClass(); m_IoObject = new FormattedIO488Class();
// Open the default VISA COM IO object. try {
m_IoObject.IO = (IMessage)m_ResourceManager.Open(m_strVisaAddress, AccessMode.NO_LOCK, 0, "");
} catch (Exception e) {
Console.WriteLine("An error occurred: {0}", e.Message); } }
public void SetTimeoutSeconds(int nSeconds) {
m_IoObject.IO.Timeout = nSeconds * 1000; }
public void Close() {
try {
m_IoObject.IO.Close(); } catch { }
try {
Marshal.ReleaseComObject(m_IoObject); } catch { }
try {
Marshal.ReleaseComObject(m_ResourceManager); }

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1191

40 Programming Examples

catch { } } } }
VISA COM Example in Visual Basic .NET
To compile and run this example in Microsoft Visual Studio 2008: 1 Open Visual Studio. 2 Create a new Visual Basic, Windows, Console Application project. 3 Cut-and-paste the code that follows into the C# source file. 4 Edit the program to use the VISA address of your oscilloscope. 5 Add a reference to the VISA COM 5.9 Type Library:
a Right-click the project you wish to modify (not the solution) in the Solution Explorer window of the Microsoft Visual Studio environment.
b Choose Add Reference.... c In the Add Reference dialog, select the COM tab. d Select VISA COM 5.9 Type Library; then click OK. e Right-click the project you wish to modify (not the solution) in the Solution
Explorer window of the Microsoft Visual Studio environment and choose Properties; then, select "InfiniiVision.VisaComInstrumentApp" as the Startup object. 6 Build and run the program.
For more information, see the VISA COM Help that comes with Keysight IO Libraries Suite.
' ' Keysight VISA COM Example in Visual Basic .NET ' ------------------------------------------------------------------' This program illustrates a few commonly used programming ' features of your Keysight oscilloscope. ' -------------------------------------------------------------------
Imports System Imports System.IO Imports System.Text Imports Ivi.Visa.Interop Imports System.Runtime.InteropServices
Namespace InfiniiVision Class VisaComInstrumentApp Private Shared myScope As VisaComInstrument
Public Shared Sub Main(ByVal args As String()) Try myScope = New _ VisaComInstrument("USB0::0x0957::0x17A6::US50210029::0::INSTR"

1192

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

) myScope.SetTimeoutSeconds(10)
' Initialize - start from a known state. Initialize()
' Capture data. Capture()
' Analyze the captured waveform. Analyze()
Catch err As System.ApplicationException Console.WriteLine("*** VISA Error Message : " + err.Message)
Catch err As System.SystemException Console.WriteLine("*** System Error Message : " + err.Message)
Catch err As System.Exception System.Diagnostics.Debug.Fail("Unexpected Error") Console.WriteLine("*** Unexpected Error : " + err.Message)
Finally myScope.Close()
End Try End Sub
' Initialize the oscilloscope to a known state. ' --------------------------------------------------------------
Private Shared Sub Initialize() Dim strResults As String
' Get and display the device's *IDN? string. strResults = myScope.DoQueryString("*IDN?") Console.WriteLine("*IDN? result is: {0}", strResults)
' Clear status and load the default setup. myScope.DoCommand("*CLS") myScope.DoCommand("*RST")
End Sub
' Capture the waveform. ' --------------------------------------------------------------
Private Shared Sub Capture()
' Use auto-scale to automatically configure oscilloscope. myScope.DoCommand(":AUToscale")
' Set trigger mode (EDGE, PULSe, PATTern, etc., and input source. myScope.DoCommand(":TRIGger:MODE EDGE") Console.WriteLine("Trigger mode: {0}", _
myScope.DoQueryString(":TRIGger:MODE?"))
' Set EDGE trigger parameters. myScope.DoCommand(":TRIGger:EDGE:SOURce CHANnel1") Console.WriteLine("Trigger edge source: {0}", _
myScope.DoQueryString(":TRIGger:EDGE:SOURce?"))

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1193

40 Programming Examples

1194

myScope.DoCommand(":TRIGger:EDGE:LEVel 1.5") Console.WriteLine("Trigger edge level: {0}", _
myScope.DoQueryString(":TRIGger:EDGE:LEVel?"))
myScope.DoCommand(":TRIGger:EDGE:SLOPe POSitive") Console.WriteLine("Trigger edge slope: {0}", _
myScope.DoQueryString(":TRIGger:EDGE:SLOPe?"))
' Save oscilloscope configuration. Dim ResultsArray As Byte() ' Results array. Dim nLength As Integer ' Number of bytes returned from inst. Dim strPath As String Dim fStream As FileStream
' Query and read setup string. ResultsArray = myScope.DoQueryIEEEBlock(":SYSTem:SETup?") nLength = ResultsArray.Length
' Write setup string to file. strPath = "c:\scope\config\setup.stp" fStream = File.Open(strPath, FileMode.Create) fStream.Write(ResultsArray, 0, nLength) fStream.Close() Console.WriteLine("Setup bytes saved: {0}", nLength)
' Change settings with individual commands:
' Set vertical scale and offset. myScope.DoCommand(":CHANnel1:SCALe 0.05") Console.WriteLine("Channel 1 vertical scale: {0}", _
myScope.DoQueryString(":CHANnel1:SCALe?"))
myScope.DoCommand(":CHANnel1:OFFSet -1.5") Console.WriteLine("Channel 1 vertical offset: {0}", _
myScope.DoQueryString(":CHANnel1:OFFSet?"))
' Set horizontal scale and offset. myScope.DoCommand(":TIMebase:SCALe 0.0002") Console.WriteLine("Timebase scale: {0}", _
myScope.DoQueryString(":TIMebase:SCALe?"))
myScope.DoCommand(":TIMebase:POSition 0.0") Console.WriteLine("Timebase position: {0}", _
myScope.DoQueryString(":TIMebase:POSition?"))
' Set the acquisition type (NORMal, PEAK, AVERage, or HRESolution) .
myScope.DoCommand(":ACQuire:TYPE NORMal") Console.WriteLine("Acquire type: {0}", _
myScope.DoQueryString(":ACQuire:TYPE?"))
' Or, configure by loading a previously saved setup. Dim DataArray As Byte() Dim nBytesWritten As Integer
' Read setup string from file.
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

strPath = "c:\scope\config\setup.stp" DataArray = File.ReadAllBytes(strPath) nBytesWritten = DataArray.Length
' Restore setup string. myScope.DoCommandIEEEBlock(":SYSTem:SETup", DataArray) Console.WriteLine("Setup bytes restored: {0}", nBytesWritten)
' Capture an acquisition using :DIGitize. myScope.DoCommand(":DIGitize CHANnel1")
End Sub
' Analyze the captured waveform. ' --------------------------------------------------------------
Private Shared Sub Analyze()
Dim fResult As Double Dim ResultsArray As Byte() ' Results array. Dim nLength As Integer ' Number of bytes returned from inst. Dim strPath As String
' Make a couple of measurements. ' -----------------------------------------------------------myScope.DoCommand(":MEASure:SOURce CHANnel1") Console.WriteLine("Measure source: {0}", _
myScope.DoQueryString(":MEASure:SOURce?"))
myScope.DoCommand(":MEASure:FREQuency") fResult = myScope.DoQueryNumber(":MEASure:FREQuency?") Console.WriteLine("Frequency: {0:F4} kHz", fResult / 1000)
myScope.DoCommand(":MEASure:VAMPlitude") fResult = myScope.DoQueryNumber(":MEASure:VAMPlitude?") Console.WriteLine("Vertical amplitude: {0:F2} V", fResult)
' Download the screen image. ' -----------------------------------------------------------myScope.DoCommand(":HARDcopy:INKSaver OFF")
' Get the screen data. ResultsArray = myScope.DoQueryIEEEBlock(":DISPlay:DATA? PNG, COLor ") nLength = ResultsArray.Length
' Store the screen data to a file. strPath = "c:\scope\data\screen.png" Dim fStream As FileStream fStream = File.Open(strPath, FileMode.Create) fStream.Write(ResultsArray, 0, nLength) fStream.Close() Console.WriteLine("Screen image ({0} bytes) written to {1}", _
nLength, strPath)
' Download waveform data. ' ------------------------------------------------------------

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1195

40 Programming Examples

1196

' Set the waveform points mode. myScope.DoCommand(":WAVeform:POINts:MODE RAW") Console.WriteLine("Waveform points mode: {0}", _
myScope.DoQueryString(":WAVeform:POINts:MODE?"))
' Get the number of waveform points available. Console.WriteLine("Waveform points available: {0}", _
myScope.DoQueryString(":WAVeform:POINts?"))
' Set the waveform source. myScope.DoCommand(":WAVeform:SOURce CHANnel1") Console.WriteLine("Waveform source: {0}", _
myScope.DoQueryString(":WAVeform:SOURce?"))
' Choose the format of the data returned (WORD, BYTE, ASCII): myScope.DoCommand(":WAVeform:FORMat BYTE") Console.WriteLine("Waveform format: {0}", _
myScope.DoQueryString(":WAVeform:FORMat?"))
' Display the waveform settings: Dim fResultsArray As Double() fResultsArray = myScope.DoQueryNumbers(":WAVeform:PREamble?")
Dim fFormat As Double = fResultsArray(0) If fFormat = 0 Then
Console.WriteLine("Waveform format: BYTE") ElseIf fFormat = 1 Then
Console.WriteLine("Waveform format: WORD") ElseIf fFormat = 2 Then
Console.WriteLine("Waveform format: ASCii") End If
Dim fType As Double = fResultsArray(1) If fType = 0 Then
Console.WriteLine("Acquire type: NORMal") ElseIf fType = 1 Then
Console.WriteLine("Acquire type: PEAK") ElseIf fType = 2 Then
Console.WriteLine("Acquire type: AVERage") ElseIf fType = 3 Then
Console.WriteLine("Acquire type: HRESolution") End If
Dim fPoints As Double = fResultsArray(2) Console.WriteLine("Waveform points: {0:e}", fPoints)
Dim fCount As Double = fResultsArray(3) Console.WriteLine("Waveform average count: {0:e}", fCount)
Dim fXincrement As Double = fResultsArray(4) Console.WriteLine("Waveform X increment: {0:e}", fXincrement)
Dim fXorigin As Double = fResultsArray(5) Console.WriteLine("Waveform X origin: {0:e}", fXorigin)
Dim fXreference As Double = fResultsArray(6)
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

Console.WriteLine("Waveform X reference: {0:e}", fXreference)
Dim fYincrement As Double = fResultsArray(7) Console.WriteLine("Waveform Y increment: {0:e}", fYincrement)
Dim fYorigin As Double = fResultsArray(8) Console.WriteLine("Waveform Y origin: {0:e}", fYorigin)
Dim fYreference As Double = fResultsArray(9) Console.WriteLine("Waveform Y reference: {0:e}", fYreference)
' Get the waveform data. ResultsArray = myScope.DoQueryIEEEBlock(":WAVeform:DATA?") nLength = ResultsArray.Length Console.WriteLine("Number of data values: {0}", nLength)
' Set up output file: strPath = "c:\scope\data\waveform_data.csv" If File.Exists(strPath) Then
File.Delete(strPath) End If
' Open file for output. Dim writer As StreamWriter = File.CreateText(strPath)
' Output waveform data in CSV format. For index As Integer = 0 To nLength - 1
' Write time value, voltage value. writer.WriteLine("{0:f9}, {1:f6}", _
fXorigin + (CSng(index) * fXincrement), _ ((CSng(ResultsArray(index)) - fYreference) _ * fYincrement) + fYorigin) Next
' Close output file. writer.Close() Console.WriteLine("Waveform format BYTE data written to {0}", _
strPath)
End Sub
End Class
Class VisaComInstrument Private m_ResourceManager As ResourceManagerClass Private m_IoObject As FormattedIO488Class Private m_strVisaAddress As String
' Constructor. Public Sub New(ByVal strVisaAddress As String)
' Save VISA address in member variable. m_strVisaAddress = strVisaAddress
' Open the default VISA COM IO object. OpenIo()

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1197

40 Programming Examples

1198

' Clear the interface. m_IoObject.IO.Clear()
End Sub
Public Sub DoCommand(ByVal strCommand As String)
' Send the command. m_IoObject.WriteString(strCommand, True)
' Check for inst errors. CheckInstrumentErrors(strCommand)
End Sub
Public Sub DoCommandIEEEBlock(ByVal strCommand As String, _ ByVal DataArray As Byte())
' Send the command to the device. m_IoObject.WriteIEEEBlock(strCommand, DataArray, True)
' Check for inst errors. CheckInstrumentErrors(strCommand)
End Sub
Public Function DoQueryString(ByVal strQuery As String) As String ' Send the query. m_IoObject.WriteString(strQuery, True)
' Get the result string. Dim strResults As String strResults = m_IoObject.ReadString()
' Check for inst errors. CheckInstrumentErrors(strQuery)
' Return results string. Return strResults End Function
Public Function DoQueryNumber(ByVal strQuery As String) As Double ' Send the query. m_IoObject.WriteString(strQuery, True)
' Get the result number. Dim fResult As Double fResult = _
CDbl(m_IoObject.ReadNumber(IEEEASCIIType.ASCIIType_R8, True))
' Check for inst errors. CheckInstrumentErrors(strQuery)
' Return result number. Return fResult End Function
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

Public Function DoQueryNumbers(ByVal strQuery As String) As _ Double()
' Send the query. m_IoObject.WriteString(strQuery, True)
' Get the result numbers. Dim fResultsArray As Double() fResultsArray = _
m_IoObject.ReadList(IEEEASCIIType.ASCIIType_R8, ",;")
' Check for inst errors. CheckInstrumentErrors(strQuery)
' Return result numbers. Return fResultsArray End Function
Public _ Function DoQueryIEEEBlock(ByVal strQuery As String) As Byte()
' Send the query. m_IoObject.WriteString(strQuery, True)
' Get the results array. System.Threading.Thread.Sleep(2000) ' Delay before reading data. Dim ResultsArray As Byte() ResultsArray = _
m_IoObject.ReadIEEEBlock(IEEEBinaryType.BinaryType_UI1, _ False, True)
' Check for inst errors. CheckInstrumentErrors(strQuery)
' Return results array. Return ResultsArray End Function
Private Sub CheckInstrumentErrors(ByVal strCommand As String) ' Check for instrument errors. Dim strInstrumentError As String Dim bFirstError As Boolean = True Do ' While not "0,No error". m_IoObject.WriteString(":SYSTem:ERRor?", True) strInstrumentError = m_IoObject.ReadString()
If Not strInstrumentError.ToString().StartsWith("+0,") Then If bFirstError Then Console.WriteLine("ERROR(s) for command '{0}': ", _ strCommand) bFirstError = False End If Console.Write(strInstrumentError)
End If Loop While Not strInstrumentError.ToString().StartsWith("+0,") End Sub
Private Sub OpenIo() m_ResourceManager = New ResourceManagerClass()

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1199

40 Programming Examples

m_IoObject = New FormattedIO488Class()
' Open the default VISA COM IO object. Try
m_IoObject.IO = _ DirectCast(m_ResourceManager.Open(m_strVisaAddress, _ AccessMode.NO_LOCK, 0, ""), IMessage)
Catch e As Exception Console.WriteLine("An error occurred: {0}", e.Message)
End Try End Sub
Public Sub SetTimeoutSeconds(ByVal nSeconds As Integer) m_IoObject.IO.Timeout = nSeconds * 1000
End Sub
Public Sub Close() Try m_IoObject.IO.Close() Catch End Try
Try Marshal.ReleaseComObject(m_IoObject)
Catch End Try
Try Marshal.ReleaseComObject(m_ResourceManager)
Catch End Try End Sub End Class End Namespace
VISA COM Example in Python
You can use the Python programming language with the "comtypes" package to control Keysight oscilloscopes. The Python language and "comtypes" package can be downloaded from the web at http://www.python.org/ and http://starship.python.net/crew/theller/comtypes/, respectively. To run this example with Python and "comtypes": 1 Cut-and-paste the code that follows into a file named "example.py". 2 Edit the program to use the VISA address of your oscilloscope. 3 If "python.exe" can be found via your PATH environment variable, open a
Command Prompt window; then, change to the folder that contains the "example.py" file, and enter:
python example.py

1200

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

# # Keysight VISA COM Example in Python using "comtypes" # ********************************************************* # This program illustrates a few commonly used programming # features of your Keysight oscilloscope. # *********************************************************
# Import Python modules. # --------------------------------------------------------import string import time import sys import array
from comtypes.client import GetModule from comtypes.client import CreateObject
# Run GetModule once to generate comtypes.gen.VisaComLib. if not hasattr(sys, "frozen"):
GetModule("C:\Program Files (x86)\IVI Foundation\VISA\VisaCom\ GlobMgr.dll")
import comtypes.gen.VisaComLib as VisaComLib
# Global variables (booleans: 0 = False, 1 = True). # ---------------------------------------------------------
# ========================================================= # Initialize: # ========================================================= def initialize():
# Get and display the device's *IDN? string. idn_string = do_query_string("*IDN?") print "Identification string '%s'" % idn_string
# Clear status and load the default setup. do_command("*CLS") do_command("*RST")
# ========================================================= # Capture: # ========================================================= def capture():
# Use auto-scale to automatically set up oscilloscope. print "Autoscale." do_command(":AUToscale")
# Set trigger mode. do_command(":TRIGger:MODE EDGE") qresult = do_query_string(":TRIGger:MODE?") print "Trigger mode: %s" % qresult
# Set EDGE trigger parameters.
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1201

40 Programming Examples

1202

do_command(":TRIGger:EDGE:SOURce CHANnel1") qresult = do_query_string(":TRIGger:EDGE:SOURce?") print "Trigger edge source: %s" % qresult
do_command(":TRIGger:EDGE:LEVel 1.5") qresult = do_query_string(":TRIGger:EDGE:LEVel?") print "Trigger edge level: %s" % qresult
do_command(":TRIGger:EDGE:SLOPe POSitive") qresult = do_query_string(":TRIGger:EDGE:SLOPe?") print "Trigger edge slope: %s" % qresult
# Save oscilloscope setup. setup_bytes = do_query_ieee_block(":SYSTem:SETup?") nLength = len(setup_bytes) f = open("c:\scope\config\setup.stp", "wb") f.write(bytearray(setup_bytes)) f.close() print "Setup bytes saved: %d" % nLength
# Change oscilloscope settings with individual commands:
# Set vertical scale and offset. do_command(":CHANnel1:SCALe 0.05") qresult = do_query_number(":CHANnel1:SCALe?") print "Channel 1 vertical scale: %f" % qresult
do_command(":CHANnel1:OFFSet -1.5") qresult = do_query_number(":CHANnel1:OFFSet?") print "Channel 1 offset: %f" % qresult
# Set horizontal scale and offset. do_command(":TIMebase:SCALe 0.0002") qresult = do_query_string(":TIMebase:SCALe?") print "Timebase scale: %s" % qresult
do_command(":TIMebase:POSition 0.0") qresult = do_query_string(":TIMebase:POSition?") print "Timebase position: %s" % qresult
# Set the acquisition type. do_command(":ACQuire:TYPE NORMal") qresult = do_query_string(":ACQuire:TYPE?") print "Acquire type: %s" % qresult
# Or, configure by loading a previously saved setup. f = open("c:\scope\config\setup.stp", "rb") setup_bytes = f.read() f.close() do_command_ieee_block(":SYSTem:SETup", array.array('B', setup_bytes)) print "Setup bytes restored: %d" % len(setup_bytes)
# Capture an acquisition using :DIGitize. do_command(":DIGitize CHANnel1")
# =========================================================
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

# Analyze: # ========================================================= def analyze():
# Make measurements. # -------------------------------------------------------do_command(":MEASure:SOURce CHANnel1") qresult = do_query_string(":MEASure:SOURce?") print "Measure source: %s" % qresult
do_command(":MEASure:FREQuency") qresult = do_query_string(":MEASure:FREQuency?") print "Measured frequency on channel 1: %s" % qresult
do_command(":MEASure:VAMPlitude") qresult = do_query_string(":MEASure:VAMPlitude?") print "Measured vertical amplitude on channel 1: %s" % qresult
# Download the screen image. # -------------------------------------------------------do_command(":HARDcopy:INKSaver OFF")
image_bytes = do_query_ieee_block(":DISPlay:DATA? PNG, COLor") nLength = len(image_bytes) f = open("c:\scope\data\screen.png", "wb") f.write(bytearray(image_bytes)) f.close() print "Screen image written to c:\scope\data\screen.png."
# Download waveform data. # --------------------------------------------------------
# Set the waveform points mode. do_command(":WAVeform:POINts:MODE RAW") qresult = do_query_string(":WAVeform:POINts:MODE?") print "Waveform points mode: %s" % qresult
# Get the number of waveform points available. do_command(":WAVeform:POINts 10240") qresult = do_query_string(":WAVeform:POINts?") print "Waveform points available: %s" % qresult
# Set the waveform source. do_command(":WAVeform:SOURce CHANnel1") qresult = do_query_string(":WAVeform:SOURce?") print "Waveform source: %s" % qresult
# Choose the format of the data returned: do_command(":WAVeform:FORMat BYTE") print "Waveform format: %s" % do_query_string(":WAVeform:FORMat?")
# Display the waveform settings from preamble: wav_form_dict = {
0 : "BYTE", 1 : "WORD", 4 : "ASCii", }

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1203

40 Programming Examples

1204

acq_type_dict = { 0 : "NORMal", 1 : "PEAK", 2 : "AVERage", 3 : "HRESolution",
}
( wav_form, acq_type, wfmpts, avgcnt, x_increment, x_origin, x_reference, y_increment, y_origin, y_reference
) = do_query_numbers(":WAVeform:PREamble?")
print "Waveform format: %s" % wav_form_dict[wav_form] print "Acquire type: %s" % acq_type_dict[acq_type] print "Waveform points desired: %d" % wfmpts print "Waveform average count: %d" % avgcnt print "Waveform X increment: %1.12f" % x_increment print "Waveform X origin: %1.9f" % x_origin print "Waveform X reference: %d" % x_reference # Always 0. print "Waveform Y increment: %f" % y_increment print "Waveform Y origin: %f" % y_origin print "Waveform Y reference: %d" % y_reference # Always 125.
# Get numeric values for later calculations. x_increment = do_query_number(":WAVeform:XINCrement?") x_origin = do_query_number(":WAVeform:XORigin?") y_increment = do_query_number(":WAVeform:YINCrement?") y_origin = do_query_number(":WAVeform:YORigin?") y_reference = do_query_number(":WAVeform:YREFerence?")
# Get the waveform data. data_bytes = do_query_ieee_block(":WAVeform:DATA?") nLength = len(data_bytes) print "Number of data values: %d" % nLength
# Open file for output. strPath = "c:\scope\data\waveform_data.csv" f = open(strPath, "w")
# Output waveform data in CSV format. for i in xrange(0, nLength - 1):
time_val = x_origin + (i * x_increment) voltage = (data_bytes[i] - y_reference) * y_increment + y_origin f.write("%E, %f\n" % (time_val, voltage))
# Close output file. f.close() print "Waveform format BYTE data written to %s." % strPath
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

# ========================================================= # Send a command and check for errors: # ========================================================= def do_command(command):
myScope.WriteString("%s" % command, True) check_instrument_errors(command)
# ========================================================= # Send a command and check for errors: # ========================================================= def do_command_ieee_block(command, data):
myScope.WriteIEEEBlock(command, data, True) check_instrument_errors(command)
# ========================================================= # Send a query, check for errors, return string: # ========================================================= def do_query_string(query):
myScope.WriteString("%s" % query, True) result = myScope.ReadString() check_instrument_errors(query) return result
# ========================================================= # Send a query, check for errors, return string: # ========================================================= def do_query_ieee_block(query):
myScope.WriteString("%s" % query, True) result = myScope.ReadIEEEBlock(VisaComLib.BinaryType_UI1, \
False, True) check_instrument_errors(query) return result
# ========================================================= # Send a query, check for errors, return values: # ========================================================= def do_query_number(query):
myScope.WriteString("%s" % query, True) result = myScope.ReadNumber(VisaComLib.ASCIIType_R8, True) check_instrument_errors(query) return result
# ========================================================= # Send a query, check for errors, return values: # ========================================================= def do_query_numbers(query):
myScope.WriteString("%s" % query, True) result = myScope.ReadList(VisaComLib.ASCIIType_R8, ",;") check_instrument_errors(query) return result
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1205

40 Programming Examples
# ========================================================= # Check for instrument errors: # ========================================================= def check_instrument_errors(command):
while True: myScope.WriteString(":SYSTem:ERRor?", True) error_string = myScope.ReadString() if error_string: # If there is an error string value.
if error_string.find("+0,", 0, 3) == -1: # Not "No error". print "ERROR: %s, command: '%s'" % (error_string, command) print "Exited because of error." sys.exit(1)
else: # "No error" break
else: # :SYSTem:ERRor? should always return string. print "ERROR: :SYSTem:ERRor? returned nothing, command: '%s'" \ % command print "Exited because of error." sys.exit(1)
# ========================================================= # Main program: # ========================================================= rm = CreateObject("VISA.GlobalRM", \
interface=VisaComLib.IResourceManager) myScope = CreateObject("VISA.BasicFormattedIO", \
interface=VisaComLib.IFormattedIO488) myScope.IO = \
rm.Open("TCPIP0::a-mx3104a-90028.cos.is.keysight.com::inst0::INSTR")
# Clear the interface. myScope.IO.Clear print "Interface cleared."
# Set the Timeout to 15 seconds. myScope.IO.Timeout = 15000 # 15 seconds. print "Timeout set to 15000 milliseconds."
# Initialize the oscilloscope, capture data, and analyze. initialize() capture() analyze()
print "End of program"

1206

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40
VISA Examples
· "VISA Example in C" on page 1207 · "VISA Example in Visual Basic" on page 1216 · "VISA Example in C#" on page 1226 · "VISA Example in Visual Basic .NET" on page 1237 · "VISA Example in Python (PyVISA 1.5 and older)" on page 1247 · "VISA Example in Python (PyVISA 1.6 and newer)" on page 1253
VISA Example in C
To compile and run this example in Microsoft Visual Studio 2008: 1 Open Visual Studio. 2 Create a new Visual C++, Win32, Win32 Console Application project. 3 In the Win32 Application Wizard, click Next >. Then, check Empty project, and
click Finish. 4 Cut-and-paste the code that follows into a file named "example.c" in the
project directory. 5 In Visual Studio 2008, right-click the Source Files folder, choose Add > Add
Existing Item..., select the example.c file, and click Add. 6 Edit the program to use the VISA address of your oscilloscope. 7 Choose Project > Properties.... In the Property Pages dialog, update these project
settings: a Under Configuration Properties, Linker, Input, add "visa32.lib" to the
Additional Dependencies field. b Under Configuration Properties, C/C++, Code Generation, select
Multi-threaded DLL for the Runtime Library field. c Click OK to close the Property Pages dialog. 8 Add the include files and library files search paths: a Choose Tools > Options.... b In the Options dialog, under Projects and Solutions, select VC++ Directories. c Show directories for Include files, and add the include directory (for example,
Program Files (x86)\IVI Foundation\VISA\WinNT\Include). d Show directories for Library files, and add the library files directory (for
example, Program Files (x86)\IVI Foundation\VISA\WinNT\lib\msc). e Click OK to close the Options dialog. 9 Build and run the program.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1207

40 Programming Examples

1208

/* * Keysight VISA Example in C * -----------------------------------------------------------------* This program illustrates a few commonly-used programming * features of your Keysight oscilloscope. */

#include <stdio.h> #include <string.h> #include <time.h> #include <visa.h>

/* For printf(). */ /* For strcpy(), strcat(). */ /* For clock(). */ /* Keysight VISA routines. */

#define VISA_ADDRESS "USB0::0x0957::0x17A6::US50210029::0::INSTR" #define IEEEBLOCK_SPACE 5000000

/* Function prototypes */ void initialize(void); void capture(void); void analyze(void);

/* Initialize to known state. */ /* Capture the waveform. */ /* Analyze the captured waveform. */

void do_command(char *command);

/* Send command. */

int do_command_ieeeblock(char *command); /* Command w/IEEE block. */

void do_query_string(char *query);

/* Query for string. */

void do_query_number(char *query);

/* Query for number. */

void do_query_numbers(char *query);

/* Query for numbers. */

int do_query_ieeeblock(char *query); /* Query for IEEE block. */

void check_instrument_errors();

/* Check for inst errors. */

void error_handler();

/* VISA error handler. */

/* Global variables */

ViSession defaultRM, vi;

/* Device session ID. */

ViStatus err;

/* VISA function return value. */

char str_result[256] = {0};

/* Result from do_query_string(). */

double num_result;

/* Result from do_query_number(). */

unsigned char ieeeblock_data[IEEEBLOCK_SPACE]; /* Result from

do_query_ieeeblock(). */

double dbl_results[10];

/* Result from do_query_numbers(). */

/* Main Program * --------------------------------------------------------------- */
void main(void) {
/* Open the default resource manager session. */ err = viOpenDefaultRM(&defaultRM); if (err != VI_SUCCESS) error_handler();

/* Open the session using the oscilloscope's VISA address. */ err = viOpen(defaultRM, VISA_ADDRESS, VI_NULL, VI_NULL, &vi); if (err != VI_SUCCESS) error_handler();

/* Set the I/O timeout to fifteen seconds. */ err = viSetAttribute(vi, VI_ATTR_TMO_VALUE, 15000);
if (err != VI_SUCCESS) error_handler();

/* Initialize - start from a known state. */ initialize();

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

/* Capture data. */ capture();
/* Analyze the captured waveform. */ analyze();
/* Close the vi session and the resource manager session. */ viClose(vi); viClose(defaultRM); }
/* Initialize the oscilloscope to a known state. * --------------------------------------------------------------- */
void initialize (void) {
/* Clear the interface. */ err = viClear(vi); if (err != VI_SUCCESS) error_handler();
/* Get and display the device's *IDN? string. */ do_query_string("*IDN?"); printf("Oscilloscope *IDN? string: %s\n", str_result);
/* Clear status and load the default setup. */ do_command("*CLS"); do_command("*RST"); }
/* Capture the waveform. * --------------------------------------------------------------- */
void capture (void) {
int num_bytes; FILE *fp;
/* Use auto-scale to automatically configure oscilloscope. */ do_command(":AUToscale");
/* Set trigger mode (EDGE, PULSe, PATTern, etc., and input source. */ do_command(":TRIGger:MODE EDGE"); do_query_string(":TRIGger:MODE?"); printf("Trigger mode: %s\n", str_result);
/* Set EDGE trigger parameters. */ do_command(":TRIGger:EDGE:SOURce CHANnel1"); do_query_string(":TRIGger:EDGE:SOURce?"); printf("Trigger edge source: %s\n", str_result);
do_command(":TRIGger:EDGE:LEVel 1.5"); do_query_string(":TRIGger:EDGE:LEVel?"); printf("Trigger edge level: %s\n", str_result);
do_command(":TRIGger:EDGE:SLOPe POSitive"); do_query_string(":TRIGger:EDGE:SLOPe?"); printf("Trigger edge slope: %s\n", str_result);
/* Save oscilloscope configuration. */

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1209

40 Programming Examples

1210

/* Read system setup. */ num_bytes = do_query_ieeeblock(":SYSTem:SETup?"); printf("Read setup string query (%d bytes).\n", num_bytes);
/* Write setup string to file. */ fp = fopen ("c:\\scope\\config\\setup.stp", "wb"); num_bytes = fwrite(ieeeblock_data, sizeof(unsigned char), num_bytes,
fp); fclose (fp); printf("Wrote setup string (%d bytes) to ", num_bytes); printf("c:\\scope\\config\\setup.stp.\n");
/* Change settings with individual commands:
/* Set vertical scale and offset. */ do_command(":CHANnel1:SCALe 0.05"); do_query_string(":CHANnel1:SCALe?"); printf("Channel 1 vertical scale: %s\n", str_result);
do_command(":CHANnel1:OFFSet -1.5"); do_query_string(":CHANnel1:OFFSet?"); printf("Channel 1 offset: %s\n", str_result);
/* Set horizontal scale and offset. */ do_command(":TIMebase:SCALe 0.0002"); do_query_string(":TIMebase:SCALe?"); printf("Timebase scale: %s\n", str_result);
do_command(":TIMebase:POSition 0.0"); do_query_string(":TIMebase:POSition?"); printf("Timebase position: %s\n", str_result);
/* Set the acquisition type (NORMal, PEAK, AVERage, or HRESolution). * /
do_command(":ACQuire:TYPE NORMal"); do_query_string(":ACQuire:TYPE?"); printf("Acquire type: %s\n", str_result);
/* Or, configure by loading a previously saved setup. */
/* Read setup string from file. */ fp = fopen ("c:\\scope\\config\\setup.stp", "rb"); num_bytes = fread (ieeeblock_data, sizeof(unsigned char),
IEEEBLOCK_SPACE, fp); fclose (fp); printf("Read setup string (%d bytes) from file ", num_bytes); printf("c:\\scope\\config\\setup.stp.\n");
/* Restore setup string. */ num_bytes = do_command_ieeeblock(":SYSTem:SETup", num_bytes); printf("Restored setup string (%d bytes).\n", num_bytes);
/* Capture an acquisition using :DIGitize. */ do_command(":DIGitize CHANnel1"); }
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

/* Analyze the captured waveform. * --------------------------------------------------------------- */
void analyze (void) {
double wav_format; double acq_type; double wav_points; double avg_count; double x_increment; double x_origin; double x_reference; double y_increment; double y_origin; double y_reference;

FILE *fp; int num_bytes; int i;

/* Number of bytes returned from instrument. */

/* Make a couple of measurements. * ------------------------------------------------------------- */
do_command(":MEASure:SOURce CHANnel1"); do_query_string(":MEASure:SOURce?"); printf("Measure source: %s\n", str_result);

do_command(":MEASure:FREQuency"); do_query_number(":MEASure:FREQuency?"); printf("Frequency: %.4f kHz\n", num_result / 1000);

do_command(":MEASure:VAMPlitude"); do_query_number(":MEASure:VAMPlitude?"); printf("Vertical amplitude: %.2f V\n", num_result);

/* Download the screen image. * ------------------------------------------------------------- */
do_command(":HARDcopy:INKSaver OFF");

/* Read screen image. */ num_bytes = do_query_ieeeblock(":DISPlay:DATA? PNG, COLor"); printf("Screen image bytes: %d\n", num_bytes);

/* Write screen image bytes to file. */ fp = fopen ("c:\\scope\\data\\screen.png", "wb"); num_bytes = fwrite(ieeeblock_data, sizeof(unsigned char), num_bytes,
fp); fclose (fp); printf("Wrote screen image (%d bytes) to ", num_bytes); printf("c:\\scope\\data\\screen.png.\n");

/* Download waveform data. * ------------------------------------------------------------- */

/* Set the waveform points mode. */ do_command(":WAVeform:POINts:MODE RAW"); do_query_string(":WAVeform:POINts:MODE?"); printf("Waveform points mode: %s\n", str_result);

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1211

40 Programming Examples

1212

/* Get the number of waveform points available. */ do_query_string(":WAVeform:POINts?"); printf("Waveform points available: %s\n", str_result);
/* Set the waveform source. */ do_command(":WAVeform:SOURce CHANnel1"); do_query_string(":WAVeform:SOURce?"); printf("Waveform source: %s\n", str_result);
/* Choose the format of the data returned (WORD, BYTE, ASCII): */ do_command(":WAVeform:FORMat BYTE"); do_query_string(":WAVeform:FORMat?"); printf("Waveform format: %s\n", str_result);
/* Display the waveform settings: */ do_query_numbers(":WAVeform:PREamble?");
wav_format = dbl_results[0]; if (wav_format == 0.0) {
printf("Waveform format: BYTE\n"); } else if (wav_format == 1.0) {
printf("Waveform format: WORD\n"); } else if (wav_format == 2.0) {
printf("Waveform format: ASCii\n"); }
acq_type = dbl_results[1]; if (acq_type == 0.0) {
printf("Acquire type: NORMal\n"); } else if (acq_type == 1.0) {
printf("Acquire type: PEAK\n"); } else if (acq_type == 2.0) {
printf("Acquire type: AVERage\n"); } else if (acq_type == 3.0) {
printf("Acquire type: HRESolution\n"); }
wav_points = dbl_results[2]; printf("Waveform points: %e\n", wav_points);
avg_count = dbl_results[3]; printf("Waveform average count: %e\n", avg_count);
x_increment = dbl_results[4]; printf("Waveform X increment: %e\n", x_increment);
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

x_origin = dbl_results[5]; printf("Waveform X origin: %e\n", x_origin);
x_reference = dbl_results[6]; printf("Waveform X reference: %e\n", x_reference);
y_increment = dbl_results[7]; printf("Waveform Y increment: %e\n", y_increment);
y_origin = dbl_results[8]; printf("Waveform Y origin: %e\n", y_origin);
y_reference = dbl_results[9]; printf("Waveform Y reference: %e\n", y_reference);
/* Read waveform data. */ num_bytes = do_query_ieeeblock(":WAVeform:DATA?"); printf("Number of data values: %d\n", num_bytes);
/* Open file for output. */ fp = fopen("c:\\scope\\data\\waveform_data.csv", "wb");
/* Output waveform data in CSV format. */ for (i = 0; i < num_bytes - 1; i++) {
/* Write time value, voltage value. */ fprintf(fp, "%9f, %6f\n",
x_origin + ((float)i * x_increment), (((float)ieeeblock_data[i] - y_reference) * y_increment) + y_origin); }
/* Close output file. */ fclose(fp); printf("Waveform format BYTE data written to "); printf("c:\\scope\\data\\waveform_data.csv.\n");
}
/* Send a command to the instrument. * --------------------------------------------------------------- */
void do_command(command) char *command; {
char message[80];
strcpy(message, command); strcat(message, "\n"); err = viPrintf(vi, message); if (err != VI_SUCCESS) error_handler();
check_instrument_errors(); }
/* Command with IEEE definite-length block. * --------------------------------------------------------------- */
int do_command_ieeeblock(command, num_bytes)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1213

40 Programming Examples

1214

char *command; int num_bytes; {
char message[80]; int data_length;
strcpy(message, command); strcat(message, " #8%08d"); err = viPrintf(vi, message, num_bytes); if (err != VI_SUCCESS) error_handler();
err = viBufWrite(vi, ieeeblock_data, num_bytes, &data_length); if (err != VI_SUCCESS) error_handler();
check_instrument_errors();
return(data_length); }
/* Query for a string result. * --------------------------------------------------------------- */
void do_query_string(query) char *query; {
char message[80];
strcpy(message, query); strcat(message, "\n");
err = viPrintf(vi, message); if (err != VI_SUCCESS) error_handler();
err = viScanf(vi, "%t", str_result); if (err != VI_SUCCESS) error_handler();
check_instrument_errors(); }
/* Query for a number result. * --------------------------------------------------------------- */
void do_query_number(query) char *query; {
char message[80];
strcpy(message, query); strcat(message, "\n");
err = viPrintf(vi, message); if (err != VI_SUCCESS) error_handler();
err = viScanf(vi, "%lf", &num_result); if (err != VI_SUCCESS) error_handler();
check_instrument_errors(); }
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

/* Query for numbers result. * --------------------------------------------------------------- */
void do_query_numbers(query) char *query; {
char message[80];
strcpy(message, query); strcat(message, "\n");
err = viPrintf(vi, message); if (err != VI_SUCCESS) error_handler();
err = viScanf(vi, "%,10lf\n", dbl_results); if (err != VI_SUCCESS) error_handler();
check_instrument_errors(); }
/* Query for an IEEE definite-length block result. * --------------------------------------------------------------- */
int do_query_ieeeblock(query) char *query; {
char message[80]; int data_length;
strcpy(message, query); strcat(message, "\n"); err = viPrintf(vi, message); if (err != VI_SUCCESS) error_handler();
data_length = IEEEBLOCK_SPACE; err = viScanf(vi, "%#b\n", &data_length, ieeeblock_data); if (err != VI_SUCCESS) error_handler();
if (data_length == IEEEBLOCK_SPACE ) {
printf("IEEE block buffer full: "); printf("May not have received all data.\n"); }
check_instrument_errors();
return(data_length); }
/* Check for instrument errors. * --------------------------------------------------------------- */
void check_instrument_errors() {
char str_err_val[256] = {0}; char str_out[800] = "";
err = viQueryf(vi, ":SYSTem:ERRor?\n", "%t", str_err_val); if (err != VI_SUCCESS) error_handler(); while(strncmp(str_err_val, "+0,No error", 3) != 0 )

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1215

40 Programming Examples
{ strcat(str_out, ", "); strcat(str_out, str_err_val); err = viQueryf(vi, ":SYSTem:ERRor?\n", "%t", str_err_val); if (err != VI_SUCCESS) error_handler();
}
if (strcmp(str_out, "") != 0) {
printf("INST Error%s\n", str_out); err = viFlush(vi, VI_READ_BUF); if (err != VI_SUCCESS) error_handler(); err = viFlush(vi, VI_WRITE_BUF); if (err != VI_SUCCESS) error_handler(); } }
/* Handle VISA errors. * --------------------------------------------------------------- */
void error_handler() {
char err_msg[1024] = {0};
viStatusDesc(vi, err, err_msg); printf("VISA Error: %s\n", err_msg); if (err < VI_SUCCESS) {
exit(1); } }
VISA Example in Visual Basic
To run this example in Visual Basic for Applications: 1 Start the application that provides Visual Basic for Applications (for example,
Microsoft Excel). 2 Press ALT+F11 to launch the Visual Basic editor. 3 Add the visa32.bas file to your project:
a Choose File > Import File.... b Navigate to the header file, visa32.bas (installed with Keysight IO Libraries
Suite and found in the Program Files (x86)\IVI Foundation\VISA\WinNT\ Include), select it, and click Open. 4 Choose Insert > Module. 5 Cut-and-paste the code that follows into the editor. 6 Edit the program to use the VISA address of your oscilloscope, and save the changes. 7 Run the program.

1216

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

' ' Keysight VISA Example in Visual Basic ' ------------------------------------------------------------------' This program illustrates a few commonly-used programming ' features of your Keysight oscilloscope. ' -------------------------------------------------------------------

Option Explicit

Public err As Long Public drm As Long Public vi As Long

' Error returned by VISA function calls. ' Session to Default Resource Manager. ' Session to instrument.

' Declare variables to hold numeric values returned by ' viVScanf/viVQueryf. Public dblQueryResult As Double Public Const ByteArraySize = 5000000 Public retCount As Long Public byteArray(ByteArraySize) As Byte Public paramsArray(2) As Long Public Const DblArraySize = 20 Public dblArray(DblArraySize) As Double

' Declare fixed length string variable to hold string value returned ' by viVScanf/viVQueryf. Public strQueryResult As String * 200

' For Sleep subroutine. Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

' ' Main Program ' -------------------------------------------------------------------

Sub Main()

' Open the default resource manager session. err = viOpenDefaultRM(drm) If (err <> VI_SUCCESS) Then HandleVISAError drm

' Open the session using the oscilloscope's VISA address. err = viOpen(drm, _
"USB0::0x0957::0x17A6::US50210029::0::INSTR", 0, 15000, vi) If (err <> VI_SUCCESS) Then HandleVISAError drm

' Set the I/O timeout to ten seconds. err = viSetAttribute(vi, VI_ATTR_TMO_VALUE, 10000) If (err <> VI_SUCCESS) Then HandleVISAError vi

' Initialize - start from a known state. Initialize

' Capture data. Capture

' Analyze the captured waveform. Analyze

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1217

40 Programming Examples

1218

' Close the vi session and the resource manager session. err = viClose(vi) err = viClose(drm)
End Sub
' ' Initialize the oscilloscope to a known state. ' -------------------------------------------------------------------
Private Sub Initialize()
' Clear the interface. err = viClear(vi) If Not (err = VI_SUCCESS) Then HandleVISAError vi
' Get and display the device's *IDN? string. strQueryResult = DoQueryString("*IDN?") MsgBox "*IDN? string: " + strQueryResult, vbOKOnly, "*IDN? Result"
' Clear status and load the default setup. DoCommand "*CLS" DoCommand "*RST"
End Sub
' ' Capture the waveform. ' -------------------------------------------------------------------
Private Sub Capture()
' Use auto-scale to automatically configure oscilloscope. ' ----------------------------------------------------------------DoCommand ":AUToscale"
' Set trigger mode (EDGE, PULSe, PATTern, etc., and input source. DoCommand ":TRIGger:MODE EDGE" Debug.Print "Trigger mode: " + _
DoQueryString(":TRIGger:MODE?")
' Set EDGE trigger parameters. DoCommand ":TRIGger:EDGE:SOURce CHANnel1" Debug.Print "Trigger edge source: " + _
DoQueryString(":TRIGger:EDGE:SOURce?")
DoCommand ":TRIGger:EDGE:LEVel 1.5" Debug.Print "Trigger edge level: " + _
DoQueryString(":TRIGger:EDGE:LEVel?")
DoCommand ":TRIGger:EDGE:SLOPe POSitive" Debug.Print "Trigger edge slope: " + _
DoQueryString(":TRIGger:EDGE:SLOPe?")
' Save oscilloscope configuration. ' -----------------------------------------------------------------
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

Dim lngSetupStringSize As Long lngSetupStringSize = DoQueryIEEEBlock_Bytes(":SYSTem:SETup?") Debug.Print "Setup bytes saved: " + CStr(lngSetupStringSize)
' Output setup string to a file: Dim strPath As String strPath = "c:\scope\config\setup.dat" If Len(Dir(strPath)) Then
Kill strPath ' Remove file if it exists. End If
' Open file for output. Dim hFile As Long hFile = FreeFile Open strPath For Binary Access Write Lock Write As hFile Dim lngI As Long For lngI = 0 To lngSetupStringSize - 1
Put hFile, , byteArray(lngI) ' Write data. Next lngI Close hFile ' Close file.
' Change settings with individual commands: ' -----------------------------------------------------------------
' Set vertical scale and offset. DoCommand ":CHANnel1:SCALe 0.05" Debug.Print "Channel 1 vertical scale: " + _
DoQueryString(":CHANnel1:SCALe?")
DoCommand ":CHANnel1:OFFSet -1.5" Debug.Print "Channel 1 vertical offset: " + _
DoQueryString(":CHANnel1:OFFSet?")
' Set horizontal scale and position. DoCommand ":TIMebase:SCALe 0.0002" Debug.Print "Timebase scale: " + _
DoQueryString(":TIMebase:SCALe?")
DoCommand ":TIMebase:POSition 0.0" Debug.Print "Timebase position: " + _
DoQueryString(":TIMebase:POSition?")
' Set the acquisition type (NORMal, PEAK, AVERage, or HRESolution). DoCommand ":ACQuire:TYPE NORMal" Debug.Print "Acquire type: " + _
DoQueryString(":ACQuire:TYPE?")
' Or, configure by loading a previously saved setup. ' ----------------------------------------------------------------strPath = "c:\scope\config\setup.dat" Open strPath For Binary Access Read As hFile ' Open file for input. Dim lngSetupFileSize As Long lngSetupFileSize = LOF(hFile) ' Length of file. Get hFile, , byteArray ' Read data. Close hFile ' Close file. ' Write learn string back to oscilloscope using ":SYSTem:SETup" ' command:

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1219

40 Programming Examples

1220

Dim lngRestored As Long lngRestored = DoCommandIEEEBlock(":SYSTem:SETup", lngSetupFileSize) Debug.Print "Setup bytes restored: " + CStr(lngRestored)
' Capture an acquisition using :DIGitize. ' ----------------------------------------------------------------DoCommand ":DIGitize CHANnel1"
End Sub
' ' Analyze the captured waveform. ' -------------------------------------------------------------------
Private Sub Analyze()
' Make a couple of measurements. ' ----------------------------------------------------------------DoCommand ":MEASure:SOURce CHANnel1" Debug.Print "Measure source: " + _
DoQueryString(":MEASure:SOURce?")
DoCommand ":MEASure:FREQuency" dblQueryResult = DoQueryNumber(":MEASure:FREQuency?") MsgBox "Frequency:" + vbCrLf + _
FormatNumber(dblQueryResult / 1000, 4) + " kHz"
DoCommand ":MEASure:VAMPlitude" dblQueryResult = DoQueryNumber(":MEASure:VAMPlitude?") MsgBox "Vertical amplitude:" + vbCrLf + _
FormatNumber(dblQueryResult, 4) + " V"
' Download the screen image. ' ----------------------------------------------------------------DoCommand ":HARDcopy:INKSaver OFF"
' Get screen image. Dim lngBlockSize As Long lngBlockSize = DoQueryIEEEBlock_Bytes(":DISPlay:DATA? PNG, COLor") Debug.Print "Screen image bytes: " + CStr(lngBlockSize)
' Save screen image to a file: Dim strPath As String strPath = "c:\scope\data\screen.png" If Len(Dir(strPath)) Then
Kill strPath ' Remove file if it exists. End If Dim hFile As Long hFile = FreeFile Open strPath For Binary Access Write Lock Write As hFile Dim lngI As Long For lngI = 0 To lngBlockSize - 1
Put hFile, , byteArray(lngI) ' Write data. Next lngI Close hFile ' Close file. MsgBox "Screen image written to " + strPath
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

' Download waveform data. ' -----------------------------------------------------------------
' Set the waveform points mode. DoCommand ":WAVeform:POINts:MODE RAW" Debug.Print "Waveform points mode: " + _
DoQueryString(":WAVeform:POINts:MODE?")
' Get the number of waveform points available. Debug.Print "Waveform points available: " + _
DoQueryString(":WAVeform:POINts?")
' Set the waveform source. DoCommand ":WAVeform:SOURce CHANnel1" Debug.Print "Waveform source: " + _
DoQueryString(":WAVeform:SOURce?")
' Choose the format of the data returned (WORD, BYTE, ASCII): DoCommand ":WAVeform:FORMat BYTE" Debug.Print "Waveform format: " + _
DoQueryString(":WAVeform:FORMat?")
' Display the waveform settings: Dim intFormat As Integer Dim intType As Integer Dim lngPoints As Long Dim lngCount As Long Dim dblXIncrement As Double Dim dblXOrigin As Double Dim lngXReference As Long Dim sngYIncrement As Single Dim lngYOrigin As Long Dim lngYReference As Long Dim strOutput As String
Dim lngNumNumbers As Long lngNumNumbers = DoQueryNumbers(":WAVeform:PREamble?")
intFormat = dblArray(0) intType = dblArray(1) lngPoints = dblArray(2) lngCount = dblArray(3) dblXIncrement = dblArray(4) dblXOrigin = dblArray(5) lngXReference = dblArray(6) sngYIncrement = dblArray(7) lngYOrigin = dblArray(8) lngYReference = dblArray(9)
If intFormat = 0 Then Debug.Print "Waveform format: BYTE"
ElseIf intFormat = 1 Then Debug.Print "Waveform format: WORD"
ElseIf intFormat = 2 Then Debug.Print "Waveform format: ASCii"

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1221

40 Programming Examples

1222

End If
If intType = 0 Then Debug.Print "Acquisition type: NORMal"
ElseIf intType = 1 Then Debug.Print "Acquisition type: PEAK"
ElseIf intType = 2 Then Debug.Print "Acquisition type: AVERage"
ElseIf intType = 3 Then Debug.Print "Acquisition type: HRESolution"
End If
Debug.Print "Waveform points: " + _ FormatNumber(lngPoints, 0)
Debug.Print "Waveform average count: " + _ FormatNumber(lngCount, 0)
Debug.Print "Waveform X increment: " + _ Format(dblXIncrement, "Scientific")
Debug.Print "Waveform X origin: " + _ Format(dblXOrigin, "Scientific")
Debug.Print "Waveform X reference: " + _ FormatNumber(lngXReference, 0)
Debug.Print "Waveform Y increment: " + _ Format(sngYIncrement, "Scientific")
Debug.Print "Waveform Y origin: " + _ FormatNumber(lngYOrigin, 0)
Debug.Print "Waveform Y reference: " + _ FormatNumber(lngYReference, 0)
' Get the waveform data Dim lngNumBytes As Long lngNumBytes = DoQueryIEEEBlock_Bytes(":WAVeform:DATA?") Debug.Print "Number of data values: " + CStr(lngNumBytes)
' Set up output file: strPath = "c:\scope\data\waveform_data.csv"
' Open file for output. Open strPath For Output Access Write Lock Write As hFile
' Output waveform data in CSV format. Dim lngDataValue As Long
For lngI = 0 To lngNumBytes - 1 lngDataValue = CLng(byteArray(lngI))
' Write time value, voltage value. Print #hFile, _
FormatNumber(dblXOrigin + (lngI * dblXIncrement), 9) + _ ", " + _
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

FormatNumber(((lngDataValue - lngYReference) _ * sngYIncrement) + lngYOrigin)
Next lngI
' Close output file. Close hFile ' Close file. MsgBox "Waveform format BYTE data written to " + _
"c:\scope\data\waveform_data.csv."
End Sub
Private Sub DoCommand(command As String)
err = viVPrintf(vi, command + vbLf, 0) If (err <> VI_SUCCESS) Then HandleVISAError vi
CheckInstrumentErrors
End Sub
Private Function DoCommandIEEEBlock(command As String, _ lngBlockSize As Long)
retCount = lngBlockSize
Dim strCommandAndLength As String strCommandAndLength = command + " %#" + _
Format(lngBlockSize) + "b"
err = viVPrintf(vi, strCommandAndLength + vbLf, paramsArray(1)) If (err <> VI_SUCCESS) Then HandleVISAError vi
DoCommandIEEEBlock = retCount
CheckInstrumentErrors
End Function
Private Function DoQueryString(query As String) As String
Dim strResult As String * 200
err = viVPrintf(vi, query + vbLf, 0) If (err <> VI_SUCCESS) Then HandleVISAError vi
err = viVScanf(vi, "%t", strResult) If (err <> VI_SUCCESS) Then HandleVISAError vi
DoQueryString = strResult
CheckInstrumentErrors
End Function
Private Function DoQueryNumber(query As String) As Variant

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1223

40 Programming Examples

1224

Dim dblResult As Double
err = viVPrintf(vi, query + vbLf, 0) If (err <> VI_SUCCESS) Then HandleVISAError vi
err = viVScanf(vi, "%lf" + vbLf, VarPtr(dblResult)) If (err <> VI_SUCCESS) Then HandleVISAError vi
DoQueryNumber = dblResult
CheckInstrumentErrors
End Function
Private Function DoQueryNumbers(query As String) As Long
Dim dblResult As Double
' Send query. err = viVPrintf(vi, query + vbLf, 0) If (err <> VI_SUCCESS) Then HandleVISAError vi
' Set up paramsArray for multiple parameter query returning array. paramsArray(0) = VarPtr(retCount) paramsArray(1) = VarPtr(dblArray(0))
' Set retCount to max number of elements array can hold. retCount = DblArraySize
' Read numbers. err = viVScanf(vi, "%,#lf" + vbLf, paramsArray(0)) If (err <> VI_SUCCESS) Then HandleVISAError vi
' retCount is now actual number of values returned by query. DoQueryNumbers = retCount
CheckInstrumentErrors
End Function
Private Function DoQueryIEEEBlock_Bytes(query As String) As Long
' Send query. err = viVPrintf(vi, query + vbLf, 0) If (err <> VI_SUCCESS) Then HandleVISAError vi
' Set up paramsArray for multiple parameter query returning array. paramsArray(0) = VarPtr(retCount) paramsArray(1) = VarPtr(byteArray(0))
' Set retCount to max number of elements array can hold. retCount = ByteArraySize
' Get unsigned integer bytes. err = viVScanf(vi, "%#b" + vbLf, paramsArray(0)) If (err <> VI_SUCCESS) Then HandleVISAError vi
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

err = viFlush(vi, VI_READ_BUF) If (err <> VI_SUCCESS) Then HandleVISAError vi

err = viFlush(vi, VI_WRITE_BUF) If (err <> VI_SUCCESS) Then HandleVISAError vi

' retCount is now actual number of bytes returned by query. DoQueryIEEEBlock_Bytes = retCount

CheckInstrumentErrors

End Function

Private Sub CheckInstrumentErrors()

On Error GoTo ErrorHandler

Dim strErrVal As String * 200 Dim strOut As String

err = viVPrintf(vi, ":SYSTem:ERRor?" + vbLf, 0) ' Query any errors. If (err <> VI_SUCCESS) Then HandleVISAError vi

err = viVScanf(vi, "%t", strErrVal) ' Read: Errnum,"Error String". If (err <> VI_SUCCESS) Then HandleVISAError vi

While Val(strErrVal) <> 0

' End if find: 0,"No Error".

strOut = strOut + "INST Error: " + strErrVal

err = viVPrintf(vi, ":SYSTem:ERRor?" + vbLf, 0) ' Request error. If (err <> VI_SUCCESS) Then HandleVISAError vi

err = viVScanf(vi, "%t", strErrVal) ' Read error message. If (err <> VI_SUCCESS) Then HandleVISAError vi

Wend

If Not strOut = "" Then MsgBox strOut, vbExclamation, "INST Error Messages"

err = viFlush(vi, VI_READ_BUF) If (err <> VI_SUCCESS) Then HandleVISAError vi

err = viFlush(vi, VI_WRITE_BUF) If (err <> VI_SUCCESS) Then HandleVISAError vi

End If

Exit Sub

ErrorHandler:

MsgBox "*** Error : " + Error, vbExclamation End

End Sub

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1225

40 Programming Examples

Private Sub HandleVISAError(session As Long)
Dim strVisaErr As String * 200 Call viStatusDesc(session, err, strVisaErr) MsgBox "*** VISA Error : " + strVisaErr, vbExclamation
' If the error is not a warning, close the session. If err < VI_SUCCESS Then
If session <> 0 Then Call viClose(session) End End If
End Sub
VISA Example in C#
To compile and run this example in Microsoft Visual Studio 2008: 1 Open Visual Studio. 2 Create a new Visual C#, Windows, Console Application project. 3 Cut-and-paste the code that follows into the C# source file. 4 Edit the program to use the VISA address of your oscilloscope. 5 Add Keysight's VISA header file to your project:
a Right-click the project you wish to modify (not the solution) in the Solution Explorer window of the Microsoft Visual Studio environment.
b Click Add and then click Add Existing Item... c Navigate to the header file, visa32.cs (installed with Keysight IO Libraries
Suite and found in the Program Files (x86)\IVI Foundation\VISA\WinNT\ Include directory), select it, but do not click the Open button. d Click the down arrow to the right of the Add button, and choose Add as Link. You should now see the file underneath your project in the Solution Explorer. It will have a little arrow icon in its lower left corner, indicating that it is a link. 6 Build and run the program. For more information, see the tutorial on using VISA in Microsoft .NET in the VISA Help that comes with Keysight IO Libraries Suite.
/* * Keysight VISA Example in C# * ------------------------------------------------------------------* This program illustrates a few commonly used programming * features of your Keysight oscilloscope. * ------------------------------------------------------------------*/
using System; using System.IO; using System.Text;

1226

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

namespace InfiniiVision {
class VisaInstrumentApp {
private static VisaInstrument myScope;
public static void Main(string[] args) {
try {
myScope = new VisaInstrument("USB0::0x0957::0x17A6::US50210029::0::INSTR");
myScope.SetTimeoutSeconds(10);
// Initialize - start from a known state. Initialize();
// Capture data. Capture();
// Analyze the captured waveform. Analyze();
} catch (System.ApplicationException err) {
Console.WriteLine("*** VISA Error Message : " + err.Message); } catch (System.SystemException err) {
Console.WriteLine("*** System Error Message : " + err.Message); } catch (System.Exception err) {
System.Diagnostics.Debug.Fail("Unexpected Error"); Console.WriteLine("*** Unexpected Error : " + err.Message); } finally { myScope.Close(); } }
/* * Initialize the oscilloscope to a known state. * -------------------------------------------------------------*/
private static void Initialize() {
StringBuilder strResults;
// Get and display the device's *IDN? string. strResults = myScope.DoQueryString("*IDN?"); Console.WriteLine("*IDN? result is: {0}", strResults);
// Clear status and load the default setup.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1227

40 Programming Examples

1228

myScope.DoCommand("*CLS"); myScope.DoCommand("*RST"); }
/* * Capture the waveform. * -------------------------------------------------------------*/
private static void Capture() {
// Use auto-scale to automatically configure oscilloscope. myScope.DoCommand(":AUToscale");
// Set trigger mode (EDGE, PULSe, PATTern, etc., and input source. myScope.DoCommand(":TRIGger:MODE EDGE"); Console.WriteLine("Trigger mode: {0}",
myScope.DoQueryString(":TRIGger:MODE?"));
// Set EDGE trigger parameters. myScope.DoCommand(":TRIGger:EDGE:SOURce CHANnel1"); Console.WriteLine("Trigger edge source: {0}",
myScope.DoQueryString(":TRIGger:EDGE:SOURce?"));
myScope.DoCommand(":TRIGger:EDGE:LEVel 1.5"); Console.WriteLine("Trigger edge level: {0}",
myScope.DoQueryString(":TRIGger:EDGE:LEVel?"));
myScope.DoCommand(":TRIGger:EDGE:SLOPe POSitive"); Console.WriteLine("Trigger edge slope: {0}",
myScope.DoQueryString(":TRIGger:EDGE:SLOPe?"));
// Save oscilloscope configuration. byte[] ResultsArray; // Results array. int nLength; // Number of bytes returned from instrument. string strPath;
// Query and read setup string. nLength = myScope.DoQueryIEEEBlock(":SYSTem:SETup?",
out ResultsArray);
// Write setup string to file. strPath = "c:\\scope\\config\\setup.stp"; FileStream fStream = File.Open(strPath, FileMode.Create); fStream.Write(ResultsArray, 0, nLength); fStream.Close(); Console.WriteLine("Setup bytes saved: {0}", nLength);
// Change settings with individual commands:
// Set vertical scale and offset. myScope.DoCommand(":CHANnel1:SCALe 0.05"); Console.WriteLine("Channel 1 vertical scale: {0}",
myScope.DoQueryString(":CHANnel1:SCALe?"));
myScope.DoCommand(":CHANnel1:OFFSet -1.5"); Console.WriteLine("Channel 1 vertical offset: {0}",
myScope.DoQueryString(":CHANnel1:OFFSet?"));
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

// Set horizontal scale and position. myScope.DoCommand(":TIMebase:SCALe 0.0002"); Console.WriteLine("Timebase scale: {0}",
myScope.DoQueryString(":TIMebase:SCALe?"));
myScope.DoCommand(":TIMebase:POSition 0.0"); Console.WriteLine("Timebase position: {0}",
myScope.DoQueryString(":TIMebase:POSition?"));
// Set the acquisition type (NORMal, PEAK, AVERage, or HRESolution ).
myScope.DoCommand(":ACQuire:TYPE NORMal"); Console.WriteLine("Acquire type: {0}",
myScope.DoQueryString(":ACQuire:TYPE?"));
// Or, configure by loading a previously saved setup. byte[] DataArray; int nBytesWritten;
// Read setup string from file. strPath = "c:\\scope\\config\\setup.stp"; DataArray = File.ReadAllBytes(strPath);
// Restore setup string. nBytesWritten = myScope.DoCommandIEEEBlock(":SYSTem:SETup",
DataArray); Console.WriteLine("Setup bytes restored: {0}", nBytesWritten);
// Capture an acquisition using :DIGitize. myScope.DoCommand(":DIGitize CHANnel1"); }
/* * Analyze the captured waveform. * -------------------------------------------------------------*/
private static void Analyze() {
byte[] ResultsArray; // Results array. int nLength; // Number of bytes returned from instrument. string strPath;
// Make a couple of measurements. // ----------------------------------------------------------myScope.DoCommand(":MEASure:SOURce CHANnel1"); Console.WriteLine("Measure source: {0}",
myScope.DoQueryString(":MEASure:SOURce?"));
double fResult; myScope.DoCommand(":MEASure:FREQuency"); fResult = myScope.DoQueryNumber(":MEASure:FREQuency?"); Console.WriteLine("Frequency: {0:F4} kHz", fResult / 1000);
myScope.DoCommand(":MEASure:VAMPlitude"); fResult = myScope.DoQueryNumber(":MEASure:VAMPlitude?"); Console.WriteLine("Vertical amplitude: {0:F2} V", fResult);

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1229

40 Programming Examples

1230

// Download the screen image. // ----------------------------------------------------------myScope.DoCommand(":HARDcopy:INKSaver OFF");
// Get the screen data. nLength = myScope.DoQueryIEEEBlock(":DISPlay:DATA? PNG, COLor",
out ResultsArray);
// Store the screen data to a file. strPath = "c:\\scope\\data\\screen.png"; FileStream fStream = File.Open(strPath, FileMode.Create); fStream.Write(ResultsArray, 0, nLength); fStream.Close(); Console.WriteLine("Screen image ({0} bytes) written to {1}",
nLength, strPath);
// Download waveform data. // -----------------------------------------------------------
// Set the waveform points mode. myScope.DoCommand(":WAVeform:POINts:MODE RAW"); Console.WriteLine("Waveform points mode: {0}",
myScope.DoQueryString(":WAVeform:POINts:MODE?"));
// Get the number of waveform points available. myScope.DoCommand(":WAVeform:POINts 10240"); Console.WriteLine("Waveform points available: {0}",
myScope.DoQueryString(":WAVeform:POINts?"));
// Set the waveform source. myScope.DoCommand(":WAVeform:SOURce CHANnel1"); Console.WriteLine("Waveform source: {0}",
myScope.DoQueryString(":WAVeform:SOURce?"));
// Choose the format of the data returned (WORD, BYTE, ASCII): myScope.DoCommand(":WAVeform:FORMat BYTE"); Console.WriteLine("Waveform format: {0}",
myScope.DoQueryString(":WAVeform:FORMat?"));
// Display the waveform settings: double[] fResultsArray; fResultsArray = myScope.DoQueryNumbers(":WAVeform:PREamble?");
double fFormat = fResultsArray[0]; if (fFormat == 0.0) {
Console.WriteLine("Waveform format: BYTE"); } else if (fFormat == 1.0) {
Console.WriteLine("Waveform format: WORD"); } else if (fFormat == 2.0) {
Console.WriteLine("Waveform format: ASCii"); }
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

double fType = fResultsArray[1]; if (fType == 0.0) {
Console.WriteLine("Acquire type: NORMal"); } else if (fType == 1.0) {
Console.WriteLine("Acquire type: PEAK"); } else if (fType == 2.0) {
Console.WriteLine("Acquire type: AVERage"); } else if (fType == 3.0) {
Console.WriteLine("Acquire type: HRESolution"); }
double fPoints = fResultsArray[2]; Console.WriteLine("Waveform points: {0:e}", fPoints);
double fCount = fResultsArray[3]; Console.WriteLine("Waveform average count: {0:e}", fCount);
double fXincrement = fResultsArray[4]; Console.WriteLine("Waveform X increment: {0:e}", fXincrement);
double fXorigin = fResultsArray[5]; Console.WriteLine("Waveform X origin: {0:e}", fXorigin);
double fXreference = fResultsArray[6]; Console.WriteLine("Waveform X reference: {0:e}", fXreference);
double fYincrement = fResultsArray[7]; Console.WriteLine("Waveform Y increment: {0:e}", fYincrement);
double fYorigin = fResultsArray[8]; Console.WriteLine("Waveform Y origin: {0:e}", fYorigin);
double fYreference = fResultsArray[9]; Console.WriteLine("Waveform Y reference: {0:e}", fYreference);
// Read waveform data. nLength = myScope.DoQueryIEEEBlock(":WAVeform:DATA?",
out ResultsArray); Console.WriteLine("Number of data values: {0}", nLength);
// Set up output file: strPath = "c:\\scope\\data\\waveform_data.csv"; if (File.Exists(strPath)) File.Delete(strPath);
// Open file for output. StreamWriter writer = File.CreateText(strPath);
// Output waveform data in CSV format. for (int i = 0; i < nLength - 1; i++)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1231

40 Programming Examples

1232

writer.WriteLine("{0:f9}, {1:f6}", fXorigin + ((float)i * fXincrement), (((float)ResultsArray[i] - fYreference) * fYincrement) + fYorigin);
// Close output file. writer.Close(); Console.WriteLine("Waveform format BYTE data written to {0}",
strPath); } }
class VisaInstrument {
private int m_nResourceManager; private int m_nSession; private string m_strVisaAddress;
// Constructor. public VisaInstrument(string strVisaAddress) {
// Save VISA address in member variable. m_strVisaAddress = strVisaAddress;
// Open the default VISA resource manager. OpenResourceManager();
// Open a VISA resource session. OpenSession();
// Clear the interface. int nViStatus; nViStatus = visa32.viClear(m_nSession); }
public void DoCommand(string strCommand) {
// Send the command. VisaSendCommandOrQuery(strCommand);
// Check for inst errors. CheckInstrumentErrors(strCommand); }
public int DoCommandIEEEBlock(string strCommand, byte[] DataArray)
{ // Send the command to the device. string strCommandAndLength; int nViStatus, nLength, nBytesWritten;
nLength = DataArray.Length; strCommandAndLength = String.Format("{0} #8%08d",
strCommand);
// Write first part of command to formatted I/O write buffer. nViStatus = visa32.viPrintf(m_nSession, strCommandAndLength,
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

nLength); CheckVisaStatus(nViStatus);
// Write the data to the formatted I/O write buffer. nViStatus = visa32.viBufWrite(m_nSession, DataArray, nLength,
out nBytesWritten); CheckVisaStatus(nViStatus);
// Check for inst errors. CheckInstrumentErrors(strCommand);
return nBytesWritten; }
public StringBuilder DoQueryString(string strQuery) {
// Send the query. VisaSendCommandOrQuery(strQuery);
// Get the result string. StringBuilder strResults = new StringBuilder(1000); strResults = VisaGetResultString();
// Check for inst errors. CheckInstrumentErrors(strQuery);
// Return string results. return strResults; }
public double DoQueryNumber(string strQuery) {
// Send the query. VisaSendCommandOrQuery(strQuery);
// Get the result string. double fResults; fResults = VisaGetResultNumber();
// Check for inst errors. CheckInstrumentErrors(strQuery);
// Return string results. return fResults; }
public double[] DoQueryNumbers(string strQuery) {
// Send the query. VisaSendCommandOrQuery(strQuery);
// Get the result string. double[] fResultsArray; fResultsArray = VisaGetResultNumbers();
// Check for inst errors. CheckInstrumentErrors(strQuery);

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1233

40 Programming Examples

1234

// Return string results. return fResultsArray; }
public int DoQueryIEEEBlock(string strQuery, out byte[] ResultsArray)
{ // Send the query. VisaSendCommandOrQuery(strQuery);
// Get the result string. int length; // Number of bytes returned from instrument. length = VisaGetResultIEEEBlock(out ResultsArray);
// Check for inst errors. CheckInstrumentErrors(strQuery);
// Return string results. return length; }
private void VisaSendCommandOrQuery(string strCommandOrQuery) {
// Send command or query to the device. string strWithNewline; strWithNewline = String.Format("{0}\n", strCommandOrQuery); int nViStatus; nViStatus = visa32.viPrintf(m_nSession, strWithNewline); CheckVisaStatus(nViStatus); }
private StringBuilder VisaGetResultString() {
StringBuilder strResults = new StringBuilder(1000);
// Read return value string from the device. int nViStatus; nViStatus = visa32.viScanf(m_nSession, "%1000t", strResults); CheckVisaStatus(nViStatus);
return strResults; }
private double VisaGetResultNumber() {
double fResults = 0;
// Read return value string from the device. int nViStatus; nViStatus = visa32.viScanf(m_nSession, "%lf", out fResults); CheckVisaStatus(nViStatus);
return fResults; }
private double[] VisaGetResultNumbers()
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

{ double[] fResultsArray; fResultsArray = new double[10];
// Read return value string from the device. int nViStatus; nViStatus = visa32.viScanf(m_nSession, "%,10lf\n",
fResultsArray); CheckVisaStatus(nViStatus);
return fResultsArray; }
private int VisaGetResultIEEEBlock(out byte[] ResultsArray) {
// Results array, big enough to hold a PNG. ResultsArray = new byte[300000]; int length; // Number of bytes returned from instrument.
// Set the default number of bytes that will be contained in // the ResultsArray to 300,000 (300kB). length = 300000;
// Read return value string from the device. int nViStatus; nViStatus = visa32.viScanf(m_nSession, "%#b", ref length,
ResultsArray); CheckVisaStatus(nViStatus);
// Write and read buffers need to be flushed after IEEE block? nViStatus = visa32.viFlush(m_nSession, visa32.VI_WRITE_BUF); CheckVisaStatus(nViStatus);
nViStatus = visa32.viFlush(m_nSession, visa32.VI_READ_BUF); CheckVisaStatus(nViStatus);
return length; }
private void CheckInstrumentErrors(string strCommand) {
// Check for instrument errors. StringBuilder strInstrumentError = new StringBuilder(1000); bool bFirstError = true;
do // While not "0,No error" {
VisaSendCommandOrQuery(":SYSTem:ERRor?"); strInstrumentError = VisaGetResultString();
if (!strInstrumentError.ToString().StartsWith("+0,")) {
if (bFirstError) {
Console.WriteLine("ERROR(s) for command '{0}': ", strCommand);
bFirstError = false;

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1235

40 Programming Examples
} Console.Write(strInstrumentError); } } while (!strInstrumentError.ToString().StartsWith("+0,")); }
private void OpenResourceManager() {
int nViStatus; nViStatus =
visa32.viOpenDefaultRM(out this.m_nResourceManager); if (nViStatus < visa32.VI_SUCCESS)
throw new ApplicationException("Failed to open Resource Manager");
}
private void OpenSession() {
int nViStatus; nViStatus = visa32.viOpen(this.m_nResourceManager,
this.m_strVisaAddress, visa32.VI_NO_LOCK, visa32.VI_TMO_IMMEDIATE, out this.m_nSession); CheckVisaStatus(nViStatus); }
public void SetTimeoutSeconds(int nSeconds) {
int nViStatus; nViStatus = visa32.viSetAttribute(this.m_nSession,
visa32.VI_ATTR_TMO_VALUE, nSeconds * 1000); CheckVisaStatus(nViStatus); }
public void CheckVisaStatus(int nViStatus) {
// If VISA error, throw exception. if (nViStatus < visa32.VI_SUCCESS) {
StringBuilder strError = new StringBuilder(256); visa32.viStatusDesc(this.m_nResourceManager, nViStatus,
strError); throw new ApplicationException(strError.ToString()); } }
public void Close() {
if (m_nSession != 0) visa32.viClose(m_nSession);
if (m_nResourceManager != 0) visa32.viClose(m_nResourceManager);
} } }

1236

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40
VISA Example in Visual Basic .NET
To compile and run this example in Microsoft Visual Studio 2008: 1 Open Visual Studio. 2 Create a new Visual Basic, Windows, Console Application project. 3 Cut-and-paste the code that follows into the Visual Basic .NET source file. 4 Edit the program to use the VISA address of your oscilloscope. 5 Add Keysight's VISA header file to your project:
a Right-click the project you wish to modify (not the solution) in the Solution Explorer window of the Microsoft Visual Studio environment.
b Choose Add and then choose Add Existing Item... c Navigate to the header file, visa32.vb (installed with Keysight IO Libraries
Suite and found in the Program Files (x86)\IVI Foundation\VISA\WinNT\ Include directory), select it, but do not click the Open button. d Click the down arrow to the right of the Add button, and choose Add as Link. You should now see the file underneath your project in the Solution Explorer. It will have a little arrow icon in its lower left corner, indicating that it is a link. e Right-click the project again and choose Properties; then, select "InfiniiVision.VisaInstrumentApp" as the Startup object. 6 Build and run the program. For more information, see the tutorial on using VISA in Microsoft .NET in the VISA Help that comes with Keysight IO Libraries Suite.
' ' Keysight VISA Example in Visual Basic .NET ' ------------------------------------------------------------------' This program illustrates a few commonly-used programming ' features of your Keysight oscilloscope. ' -------------------------------------------------------------------
Imports System Imports System.IO Imports System.Text
Namespace InfiniiVision Class VisaInstrumentApp Private Shared myScope As VisaInstrument
Public Shared Sub Main(ByVal args As String()) Try myScope = _ New VisaInstrument("USB0::0x0957::0x17A6::US50210029::0::INSTR
") myScope.SetTimeoutSeconds(10)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1237

40 Programming Examples

1238

' Initialize - start from a known state. Initialize()
' Capture data. Capture()
' Analyze the captured waveform. Analyze()
Catch err As System.ApplicationException Console.WriteLine("*** VISA Error Message : " + err.Message)
Catch err As System.SystemException Console.WriteLine("*** System Error Message : " + err.Message)
Catch err As System.Exception Debug.Fail("Unexpected Error") Console.WriteLine("*** Unexpected Error : " + err.Message)
End Try End Sub
' ' Initialize the oscilloscope to a known state. ' --------------------------------------------------------------
Private Shared Sub Initialize() Dim strResults As StringBuilder
' Get and display the device's *IDN? string. strResults = myScope.DoQueryString("*IDN?") Console.WriteLine("*IDN? result is: {0}", strResults)
' Clear status and load the default setup. myScope.DoCommand("*CLS") myScope.DoCommand("*RST")
End Sub
' ' Capture the waveform. ' --------------------------------------------------------------
Private Shared Sub Capture()
' Use auto-scale to automatically configure oscilloscope. myScope.DoCommand(":AUToscale")
' Set trigger mode (EDGE, PULSe, PATTern, etc., and input source. myScope.DoCommand(":TRIGger:MODE EDGE") Console.WriteLine("Trigger mode: {0}", _
myScope.DoQueryString(":TRIGger:MODE?"))
' Set EDGE trigger parameters. myScope.DoCommand(":TRIGger:EDGE:SOURce CHANnel1") Console.WriteLine("Trigger edge source: {0}", _
myScope.DoQueryString(":TRIGger:EDGE:SOURce?"))
myScope.DoCommand(":TRIGger:EDGE:LEVel 1.5") Console.WriteLine("Trigger edge level: {0}", _
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

myScope.DoQueryString(":TRIGger:EDGE:LEVel?"))
myScope.DoCommand(":TRIGger:EDGE:SLOPe POSitive") Console.WriteLine("Trigger edge slope: {0}", _
myScope.DoQueryString(":TRIGger:EDGE:SLOPe?"))
' Save oscilloscope configuration. Dim ResultsArray As Byte() ' Results array. Dim nLength As Integer ' Number of bytes returned from inst. Dim strPath As String Dim fStream As FileStream
' Query and read setup string. nLength = myScope.DoQueryIEEEBlock(":SYSTem:SETup?", _
ResultsArray)
' Write setup string to file. strPath = "c:\scope\config\setup.stp" fStream = File.Open(strPath, FileMode.Create) fStream.Write(ResultsArray, 0, nLength) fStream.Close() Console.WriteLine("Setup bytes saved: {0}", nLength)
' Change settings with individual commands:
' Set vertical scale and offset. myScope.DoCommand(":CHANnel1:SCALe 0.05") Console.WriteLine("Channel 1 vertical scale: {0}", _
myScope.DoQueryString(":CHANnel1:SCALe?"))
myScope.DoCommand(":CHANnel1:OFFSet -1.5") Console.WriteLine("Channel 1 vertical offset: {0}", _
myScope.DoQueryString(":CHANnel1:OFFSet?"))
' Set horizontal scale and position. myScope.DoCommand(":TIMebase:SCALe 0.0002") Console.WriteLine("Timebase scale: {0}", _
myScope.DoQueryString(":TIMebase:SCALe?"))
myScope.DoCommand(":TIMebase:POSition 0.0") Console.WriteLine("Timebase position: {0}", _
myScope.DoQueryString(":TIMebase:POSition?"))
' Set the acquisition type (NORMal, PEAK, AVERage, or HRESolution) .
myScope.DoCommand(":ACQuire:TYPE NORMal") Console.WriteLine("Acquire type: {0}", _
myScope.DoQueryString(":ACQuire:TYPE?"))
' Or, configure by loading a previously saved setup. Dim DataArray As Byte() Dim nBytesWritten As Integer
' Read setup string from file. strPath = "c:\scope\config\setup.stp" DataArray = File.ReadAllBytes(strPath)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1239

40 Programming Examples

1240

' Restore setup string. nBytesWritten = myScope.DoCommandIEEEBlock(":SYSTem:SETup", _
DataArray) Console.WriteLine("Setup bytes restored: {0}", nBytesWritten)
' Capture an acquisition using :DIGitize. myScope.DoCommand(":DIGitize CHANnel1")
End Sub
' ' Analyze the captured waveform. ' --------------------------------------------------------------
Private Shared Sub Analyze()
Dim fResult As Double Dim ResultsArray As Byte() ' Results array. Dim nLength As Integer ' Number of bytes returned from inst. Dim strPath As String
' Make a couple of measurements. ' -----------------------------------------------------------myScope.DoCommand(":MEASure:SOURce CHANnel1") Console.WriteLine("Measure source: {0}", _
myScope.DoQueryString(":MEASure:SOURce?"))
myScope.DoCommand(":MEASure:FREQuency") fResult = myScope.DoQueryNumber(":MEASure:FREQuency?") Console.WriteLine("Frequency: {0:F4} kHz", fResult / 1000)
myScope.DoCommand(":MEASure:VAMPlitude") fResult = myScope.DoQueryNumber(":MEASure:VAMPlitude?") Console.WriteLine("Vertical amplitude: {0:F2} V", fResult)
' Download the screen image. ' -----------------------------------------------------------myScope.DoCommand(":HARDcopy:INKSaver OFF")
' Get the screen data. nLength = myScope.DoQueryIEEEBlock(":DISPlay:DATA? PNG, COLor", _
ResultsArray)
' Store the screen data to a file. strPath = "c:\scope\data\screen.png" Dim fStream As FileStream fStream = File.Open(strPath, FileMode.Create) fStream.Write(ResultsArray, 0, nLength) fStream.Close() Console.WriteLine("Screen image ({0} bytes) written to {1}", _
nLength, strPath)
' Download waveform data. ' ------------------------------------------------------------
' Set the waveform points mode. myScope.DoCommand(":WAVeform:POINts:MODE RAW")
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

Console.WriteLine("Waveform points mode: {0}", _ myScope.DoQueryString(":WAVeform:POINts:MODE?"))
' Get the number of waveform points available. myScope.DoCommand(":WAVeform:POINts 10240") Console.WriteLine("Waveform points available: {0}", _
myScope.DoQueryString(":WAVeform:POINts?"))
' Set the waveform source. myScope.DoCommand(":WAVeform:SOURce CHANnel1") Console.WriteLine("Waveform source: {0}", _
myScope.DoQueryString(":WAVeform:SOURce?"))
' Choose the format of the data returned (WORD, BYTE, ASCII): myScope.DoCommand(":WAVeform:FORMat BYTE") Console.WriteLine("Waveform format: {0}", _
myScope.DoQueryString(":WAVeform:FORMat?"))
' Display the waveform settings: Dim fResultsArray As Double() fResultsArray = myScope.DoQueryNumbers(":WAVeform:PREamble?")
Dim fFormat As Double = fResultsArray(0) If fFormat = 0 Then
Console.WriteLine("Waveform format: BYTE") ElseIf fFormat = 1 Then
Console.WriteLine("Waveform format: WORD") ElseIf fFormat = 2 Then
Console.WriteLine("Waveform format: ASCii") End If
Dim fType As Double = fResultsArray(1) If fType = 0 Then
Console.WriteLine("Acquire type: NORMal") ElseIf fType = 1 Then
Console.WriteLine("Acquire type: PEAK") ElseIf fType = 2 Then
Console.WriteLine("Acquire type: AVERage") ElseIf fType = 3 Then
Console.WriteLine("Acquire type: HRESolution") End If
Dim fPoints As Double = fResultsArray(2) Console.WriteLine("Waveform points: {0:e}", fPoints)
Dim fCount As Double = fResultsArray(3) Console.WriteLine("Waveform average count: {0:e}", fCount)
Dim fXincrement As Double = fResultsArray(4) Console.WriteLine("Waveform X increment: {0:e}", fXincrement)
Dim fXorigin As Double = fResultsArray(5) Console.WriteLine("Waveform X origin: {0:e}", fXorigin)
Dim fXreference As Double = fResultsArray(6) Console.WriteLine("Waveform X reference: {0:e}", fXreference)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1241

40 Programming Examples

1242

Dim fYincrement As Double = fResultsArray(7) Console.WriteLine("Waveform Y increment: {0:e}", fYincrement)
Dim fYorigin As Double = fResultsArray(8) Console.WriteLine("Waveform Y origin: {0:e}", fYorigin)
Dim fYreference As Double = fResultsArray(9) Console.WriteLine("Waveform Y reference: {0:e}", fYreference)
' Get the waveform data. nLength = myScope.DoQueryIEEEBlock(":WAVeform:DATA?", _
ResultsArray) Console.WriteLine("Number of data values: {0}", nLength)
' Set up output file: strPath = "c:\scope\data\waveform_data.csv" If File.Exists(strPath) Then
File.Delete(strPath) End If
' Open file for output. Dim writer As StreamWriter = File.CreateText(strPath)
' Output waveform data in CSV format. For index As Integer = 0 To nLength - 1
' Write time value, voltage value. writer.WriteLine("{0:f9}, {1:f6}", _
fXorigin + (CSng(index) * fXincrement), _ ((CSng(ResultsArray(index)) - fYreference) _ * fYincrement) + fYorigin) Next
' Close output file. writer.Close() Console.WriteLine("Waveform format BYTE data written to {0}", _
strPath)
End Sub
End Class
Class VisaInstrument Private m_nResourceManager As Integer Private m_nSession As Integer Private m_strVisaAddress As String
' Constructor. Public Sub New(ByVal strVisaAddress As String)
' Save VISA address in member variable. m_strVisaAddress = strVisaAddress
' Open the default VISA resource manager. OpenResourceManager()
' Open a VISA resource session. OpenSession()
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

' Clear the interface. Dim nViStatus As Integer nViStatus = visa32.viClear(m_nSession) End Sub
Public Sub DoCommand(ByVal strCommand As String) ' Send the command. VisaSendCommandOrQuery(strCommand)
' Check for inst errors. CheckInstrumentErrors(strCommand)
End Sub
Public Function DoCommandIEEEBlock(ByVal strCommand As String, _ ByVal DataArray As Byte()) As Integer
' Send the command to the device. Dim strCommandAndLength As String Dim nViStatus As Integer Dim nLength As Integer Dim nBytesWritten As Integer
nLength = DataArray.Length strCommandAndLength = [String].Format("{0} #8{1:D8}", _
strCommand, nLength)
' Write first part of command to formatted I/O write buffer. nViStatus = visa32.viPrintf(m_nSession, strCommandAndLength) CheckVisaStatus(nViStatus)
' Write the data to the formatted I/O write buffer. nViStatus = visa32.viBufWrite(m_nSession, DataArray, nLength, _
nBytesWritten) CheckVisaStatus(nViStatus)
' Check for inst errors. CheckInstrumentErrors(strCommand)
Return nBytesWritten End Function
Public Function DoQueryString(ByVal strQuery As String) _ As StringBuilder ' Send the query. VisaSendCommandOrQuery(strQuery)
' Get the result string. Dim strResults As New StringBuilder(1000) strResults = VisaGetResultString()
' Check for inst errors. CheckInstrumentErrors(strQuery)
' Return string results. Return strResults End Function

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1243

40 Programming Examples

1244

Public Function DoQueryNumber(ByVal strQuery As String) As Double ' Send the query. VisaSendCommandOrQuery(strQuery)
' Get the result string. Dim fResults As Double fResults = VisaGetResultNumber()
' Check for inst errors. CheckInstrumentErrors(strQuery)
' Return string results. Return fResults End Function
Public Function DoQueryNumbers(ByVal strQuery As String) _ As Double()
' Send the query. VisaSendCommandOrQuery(strQuery)
' Get the result string. Dim fResultsArray As Double() fResultsArray = VisaGetResultNumbers()
' Check for instrument errors (another command and result). CheckInstrumentErrors(strQuery)
' Return string results. Return fResultsArray End Function
Public Function DoQueryIEEEBlock(ByVal strQuery As String, _ ByRef ResultsArray As Byte()) As Integer
' Send the query. VisaSendCommandOrQuery(strQuery)
' Get the result string. System.Threading.Thread.Sleep(2000) ' Delay before reading data. Dim length As Integer ' Number of bytes returned from instrument. length = VisaGetResultIEEEBlock(ResultsArray)
' Check for inst errors. CheckInstrumentErrors(strQuery)
' Return string results. Return length End Function
Private Sub VisaSendCommandOrQuery(ByVal strCommandOrQuery _ As String)
' Send command or query to the device. Dim strWithNewline As String strWithNewline = [String].Format("{0}" & Chr(10) & "", _
strCommandOrQuery) Dim nViStatus As Integer
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

nViStatus = visa32.viPrintf(m_nSession, strWithNewline) CheckVisaStatus(nViStatus) End Sub
Private Function VisaGetResultString() As StringBuilder Dim strResults As New StringBuilder(1000)
' Read return value string from the device. Dim nViStatus As Integer nViStatus = visa32.viScanf(m_nSession, "%1000t", strResults) CheckVisaStatus(nViStatus)
Return strResults End Function
Private Function VisaGetResultNumber() As Double Dim fResults As Double = 0
' Read return value string from the device. Dim nViStatus As Integer nViStatus = visa32.viScanf(m_nSession, "%lf", fResults) CheckVisaStatus(nViStatus)
Return fResults End Function
Private Function VisaGetResultNumbers() As Double() Dim fResultsArray As Double() fResultsArray = New Double(9) {}
' Read return value string from the device. Dim nViStatus As Integer nViStatus = visa32.viScanf(m_nSession, _
"%,10lf" & Chr(10) & "", fResultsArray) CheckVisaStatus(nViStatus)
Return fResultsArray End Function
Private Function VisaGetResultIEEEBlock(ByRef ResultsArray _ As Byte()) As Integer
' Results array, big enough to hold a PNG. ResultsArray = New Byte(299999) {} Dim length As Integer ' Number of bytes returned from instrument. ' Set the default number of bytes that will be contained in ' the ResultsArray to 300,000 (300kB). length = 300000
' Read return value string from the device. Dim nViStatus As Integer nViStatus = visa32.viScanf(m_nSession, "%#b", length, _
ResultsArray) CheckVisaStatus(nViStatus)
' Write and read buffers need to be flushed after IEEE block? nViStatus = visa32.viFlush(m_nSession, visa32.VI_WRITE_BUF)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1245

40 Programming Examples

1246

CheckVisaStatus(nViStatus)
nViStatus = visa32.viFlush(m_nSession, visa32.VI_READ_BUF) CheckVisaStatus(nViStatus)
Return length End Function
Private Sub CheckInstrumentErrors(ByVal strCommand As String) ' Check for instrument errors. Dim strInstrumentError As New StringBuilder(1000) Dim bFirstError As Boolean = True Do ' While not "0,No error" VisaSendCommandOrQuery(":SYSTem:ERRor?") strInstrumentError = VisaGetResultString()
If Not strInstrumentError.ToString().StartsWith("+0,") Then If bFirstError Then Console.WriteLine("ERROR(s) for command '{0}': ", _ strCommand) bFirstError = False End If Console.Write(strInstrumentError)
End If Loop While Not strInstrumentError.ToString().StartsWith("+0,") End Sub
Private Sub OpenResourceManager() Dim nViStatus As Integer nViStatus = visa32.viOpenDefaultRM(Me.m_nResourceManager) If nViStatus < visa32.VI_SUCCESS Then Throw New _ ApplicationException("Failed to open Resource Manager") End If
End Sub
Private Sub OpenSession() Dim nViStatus As Integer nViStatus = visa32.viOpen(Me.m_nResourceManager, _ Me.m_strVisaAddress, visa32.VI_NO_LOCK, _ visa32.VI_TMO_IMMEDIATE, Me.m_nSession) CheckVisaStatus(nViStatus)
End Sub
Public Sub SetTimeoutSeconds(ByVal nSeconds As Integer) Dim nViStatus As Integer nViStatus = visa32.viSetAttribute(Me.m_nSession, _ visa32.VI_ATTR_TMO_VALUE, nSeconds * 1000) CheckVisaStatus(nViStatus)
End Sub
Public Sub CheckVisaStatus(ByVal nViStatus As Integer) ' If VISA error, throw exception. If nViStatus < visa32.VI_SUCCESS Then Dim strError As New StringBuilder(256) visa32.viStatusDesc(Me.m_nResourceManager, nViStatus, strError) Throw New ApplicationException(strError.ToString())
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

End If End Sub
Public Sub Close() If m_nSession <> 0 Then visa32.viClose(m_nSession) End If If m_nResourceManager <> 0 Then visa32.viClose(m_nResourceManager) End If
End Sub End Class End Namespace
VISA Example in Python (PyVISA 1.5 and older)
You can use the Python programming language with the PyVISA package to control Keysight Infiniium Series oscilloscopes. The Python language and PyVISA package can be downloaded from the web at http://www.python.org/ and http://pyvisa.sourceforge.net/, respectively. To run this example with Python and PyVISA: 1 Cut-and-paste the code that follows into a file named "example.py". 2 Edit the program to use the VISA address of your oscilloscope. 3 If "python.exe" can be found via your PATH environment variable, open a
Command Prompt window; then, change to the folder that contains the "example.py" file, and enter:
python example.py
# ********************************************************* # This program illustrates a few commonly-used programming # features of your Keysight oscilloscope. # *********************************************************
# Import modules. # --------------------------------------------------------import visa import string import struct import sys
# Global variables (booleans: 0 = False, 1 = True). # --------------------------------------------------------debug = 0

# ========================================================= # Initialize: # ========================================================= def initialize():
# Get and display the device's *IDN? string.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1247

40 Programming Examples

1248

idn_string = do_query_string("*IDN?") print "Identification string: '%s'" % idn_string
# Clear status and load the default setup. do_command("*CLS") do_command("*RST")
# ========================================================= # Capture: # ========================================================= def capture():
# Use auto-scale to automatically set up oscilloscope. print "Autoscale." do_command(":AUToscale")
# Set trigger mode. do_command(":TRIGger:MODE EDGE") qresult = do_query_string(":TRIGger:MODE?") print "Trigger mode: %s" % qresult
# Set EDGE trigger parameters. do_command(":TRIGger:EDGE:SOURce CHANnel1") qresult = do_query_string(":TRIGger:EDGE:SOURce?") print "Trigger edge source: %s" % qresult
do_command(":TRIGger:EDGE:LEVel 1.5") qresult = do_query_string(":TRIGger:EDGE:LEVel?") print "Trigger edge level: %s" % qresult
do_command(":TRIGger:EDGE:SLOPe POSitive") qresult = do_query_string(":TRIGger:EDGE:SLOPe?") print "Trigger edge slope: %s" % qresult
# Save oscilloscope setup. sSetup = do_query_string(":SYSTem:SETup?") sSetup = get_definite_length_block_data(sSetup)
f = open("setup.stp", "wb") f.write(sSetup) f.close() print "Setup bytes saved: %d" % len(sSetup)
# Change oscilloscope settings with individual commands:
# Set vertical scale and offset. do_command(":CHANnel1:SCALe 0.05") qresult = do_query_values(":CHANnel1:SCALe?")[0] print "Channel 1 vertical scale: %f" % qresult
do_command(":CHANnel1:OFFSet -1.5") qresult = do_query_values(":CHANnel1:OFFSet?")[0] print "Channel 1 offset: %f" % qresult
# Set horizontal scale and offset. do_command(":TIMebase:SCALe 0.0002")
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

qresult = do_query_string(":TIMebase:SCALe?") print "Timebase scale: %s" % qresult
do_command(":TIMebase:POSition 0.0") qresult = do_query_string(":TIMebase:POSition?") print "Timebase position: %s" % qresult
# Set the acquisition type. do_command(":ACQuire:TYPE NORMal") qresult = do_query_string(":ACQuire:TYPE?") print "Acquire type: %s" % qresult
# Or, set up oscilloscope by loading a previously saved setup. sSetup = "" f = open("setup.stp", "rb") sSetup = f.read() f.close() do_command(":SYSTem:SETup #8%08d%s" % (len(sSetup), sSetup), hide_param s=True) print "Setup bytes restored: %d" % len(sSetup)
# Capture an acquisition using :DIGitize. do_command(":DIGitize CHANnel1")
# ========================================================= # Analyze: # ========================================================= def analyze():
# Make measurements. # -------------------------------------------------------do_command(":MEASure:SOURce CHANnel1") qresult = do_query_string(":MEASure:SOURce?") print "Measure source: %s" % qresult
do_command(":MEASure:FREQuency") qresult = do_query_string(":MEASure:FREQuency?") print "Measured frequency on channel 1: %s" % qresult
do_command(":MEASure:VAMPlitude") qresult = do_query_string(":MEASure:VAMPlitude?") print "Measured vertical amplitude on channel 1: %s" % qresult
# Download the screen image. # -------------------------------------------------------do_command(":HARDcopy:INKSaver OFF")
sDisplay = do_query_string(":DISPlay:DATA? PNG, COLor") sDisplay = get_definite_length_block_data(sDisplay)
# Save display data values to file. f = open("screen_image.png", "wb") f.write(sDisplay) f.close() print "Screen image written to screen_image.png."

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1249

40 Programming Examples

1250

# Download waveform data. # --------------------------------------------------------
# Set the waveform points mode. do_command(":WAVeform:POINts:MODE RAW") qresult = do_query_string(":WAVeform:POINts:MODE?") print "Waveform points mode: %s" % qresult
# Get the number of waveform points available. do_command(":WAVeform:POINts 10240") qresult = do_query_string(":WAVeform:POINts?") print "Waveform points available: %s" % qresult
# Set the waveform source. do_command(":WAVeform:SOURce CHANnel1") qresult = do_query_string(":WAVeform:SOURce?") print "Waveform source: %s" % qresult
# Choose the format of the data returned: do_command(":WAVeform:FORMat BYTE") print "Waveform format: %s" % do_query_string(":WAVeform:FORMat?")
# Display the waveform settings from preamble: wav_form_dict = {
0 : "BYTE", 1 : "WORD", 4 : "ASCii", } acq_type_dict = { 0 : "NORMal", 1 : "PEAK", 2 : "AVERage", 3 : "HRESolution", }
preamble_string = do_query_string(":WAVeform:PREamble?") (
wav_form, acq_type, wfmpts, avgcnt, x_increment, x_origin, x_reference, y_increment, y_origin, y_reference ) = string.split(preamble_string, ",")
print "Waveform format: %s" % wav_form_dict[int(wav_form)] print "Acquire type: %s" % acq_type_dict[int(acq_type)] print "Waveform points desired: %s" % wfmpts print "Waveform average count: %s" % avgcnt print "Waveform X increment: %s" % x_increment print "Waveform X origin: %s" % x_origin print "Waveform X reference: %s" % x_reference # Always 0. print "Waveform Y increment: %s" % y_increment print "Waveform Y origin: %s" % y_origin print "Waveform Y reference: %s" % y_reference
# Get numeric values for later calculations. x_increment = do_query_values(":WAVeform:XINCrement?")[0] x_origin = do_query_values(":WAVeform:XORigin?")[0] y_increment = do_query_values(":WAVeform:YINCrement?")[0] y_origin = do_query_values(":WAVeform:YORigin?")[0]
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

y_reference = do_query_values(":WAVeform:YREFerence?")[0]
# Get the waveform data. sData = do_query_string(":WAVeform:DATA?") sData = get_definite_length_block_data(sData)
# Unpack unsigned byte data. values = struct.unpack("%dB" % len(sData), sData) print "Number of data values: %d" % len(values)
# Save waveform data values to CSV file. f = open("waveform_data.csv", "w")
for i in xrange(0, len(values) - 1): time_val = x_origin + (i * x_increment) voltage = ((values[i] - y_reference) * y_increment) + y_origin f.write("%E, %f\n" % (time_val, voltage))
f.close() print "Waveform format BYTE data written to waveform_data.csv."

# ========================================================= # Send a command and check for errors: # ========================================================= def do_command(command, hide_params=False):
if hide_params: (header, data) = string.split(command, " ", 1) if debug: print "\nCmd = '%s'" % header
else: if debug: print "\nCmd = '%s'" % command
InfiniiVision.write("%s\n" % command)
if hide_params: check_instrument_errors(header)
else: check_instrument_errors(command)

# ========================================================= # Send a query, check for errors, return string: # ========================================================= def do_query_string(query):
if debug: print "Qys = '%s'" % query
result = InfiniiVision.ask("%s\n" % query) check_instrument_errors(query) return result

# ========================================================= # Send a query, check for errors, return values: # =========================================================

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1251

40 Programming Examples

1252

def do_query_values(query): if debug: print "Qyv = '%s'" % query results = InfiniiVision.ask_for_values("%s\n" % query) check_instrument_errors(query) return results
# ========================================================= # Check for instrument errors: # ========================================================= def check_instrument_errors(command):
while True: error_string = InfiniiVision.ask(":SYSTem:ERRor?\n") if error_string: # If there is an error string value.
if error_string.find("+0,", 0, 3) == -1: # Not "No error".
print "ERROR: %s, command: '%s'" % (error_string, command) print "Exited because of error." sys.exit(1)
else: # "No error" break
else: # :SYSTem:ERRor? should always return string. print "ERROR: :SYSTem:ERRor? returned nothing, command: '%s'" % comma
nd print "Exited because of error." sys.exit(1)
# ========================================================= # Returns data from definite-length block. # ========================================================= def get_definite_length_block_data(sBlock):
# First character should be "#". pound = sBlock[0:1] if pound != "#":
print "PROBLEM: Invalid binary block format, pound char is '%s'." % po und
print "Exited because of problem." sys.exit(1)
# Second character is number of following digits for length value. digits = sBlock[1:2]
# Get the data out of the block and return it. sData = sBlock[int(digits) + 2:]
return sData
# ========================================================= # Main program:
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

# =========================================================
InfiniiVision = visa.instrument("TCPIP0::130.29.70.139::inst0::INSTR") InfiniiVision.timeout = 15 InfiniiVision.term_chars = "" InfiniiVision.clear()
# Initialize the oscilloscope, capture data, and analyze. initialize() capture() analyze()
print "End of program."
VISA Example in Python (PyVISA 1.6 and newer)
You can use the Python programming language with the PyVISA package to control Keysight Infiniium Series oscilloscopes. The Python language and PyVISA package can be downloaded from the web at http://www.python.org/ and http://pyvisa.readthedocs.org/, respectively. To run this example with Python and PyVISA: 1 Cut-and-paste the code that follows into a file named "example.py". 2 Edit the program to use the VISA address of your oscilloscope. 3 If "python.exe" can be found via your PATH environment variable, open a
Command Prompt window; then, change to the folder that contains the "example.py" file, and enter:
python example.py
# ********************************************************* # This program illustrates a few commonly-used programming # features of your Keysight oscilloscope. # *********************************************************
# Import modules. # --------------------------------------------------------import visa import string import struct import sys
# Global variables (booleans: 0 = False, 1 = True). # --------------------------------------------------------debug = 0

# ========================================================= # Initialize: # ========================================================= def initialize():
# Get and display the device's *IDN? string.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1253

40 Programming Examples

1254

idn_string = do_query_string("*IDN?") print "Identification string: '%s'" % idn_string
# Clear status and load the default setup. do_command("*CLS") do_command("*RST")
# ========================================================= # Capture: # ========================================================= def capture():
# Use auto-scale to automatically set up oscilloscope. print "Autoscale." do_command(":AUToscale")
# Set trigger mode. do_command(":TRIGger:MODE EDGE") qresult = do_query_string(":TRIGger:MODE?") print "Trigger mode: %s" % qresult
# Set EDGE trigger parameters. do_command(":TRIGger:EDGE:SOURce CHANnel1") qresult = do_query_string(":TRIGger:EDGE:SOURce?") print "Trigger edge source: %s" % qresult
do_command(":TRIGger:EDGE:LEVel 1.5") qresult = do_query_string(":TRIGger:EDGE:LEVel?") print "Trigger edge level: %s" % qresult
do_command(":TRIGger:EDGE:SLOPe POSitive") qresult = do_query_string(":TRIGger:EDGE:SLOPe?") print "Trigger edge slope: %s" % qresult
# Save oscilloscope setup. sSetup = do_query_ieee_block(":SYSTem:SETup?")
f = open("setup.stp", "wb") f.write(sSetup) f.close() print "Setup bytes saved: %d" % len(sSetup)
# Change oscilloscope settings with individual commands:
# Set vertical scale and offset. do_command(":CHANnel1:SCALe 0.05") qresult = do_query_string(":CHANnel1:SCALe?") print "Channel 1 vertical scale: %s" % qresult
do_command(":CHANnel1:OFFSet -1.5") qresult = do_query_string(":CHANnel1:OFFSet?") print "Channel 1 offset: %s" % qresult
# Set horizontal scale and offset. do_command(":TIMebase:SCALe 0.0002") qresult = do_query_string(":TIMebase:SCALe?")
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

print "Timebase scale: %s" % qresult
do_command(":TIMebase:POSition 0.0") qresult = do_query_string(":TIMebase:POSition?") print "Timebase position: %s" % qresult
# Set the acquisition type. do_command(":ACQuire:TYPE NORMal") qresult = do_query_string(":ACQuire:TYPE?") print "Acquire type: %s" % qresult
# Or, set up oscilloscope by loading a previously saved setup. sSetup = "" f = open("setup.stp", "rb") sSetup = f.read() f.close() do_command_ieee_block(":SYSTem:SETup", sSetup) print "Setup bytes restored: %d" % len(sSetup)
# Capture an acquisition using :DIGitize. do_command(":DIGitize CHANnel1")
# ========================================================= # Analyze: # ========================================================= def analyze():
# Make measurements. # -------------------------------------------------------do_command(":MEASure:SOURce CHANnel1") qresult = do_query_string(":MEASure:SOURce?") print "Measure source: %s" % qresult
do_command(":MEASure:FREQuency") qresult = do_query_string(":MEASure:FREQuency?") print "Measured frequency on channel 1: %s" % qresult
do_command(":MEASure:VAMPlitude") qresult = do_query_string(":MEASure:VAMPlitude?") print "Measured vertical amplitude on channel 1: %s" % qresult
# Download the screen image. # -------------------------------------------------------do_command(":HARDcopy:INKSaver OFF")
sDisplay = do_query_ieee_block(":DISPlay:DATA? PNG, COLor")
# Save display data values to file. f = open("screen_image.png", "wb") f.write(sDisplay) f.close() print "Screen image written to screen_image.png."
# Download waveform data. # --------------------------------------------------------

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1255

40 Programming Examples

1256

# Set the waveform points mode. do_command(":WAVeform:POINts:MODE RAW") qresult = do_query_string(":WAVeform:POINts:MODE?") print "Waveform points mode: %s" % qresult
# Get the number of waveform points available. do_command(":WAVeform:POINts 10240") qresult = do_query_string(":WAVeform:POINts?") print "Waveform points available: %s" % qresult
# Set the waveform source. do_command(":WAVeform:SOURce CHANnel1") qresult = do_query_string(":WAVeform:SOURce?") print "Waveform source: %s" % qresult
# Choose the format of the data returned: do_command(":WAVeform:FORMat BYTE") print "Waveform format: %s" % do_query_string(":WAVeform:FORMat?")
# Display the waveform settings from preamble: wav_form_dict = {
0 : "BYTE", 1 : "WORD", 4 : "ASCii", } acq_type_dict = { 0 : "NORMal", 1 : "PEAK", 2 : "AVERage", 3 : "HRESolution", }
preamble_string = do_query_string(":WAVeform:PREamble?") (
wav_form, acq_type, wfmpts, avgcnt, x_increment, x_origin, x_reference, y_increment, y_origin, y_reference ) = string.split(preamble_string, ",")
print "Waveform format: %s" % wav_form_dict[int(wav_form)] print "Acquire type: %s" % acq_type_dict[int(acq_type)] print "Waveform points desired: %s" % wfmpts print "Waveform average count: %s" % avgcnt print "Waveform X increment: %s" % x_increment print "Waveform X origin: %s" % x_origin print "Waveform X reference: %s" % x_reference # Always 0. print "Waveform Y increment: %s" % y_increment print "Waveform Y origin: %s" % y_origin print "Waveform Y reference: %s" % y_reference
# Get numeric values for later calculations. x_increment = do_query_number(":WAVeform:XINCrement?") x_origin = do_query_number(":WAVeform:XORigin?") y_increment = do_query_number(":WAVeform:YINCrement?") y_origin = do_query_number(":WAVeform:YORigin?") y_reference = do_query_number(":WAVeform:YREFerence?")
# Get the waveform data.
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

sData = do_query_ieee_block(":WAVeform:DATA?")
# Unpack unsigned byte data. values = struct.unpack("%dB" % len(sData), sData) print "Number of data values: %d" % len(values)
# Save waveform data values to CSV file. f = open("waveform_data.csv", "w")
for i in xrange(0, len(values) - 1): time_val = x_origin + (i * x_increment) voltage = ((values[i] - y_reference) * y_increment) + y_origin f.write("%E, %f\n" % (time_val, voltage))
f.close() print "Waveform format BYTE data written to waveform_data.csv."

# ========================================================= # Send a command and check for errors: # ========================================================= def do_command(command, hide_params=False):
if hide_params: (header, data) = string.split(command, " ", 1) if debug: print "\nCmd = '%s'" % header
else: if debug: print "\nCmd = '%s'" % command
InfiniiVision.write("%s" % command)
if hide_params: check_instrument_errors(header)
else: check_instrument_errors(command)

# ========================================================= # Send a command and binary values and check for errors: # ========================================================= def do_command_ieee_block(command, values):
if debug: print "Cmb = '%s'" % command
InfiniiVision.write_binary_values("%s " % command, values, datatype='c' )
check_instrument_errors(command)

# ========================================================= # Send a query, check for errors, return string: # ========================================================= def do_query_string(query):
if debug: print "Qys = '%s'" % query
result = InfiniiVision.query("%s" % query)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1257

40 Programming Examples

1258

check_instrument_errors(query) return result
# ========================================================= # Send a query, check for errors, return floating-point value: # ========================================================= def do_query_number(query):
if debug: print "Qyn = '%s'" % query
results = InfiniiVision.query("%s" % query) check_instrument_errors(query) return float(results)
# ========================================================= # Send a query, check for errors, return binary values: # ========================================================= def do_query_ieee_block(query):
if debug: print "Qys = '%s'" % query
result = InfiniiVision.query_binary_values("%s" % query, datatype='s') check_instrument_errors(query) return result[0]
# ========================================================= # Check for instrument errors: # ========================================================= def check_instrument_errors(command):
while True: error_string = InfiniiVision.query(":SYSTem:ERRor?") if error_string: # If there is an error string value.
if error_string.find("+0,", 0, 3) == -1: # Not "No error".
print "ERROR: %s, command: '%s'" % (error_string, command) print "Exited because of error." sys.exit(1)
else: # "No error" break
else: # :SYSTem:ERRor? should always return string. print "ERROR: :SYSTem:ERRor? returned nothing, command: '%s'" % comma
nd print "Exited because of error." sys.exit(1)
# ========================================================= # Main program: # =========================================================
rm = visa.ResourceManager() InfiniiVision= rm.open_resource("TCPIP0::130.29.70.139::inst0::INSTR")
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40
InfiniiVision.timeout = 15000 InfiniiVision.clear() # Initialize the oscilloscope, capture data, and analyze. initialize() capture() analyze() print "End of program."

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1259

40 Programming Examples

VISA.NET Examples
These programming examples show how to use the VISA.NET drivers that come with Keysight IO Libraries Suite. · "VISA.NET Example in C#" on page 1260 · "VISA.NET Example in Visual Basic .NET" on page 1266 · "VISA.NET Example in IronPython" on page 1273
VISA.NET Example in C#
To compile and run this example in Microsoft Visual Studio 2013: 1 Open Visual Studio. 2 Choose FILE > New > Project.... 3 In the New Project dialog box, select .NET Framework 4.5.2. 4 Create a new Visual C#, Console Application project. 5 Cut-and-paste the code that follows into the C# source file. 6 Edit the program to use the VISA address of your oscilloscope. 7 Add a reference to the VISA.NET driver:
a Right-click the project you wish to modify (not the solution) in the Solution Explorer window of the Microsoft Visual Studio environment.
b Choose Add Reference.... c In the Reference Manager dialog box, under Assemblies, select Extensions. d In the "Targeting: .NET Framework 4.5.2" list, select the Ivi.Visa Assembly
check box; then, click OK. 8 Build and run the program. For more information, see the VISA.NET Help that comes with Keysight IO Libraries Suite.
/* * Keysight VISA.NET Example in C# * ------------------------------------------------------------------* This program illustrates a few commonly used programming * features of your Keysight InfiniiVision oscilloscope. * ------------------------------------------------------------------*/
using System; using System.IO; using System.Collections.Generic; using System.Text;
using Ivi.Visa; using Ivi.Visa.FormattedIO;

1260

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

namespace Example {
class Program {
static void Main(string[] args) {
// Change this variable to the address of your instrument string VISA_ADDRESS = "TCPIP0::141.121.230.6::inst0::INSTR";
// Create a connection (session) to the instrument IMessageBasedSession session; try {
session = GlobalResourceManager.Open(VISA_ADDRESS) as IMessageBasedSession;
} catch (NativeVisaException visaException) {
Console.WriteLine("Couldn't connect."); Console.WriteLine("Error is:\r\n{0}\r\n", visaException); Console.WriteLine("Press any key to exit..."); Console.ReadKey(); return; }
// Create a formatted I/O object which will help us format the // data we want to send/receive to/from the instrument MessageBasedFormattedIO myScope =
new MessageBasedFormattedIO(session);
// For Serial and TCP/IP socket connections enable the read // Termination Character, or read's will timeout if (session.ResourceName.Contains("ASRL") ||
session.ResourceName.Contains("SOCKET")) session.TerminationCharacterEnabled = true;
session.TimeoutMilliseconds = 20000;
// Initialize - start from a known state. // ============================================================== string strResults; FileStream fStream;
// Get and display the device's *IDN? string. myScope.WriteLine("*IDN?"); strResults = myScope.ReadLine(); Console.WriteLine("*IDN? result is: {0}", strResults);
// Clear status and load the default setup. myScope.WriteLine("*CLS"); myScope.WriteLine("*RST");
// Capture data. // ==============================================================

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1261

40 Programming Examples

1262

// Use auto-scale to automatically configure oscilloscope. myScope.WriteLine(":AUToscale");
// Set trigger mode (EDGE, PULSe, PATTern, etc., and input source. myScope.WriteLine(":TRIGger:MODE EDGE"); myScope.WriteLine(":TRIGger:MODE?"); strResults = myScope.ReadLine(); Console.WriteLine("Trigger mode: {0}", strResults);
// Set EDGE trigger parameters. myScope.WriteLine(":TRIGger:EDGE:SOURce CHANnel1"); myScope.WriteLine(":TRIGger:EDGE:SOURce?"); strResults = myScope.ReadLine(); Console.WriteLine("Trigger edge source: {0}", strResults);
myScope.WriteLine(":TRIGger:EDGE:LEVel 1.5"); myScope.WriteLine(":TRIGger:EDGE:LEVel?"); strResults = myScope.ReadLine(); Console.WriteLine("Trigger edge level: {0}", strResults);
myScope.WriteLine(":TRIGger:EDGE:SLOPe POSitive"); myScope.WriteLine(":TRIGger:EDGE:SLOPe?"); strResults = myScope.ReadLine(); Console.WriteLine("Trigger edge slope: {0}", strResults);
// Save oscilloscope configuration. byte[] ResultsArray; // Results array. int nLength; // Number of bytes returned from instrument. string strPath;
// Query and read setup string. myScope.WriteLine(":SYSTem:SETup?"); ResultsArray = myScope.ReadLineBinaryBlockOfByte(); nLength = ResultsArray.Length;
// Write setup string to file. strPath = "c:\\scope\\config\\setup.stp"; fStream = File.Open(strPath, FileMode.Create); fStream.Write(ResultsArray, 0, nLength); fStream.Close(); Console.WriteLine("Setup bytes saved: {0}", nLength);
// Change settings with individual commands:
// Set vertical scale and offset. myScope.WriteLine(":CHANnel1:SCALe 0.05"); myScope.WriteLine(":CHANnel1:SCALe?"); strResults = myScope.ReadLine(); Console.WriteLine("Channel 1 vertical scale: {0}", strResults);
myScope.WriteLine(":CHANnel1:OFFSet -1.5"); myScope.WriteLine(":CHANnel1:OFFSet?"); strResults = myScope.ReadLine(); Console.WriteLine("Channel 1 vertical offset: {0}", strResults);
// Set horizontal scale and offset. myScope.WriteLine(":TIMebase:SCALe 0.0002");
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

myScope.WriteLine(":TIMebase:SCALe?"); strResults = myScope.ReadLine(); Console.WriteLine("Timebase scale: {0}", strResults);
myScope.WriteLine(":TIMebase:POSition 0.0"); myScope.WriteLine(":TIMebase:POSition?"); strResults = myScope.ReadLine(); Console.WriteLine("Timebase position: {0}", strResults);
// Set the acquisition type (NORMal, PEAK, AVERage, or HRESolution ).
myScope.WriteLine(":ACQuire:TYPE NORMal"); myScope.WriteLine(":ACQuire:TYPE?"); strResults = myScope.ReadLine(); Console.WriteLine("Acquire type: {0}", strResults);
// Or, configure by loading a previously saved setup. byte[] DataArray; int nBytesWritten;
// Read setup string from file. strPath = "c:\\scope\\config\\setup.stp"; DataArray = File.ReadAllBytes(strPath); nBytesWritten = DataArray.Length;
// Restore setup string. myScope.Write(":SYSTem:SETup "); myScope.WriteBinary(DataArray); myScope.WriteLine(""); Console.WriteLine("Setup bytes restored: {0}", nBytesWritten);
// Capture an acquisition using :DIGitize. myScope.WriteLine(":DIGitize CHANnel1");
// Analyze the captured waveform. // ==============================================================
// Make a couple of measurements. // ----------------------------------------------------------myScope.WriteLine(":MEASure:SOURce CHANnel1"); myScope.WriteLine(":MEASure:SOURce?"); strResults = myScope.ReadLine(); Console.WriteLine("Measure source: {0}", strResults);
double fResult; myScope.WriteLine(":MEASure:FREQuency"); myScope.WriteLine(":MEASure:FREQuency?"); fResult = myScope.ReadLineDouble(); Console.WriteLine("Frequency: {0:F4} kHz", fResult / 1000);
myScope.WriteLine(":MEASure:VAMPlitude"); myScope.WriteLine(":MEASure:VAMPlitude?"); fResult = myScope.ReadLineDouble(); Console.WriteLine("Vertical amplitude: {0:F2} V", fResult);
// Download the screen image. // -----------------------------------------------------------

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1263

40 Programming Examples

1264

myScope.WriteLine(":HARDcopy:INKSaver OFF");
// Get the screen data. myScope.WriteLine(":DISPlay:DATA? PNG, COLor"); ResultsArray = myScope.ReadLineBinaryBlockOfByte(); nLength = ResultsArray.Length;
// Store the screen data to a file. strPath = "c:\\scope\\data\\screen.png"; fStream = File.Open(strPath, FileMode.Create); fStream.Write(ResultsArray, 0, nLength); fStream.Close(); Console.WriteLine("Screen image ({0} bytes) written to {1}",
nLength, strPath);
// Download waveform data. // -----------------------------------------------------------
// Set the waveform points mode. myScope.WriteLine(":WAVeform:POINts:MODE RAW"); myScope.WriteLine(":WAVeform:POINts:MODE?"); strResults = myScope.ReadLine(); Console.WriteLine("Waveform points mode: {0}", strResults);
// Get the number of waveform points available. myScope.WriteLine(":WAVeform:POINts?"); strResults = myScope.ReadLine(); Console.WriteLine("Waveform points available: {0}", strResults);
// Set the waveform source. myScope.WriteLine(":WAVeform:SOURce CHANnel1"); myScope.WriteLine(":WAVeform:SOURce?"); strResults = myScope.ReadLine(); Console.WriteLine("Waveform source: {0}", strResults);
// Choose the format of the data returned (WORD, BYTE, ASCII): myScope.WriteLine(":WAVeform:FORMat BYTE"); myScope.WriteLine(":WAVeform:FORMat?"); strResults = myScope.ReadLine(); Console.WriteLine("Waveform format: {0}", strResults);
// Display the waveform settings: double[] fResultsArray; myScope.WriteLine(":WAVeform:PREamble?"); fResultsArray = myScope.ReadLineListOfDouble();
double fFormat = fResultsArray[0]; if (fFormat == 0.0) {
Console.WriteLine("Waveform format: BYTE"); } else if (fFormat == 1.0) {
Console.WriteLine("Waveform format: WORD"); } else if (fFormat == 2.0) {
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

Console.WriteLine("Waveform format: ASCii"); }
double fType = fResultsArray[1]; if (fType == 0.0) {
Console.WriteLine("Acquire type: NORMal"); } else if (fType == 1.0) {
Console.WriteLine("Acquire type: PEAK"); } else if (fType == 2.0) {
Console.WriteLine("Acquire type: AVERage"); } else if (fType == 3.0) {
Console.WriteLine("Acquire type: HRESolution"); }
double fPoints = fResultsArray[2]; Console.WriteLine("Waveform points: {0:e}", fPoints);
double fCount = fResultsArray[3]; Console.WriteLine("Waveform average count: {0:e}", fCount);
double fXincrement = fResultsArray[4]; Console.WriteLine("Waveform X increment: {0:e}", fXincrement);
double fXorigin = fResultsArray[5]; Console.WriteLine("Waveform X origin: {0:e}", fXorigin);
double fXreference = fResultsArray[6]; Console.WriteLine("Waveform X reference: {0:e}", fXreference);
double fYincrement = fResultsArray[7]; Console.WriteLine("Waveform Y increment: {0:e}", fYincrement);
double fYorigin = fResultsArray[8]; Console.WriteLine("Waveform Y origin: {0:e}", fYorigin);
double fYreference = fResultsArray[9]; Console.WriteLine("Waveform Y reference: {0:e}", fYreference);
// Read waveform data. myScope.WriteLine(":WAVeform:DATA?"); ResultsArray = myScope.ReadLineBinaryBlockOfByte(); nLength = ResultsArray.Length; Console.WriteLine("Number of data values: {0}", nLength);
// Set up output file: strPath = "c:\\scope\\data\\waveform_data.csv"; if (File.Exists(strPath)) File.Delete(strPath);
// Open file for output. StreamWriter writer = File.CreateText(strPath);

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1265

40 Programming Examples

// Output waveform data in CSV format. for (int i = 0; i < nLength - 1; i++)
writer.WriteLine("{0:f9}, {1:f6}", fXorigin + ((float)i * fXincrement), (((float)ResultsArray[i] - fYreference) * fYincrement) + fYorigin);
// Close output file. writer.Close(); Console.WriteLine("Waveform format BYTE data written to {0}",
strPath);
// Close the connection to the instrument // -------------------------------------------------------------session.Dispose();
Console.WriteLine("Press any key to exit..."); Console.ReadKey();
} } }
VISA.NET Example in Visual Basic .NET
To compile and run this example in Microsoft Visual Studio 2013: 1 Open Visual Studio. 2 Choose FILE > New > Project.... 3 In the New Project dialog box, select .NET Framework 4.5.2. 4 Create a new Visual Basic, Console Application project. 5 Cut-and-paste the code that follows into the Visual Basic .NET source file. 6 Edit the program to use the VISA address of your oscilloscope. 7 Add a reference to the VISA.NET 3.0 driver:
a Right-click the project you wish to modify (not the solution) in the Solution Explorer window of the Microsoft Visual Studio environment.
b Choose Add Reference.... c In the Add Reference dialog, select the Browse tab, and navigate to the
ScpiNetDrivers folder. · Windows XP: C:\Documents and Settings\All Users\Agilent\Command
Expert\ScpiNetDrivers · Windows 7: C:\ProgramData\Agilent\Command Expert\ScpiNetDrivers d Select the .dll file for your oscilloscope, for example AgInfiniiVision2000X_01_20.dll; then, click OK. e Right-click the project you wish to modify (not the solution) in the Solution Explorer window of the Microsoft Visual Studio environment and choose

1266

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

Properties; then, select "InfiniiVision.ScpiNetInstrumentApp" as the Startup object. 8 Add a reference to the VISA.NET driver: a Right-click the project you wish to modify (not the solution) in the Solution Explorer window of the Microsoft Visual Studio environment. b Choose Add Reference.... c In the Reference Manager dialog box, under Assemblies, select Extensions. d In the "Targeting: .NET Framework 4.5.2" list, select the Ivi.Visa Assembly check box; then, click OK. 9 Specify the Startup object: a Right-click the project you wish to modify (not the solution) in the Solution Explorer window of the Microsoft Visual Studio environment. b Choose Properties. c In the Properties dialog box, under Application, select the Startup object: field and choose Sub Main. d Save your change and close the Properties dialog box. 10 Build and run the program.
For more information, see the VISA.NET driver help that comes with Keysight Command Expert.
' ' Keysight VISA.NET Example in VB.NET ' ------------------------------------------------------------------' This program illustrates a few commonly used programming ' features of your Keysight InfiniiVision oscilloscope. ' -------------------------------------------------------------------
Imports System Imports System.IO Imports System.Collections.Generic Imports System.Text
Imports Ivi.Visa Imports Ivi.Visa.FormattedIO

Namespace Example Class Program
Public Shared Sub Main(args As String()) ' Change this variable to the address of your instrument Dim VISA_ADDRESS As String = "TCPIP0::141.121.230.6::inst0::INSTR"
' Create a connection (session) to the instrument Dim session As IMessageBasedSession Try
session = TryCast(GlobalResourceManager.Open(VISA_ADDRESS), _ IMessageBasedSession)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1267

40 Programming Examples

1268

Catch visaException As NativeVisaException Console.WriteLine("Couldn't connect.") Console.WriteLine("Error is:" & vbCr & vbLf & "{0}" _ & vbCr & vbLf, visaException) Console.WriteLine("Press any key to exit...") Console.ReadKey() Return
End Try
' Create a formatted I/O object which will help us format the ' data we want to send/receive to/from the instrument Dim myScope As New MessageBasedFormattedIO(session)
' For Serial and TCP/IP socket connections enable the read ' Termination Character, or read's will timeout If session.ResourceName.Contains("ASRL") OrElse _
session.ResourceName.Contains("SOCKET") Then session.TerminationCharacterEnabled = True End If
session.TimeoutMilliseconds = 20000
' Initialize - start from a known state. ' ============================================================== Dim strResults As String Dim fStream As FileStream
' Get and display the device's *IDN? string. myScope.WriteLine("*IDN?") strResults = myScope.ReadLine() Console.WriteLine("*IDN? result is: {0}", strResults)
' Clear status and load the default setup. myScope.WriteLine("*CLS") myScope.WriteLine("*RST")
' Capture data. ' ============================================================== ' Use auto-scale to automatically configure oscilloscope. myScope.WriteLine(":AUToscale")
' Set trigger mode (EDGE, PULSe, PATTern, etc., and input source. myScope.WriteLine(":TRIGger:MODE EDGE") myScope.WriteLine(":TRIGger:MODE?") strResults = myScope.ReadLine() Console.WriteLine("Trigger mode: {0}", strResults)
' Set EDGE trigger parameters. myScope.WriteLine(":TRIGger:EDGE:SOURce CHANnel1") myScope.WriteLine(":TRIGger:EDGE:SOURce?") strResults = myScope.ReadLine() Console.WriteLine("Trigger edge source: {0}", strResults)
myScope.WriteLine(":TRIGger:EDGE:LEVel 1.5") myScope.WriteLine(":TRIGger:EDGE:LEVel?") strResults = myScope.ReadLine() Console.WriteLine("Trigger edge level: {0}", strResults)
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

myScope.WriteLine(":TRIGger:EDGE:SLOPe POSitive") myScope.WriteLine(":TRIGger:EDGE:SLOPe?") strResults = myScope.ReadLine() Console.WriteLine("Trigger edge slope: {0}", strResults)
' Save oscilloscope configuration. Dim ResultsArray As Byte() ' Results array. Dim nLength As Integer ' Number of bytes returned from instrument. Dim strPath As String
' Query and read setup string. myScope.WriteLine(":SYSTem:SETup?") ResultsArray = myScope.ReadLineBinaryBlockOfByte() nLength = ResultsArray.Length
' Write setup string to file. strPath = "c:\scope\config\setup.stp" fStream = File.Open(strPath, FileMode.Create) fStream.Write(ResultsArray, 0, nLength) fStream.Close() Console.WriteLine("Setup bytes saved: {0}", nLength)
' Change settings with individual commands:
' Set vertical scale and offset. myScope.WriteLine(":CHANnel1:SCALe 0.05") myScope.WriteLine(":CHANnel1:SCALe?") strResults = myScope.ReadLine() Console.WriteLine("Channel 1 vertical scale: {0}", strResults)
myScope.WriteLine(":CHANnel1:OFFSet -1.5") myScope.WriteLine(":CHANnel1:OFFSet?") strResults = myScope.ReadLine() Console.WriteLine("Channel 1 vertical offset: {0}", strResults)
' Set horizontal scale and offset. myScope.WriteLine(":TIMebase:SCALe 0.0002") myScope.WriteLine(":TIMebase:SCALe?") strResults = myScope.ReadLine() Console.WriteLine("Timebase scale: {0}", strResults)
myScope.WriteLine(":TIMebase:POSition 0.0") myScope.WriteLine(":TIMebase:POSition?") strResults = myScope.ReadLine() Console.WriteLine("Timebase position: {0}", strResults)
' Set the acquisition type (NORMal, PEAK, AVERage, or HRESolution) .
myScope.WriteLine(":ACQuire:TYPE NORMal") myScope.WriteLine(":ACQuire:TYPE?") strResults = myScope.ReadLine() Console.WriteLine("Acquire type: {0}", strResults)
' Or, configure by loading a previously saved setup.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1269

40 Programming Examples

1270

Dim DataArray As Byte() Dim nBytesWritten As Integer
' Read setup string from file. strPath = "c:\scope\config\setup.stp" DataArray = File.ReadAllBytes(strPath) nBytesWritten = DataArray.Length
' Restore setup string. myScope.Write(":SYSTem:SETup ") myScope.WriteBinary(DataArray) myScope.WriteLine("") Console.WriteLine("Setup bytes restored: {0}", nBytesWritten)
' Capture an acquisition using :DIGitize. myScope.WriteLine(":DIGitize CHANnel1")
' Analyze the captured waveform. ' ==============================================================
' Make a couple of measurements. ' ----------------------------------------------------------myScope.WriteLine(":MEASure:SOURce CHANnel1") myScope.WriteLine(":MEASure:SOURce?") strResults = myScope.ReadLine() Console.WriteLine("Measure source: {0}", strResults)
Dim fResult As Double myScope.WriteLine(":MEASure:FREQuency") myScope.WriteLine(":MEASure:FREQuency?") fResult = myScope.ReadLineDouble() Console.WriteLine("Frequency: {0:F4} kHz", fResult / 1000)
myScope.WriteLine(":MEASure:VAMPlitude") myScope.WriteLine(":MEASure:VAMPlitude?") fResult = myScope.ReadLineDouble() Console.WriteLine("Vertical amplitude: {0:F2} V", fResult)
' Download the screen image. ' ----------------------------------------------------------myScope.WriteLine(":HARDcopy:INKSaver OFF")
' Get the screen data. myScope.WriteLine(":DISPlay:DATA? PNG, COLor") ResultsArray = myScope.ReadLineBinaryBlockOfByte() nLength = ResultsArray.Length
' Store the screen data to a file. strPath = "c:\scope\data\screen.png" fStream = File.Open(strPath, FileMode.Create) fStream.Write(ResultsArray, 0, nLength) fStream.Close() Console.WriteLine("Screen image ({0} bytes) written to {1}", _
nLength, strPath)
' Download waveform data. ' -----------------------------------------------------------
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

' Set the waveform points mode. myScope.WriteLine(":WAVeform:POINts:MODE RAW") myScope.WriteLine(":WAVeform:POINts:MODE?") strResults = myScope.ReadLine() Console.WriteLine("Waveform points mode: {0}", strResults)
' Get the number of waveform points available. myScope.WriteLine(":WAVeform:POINts?") strResults = myScope.ReadLine() Console.WriteLine("Waveform points available: {0}", strResults)
' Set the waveform source. myScope.WriteLine(":WAVeform:SOURce CHANnel1") myScope.WriteLine(":WAVeform:SOURce?") strResults = myScope.ReadLine() Console.WriteLine("Waveform source: {0}", strResults)
' Choose the format of the data returned (WORD, BYTE, ASCII): myScope.WriteLine(":WAVeform:FORMat BYTE") myScope.WriteLine(":WAVeform:FORMat?") strResults = myScope.ReadLine() Console.WriteLine("Waveform format: {0}", strResults)
' Display the waveform settings: Dim fResultsArray As Double() myScope.WriteLine(":WAVeform:PREamble?") fResultsArray = myScope.ReadLineListOfDouble()
Dim fFormat As Double = fResultsArray(0) If fFormat = 0.0 Then
Console.WriteLine("Waveform format: BYTE") ElseIf fFormat = 1.0 Then
Console.WriteLine("Waveform format: WORD") ElseIf fFormat = 2.0 Then
Console.WriteLine("Waveform format: ASCii") End If
Dim fType As Double = fResultsArray(1) If fType = 0.0 Then
Console.WriteLine("Acquire type: NORMal") ElseIf fType = 1.0 Then
Console.WriteLine("Acquire type: PEAK") ElseIf fType = 2.0 Then
Console.WriteLine("Acquire type: AVERage") ElseIf fType = 3.0 Then
Console.WriteLine("Acquire type: HRESolution") End If
Dim fPoints As Double = fResultsArray(2) Console.WriteLine("Waveform points: {0:e}", fPoints)
Dim fCount As Double = fResultsArray(3) Console.WriteLine("Waveform average count: {0:e}", fCount)
Dim fXincrement As Double = fResultsArray(4) Console.WriteLine("Waveform X increment: {0:e}", fXincrement)

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1271

40 Programming Examples
Dim fXorigin As Double = fResultsArray(5) Console.WriteLine("Waveform X origin: {0:e}", fXorigin)
Dim fXreference As Double = fResultsArray(6) Console.WriteLine("Waveform X reference: {0:e}", fXreference)
Dim fYincrement As Double = fResultsArray(7) Console.WriteLine("Waveform Y increment: {0:e}", fYincrement)
Dim fYorigin As Double = fResultsArray(8) Console.WriteLine("Waveform Y origin: {0:e}", fYorigin)
Dim fYreference As Double = fResultsArray(9) Console.WriteLine("Waveform Y reference: {0:e}", fYreference)
' Read waveform data. myScope.WriteLine(":WAVeform:DATA?") ResultsArray = myScope.ReadLineBinaryBlockOfByte() nLength = ResultsArray.Length Console.WriteLine("Number of data values: {0}", nLength)
' Set up output file: strPath = "c:\scope\data\waveform_data.csv" If File.Exists(strPath) Then
File.Delete(strPath) End If
' Open file for output. Dim writer As StreamWriter = File.CreateText(strPath)
' Output waveform data in CSV format. For i As Integer = 0 To nLength - 2
writer.WriteLine("{0:f9}, {1:f6}", _ fXorigin + (CSng(i) * fXincrement), _ ((CSng(ResultsArray(i)) - fYreference) _ * fYincrement) + fYorigin)
Next
' Close output file. writer.Close() Console.WriteLine("Waveform format BYTE data written to {0}", _
strPath)
' Close the connection to the instrument ' -------------------------------------------------------------session.Dispose()
Console.WriteLine("Press any key to exit...") Console.ReadKey()
End Sub End Class End Namespace

1272

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

VISA.NET Example in IronPython
You can also control Keysight oscilloscopes using the VISA.NET library and Python programming language on the .NET platform using: · IronPython (http://ironpython.net/) which is an implementation of the Python
programming language running under .NET.
To run this example with IronPython: 1 Cut-and-paste the code that follows into a file named "example.py". 2 Edit the program to use the address of your oscilloscope. 3 If the IronPython "ipy.exe" can be found via your PATH environment variable,
open a Command Prompt window; then, change to the folder that contains the "example.py" file, and enter:
ipy example.py
# # Keysight VISA.NET Example in IronPython # ********************************************************* # This program illustrates a few commonly used programming # features of your Keysight InfiniiVision oscilloscope. # *********************************************************
# Import Python modules. # --------------------------------------------------------import sys sys.path.append("C:\Python27\Lib") # Python Standard Library. import string
# Import .NET modules. # --------------------------------------------------------from System import * from System.IO import * from System.Text import * from System.Runtime.InteropServices import * import clr clr.AddReference("Ivi.Visa") from Ivi.Visa import * from Ivi.Visa.FormattedIO import *

# ========================================================= # Initialize: # ========================================================= def initialize():
# Get and display the device's *IDN? string. myScope.WriteLine("*IDN?") idn_string = myScope.ReadLine() print "Identification string '%s'" % idn_string
# Clear status and load the default setup. myScope.WriteLine("*CLS") myScope.WriteLine("*RST")
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1273

40 Programming Examples

1274

# ========================================================= # Capture: # ========================================================= def capture():
# Use auto-scale to automatically set up oscilloscope. print "Autoscale." myScope.WriteLine(":AUToscale")
# Set trigger mode. myScope.WriteLine(":TRIGger:MODE EDGE") myScope.WriteLine(":TRIGger:MODE?") qresult = myScope.ReadLine() print "Trigger mode: %s" % qresult
# Set EDGE trigger parameters. myScope.WriteLine(":TRIGger:EDGE:SOURce CHANnel1") myScope.WriteLine(":TRIGger:EDGE:SOURce?") qresult = myScope.ReadLine() print "Trigger edge source: %s" % qresult
myScope.WriteLine(":TRIGger:EDGE:LEVel 1.5") myScope.WriteLine(":TRIGger:EDGE:LEVel?") qresult = myScope.ReadLine() print "Trigger edge level: %s" % qresult
myScope.WriteLine(":TRIGger:EDGE:SLOPe POSitive") myScope.WriteLine(":TRIGger:EDGE:SLOPe?") qresult = myScope.ReadLine() print "Trigger edge slope: %s" % qresult
# Save oscilloscope setup to file. myScope.WriteLine(":SYSTem:SETup?") setup_bytes = myScope.ReadLineBinaryBlockOfByte() File.WriteAllBytes("setup.stp", setup_bytes) print "Setup bytes saved: %d" % len(setup_bytes)
# Change settings with individual commands:
# Set vertical scale and offset. myScope.WriteLine(":CHANnel1:SCALe 0.05") myScope.WriteLine(":CHANnel1:SCALe?") qresult = myScope.ReadLine() print "Channel 1 vertical scale: %s" % qresult
myScope.WriteLine(":CHANnel1:OFFSet -1.5") myScope.WriteLine(":CHANnel1:OFFSet?") qresult = myScope.ReadLine() print "Channel 1 offset: %s" % qresult
# Set horizontal scale and offset. myScope.WriteLine(":TIMebase:SCALe 0.0002") myScope.WriteLine(":TIMebase:SCALe?") qresult = myScope.ReadLine() print "Timebase scale: %s" % qresult
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

myScope.WriteLine(":TIMebase:POSition 0.0") myScope.WriteLine(":TIMebase:POSition?") qresult = myScope.ReadLine() print "Timebase position: %s" % qresult
# Set the acquisition type. myScope.WriteLine(":ACQuire:TYPE NORMal") myScope.WriteLine(":ACQuire:TYPE?") qresult = myScope.ReadLine() print "Acquire type: %s" % qresult
# Or, configure by loading a previously saved setup.
# Read setup string from file. setup_bytes = File.ReadAllBytes("setup.stp")
# Restore setup string. myScope.Write(":SYSTem:SETup ") write_binary = myScope.WriteBinary.Overloads[Array[Byte]] write_binary(setup_bytes) myScope.WriteLine("") print "Setup bytes restored: %d" % len(setup_bytes)
# Capture an acquisition using :DIGitize. myScope.WriteLine(":DIGitize CHANnel1")
# ========================================================= # Analyze: # ========================================================= def analyze():
# Make measurements. # -------------------------------------------------------myScope.WriteLine(":MEASure:SOURce CHANnel1") myScope.WriteLine(":MEASure:SOURce?") qresult = myScope.ReadLine() print "Measure source: %s" % qresult
myScope.WriteLine(":MEASure:FREQuency") myScope.WriteLine(":MEASure:FREQuency?") qresult = myScope.ReadLineDouble() print "Measured frequency on channel 1: %f" % qresult
myScope.WriteLine(":MEASure:VAMPlitude") myScope.WriteLine(":MEASure:VAMPlitude?") qresult = myScope.ReadLineDouble() print "Measured vertical amplitude on channel 1: %f" % qresult
# Download the screen image. # -------------------------------------------------------myScope.WriteLine(":HARDcopy:INKSaver OFF")
# Get the screen data. myScope.WriteLine(":DISPlay:DATA? PNG, COLor") image_bytes = myScope.ReadLineBinaryBlockOfByte()
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1275

40 Programming Examples

1276

nLength = len(image_bytes) fStream = File.Open("screen_image.png", FileMode.Create) fStream.Write(image_bytes, 0, nLength) fStream.Close() print "Screen image written to screen_image.png."
# Download waveform data. # --------------------------------------------------------
# Set the waveform points mode. myScope.WriteLine(":WAVeform:POINts:MODE RAW") myScope.WriteLine(":WAVeform:POINts:MODE?") qresult = myScope.ReadLine() print "Waveform points mode: %s" % qresult
# Get the number of waveform points available. myScope.WriteLine(":WAVeform:POINts?") qresult = myScope.ReadLine() print "Waveform points available: %s" % qresult
# Set the waveform source. myScope.WriteLine(":WAVeform:SOURce CHANnel1") myScope.WriteLine(":WAVeform:SOURce?") qresult = myScope.ReadLine() print "Waveform source: %s" % qresult
# Choose the format of the data returned: myScope.WriteLine(":WAVeform:FORMat BYTE") myScope.WriteLine(":WAVeform:FORMat?") qresult = myScope.ReadLine() print "Waveform format: %s" % qresult
# Display the waveform settings from preamble: wav_form_dict = {
0 : "BYTE", 1 : "WORD", 4 : "ASCii", } acq_type_dict = { 0 : "NORMal", 1 : "PEAK", 2 : "AVERage", 3 : "HRESolution", }
myScope.WriteLine(":WAVeform:PREamble?") (
wav_form, acq_type, wfmpts, avgcnt, x_increment, x_origin, x_reference, y_increment, y_origin, y_reference ) = string.split(myScope.ReadLine(), ",")
print "Waveform format: %s" % wav_form_dict[int(wav_form)] print "Acquire type: %s" % acq_type_dict[int(acq_type)] print "Waveform points desired: %s" % wfmpts print "Waveform average count: %s" % avgcnt print "Waveform X increment: %s" % x_increment print "Waveform X origin: %s" % x_origin
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

print "Waveform X reference: %s" % x_reference print "Waveform Y increment: %s" % y_increment print "Waveform Y origin: %s" % y_origin print "Waveform Y reference: %s" % y_reference

# Always 0.

# Get numeric values for later calculations. myScope.WriteLine(":WAVeform:XINCrement?") x_increment = myScope.ReadLineDouble() myScope.WriteLine(":WAVeform:XORigin?") x_origin = myScope.ReadLineDouble() myScope.WriteLine(":WAVeform:YINCrement?") y_increment = myScope.ReadLineDouble() myScope.WriteLine(":WAVeform:YORigin?") y_origin = myScope.ReadLineDouble() myScope.WriteLine(":WAVeform:YREFerence?") y_reference = myScope.ReadLineDouble()

# Get the waveform data. myScope.WriteLine(":WAVeform:DATA?") data_bytes = myScope.ReadLineBinaryBlockOfByte() nLength = len(data_bytes) print "Number of data values: %d" % nLength

# Open file for output. strPath = "waveform_data.csv" writer = File.CreateText(strPath)

# Output waveform data in CSV format. for i in xrange(0, nLength - 1):
time_val = x_origin + i * x_increment voltage = (data_bytes[i] - y_reference) * y_increment + y_origin writer.WriteLine("%E, %f" % (time_val, voltage))

# Close output file. writer.Close() print "Waveform format BYTE data written to %s." % strPath

# ========================================================= # Main program: # ========================================================= addr = "TCPIP0::141.121.230.6::inst0::INSTR" session = GlobalResourceManager.Open(addr) session.TimeoutMilliseconds = 20000 myScope = MessageBasedFormattedIO(session)
# Initialize the oscilloscope, capture data, and analyze. initialize() capture() analyze()
# Close the connection to the instrument session.Dispose() print "End of program."
# Wait for a key press before exiting.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1277

40 Programming Examples
print "Press any key to exit..." Console.ReadKey(True)

1278

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

SICL Examples

· "SICL Example in C" on page 1279 · "SICL Example in Visual Basic" on page 1288

SICL Example in C
To compile and run this example in Microsoft Visual Studio 2008: 1 Open Visual Studio. 2 Create a new Visual C++, Win32, Win32 Console Application project. 3 In the Win32 Application Wizard, click Next >. Then, check Empty project, and
click Finish. 4 Cut-and-paste the code that follows into a file named "example.c" in the
project directory. 5 In Visual Studio 2008, right-click the Source Files folder, choose Add > Add
Existing Item..., select the example.c file, and click Add. 6 Edit the program to use the SICL address of your oscilloscope. 7 Choose Project > Properties.... In the Property Pages dialog, update these project
settings: a Under Configuration Properties, Linker, Input, add "sicl32.lib" to the
Additional Dependencies field. b Under Configuration Properties, C/C++, Code Generation, select
Multi-threaded DLL for the Runtime Library field. c Click OK to close the Property Pages dialog. 8 Add the include files and library files search paths: a Choose Tools > Options.... b In the Options dialog, select VC++ Directories under Projects and Solutions. c Show directories for Include files, and add the include directory (for example,
Program Files\Agilent\IO Libraries Suite\include). d Show directories for Library files, and add the library files directory (for
example, Program Files\Agilent\IO Libraries Suite\lib). e Click OK to close the Options dialog. 9 Build and run the program.

/* * Keysight SICL Example in C * -----------------------------------------------------------------* This program illustrates a few commonly-used programming * features of your Keysight oscilloscope. */

#include <stdio.h>

/* For printf(). */

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1279

40 Programming Examples

1280

#include <string.h> #include <time.h> #include <sicl.h>

/* For strcpy(), strcat(). */ /* For clock(). */ /* Keysight SICL routines. */

#define SICL_ADDRESS #define TIMEOUT #define IEEEBLOCK_SPACE

"usb0[2391::6054::US50210029::0]" 5000 100000

/* Function prototypes */ void initialize(void); void capture(void); void analyze(void);

/* Initialize to known state. */ /* Capture the waveform. */ /* Analyze the captured waveform. */

void do_command(char *command);

/* Send command. */

int do_command_ieeeblock(char *command); /* Command w/IEEE block. */

void do_query_string(char *query);

/* Query for string. */

void do_query_number(char *query);

/* Query for number. */

void do_query_numbers(char *query); /* Query for numbers. */

int do_query_ieeeblock(char *query); /* Query for IEEE block. */

void check_instrument_errors();

/* Check for inst errors. */

/* Global variables */

INST id;

/* Device session ID. */

char str_result[256] = {0};

/* Result from do_query_string(). */

double num_result;

/* Result from do_query_number(). */

unsigned char ieeeblock_data[IEEEBLOCK_SPACE]; /* Result from

do_query_ieeeblock(). */

double dbl_results[10];

/* Result from do_query_numbers(). */

/* Main Program * --------------------------------------------------------------- */
void main(void) {
/* Install a default SICL error handler that logs an error message * and exits. On Windows 98SE or Windows Me, view messages with * the SICL Message Viewer. For Windows 2000 or XP, use the Event * Viewer. */
ionerror(I_ERROR_EXIT);

/* Open a device session using the SICL_ADDRESS */ id = iopen(SICL_ADDRESS);

if (id == 0) {
printf ("Oscilloscope iopen failed!\n"); } else {
printf ("Oscilloscope session opened!\n"); }

/* Initialize - start from a known state. */ initialize();

/* Capture data. */ capture();

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

/* Analyze the captured waveform. */ analyze();
/* Close the device session to the instrument. */ iclose(id); printf ("Program execution is complete...\n");
/* For WIN16 programs, call _siclcleanup before exiting to release * resources allocated by SICL for this application. This call is * a no-op for WIN32 programs. */
_siclcleanup(); }
/* Initialize the oscilloscope to a known state. * --------------------------------------------------------------- */
void initialize (void) {
/* Set the I/O timeout value for this session to 5 seconds. */ itimeout(id, TIMEOUT);
/* Clear the interface. */ iclear(id);
/* Get and display the device's *IDN? string. */ do_query_string("*IDN?"); printf("Oscilloscope *IDN? string: %s\n", str_result);
/* Clear status and load the default setup. */ do_command("*CLS"); do_command("*RST"); }
/* Capture the waveform. * --------------------------------------------------------------- */
void capture (void) {
int num_bytes; FILE *fp;
/* Use auto-scale to automatically configure oscilloscope. * ------------------------------------------------------------- */
do_command(":AUToscale");
/* Set trigger mode (EDGE, PULSe, PATTern, etc., and input source. */ do_command(":TRIGger:MODE EDGE"); do_query_string(":TRIGger:MODE?"); printf("Trigger mode: %s\n", str_result);
/* Set EDGE trigger parameters. */ do_command(":TRIGger:EDGE:SOURce CHANnel1"); do_query_string(":TRIGger:EDGE:SOURce?"); printf("Trigger edge source: %s\n", str_result);
do_command(":TRIGger:EDGE:LEVel 1.5"); do_query_string(":TRIGger:EDGE:LEVel?");

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1281

40 Programming Examples

1282

printf("Trigger edge level: %s\n", str_result);
do_command(":TRIGger:EDGE:SLOPe POSitive"); do_query_string(":TRIGger:EDGE:SLOPe?"); printf("Trigger edge slope: %s\n", str_result);
/* Save oscilloscope configuration. * ------------------------------------------------------------- */
/* Read system setup. */ num_bytes = do_query_ieeeblock(":SYSTem:SETup?"); printf("Read setup string query (%d bytes).\n", num_bytes);
/* Write setup string to file. */ fp = fopen ("c:\\scope\\config\\setup.stp", "wb"); num_bytes = fwrite(ieeeblock_data, sizeof(unsigned char), num_bytes,
fp); fclose (fp); printf("Wrote setup string (%d bytes) to ", num_bytes); printf("c:\\scope\\config\\setup.stp.\n");
/* Change settings with individual commands: * ------------------------------------------------------------- */
/* Set vertical scale and offset. */ do_command(":CHANnel1:SCALe 0.05"); do_query_string(":CHANnel1:SCALe?"); printf("Channel 1 vertical scale: %s\n", str_result);
do_command(":CHANnel1:OFFSet -1.5"); do_query_string(":CHANnel1:OFFSet?"); printf("Channel 1 offset: %s\n", str_result);
/* Set horizontal scale and position. */ do_command(":TIMebase:SCALe 0.0002"); do_query_string(":TIMebase:SCALe?"); printf("Timebase scale: %s\n", str_result);
do_command(":TIMebase:POSition 0.0"); do_query_string(":TIMebase:POSition?"); printf("Timebase position: %s\n", str_result);
/* Set the acquisition type (NORMal, PEAK, AVERage, or HRESolution). * /
do_command(":ACQuire:TYPE NORMal"); do_query_string(":ACQuire:TYPE?"); printf("Acquire type: %s\n", str_result);
/* Or, configure by loading a previously saved setup. * ------------------------------------------------------------- */
/* Read setup string from file. */ fp = fopen ("c:\\scope\\config\\setup.stp", "rb"); num_bytes = fread (ieeeblock_data, sizeof(unsigned char),
IEEEBLOCK_SPACE, fp); fclose (fp); printf("Read setup string (%d bytes) from file ", num_bytes);
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

printf("c:\\scope\\config\\setup.stp.\n");

/* Restore setup string. */ num_bytes = do_command_ieeeblock(":SYSTem:SETup", num_bytes); printf("Restored setup string (%d bytes).\n", num_bytes);

/* Capture an acquisition using :DIGitize. * ------------------------------------------------------------- */
do_command(":DIGitize CHANnel1"); }

/* Analyze the captured waveform. * --------------------------------------------------------------- */
void analyze (void) {
double wav_format; double acq_type; double wav_points; double avg_count; double x_increment; double x_origin; double x_reference; double y_increment; double y_origin; double y_reference;

FILE *fp; int num_bytes; int i;

/* Number of bytes returned from instrument. */

/* Make a couple of measurements. * ------------------------------------------------------------- */
do_command(":MEASure:SOURce CHANnel1"); do_query_string(":MEASure:SOURce?"); printf("Measure source: %s\n", str_result);

do_command(":MEASure:FREQuency"); do_query_number(":MEASure:FREQuency?"); printf("Frequency: %.4f kHz\n", num_result / 1000);

do_command(":MEASure:VAMPlitude"); do_query_number(":MEASure:VAMPlitude?"); printf("Vertical amplitude: %.2f V\n", num_result);

/* Download the screen image. * ------------------------------------------------------------- */
do_command(":HARDcopy:INKSaver OFF");

/* Read screen image. */ num_bytes = do_query_ieeeblock(":DISPlay:DATA? PNG, COLor"); printf("Screen image bytes: %d\n", num_bytes);

/* Write screen image bytes to file. */ fp = fopen ("c:\\scope\\data\\screen.png", "wb"); num_bytes = fwrite(ieeeblock_data, sizeof(unsigned char), num_bytes,
fp); fclose (fp);

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1283

40 Programming Examples

1284

printf("Wrote screen image (%d bytes) to ", num_bytes); printf("c:\\scope\\data\\screen.png.\n");
/* Download waveform data. * ------------------------------------------------------------- */
/* Set the waveform points mode. */ do_command(":WAVeform:POINts:MODE RAW"); do_query_string(":WAVeform:POINts:MODE?"); printf("Waveform points mode: %s\n", str_result);
/* Get the number of waveform points available. */ do_command(":WAVeform:POINts 10240"); do_query_string(":WAVeform:POINts?"); printf("Waveform points available: %s\n", str_result);
/* Set the waveform source. */ do_command(":WAVeform:SOURce CHANnel1"); do_query_string(":WAVeform:SOURce?"); printf("Waveform source: %s\n", str_result);
/* Choose the format of the data returned (WORD, BYTE, ASCII): */ do_command(":WAVeform:FORMat BYTE"); do_query_string(":WAVeform:FORMat?"); printf("Waveform format: %s\n", str_result);
/* Display the waveform settings: */ do_query_numbers(":WAVeform:PREamble?");
wav_format = dbl_results[0]; if (wav_format == 0.0) {
printf("Waveform format: BYTE\n"); } else if (wav_format == 1.0) {
printf("Waveform format: WORD\n"); } else if (wav_format == 2.0) {
printf("Waveform format: ASCii\n"); }
acq_type = dbl_results[1]; if (acq_type == 0.0) {
printf("Acquire type: NORMal\n"); } else if (acq_type == 1.0) {
printf("Acquire type: PEAK\n"); } else if (acq_type == 2.0) {
printf("Acquire type: AVERage\n"); } else if (acq_type == 3.0)
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

{ printf("Acquire type: HRESolution\n");
}
wav_points = dbl_results[2]; printf("Waveform points: %e\n", wav_points);
avg_count = dbl_results[3]; printf("Waveform average count: %e\n", avg_count);
x_increment = dbl_results[4]; printf("Waveform X increment: %e\n", x_increment);
x_origin = dbl_results[5]; printf("Waveform X origin: %e\n", x_origin);
x_reference = dbl_results[6]; printf("Waveform X reference: %e\n", x_reference);
y_increment = dbl_results[7]; printf("Waveform Y increment: %e\n", y_increment);
y_origin = dbl_results[8]; printf("Waveform Y origin: %e\n", y_origin);
y_reference = dbl_results[9]; printf("Waveform Y reference: %e\n", y_reference);
/* Read waveform data. */ num_bytes = do_query_ieeeblock(":WAVeform:DATA?"); printf("Number of data values: %d\n", num_bytes);
/* Open file for output. */ fp = fopen("c:\\scope\\data\\waveform_data.csv", "wb");
/* Output waveform data in CSV format. */ for (i = 0; i < num_bytes - 1; i++) {
/* Write time value, voltage value. */ fprintf(fp, "%9f, %6f\n",
x_origin + ((float)i * x_increment), (((float)ieeeblock_data[i] - y_reference) * y_increment) + y_origin); }
/* Close output file. */ fclose(fp); printf("Waveform format BYTE data written to "); printf("c:\\scope\\data\\waveform_data.csv.\n");
}
/* Send a command to the instrument. * --------------------------------------------------------------- */
void do_command(command) char *command; {
char message[80];

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1285

40 Programming Examples

1286

strcpy(message, command); strcat(message, "\n"); iprintf(id, message);
check_instrument_errors(); }
/* Command with IEEE definite-length block. * --------------------------------------------------------------- */
int do_command_ieeeblock(command, num_bytes) char *command; int num_bytes; {
char message[80]; int data_length;
strcpy(message, command); strcat(message, " #8%08d"); iprintf(id, message, num_bytes); ifwrite(id, ieeeblock_data, num_bytes, 1, &data_length);
check_instrument_errors();
return(data_length); }
/* Query for a string result. * --------------------------------------------------------------- */
void do_query_string(query) char *query; {
char message[80];
strcpy(message, query); strcat(message, "\n"); iprintf(id, message);
iscanf(id, "%t\n", str_result);
check_instrument_errors(); }
/* Query for a number result. * --------------------------------------------------------------- */
void do_query_number(query) char *query; {
char message[80];
strcpy(message, query); strcat(message, "\n"); iprintf(id, message);
iscanf(id, "%lf", &num_result);
check_instrument_errors();
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

}
/* Query for numbers result. * --------------------------------------------------------------- */
void do_query_numbers(query) char *query; {
char message[80];
strcpy(message, query); strcat(message, "\n"); iprintf(id, message);
iscanf(id, "%,10lf\n", dbl_results);
check_instrument_errors(); }
/* Query for an IEEE definite-length block result. * --------------------------------------------------------------- */
int do_query_ieeeblock(query) char *query; {
char message[80]; int data_length;
strcpy(message, query); strcat(message, "\n"); iprintf(id, message);
data_length = IEEEBLOCK_SPACE; iscanf(id, "%#b", &data_length, ieeeblock_data);
if (data_length == IEEEBLOCK_SPACE ) {
printf("IEEE block buffer full: "); printf("May not have received all data.\n"); }
check_instrument_errors();
return(data_length); }
/* Check for instrument errors. * --------------------------------------------------------------- */
void check_instrument_errors() {
char str_err_val[256] = {0}; char str_out[800] = "";
ipromptf(id, ":SYSTem:ERRor?\n", "%t", str_err_val); while(strncmp(str_err_val, "+0,No error", 3) != 0 ) {
strcat(str_out, ", "); strcat(str_out, str_err_val); ipromptf(id, ":SYSTem:ERRor?\n", "%t", str_err_val);

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1287

40 Programming Examples

}
if (strcmp(str_out, "") != 0) {
printf("INST Error%s\n", str_out); iflush(id, I_BUF_READ | I_BUF_WRITE); } }
SICL Example in Visual Basic
To run this example in Visual Basic for Applications: 1 Start the application that provides Visual Basic for Applications (for example,
Microsoft Excel). 2 Press ALT+F11 to launch the Visual Basic editor. 3 Add the sicl32.bas file to your project:
a Choose File > Import File.... b Navigate to the header file, sicl32.bas (installed with Keysight IO Libraries
Suite and found in the Program Files\Agilent\IO Libraries Suite\include directory), select it, and click Open. 4 Choose Insert > Module. 5 Cut-and-paste the code that follows into the editor. 6 Edit the program to use the SICL address of your oscilloscope, and save the changes. 7 Run the program.
' ' Keysight SICL Example in Visual Basic ' ------------------------------------------------------------------' This program illustrates a few commonly-used programming ' features of your Keysight oscilloscope. ' -------------------------------------------------------------------
Option Explicit
Public id As Integer ' Session to instrument.
' Declare variables to hold numeric values returned by ' ivscanf/ifread. Public dblQueryResult As Double Public Const ByteArraySize = 5000000 Public retCount As Long Public byteArray(ByteArraySize) As Byte
' Declare fixed length string variable to hold string value returned ' by ivscanf. Public strQueryResult As String * 200
' For Sleep subroutine.

1288

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
' ' Main Program ' -------------------------------------------------------------------
Sub Main()
On Error GoTo ErrorHandler
' Open a device session using the SICL_ADDRESS. id = iopen("usb0[2391::6054::US50210029::0]") Call itimeout(id, 5000)
' Initialize - start from a known state. Initialize
' Capture data. Capture
' Analyze the captured waveform. Analyze
' Close the vi session and the resource manager session. Call iclose(id)
Exit Sub
ErrorHandler:
MsgBox "*** Error : " + Error, vbExclamation End
End Sub
' ' Initialize the oscilloscope to a known state. ' -------------------------------------------------------------------
Private Sub Initialize()
On Error GoTo ErrorHandler
' Clear the interface. Call iclear(id)
' Get and display the device's *IDN? string. strQueryResult = DoQueryString("*IDN?") MsgBox "Result is: " + RTrim(strQueryResult), vbOKOnly, "*IDN? Result"
' Clear status and load the default setup. DoCommand "*CLS" DoCommand "*RST"
Exit Sub
ErrorHandler:

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1289

40 Programming Examples

1290

MsgBox "*** Error : " + Error, vbExclamation End
End Sub
' ' Capture the waveform. ' -------------------------------------------------------------------
Private Sub Capture()
On Error GoTo ErrorHandler
' Use auto-scale to automatically configure oscilloscope. ' ----------------------------------------------------------------DoCommand ":AUToscale"
' Set trigger mode (EDGE, PULSe, PATTern, etc., and input source. DoCommand ":TRIGger:MODE EDGE" Debug.Print "Trigger mode: " + _
DoQueryString(":TRIGger:MODE?")
' Set EDGE trigger parameters. DoCommand ":TRIGger:EDGE:SOURce CHANnel1" Debug.Print "Trigger edge source: " + _
DoQueryString(":TRIGger:EDGE:SOURce?")
DoCommand ":TRIGger:EDGE:LEVel 1.5" Debug.Print "Trigger edge level: " + _
DoQueryString(":TRIGger:EDGE:LEVel?")
DoCommand ":TRIGger:EDGE:SLOPe POSitive" Debug.Print "Trigger edge slope: " + _
DoQueryString(":TRIGger:EDGE:SLOPe?")
' Save oscilloscope configuration. ' ----------------------------------------------------------------Dim lngSetupStringSize As Long lngSetupStringSize = DoQueryIEEEBlock_Bytes(":SYSTem:SETup?") Debug.Print "Setup bytes saved: " + CStr(lngSetupStringSize)
' Output setup string to a file: Dim strPath As String strPath = "c:\scope\config\setup.dat" If Len(Dir(strPath)) Then
Kill strPath ' Remove file if it exists. End If
' Open file for output. Dim hFile As Long hFile = FreeFile Open strPath For Binary Access Write Lock Write As hFile Dim lngI As Long For lngI = 0 To lngSetupStringSize - 1
Put hFile, , byteArray(lngI) ' Write data. Next lngI
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

Close hFile ' Close file.
' Change settings with individual commands: ' -----------------------------------------------------------------
' Set vertical scale and offset. DoCommand ":CHANnel1:SCALe 0.05" Debug.Print "Channel 1 vertical scale: " + _
DoQueryString(":CHANnel1:SCALe?")
DoCommand ":CHANnel1:OFFSet -1.5" Debug.Print "Channel 1 vertical offset: " + _
DoQueryString(":CHANnel1:OFFSet?")
' Set horizontal scale and position. DoCommand ":TIMebase:SCALe 0.0002" Debug.Print "Timebase scale: " + _
DoQueryString(":TIMebase:SCALe?")
DoCommand ":TIMebase:POSition 0.0" Debug.Print "Timebase position: " + _
DoQueryString(":TIMebase:POSition?")
' Set the acquisition type (NORMal, PEAK, AVERage, or HRESolution). DoCommand ":ACQuire:TYPE NORMal" Debug.Print "Acquire type: " + _
DoQueryString(":ACQuire:TYPE?")
' Or, configure by loading a previously saved setup. ' ----------------------------------------------------------------strPath = "c:\scope\config\setup.dat" Open strPath For Binary Access Read As hFile ' Open file for input. Dim lngSetupFileSize As Long lngSetupFileSize = LOF(hFile) ' Length of file. Get hFile, , byteArray ' Read data. Close hFile ' Close file. ' Write setup string back to oscilloscope using ":SYSTem:SETup" ' command: Dim lngRestored As Long lngRestored = DoCommandIEEEBlock(":SYSTem:SETup", lngSetupFileSize) Debug.Print "Setup bytes restored: " + CStr(lngRestored)
' Capture an acquisition using :DIGitize. ' ----------------------------------------------------------------DoCommand ":DIGitize CHANnel1"
Exit Sub
ErrorHandler:
MsgBox "*** Error : " + Error, vbExclamation End
End Sub
' ' Analyze the captured waveform.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1291

40 Programming Examples

1292

' -------------------------------------------------------------------
Private Sub Analyze()
On Error GoTo ErrorHandler
' Make a couple of measurements. ' ----------------------------------------------------------------DoCommand ":MEASure:SOURce CHANnel1" Debug.Print "Measure source: " + _
DoQueryString(":MEASure:SOURce?")
DoCommand ":MEASure:FREQuency" dblQueryResult = DoQueryNumber(":MEASure:FREQuency?") MsgBox "Frequency:" + vbCrLf + _
FormatNumber(dblQueryResult / 1000, 4) + " kHz"
DoCommand ":MEASure:VAMPlitude" dblQueryResult = DoQueryNumber(":MEASure:VAMPlitude?") MsgBox "Vertical amplitude:" + vbCrLf + _
FormatNumber(dblQueryResult, 4) + " V"
' Download the screen image. ' ----------------------------------------------------------------DoCommand ":HARDcopy:INKSaver OFF"
' Get screen image. Dim lngBlockSize As Long lngBlockSize = DoQueryIEEEBlock_Bytes(":DISPlay:DATA? PNG, COLor") Debug.Print "Screen image bytes: " + CStr(lngBlockSize)
' Save screen image to a file: Dim strPath As String strPath = "c:\scope\data\screen.png" If Len(Dir(strPath)) Then
Kill strPath ' Remove file if it exists. End If Dim hFile As Long hFile = FreeFile Open strPath For Binary Access Write Lock Write As hFile Dim lngI As Long ' Skip past header. For lngI = CInt(Chr(byteArray(1))) + 2 To lngBlockSize - 1
Put hFile, , byteArray(lngI) ' Write data. Next lngI Close hFile ' Close file. MsgBox "Screen image written to " + strPath
' Download waveform data. ' -----------------------------------------------------------------
' Set the waveform points mode. DoCommand ":WAVeform:POINts:MODE RAW" Debug.Print "Waveform points mode: " + _
DoQueryString(":WAVeform:POINts:MODE?")
' Get the number of waveform points available.
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

DoCommand ":WAVeform:POINts 10240" Debug.Print "Waveform points available: " + _
DoQueryString(":WAVeform:POINts?")
' Set the waveform source. DoCommand ":WAVeform:SOURce CHANnel1" Debug.Print "Waveform source: " + _
DoQueryString(":WAVeform:SOURce?")
' Choose the format of the data returned (WORD, BYTE, ASCII): DoCommand ":WAVeform:FORMat BYTE" Debug.Print "Waveform format: " + _
DoQueryString(":WAVeform:FORMat?")
' Display the waveform settings: Dim Preamble() As Double Dim intFormat As Integer Dim intType As Integer Dim lngPoints As Long Dim lngCount As Long Dim dblXIncrement As Double Dim dblXOrigin As Double Dim lngXReference As Long Dim sngYIncrement As Single Dim sngYOrigin As Single Dim lngYReference As Long
Preamble() = DoQueryNumbers(":WAVeform:PREamble?")
intFormat = Preamble(0) intType = Preamble(1) lngPoints = Preamble(2) lngCount = Preamble(3) dblXIncrement = Preamble(4) dblXOrigin = Preamble(5) lngXReference = Preamble(6) sngYIncrement = Preamble(7) sngYOrigin = Preamble(8) lngYReference = Preamble(9)
If intFormat = 0 Then Debug.Print "Waveform format: BYTE"
ElseIf intFormat = 1 Then Debug.Print "Waveform format: WORD"
ElseIf intFormat = 2 Then Debug.Print "Waveform format: ASCii"
End If
If intType = 0 Then Debug.Print "Acquisition type: NORMal"
ElseIf intType = 1 Then Debug.Print "Acquisition type: PEAK"
ElseIf intType = 2 Then Debug.Print "Acquisition type: AVERage"
ElseIf intType = 3 Then Debug.Print "Acquisition type: HRESolution"
End If
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1293

40 Programming Examples

1294

Debug.Print "Waveform points: " + _ FormatNumber(lngPoints, 0)
Debug.Print "Waveform average count: " + _ FormatNumber(lngCount, 0)
Debug.Print "Waveform X increment: " + _ Format(dblXIncrement, "Scientific")
Debug.Print "Waveform X origin: " + _ Format(dblXOrigin, "Scientific")
Debug.Print "Waveform X reference: " + _ FormatNumber(lngXReference, 0)
Debug.Print "Waveform Y increment: " + _ Format(sngYIncrement, "Scientific")
Debug.Print "Waveform Y origin: " + _ FormatNumber(sngYOrigin, 0)
Debug.Print "Waveform Y reference: " + _ FormatNumber(lngYReference, 0)
' Get the waveform data Dim lngNumBytes As Long lngNumBytes = DoQueryIEEEBlock_Bytes(":WAVeform:DATA?") Debug.Print "Number of data values: " + _
CStr(lngNumBytes - CInt(Chr(byteArray(1))) - 2)
' Set up output file: strPath = "c:\scope\data\waveform_data.csv"
' Open file for output. Open strPath For Output Access Write Lock Write As hFile
' Output waveform data in CSV format. Dim lngDataValue As Long
' Skip past header. For lngI = CInt(Chr(byteArray(1))) + 2 To lngNumBytes - 2
lngDataValue = CLng(byteArray(lngI))
' Write time value, voltage value. Print #hFile, _
FormatNumber(dblXOrigin + (lngI * dblXIncrement), 9) + _ ", " + _ FormatNumber(((lngDataValue - lngYReference) * _ sngYIncrement) + sngYOrigin)
Next lngI
' Close output file. Close hFile ' Close file. MsgBox "Waveform format BYTE data written to " + _
"c:\scope\data\waveform_data.csv."
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

Exit Sub ErrorHandler:
MsgBox "*** Error : " + Error, vbExclamation End End Sub Private Sub DoCommand(command As String) On Error GoTo ErrorHandler Call ivprintf(id, command + vbLf) CheckInstrumentErrors Exit Sub ErrorHandler: MsgBox "*** Error : " + Error, vbExclamation End End Sub Private Function DoCommandIEEEBlock(command As String, _
lngBlockSize As Long) On Error GoTo ErrorHandler ' Send command part. Call ivprintf(id, command + " ") ' Write definite-length block bytes. Call ifwrite(id, byteArray(), lngBlockSize, vbNull, retCount) ' retCount is now actual number of bytes written. DoCommandIEEEBlock = retCount CheckInstrumentErrors Exit Function ErrorHandler: MsgBox "*** Error : " + Error, vbExclamation End End Function Private Function DoQueryString(query As String) As String Dim actual As Long On Error GoTo ErrorHandler
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1295

40 Programming Examples

1296

Dim strResult As String * 200 Call ivprintf(id, query + vbLf) Call ivscanf(id, "%200t", strResult) DoQueryString = strResult CheckInstrumentErrors Exit Function ErrorHandler: MsgBox "*** Error : " + Error, vbExclamation End End Function Private Function DoQueryNumber(query As String) As Double On Error GoTo ErrorHandler Dim dblResult As Double Call ivprintf(id, query + vbLf) Call ivscanf(id, "%lf" + vbLf, dblResult) DoQueryNumber = dblResult CheckInstrumentErrors Exit Function ErrorHandler: MsgBox "*** Error : " + Error, vbExclamation End End Function Private Function DoQueryNumbers(query As String) As Double() On Error GoTo ErrorHandler Dim dblResults(10) As Double Call ivprintf(id, query + vbLf) Call ivscanf(id, "%,10lf" + vbLf, dblResults) DoQueryNumbers = dblResults CheckInstrumentErrors Exit Function ErrorHandler: MsgBox "*** Error : " + Error, vbExclamation End
Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40

End Function

Private Function DoQueryIEEEBlock_Bytes(query As String) As Long

On Error GoTo ErrorHandler

' Send query. Call ivprintf(id, query + vbLf)

' Read definite-length block bytes. Sleep 2000 ' Delay before reading data. Call ifread(id, byteArray(), ByteArraySize, vbNull, retCount)

' Get number of block length digits. Dim intLengthDigits As Integer intLengthDigits = CInt(Chr(byteArray(1)))

' Get block length from those digits. Dim strBlockLength As String strBlockLength = "" Dim i As Integer For i = 2 To intLengthDigits + 1
strBlockLength = strBlockLength + Chr(byteArray(i)) Next

' Return number of bytes in block plus header. DoQueryIEEEBlock_Bytes = CLng(strBlockLength) + intLengthDigits + 2

CheckInstrumentErrors

Exit Function

ErrorHandler:

MsgBox "*** Error : " + Error, vbExclamation End

End Function

Private Sub CheckInstrumentErrors()

On Error GoTo ErrorHandler

Dim strErrVal As String * 200 Dim strOut As String

Call ivprintf(id, ":SYSTem:ERRor?" + vbLf) ' Query any errors data.

Call ivscanf(id, "%200t", strErrVal) ' Read: Errnum,"Error String".

While Val(strErrVal) <> 0

' End if find: +0,"No Error".

strOut = strOut + "INST Error: " + strErrVal

Call ivprintf(id, ":SYSTem:ERRor?" + vbLf) ' Request error message

.

Call ivscanf(id, "%200t", strErrVal) ' Read error message.

Wend

If Not strOut = "" Then

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1297

40 Programming Examples
MsgBox strOut, vbExclamation, "INST Error Messages" Call iflush(id, I_BUF_READ Or I_BUF_WRITE) End If Exit Sub ErrorHandler: MsgBox "*** Error : " + Error, vbExclamation End End Sub

1298

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Programming Examples 40
SCPI.NET Examples
You can also program the oscilloscope using the SCPI.NET drivers that come with Keysight's free Command Expert software. While you can write code manually using the SCPI.NET drivers, you can also use the Command Expert software to: · Connect to instruments and control them interactively using SCPI command
sets. · Quickly prototype and test command sequences. · Generate C#, VB.NET, or C/C++ code for command sequences. · Find, download, and install SCPI command sets. · Browse command trees, search for commands, and view command
descriptions. The Command Expert suite also comes with Add-ons for easy instrument control and measurement data retrieval in NI LabVIEW, Microsoft Excel, Keysight VEE, and Keysight SystemVue. To download the Keysight Command Expert software, see: http://www.keysight.com/find/commandexpert For more on programming with the SCPI.NET drivers, see "Using SCPI.NET Drivers" in the help that comes with Keysight Command Expert.

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1299

40 Programming Examples

1300

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Index

Symbols
+9.9E+37, infinity representation, 1171 +9.9E+37, measurement error, 421
Numerics
0 (zero) values in waveform data, 993 1 (one) values in waveform data, 993 7000B Series oscilloscopes, command
differences from, 51 82350B GPIB interface, 6
A
A429 SEARch commands, 820 A429 serial bus commands, 650 absolute math function, 357 absolute value math function, 336 AC coupling, trigger edge, 928 AC input coupling for specified
channel, 272 AC RMS measured on waveform, 438, 479 accumulate activity, 197 ACQuire commands, 233 acquire data, 205, 245 acquire mode on autoscale, 201 acquire reset conditions, 182, 877 acquire sample rate, 244 ACQuire subsystem, 69 acquired data points, 238 acquisition count, 236 acquisition mode, 233, 237, 1010 acquisition type, 233, 245 acquisition types, 985 active edges, 197 active printer, 370 activity logic levels, 197 activity on digital channels, 197 add function, 1005 add math function, 336, 357 add math function as g(t) source, 350 address field size, IIC serial decode, 726 address of network printer, 375 address, IIC trigger pattern, 729 Addresses softkey, 58 AER (Arm Event Register), 198, 213, 215,
1146 ALB waveform data format, 38 alignment, I2S trigger, 707

all (snapshot) measurement, 422 ALL segments waveform save option, 641 AM demo signal, 290 AM depth, waveform generator
modulation, 1040 AM modulation type, waveform
generator, 1050 amplitude, vertical, 434, 472 amplitude, waveform generator, 1056 analog channel coupling, 272 analog channel display, 273 analog channel impedance, 274 analog channel input, 1081 analog channel inversion, 275 analog channel labels, 276, 316 analog channel offset, 277 analog channel protection lock, 880 analog channel range, 284 analog channel scale, 285 analog channel source for glitch, 941 analog channel units, 286 analog channels only oscilloscopes, 6 analog probe attenuation, 278 analog probe head type, 279 analog probe sensing, 1082 analog probe skew, 281, 1080 analyzing captured data, 65 angle brackets, 164 annotate channels, 276 annotation background, display, 308 annotation color, display, 309 annotation text, display, 310 annotation, display, 307 apparent power, 489, 579 apply network printer connection
settings, 376 arbitrary waveform generator output, 1036 arbitrary waveform, byte order, 1023 arbitrary waveform, capturing from other
sources, 1031 arbitrary waveform, clear, 1028 arbitrary waveform, download DAC
values, 1029 arbitrary waveform, download floating-point
values, 1024 arbitrary waveform, interpolation, 1030 arbitrary waveform, points, 1027 arbitrary waveform, recall, 615 arbitrary waveform, save, 624 area for hardcopy print, 369 area for saved image, 1117 area measurement, 423, 433 ARINC 429 auto setup, 652

ARINC 429 base, 653 ARINC 429 demo signal, 292 ARINC 429 signal speed, 660 ARINC 429 signal type, 658 ARINC 429 source, 659 ARINC 429 trigger data pattern, 662, 823 ARINC 429 trigger label, 661, 665, 821 ARINC 429 trigger SDI pattern, 663, 824 ARINC 429 trigger SSM pattern, 664, 825 ARINC 429 trigger type, 666, 822 ARINC 429 word and error counters,
reset, 655 ARINC 429 word format, 657 Arm Event Register (AER), 198, 213, 215,
1146 arming edge slope, Edge Then Edge
trigger, 916 arming edge source, Edge Then Edge
trigger, 917 arrange waveforms, 1084 ASCII format, 995 ASCII format for data transfer, 988 ASCII string, quoted, 164 ASCiixy waveform data format, 638 assign channel names, 276 attenuation factor (external trigger)
probe, 329 attenuation for oscilloscope probe, 278 audio channel, I2S trigger, 716 AUT option for probe sense, 1082, 1086 Auto Range capability for DVM, 320 auto set up, trigger level, 909 auto setup (ARINC 429), 652 auto setup for M1553 trigger, 750 auto setup for power analysis signals, 581 auto trigger sweep mode, 903 automask create, 511 automask source, 512 automask units, 513 automatic measurements constants, 278 automatic probe type detection, 1082,
1086 autoscale, 199 autoscale acquire mode, 201 autoscale channels, 202 AUToscale command, 68 autoset for FLEXray event trigger, 697 autosetup for FLEXray decode, 687 average value measurement, 435, 473 Average, power modulation analysis, 569 averaging acquisition type, 234, 987 averaging, synchronizing with, 1160 Ax + B math function, 336, 357

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1301

Index

B
bandwidth filter limits, 270, 328 bandwidth filter limits to 20 MHz, 271 bar chart of current harmonics results, 556 base 10 exponential math function, 337,
357 base value measurement, 436, 474 base, ARINC 429, 653 base, I2S serial decode, 708 base, MIL-STD-1553 serial decode, 751 base, UART trigger, 787 basic instrument functions, 169 baud rate, 676, 739, 776 begin acquisition, 205, 225, 227 BHARris window for minimal spectral
leakage, 347 binary block data, 164, 312, 888, 993 BINary waveform data format, 638 bind levels for masks, 532 bit order, 777 bit order, SPI decode, 758 bit rate measurement, 424 bit selection command, bus, 249 bit weights, 174 bitmap display, 312 bits in Service Request Enable
Register, 187 bits in Standard Event Status Enable
Register, 172 bits in Status Byte Register, 189 bits selection command, bus, 250 blank, 204 block data, 164, 177, 888 block response data, 72 blocking synchronization, 1155 blocking wait, 1154 BMP format screen image data, 312 braces, 163 built-in measurements, 65 burst data demo signal, 291 burst width measurement, 425 burst, minimum time before next, 924 bus bit selection command, 249 bus bits selection commands, 250 bus clear command, 252 bus commands, 248 BUS data format, 990 bus display, 253 bus label command, 254 bus mask command, 255 BUS<n> commands, 247 button disable, 875 button, calibration protect, 262 byte format for data transfer, 989, 995 BYTeorder, 991
C
C, SICL library example, 1279

C, VISA library example, 1207 C#, VISA COM example, 1183 C#, VISA example, 1226 C#, VISA.NET example, 1260 CAL PROTECT button, 262 CAL PROTECT switch, 258 calculating preshoot of waveform, 452 calculating the waveform overshoot, 446 calibrate, 259, 260, 262, 266 CALibrate commands, 257 calibrate date, 259 calibrate introduction, 258 calibrate label, 260 calibrate output, 261 calibrate start, 263 calibrate status, 264 calibrate switch, 262 calibrate temperature, 265 calibrate time, 266 CAN acknowledge, 675 CAN and LIN demo signal, 292 CAN baud rate, 676 CAN demo signal, 292 CAN frame counters, reset, 672 CAN SEARch commands, 826 CAN serial bus commands, 668 CAN serial search, data, 828 CAN serial search, data length, 829 CAN serial search, ID, 830 CAN serial search, ID mode, 831 CAN serial search, mode, 827 CAN signal definition, 677 CAN source, 678 CAN trigger, 679, 682 CAN trigger data pattern, 681 CAN trigger ID pattern, 683 CAN trigger pattern id mode, 684 CAN triggering, 645 capture data, 205 capturing data, 64 cardiac waveform generator output, 1035 center frequency set, 336, 344 center of screen, 1018 center reference, 896 center screen, vertical value at, 356, 360 channel, 231, 276, 1077, 1079 channel coupling, 272 channel display, 273 channel input impedance, 274 channel inversion, 275 channel label, 276, 1078 channel labels, 315, 316 channel numbers, 1084 channel overload, 283 channel protection, 283 channel reset conditions, 182, 877 channel selected to produce trigger, 941,
972 channel signal type, 282 channel skew for oscilloscope probe, 281,
1080 channel status, 228, 1084

channel threshold, 1079 channel vernier, 287 channel, stop displaying, 204 CHANnel<n> commands, 267, 269 channels to autoscale, 202 channels, how autoscale affects, 199 characters to display, 873 chart logic bus state math function, 337,
357 chart logic bus state, clock edge, 339 chart logic bus state, clock source, 338 chart logic bus timing math function, 337,
357 chart logic bus, units, 342 chart logic bus, value for data = 0, 341 chart logic bus, value for data
increment, 340 classes of input signals, 347 classifications, command, 1164 clear, 311 clear bus command, 252 clear cumulative edge variables, 1077 clear markers, 426, 1095 clear measurement, 426, 1095 clear message queue, 171 Clear method, 67 clear reference waveforms, 1063 clear screen, 1085 clear status, 171 clear waveform area, 306 clipped high waveform data value, 993 clipped low waveform data value, 993 clock, 727, 759, 762 clock slope, I2S, 709 CLOCk source, I2S, 711 clock source, setup and hold trigger, 959 clock timeout, SPI, 760 clock with infrequent glitch demo
signal, 291 CLS (Clear Status), 171 CME (Command Error) status bit, 172, 174 CMOS threshold voltage for digital
channels, 303, 1079 CMOS trigger threshold voltage, 1121 code, :ACQuire:COMPlete, 235 code, :ACQuire:SEGMented, 241 code, :ACQuire:TYPE, 246 code, :AUToscale, 200 code, :CHANnel<n>:LABel, 276 code, :CHANnel<n>:PROBe, 278 code, :CHANnel<n>:RANGe, 284 code, :DIGitize, 206 code, :DISPlay:DATA, 312 code, :DISPlay:LABel, 315 code, :DISPlay:ORDer, 1084 code, :MEASure:PERiod, 460 code, :MEASure:RESults, 454 code, :MEASure:TEDGe, 469 code, :MTESt, 507 code, :POD<n>:THReshold, 543 code, :RUN/:STOP, 225 code, :SYSTem:SETup, 888

1302

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Index

code, :TIMebase:DELay, 1120 code, :TIMebase:MODE, 893 code, :TIMebase:RANGe, 895 code, :TIMebase:REFerence, 896 code, :TRIGger:MODE, 912 code, :TRIGger:SLOPe, 931 code, :TRIGger:SOURce, 932 code, :VIEW and :BLANk, 231 code, :WAVeform, 1006 code, :WAVeform:DATA, 993 code, :WAVeform:POINts, 997 code, :WAVeform:PREamble, 1001 code, :WAVeform:SEGMented, 241 code, :WGEN:ARBitrary:DATA, 1024 code, *RST, 184 code, SICL library example in C, 1279 code, SICL library example in Visual
Basic, 1288 code, VISA COM library example in
C#, 1183 code, VISA COM library example in
Python, 1200 code, VISA COM library example in Visual
Basic, 1174 code, VISA COM library example in Visual
Basic .NET, 1192 code, VISA library example in C, 1207 code, VISA library example in C#, 1226 code, VISA library example in
Python, 1247, 1253 code, VISA library example in Visual
Basic, 1216 code, VISA library example in Visual Basic
.NET, 1237 code, VISA.NET library example in
C#, 1260 code, VISA.NET library example in
IronPython, 1273 code, VISA.NET library example in Visual
Basic .NET, 1266 colon, root commands prefixed by, 196 color palette for hardcopy, 381 color palette for image, 630 Comma Separated Values (CSV) waveform
data format, 638 command classifications, 1164 command differences from 7000B Series
oscilloscopes, 51 command errors detected in Standard Event
Status, 174 Command Expert, 1260, 1299 command header, 1165 command headers, common, 1167 command headers, compound, 1167 command headers, simple, 1167 command strings, valid, 1165 commands quick reference, 77 commands sent over interface, 170 commands, more about, 1163 commands, obsolete and
discontinued, 1071 common (*) commands, 3, 167, 169

common command headers, 1167 common logarithm math function, 337 completion criteria for an acquisition, 235,
236 compound command headers, 1167 compound header, 1169 computer control examples, 1173 conditions for external trigger, 327 conditions, reset, 182, 877 conduction calculation method for switching
loss, 603 Config softkey, 58 configurations, oscilloscope, 177, 181,
185, 888 Configure softkey, 58 connect oscilloscope, 57 connect sampled data points, 1083 Connection Expert, 59 constants for making automatic
measurements, 278 constants for scaling display factors, 278 constants for setting trigger levels, 278 controller initialization, 64 copy display, 221 copyright, 2 core commands, 1164 count, 992 count values, 236 count, Edge Then Edge trigger, 919 count, Nth edge of burst, 923 counter, 427 coupling, 928 COUPling demo signal, 290 coupling for channels, 272 create automask, 511 crest factor, 491, 579 CSV (Comma Separated Values) waveform
data format, 638 cumulative edge activity, 1077 current harmonics analysis fail count, 557 current harmonics analysis results,
save, 634 current harmonics analysis run count, 560 current harmonics analysis, apply, 554 current harmonics results data, 555 current harmonics results display, 556 current logic levels on digital
channels, 197 current oscilloscope configuration, 177,
181, 185, 888 current probe, 286, 331 CURRent segment waveform save
option, 641 current source, 598 cursor mode, 391 cursor position, 392, 394, 396, 399, 403 cursor readout, 1096, 1100, 1101 cursor reset conditions, 182, 877 cursor source, 393, 395 cursor time, 1096, 1100, 1101 cursor units, X, 397, 398 cursor units, Y, 404, 405

cursors track measurements, 459 cursors, how autoscale affects, 199 cursors, X1, X2, Y1, Y2, 390 cycle count base, FLEXray frame
trigger, 700 cycle count repetition, FLEXray frame
trigger, 701 cycle measured, 439, 442 cycle time, 449 cycles analyzed, number of, 582, 583
D
D- source, 979 D+ source, 980 data, 728, 730, 993 data (waveform) maximum length, 640 data 2, 731 data acquisition types, 985 data conversion, 987 data format for transfer, 988 data output order, 991 data pattern length, 682, 747 data pattern, ARINC 429 trigger, 662, 823 data pattern, CAN trigger, 681 data point index, 1015 data points, 238 data record, measurement, 998 data record, raw acquisition, 998 data required to fill time buckets, 235 DATA source, I2S, 712 data source, setup and hold trigger, 960 data structures, status reporting, 1133 data, saving and recalling, 306 date, calibration, 259 date, system, 871 dB versus frequency, 336 DC coupling for edge trigger, 928 DC input coupling for specified
channel, 272 DC offset correction for integrate
input, 353 DC RMS measured on waveform, 438, 479 DC waveform generator output, 1034 DDE (Device Dependent Error) status
bit, 172, 174 decision chart, status reporting, 1151 default conditions, 182, 877 define channel labels, 276 define glitch trigger, 939 define logic thresholds, 1079 define measurement, 429 define measurement source, 460 define trigger, 940, 948, 949, 951 defined as, 163 definite-length block query response, 72 definite-length block response data, 164 delay measured to calculate phase, 450 delay measurement, 429 delay measurements, 468 delay parameters for measurement, 431

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1303

Index

delay time, Edge Then Edge trigger, 918 DELay trigger commands, 915 delay, how autoscale affects, 199 delayed time base, 893 delayed window horizontal scale, 901 delete mask, 521 delta time, 1096 delta voltage measurement, 1104 delta X cursor, 390 delta Y cursor, 390 demo, 289 DEMO commands, 289 demo signal, 291 demo signal function, 290 demo signal phase angle, 294 demo signals output control, 295 deskew for power measurements, 551 destination, remote command logging, 882 detecting probe types, 1082, 1086 device-defined error queue clear, 171 DIFF source for function, 1087 differences from 7000B Series oscilloscope
commands, 51 differential probe heads, 279 differential signal type, 282 differentiate math function, 336, 357,
1005 digital channel commands, 298, 299, 300,
301, 303 digital channel data, 989 digital channel labels, 316 digital channel order, 1084 digital channel source for glitch
trigger, 941 digital channels, 6 digital channels, activity and logic levels
on, 197 digital channels, groups of, 539, 541, 543 digital pod, stop displaying, 204 digital reset conditions, 183, 878 DIGital<d> commands, 297 digitize channels, 205 DIGitize command, 64, 69, 986 digits, 164 disable front panel, 875 disable function, 1088 disabling calibration, 262 disabling channel display, 273 disabling status register bits, 172, 186 discontinued and obsolete
commands, 1071 display annotation, 307 display annotation background, 308 display annotation color, 309 display annotation text, 310 display channel labels, 315 display clear, 311 DISPlay commands, 305 display commands introduction, 306 display connect, 1083 display date, 871 display factors scaling, 278

display for channels, 273 display frequency span, 345 display measurements, 420, 459 display order, 1084 display persistence, 317 display reference, 894, 896 display reference waveforms, 1064 display reset conditions, 183, 878 display serial number, 226 display vectors, 318 display wave position, 1084 display, lister, 387 display, measurement statistics on/off, 463 display, oscilloscope, 299, 317, 343, 541,
873 display, serial decode bus, 648 displaying a baseline, 914 displaying unsynchronized signal, 914 divide math function, 336, 357 DNS IP, 58 domain, 58 domain, network printer, 377 driver, printer, 1093 DSO models, 6 duplicate mnemonics, 1169 duration, 948, 949, 951 duration for glitch trigger, 935, 936, 940 duration of power analysis, 584, 585, 586,
587, 588, 589 duration qualifier, trigger, 948, 949 duration triggering, 904 duty cycle measurement, 65, 420, 439,
442 Duty Cycle, power modulation
analysis, 569 DVM commands, 319 DVM displayed value, 321 DVM enable/disable, 322 DVM frequency value, 323 DVM input source, 325 DVM mode, 324
E
EBURst trigger commands, 922 ECL channel threshold, 1079 ECL threshold voltage for digital
channels, 303 ECL trigger threshold voltage, 1121 edge activity, 1077 edge counter, Edge Then Edge trigger, 919 edge counter, Nth edge of burst, 923 edge coupling, 928 edge fall time, 440 edge parameter for delay
measurement, 431 edge preshoot measured, 452 edge rise time, 457 EDGE SEARch commands, 800 edge search slope, 801 edge search source, 802

edge slope, 931 edge source, 932 edge string for OR'ed edge trigger, 943 EDGE trigger commands, 927 edge triggering, 904 edges (activity) on digital channels, 197 edges in measurement, 429 efficiency, 492 efficiency power analysis, apply, 552 elapsed time in mask test, 518 ellipsis, 164 enable channel labels, 315 enabling calibration, 262 enabling channel display, 273 enabling status register bits, 172, 186 end of string (EOS) terminator, 1166 end of text (EOT) terminator, 1166 end or identify (EOI), 1166 energy loss, 493 EOI (end or identify), 1166 EOS (end of string) terminator, 1166 EOT (end of text) terminator, 1166 erase data, 311 erase measurements, 1095 erase screen, 1085 error counter (ARINC 429), 654 error counter (ARINC 429), reset, 655 error frame count (CAN), 670 error frame count (UART), 778 error messages, 874, 1123 error number, 874 error queue, 874, 1143 error, measurement, 420 ESB (Event Status Bit), 187, 189 ESE (Standard Event Status Enable
Register), 172, 1142 ESR (Standard Event Status Register), 174,
1141 ETE demo signal, 291 event status conditions occurred, 189 Event Status Enable Register (ESE), 172,
1142 Event Status Register (ESR), 174, 230,
1141 example code, :ACQuire:COMPlete, 235 example code, :ACQuire:SEGMented, 241 example code, :ACQuire:TYPE, 246 example code, :AUToscale, 200 example code, :CHANnel<n>:LABel, 276 example code, :CHANnel<n>:PROBe, 278 example code, :CHANnel<n>:RANGe, 284 example code, :DIGitize, 206 example code, :DISPlay:DATA, 312 example code, :DISPlay:LABel, 315 example code, :DISPlay:ORDer, 1084 example code, :MEASure:PERiod, 460 example code, :MEASure:RESults, 454 example code, :MEASure:TEDGe, 469 example code, :MTESt, 507 example code, :POD<n>:THReshold, 543 example code, :RUN/:STOP, 225 example code, :SYSTem:SETup, 888

1304

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Index

example code, :TIMebase:DELay, 1120 example code, :TIMebase:MODE, 893 example code, :TIMebase:RANGe, 895 example code, :TIMebase:REFerence, 896 example code, :TRIGger:MODE, 912 example code, :TRIGger:SLOPe, 931 example code, :TRIGger:SOURce, 932 example code, :VIEW and :BLANk, 231 example code, :WAVeform, 1006 example code, :WAVeform:DATA, 993 example code, :WAVeform:POINts, 997 example code,
:WAVeform:PREamble, 1001 example code,
:WAVeform:SEGMented, 241 example code,
:WGEN:ARBitrary:DATA, 1024 example code, *RST, 184 example programs, 5, 1173 examples on the website, 1173 EXE (Execution Error) status bit, 172, 174 execution error detected in Standard Event
Status, 174 exponential fall waveform generator
output, 1035 exponential math function, 337, 357 exponential notation, 163 exponential rise waveform generator
output, 1035 extended video triggering license, 973 external glitch trigger source, 941 external range, 330 external trigger, 327, 329, 932 EXTernal trigger commands, 327 EXTernal trigger level, 929 external trigger probe attenuation
factor, 329 external trigger probe sensing, 1086 EXTernal trigger source, 932 external trigger units, 331
F
fail count, current harmonics analysis, 557 fail/pass status (overall) for current
harmonics analysis, 562 failed waveforms in mask test, 516 failure, self test, 191 fall time measurement, 420, 440 Fall Time, power modulation analysis, 569 falling edge count measurement, 443 falling pulse count measurement, 444 Fast Fourier Transform (FFT)
functions, 336, 344, 345, 347, 1087 FF values in waveform data, 993 FFT (Fast Fourier Transform) functions, 336,
344, 345, 347, 1087 FFT (Fast Fourier Transform)
operation, 357, 1005 FFT vertical units, 346 fifty ohm impedance, disable setting, 880

filename for hardcopy, 1090 filename for recall, 616, 1032 filename for save, 625 filter for frequency reject, 930 filter for high frequency reject, 907 filter for noise reject, 913 filter used to limit bandwidth, 271, 328 filters to Fast Fourier Transforms, 347 filters, math, 337 fine horizontal adjustment (vernier), 898 fine vertical adjustment (vernier), 287 finish pending device operations, 178 first point displayed, 1015 FLATtop window for amplitude
measurements, 347 FLEXray autoset for event trigger, 697 FLEXray autosetup, 687 FlexRay demo signal, 292 FlexRay frame counters, reset, 691 FLEXray SEARch commands, 832 FlexRay serial search, cycle, 833 FlexRay serial search, data, 834 FlexRay serial search, data length, 835 FlexRay serial search, frame, 836 FlexRay serial search, mode, 837 FLEXray source, 694 FLEXray trigger, 695 FLEXray trigger commands, 685 FM burst demo signal, 290 FM modulation type, waveform
generator, 1050 force trigger, 906 format, 995, 1000 format (word), ARINC 429, 657 format for block data, 177 format for generic video, 969, 973 format for hardcopy, 1089 format for image, 628 format for waveform data, 638 FormattedIO488 object, 67 formfeed for hardcopy, 368, 372 formulas for data conversion, 987 frame, 763 frame counters (CAN), error, 670 frame counters (CAN), overload, 671 frame counters (CAN), reset, 672 frame counters (CAN), total, 673 frame counters (FlexRay), null, 690, 692 frame counters (FlexRay), reset, 691 frame counters (FlexRay), total, 693 frame counters (UART), error, 778 frame counters (UART), reset, 779 frame counters (UART), Rx frames, 780 frame counters (UART), Tx frames, 781 frame ID, FLEXray BSS event trigger, 698 frame ID, FLEXray frame trigger, 702 frame type, FLEXray frame trigger, 703 framing, 761 frequency deviation, waveform generator FM
modulation, 1042 frequency measurement, 65, 420, 441

frequency measurements with X cursors, 397
frequency resolution, 347 frequency span of display, 345 frequency versus dB, 336 Frequency, power modulation analysis, 569 front panel mode, 914 front panel Single key, 227 front panel Stop key, 229 front-panel lock, 875 FSK modulation type, waveform
generator, 1050 FSK rate, waveform generator
modulation, 1045 full-scale horizontal time, 895, 900 full-scale vertical axis defined, 359 function, 231, 343, 344, 345, 347, 356,
357, 359, 360, 361, 1087, 1088 FUNCtion commands, 333 function memory, 228 function turned on or off, 1088 function, demo signal, 290 function, first source input, 362 function, second source input, 364 function, waveform generator, 1033 functions, 1005
G
g(t) source, first input channel, 351 g(t) source, math operation, 350 g(t) source, second input channel, 352 gain for Ax + B math operation, 354 gateway IP, 58 gaussian pulse waveform generator
output, 1035 general SBUS<n> commands, 647 general SEARch commands, 796 general trigger commands, 905 GENeric, 969, 973 generic video format, 969, 973 Generic video trigger, edge number, 974 Generic video trigger, greater than sync
pulse width time, 977 Generic video trigger, horizontal sync
control, 975 Generic video trigger, horizontal sync pulse
time, 976 glitch demo signal, 291 glitch duration, 940 glitch qualifier, 939 GLITch SEARch commands, 803 glitch search, greater than value, 804 glitch search, less than value, 805 glitch search, polarity, 806 glitch search, qualifier, 807 glitch search, range, 808 glitch search, source, 809 glitch source, 941 GLITch trigger commands, 933 glitch trigger duration, 935

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1305

Index

glitch trigger polarity, 938 glitch trigger source, 935 GPIB interface, 57, 58 graticule area for hardcopy print, 369 graticule colors, invert for hardcopy, 373,
1092 graticule colors, invert for image, 629 grayscale palette for hardcopy, 381 grayscale palette for image, 630 grayscaling on hardcopy, 1091 greater than qualifier, 939 greater than time, 935, 940, 948, 951 greater than value for glitch search, 804 groups of digital channels, 539, 541, 543,
1079
H
HANNing window for frequency resolution, 347
hardcopy, 221, 368 HARDcopy commands, 367 hardcopy factors, 371, 627 hardcopy filename, 1090 hardcopy format, 1089 hardcopy formfeed, 372 hardcopy grayscale, 1091 hardcopy invert graticule colors, 373,
1092 hardcopy layout, 374 hardcopy palette, 381 hardcopy print, area, 369 hardcopy printer driver, 1093 HARMonics demo signal, 290 head type, probe, 279 header, 1165 high pass filter math function, 337 high resolution acquisition type, 987 high trigger level, 910 high-frequency reject filter, 907, 930 high-level voltage, waveform
generator, 1057 high-pass filter cutoff frequency, 348 high-pass filter math function, 357 high-resolution acquisition type, 234 hold time, setup and hold trigger, 961 hold until operation complete, 178 holdoff time, 908 holes in waveform data, 993 hop frequency, waveform generator FSK
modulation, 1044 horizontal adjustment, fine (vernier), 898 horizontal position, 899 horizontal scale, 897, 901 horizontal scaling, 1000 horizontal time, 895, 900, 1096 Host ID of oscilloscope, 872 Host name softkey, 58 hostname, 58

I
I1080L50HZ, 969, 973 I1080L60HZ, 969, 973 I2C demo signal, 291 I2S alignment, 707 I2S audio channel, 716 I2S clock slope, 709 I2S CLOCk source, 711 I2S DATA source, 712 I2S demo signal, 292 I2S pattern data, 717 I2S pattern format, 719 I2S range, 720 I2S receiver width, 710 I2S SEARch commands, 838 I2S serial bus commands, 704 I2S serial decode base, 708 I2S serial search, audio channel, 839 I2S serial search, data, 841 I2S serial search, format, 842 I2S serial search, mode, 840 I2S serial search, range, 843 I2S transmit word size, 722 I2S trigger operator, 714 I2S triggering, 645 I2S word select (WS) low, 723 I2S word select (WS) source, 713 id mode, 684 ID pattern, CAN trigger, 683 identification number, 176 identification of options, 179 identifier, LIN, 744 idle, 924 idle until operation complete, 178 IDN (Identification Number), 176 IEC 61000-3-2 standard for current
harmonics analysis, 561 IEEE 488.2 standard, 169 IIC address, 729 IIC clock, 727 IIC data, 728, 730 IIC data 2, 731 IIC SEARch commands, 844 IIC serial decode address field size, 726 IIC serial search, address, 847 IIC serial search, data, 848 IIC serial search, data2, 849 IIC serial search, mode, 845 IIC serial search, qualifier, 850 IIC trigger commands, 724 IIC trigger qualifier, 732 IIC trigger type, 733 IIC triggering, 646 image format, 628 image invert graticule colors, 629 image memory, 228 image palette, 630 image, save, 626 image, save with inksaver, 629 impedance, 274 infinity representation, 1171

initial load current, transient response analysis, 610
initialization, 64, 67 initialize, 182, 877 initialize label list, 316 initiate acquisition, 205 inksaver, save image with, 629 input coupling for channels, 272 input for integrate, DC offset
correction, 353 input impedance for channels, 274, 1081 input inversion for specified channel, 275 input power, 495 inrush current, 499 inrush current analysis, 564, 565, 566 inrush current expected, 590 insert label, 276 installed options identified, 179 instruction header, 1165 instrument number, 176 instrument options identified, 179 instrument requests service, 189 instrument serial number, 226 instrument settings, 368 instrument status, 74 instrument type, 176 integrate DC offset correction, 353 integrate math function, 336, 357, 1005 INTegrate source for function, 1087 intensity, waveform, 314 internal low-pass filter, 270, 271, 328 introduction to :ACQuire commands, 233 introduction to :BUS<n> commands, 248 introduction to :CALibrate commands, 258 introduction to :CHANnel<n>
commands, 269 introduction to :DEMO commands, 289 introduction to :DIGital<d>
commands, 298 introduction to :DISPlay commands, 306 introduction to :EXTernal commands, 327 introduction to :FUNCtion commands, 336 introduction to :HARDcopy
commands, 368 introduction to :LISTer commands, 385 introduction to :MARKer commands, 390 introduction to :MEASure commands, 420 introduction to :POD<n> commands, 539 introduction to :RECall commands, 614 introduction to :SAVE commands, 623 introduction to :SBUS commands, 645 introduction to :SYSTem commands, 870 introduction to :TIMebase commands, 892 introduction to :TRIGger commands, 903 introduction to :WAVeform
commands, 985 introduction to :WGEN commands, 1021 introduction to :WMEMory<r>
commands, 1061 introduction to common (*)
commands, 169 introduction to root (:) commands, 196

1306

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Index

invert graticule colors for hardcopy, 373, 1092
invert graticule colors for image, 629 inverted masks, bind levels, 532 inverting input for channels, 275 IO library, referencing, 66 IP address, 58 IronPython, VISA.NET example, 1273
K
key disable, 875 key press detected in Standard Event Status
Register, 174 Keysight Interactive IO application, 61 Keysight IO Control icon, 59 Keysight IO Libraries Suite, 6, 55, 66, 68 Keysight IO Libraries Suite, installing, 56 knob disable, 875 known state, 182, 877
L
label, 1078 label command, bus, 254 label list, 276, 316 label reference waveforms, 1065 label, ARINC 429 trigger, 661, 665, 821 label, digital channel, 300 labels, 276, 315, 316 labels to store calibration information, 260 labels, specifying, 306 LAN instrument, 60 LAN interface, 57, 59 LAN Settings softkey, 58 landscape layout for hardcopy, 374 language for program examples, 63 layout for hardcopy, 374 leakage into peak spectrum, 347 learn string, 177, 888 least significant byte first, 991 left reference, 896 legal values for channel offset, 277 legal values for frequency span, 345 legal values for offset, 356, 360 length for waveform data, 639 less than qualifier, 939 less than time, 936, 940, 949, 951 less than value for glitch search, 805 level for trigger voltage, 929, 937 LF coupling, 928 license information, 179 limit bandwidth, 270 limits for line number, 969 LIN acknowledge, 738 LIN baud rate, 739 LIN demo signal, 292 LIN identifier, 744 LIN pattern data, 745 LIN pattern format, 748

LIN SEARch commands, 851 LIN serial decode bus parity bits, 737 LIN serial search, data, 854 LIN serial search, data format, 856 LIN serial search, data length, 855 LIN serial search, frame ID, 852 LIN serial search, mode, 853 LIN source, 740 LIN standard, 741 LIN sync break, 742 LIN trigger, 743, 747 LIN trigger commands, 735 LIN trigger definition, 1118 LIN triggering, 646 line frequency setting for current harmonics
analysis, 558 line glitch trigger source, 941 line number for TV trigger, 969 line terminator, 163 LINE trigger level, 929 LINE trigger source, 932 list of channel labels, 316 LISTer commands, 385 lister display, 387 lister time reference, 388 ln (natural logarithm) math function, 357 ln math function, 337 load utilization (CAN), 674 local lockout, 875 lock, 875 lock mask to signal, 523 lock, analog channel protection, 880 lockout message, 875 log (common logarithm) math function, 357 log file name, remote command
logging, 881, 884 log math function, 337 logic level activity, 1077 long form, 1166 low frequency sine with glitch demo
signal, 290 low pass filter math function, 337 low trigger level, 911 lower threshold, 449 lower threshold voltage for
measurement, 1094 lowercase characters in commands, 1165 low-frequency reject filter, 930 low-level voltage, waveform
generator, 1058 low-pass filter cutoff frequency, 349 low-pass filter math function, 357 low-pass filter used to limit
bandwidth, 270, 271, 328 LRN (Learn Device Setup), 177 lsbfirst, 991
M
M1553 SEARch commands, 857 M1553 trigger commands, 749

M1553 trigger type, 755 magnify math function, 337, 357 magnitude of occurrence, 470 main sweep range, 899 main time base, 1120 main time base mode, 893 making measurements, 420 MAN option for probe sense, 1082, 1086 manual cursor mode, 391 MARKer commands, 389 marker mode, 399 marker position, 401 marker readout, 1100, 1101 marker set for voltage measurement, 1105,
1106 marker sets start time, 1097 marker time, 1096 markers for delta voltage
measurement, 1104 markers track measurements, 459 markers, command overview, 390 markers, mode, 391 markers, time at start, 1101 markers, time at stop, 1100 markers, X delta, 396 markers, X1 position, 392 markers, X1Y1 source, 393 markers, X2 position, 394 markers, X2Y2 source, 395 markers, Y delta, 403 markers, Y1 position, 399 markers, Y2 position, 401 mask, 172, 186 mask command, bus, 255 mask statistics, reset, 517 mask test commands, 505 Mask Test Event Enable Register
(MTEenable), 207 mask test event event register, 209 Mask Test Event Event Register
(:MTERegister[:EVENt]), 209, 1148 mask test run mode, 524 mask test termination conditions, 524 mask test, all channels, 510 mask test, enable/disable, 522 mask, delete, 521 mask, get as binary block data, 520 mask, load from binary block data, 520 mask, lock to signal, 523 mask, recall, 617 mask, save, 631, 632 masks, bind levels, 532 master summary status bit, 189 math filters, 337 math function, stop displaying, 204 math operators, 336 math transforms, 336 math visualizations, 337 MAV (Message Available), 171, 187, 189 maximum duration, 936, 948, 949 maximum position, 894 maximum range for zoomed window, 900

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1307

Index

maximum scale for zoomed window, 901 maximum vertical value measurement, 475 maximum vertical value, time of, 483,
1098 maximum waveform data length, 640 MEASure commands, 407 measure mask test failures, 525 measure overshoot, 446 measure period, 449 measure phase between channels, 450 MEASure power commands, 485 measure preshoot, 452 measure start voltage, 1105 measure stop voltage, 1106 measure value at a specified time, 480 measure value at top of waveform, 481 measurement error, 420 measurement record, 998 measurement setup, 420, 460 measurement source, 460 measurement statistics results, 454 measurement statistics, display on/off, 463 measurement trend math function, 337,
357 measurement window, 482 measurements, AC RMS, 438, 479 measurements, area, 423, 433 measurements, average value, 435, 473 measurements, base value, 436, 474 measurements, built-in, 65 measurements, burst width, 425 measurements, clear, 426, 1095 measurements, command overview, 420 measurements, counter, 427 measurements, DC RMS, 438, 479 measurements, definition setup, 429 measurements, delay, 431 measurements, duty cycle, 439 measurements, fall time, 440 measurements, falling edge count, 443 measurements, falling pulse count, 444 measurements, frequency, 441 measurements, how autoscale affects, 199 measurements, lower threshold level, 1094 measurements, maximum vertical
value, 475 measurements, maximum vertical value,
time of, 483, 1098 measurements, minimum vertical
value, 476 measurements, minimum vertical value,
time of, 484, 1099 measurements, negative duty cycle, 442 measurements, overshoot, 446 measurements, period, 449 measurements, phase, 450 measurements, preshoot, 452 measurements, pulse width, negative, 445 measurements, pulse width, positive, 453 measurements, ratio of AC RMS
values, 478 measurements, rise time, 457

measurements, rising edge count, 448 measurements, rising pulse count, 451 measurements, show, 459 measurements, snapshot all, 422 measurements, source channel, 460 measurements, standard deviation, 458 measurements, start marker time, 1100 measurements, stop marker time, 1101 measurements, thresholds, 1097 measurements, time between start and stop
markers, 1096 measurements, time between trigger and
edge, 468 measurements, time between trigger and
vertical value, 470 measurements, time between trigger and
voltage level, 1102 measurements, upper threshold
value, 1103 measurements, vertical amplitude, 434,
472 measurements, vertical peak-to-peak, 437,
477 measurements, voltage difference, 1104 memory setup, 185, 888 menu, system, 876 message available bit, 189 message available bit clear, 171 message displayed, 189 message error, 1123 message queue, 1140 messages ready, 189 midpoint of thresholds, 449 MIL-STD-1553 demo signal, 292 MIL-STD-1553 serial decode base, 751 MIL-STD-1553 serial search, data, 859 MIL-STD-1553 serial search, mode, 858 MIL-STD-1553 serial search, Remote
Terminal Address, 860 MIL-STD-1553, dual demo signal, 292 minimum duration, 935, 948, 949, 951 minimum vertical value measurement, 476 minimum vertical value, time of, 484, 1099 MISO data pattern width, 767 MISO data pattern, SPI trigger, 766 MISO data source, SPI trigger, 764 MISO data, SPI, 1009 mixed-signal demo signals, 291 mixed-signal oscilloscopes, 6 mnemonics, duplicate, 1169 mode, 391, 893, 970 mode, serial decode, 649 model number, 176 models, oscilloscope, 3 modes for triggering, 912 Modify softkey, 58 modulating signal frequency, waveform
generator, 1041, 1043 modulation (waveform generator),
enabling/disabling, 1049 modulation analysis, 567

modulation analysis source (voltage or current), 568
modulation analysis, type of, 569 modulation type, waveform
generator, 1050 MOSI data pattern width, 769 MOSI data pattern, SPI trigger, 768 MOSI data source, SPI trigger, 765, 1119 most significant byte first, 991 move cursors, 1100, 1101 msbfirst, 991 MSG (Message), 187, 189 MSO models, 6 MSS (Master Summary Status), 189 MTEenable (Mask Test Event Enable
Register), 207 MTERegister[:EVENt] (Mask Test Event Event
Register), 209, 1148 MTESt commands, 505 multi-channel waveform data, save, 633 multiple commands, 1169 multiple queries, 73 multiply math function, 336, 357, 1005 multiply math function as g(t) source, 350
N
N2820A high sensitivity current probe, 38, 433, 434, 435, 436, 437, 438
N8900A InfiniiView oscilloscope analysis software, 633
name channels, 276 name list, 316 natural logarithm math function, 337 negative glitch trigger polarity, 938 negative pulse width, 445 negative pulse width measurement, 65 negative pulse width, power modulation
analysis, 569 negative slope, 759, 931 negative slope, Nth edge in burst, 925 negative TV trigger polarity, 971 network domain password, 378 network domain user name, 380 network printer address, 375 network printer domain, 377 network printer slot, 379 network printer, apply connection
settings, 376 new line (NL) terminator, 163, 1166 new load current, transient response
analysis, 611 NL (new line) terminator, 163, 1166 noise floor, 604, 607 noise reject filter, 913 noise waveform generator output, 1034 noise, adding to waveform generator
output, 1048 noisy sine waveform demo signal, 290 non-core commands, 1164 non-interlaced GENeric mode, 973

1308

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Index

non-volatile memory, label list, 254, 300, 316
normal acquisition type, 233, 986 normal trigger sweep mode, 903 notices, 2 NR1 number format, 163 NR3 number format, 163 Nth edge burst trigger source, 926 Nth edge burst triggering, 904 Nth edge in a burst idle, 924 Nth edge in burst slope, 925 Nth edge of burst counter, 923 Nth edge of Edge Then Edge trigger, 919 NTSC, 969, 973 null frame count (FlexRay), 690 null offset, 604 NULL string, 873 number format, 163 number of points, 238, 996, 998 number of time buckets, 996, 998 numeric variables, 72 numeric variables, reading query results into
multiple, 74 nwidth, 445
O
obsolete and discontinued commands, 1071
obsolete commands, 1164 occurrence reported by magnitude, 1102 offset, 337 offset for Ax + B math operation, 355 offset value for channel voltage, 277 offset value for selected function, 356, 360 offset, waveform generator, 1059 one values in waveform data, 993 OPC (Operation Complete) command, 178 OPC (Operation Complete) status bit, 172,
174 OPEE (Operation Status Enable
Register), 211 Open method, 67 operating configuration, 177, 888 operating state, 185 operation complete, 178 operation status condition register, 213 Operation Status Condition Register
(:OPERegister:CONDition), 213, 1145 operation status conditions occurred, 189 Operation Status Enable Register
(OPEE), 211 operation status event register, 215 Operation Status Event Register
(:OPERegister[:EVENt]), 215, 1144 operations for function, 357 operators, math, 336 OPERegister:CONDition (Operation Status
Condition Register), 213, 1145 OPERegister[:EVENt] (Operation Status
Event Register), 215, 1144

OPT (Option Identification), 179 optional syntax terms, 163 options, 179 OR trigger commands, 942 order of digital channels on display, 1084 order of output, 991 oscilloscope connection, opening, 67 oscilloscope connection, verifying, 59 oscilloscope external trigger, 327 oscilloscope models, 3 oscilloscope rate, 244 oscilloscope, connecting, 57 oscilloscope, initialization, 64 oscilloscope, operation, 6 oscilloscope, program structure, 64 oscilloscope, setting up, 57 oscilloscope, setup, 68 output control, demo signals, 295 output control, waveform generator, 1052 output load impedance, waveform
generator, 1053 output messages ready, 189 output power, 498 output queue, 178, 1139 output queue clear, 171 output ripple, 503 output ripple analysis, 580 output sequence, 991 overall pass/fail status for current harmonics
analysis, 562 overlapped commands, 1172 overload, 283 Overload Event Enable Register (OVL), 217 Overload Event Register
(:OVLRegister), 1147 Overload Event Register (OVLR), 219 overload frame count (CAN), 671 overload protection, 217, 219 overshoot of waveform, 446 overshoot percent for transient response
analysis, 591 overvoltage, 283 OVL (Overload Event Enable Register), 217 OVLR (Overload Event Register), 219 OVLR bit, 213, 215 OVLRegister (Overload Event
Register), 1147
P
P1080L24HZ, 969, 973 P1080L25HZ, 969, 973 P1080L50HZ, 969, 973 P1080L60HZ, 969, 973 P480L60HZ, 969, 973 P720L60HZ, 969, 973 PAL, 969, 973 palette for hardcopy, 381 palette for image, 630 PAL-M, 969, 973 parameters for delay measurement, 431

parametric measurements, 420 parity, 783 parity bits, LIN serial decode bus, 737 parser, 196, 1169 pass, self test, 191 pass/fail status (overall) for current
harmonics analysis, 562 password, network domain, 378 path information, recall, 618 path information, save, 635 pattern, 729, 730, 731 pattern data, I2S, 717 pattern data, LIN, 745 pattern duration, 935, 936, 948, 949 pattern for pattern trigger, 945 pattern format, I2S, 719 pattern format, LIN, 748 pattern length, 682, 747 PATTern trigger commands, 944 pattern trigger format, 947 pattern trigger qualifier, 950 pattern triggering, 904 pattern width, 767, 769 peak current, 499 peak data, 987 peak detect, 245 peak detect acquisition type, 234, 987 peak-to-peak vertical value
measurement, 437, 477 pending operations, 178 percent of waveform overshoot, 446 percent thresholds, 429 period measured to calculate phase, 450 period measurement, 65, 420, 449 Period, power modulation analysis, 569 period, waveform generator, 1054 persistence, waveform, 306, 317 phase angle, 579 phase angle, demo signals, 294 phase measured between channels, 450 phase measurements, 468 phase measurements with X cursors, 397 phase shifted demo signals, 290 PNG format screen image data, 312 pod, 539, 541, 542, 543, 1005, 1079 POD commands, 539 POD data format, 989 pod, stop displaying, 204 points, 238, 996, 998 points in waveform data, 986 polarity, 784, 971 polarity for glitch search, 806 polarity for glitch trigger, 938 polarity, runt search, 811 polarity, runt trigger, 953 polling synchronization with timeout, 1156 polling wait, 1154 PON (Power On) status bit, 172, 174 portrait layout for hardcopy, 374 position, 301, 394, 894, 899 position cursors, 1100, 1101 position in zoomed view, 899

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1309

Index

position waveforms, 1084 positive glitch trigger polarity, 938 positive pulse width, 453 positive pulse width measurement, 65 positive pulse width, power modulation
analysis, 569 positive slope, 759, 931 positive slope, Nth edge in burst, 925 positive TV trigger polarity, 971 positive width, 453 power analysis, enabling, 553 POWer commands, 545 Power Event Enable Register
(PWRenable), 222 power event event register, 224 Power Event Event Register
(:PWRRegister[:EVENt]), 224, 1149 power factor, 494, 579 power factor for IEC 61000-3-2 Standard
Class C, 559 power loss, 500 power phase angle, 488 power quality analysis, 578 power quality type, 579 power supply rejection ratio (PSRR), 574,
575, 576, 577 preamble data, 1000 preamble metadata, 985 predefined logic threshold, 1079 predefined threshold voltages, 1121 present working directory, recall
operations, 618 present working directory, save
operations, 635 preset conditions, 877 preshoot measured on waveform, 452 previously stored configuration, 181 print command, 221 print job, start, 383 print mask test failures, 526 print query, 1115 printer driver for hardcopy, 1093 printer, active, 370 printing, 368 printing in grayscale, 1091 probe, 929 probe attenuation affects channel voltage
range, 284 probe attenuation factor (external
trigger), 329 probe attenuation factor for selected
channel, 278 probe head type, 279 probe ID, 280 probe sense for oscilloscope, 1082, 1086 probe skew value, 281, 1080 process sigma, mask test run, 529 program data, 1166 program data syntax rules, 1168 program initialization, 64 program message, 67, 170 program message syntax, 1165

program message terminator, 1166 program structure, 64 programming examples, 5, 1173 protecting against calibration, 262 protection, 217, 219, 283 protection lock, 880 pulse waveform generator output, 1034 pulse width, 445, 453 pulse width duration trigger, 935, 936,
940 pulse width measurement, 65, 420 pulse width trigger, 913 pulse width trigger level, 937 pulse width triggering, 904 pulse width, waveform generator, 1037 pwidth, 453 PWRenable (Power Event Enable
Register), 222 PWRRegister[:EVENt] (Power Event Event
Register), 224, 1149 Python, VISA COM example, 1200 Python, VISA example, 1247, 1253 PyVISA 1.5 and older, 1247 PyVISA 1.6 and newer, 1253
Q
qualifier, 940 qualifier for glitch search, 807 qualifier, runt search, 812 qualifier, runt trigger, 954 qualifier, transition search, 816 qualifier, transition trigger, 964 qualifier, trigger duration, 948, 949 qualifier, trigger pattern, 950 queries, multiple, 73 query error detected in Standard Event
Status, 174 query responses, block data, 72 query responses, reading, 71 query results, reading into numeric
variables, 72 query results, reading into string
variables, 72 query return values, 1171 query setup, 368, 390, 420, 888 query subsystem, 248, 298 querying setup, 269 querying the subsystem, 904 queues, clearing, 1150 quick reference, commands, 77 quoted ASCII string, 164 QYE (Query Error) status bit, 172, 174
R
ramp symmetry, waveform generator, 1038 ramp symmetry, waveform generator
modulating signal, 1047 ramp waveform generator output, 1034

range, 337, 900 range for channels, 284 range for duration trigger, 951 range for external trigger, 330 range for full-scale vertical axis, 359 range for glitch search, 808 range for glitch trigger, 940 range for time base, 895 range of offset values, 277 range qualifier, 939 range, I2S, 720 ranges, value, 164 rate, 244 ratio measurements with X cursors, 397 ratio measurements with Y cursors, 404 ratio of AC RMS values measured between
channels, 478 Ratio, power modulation analysis, 569 raw acquisition record, 998 RCL (Recall), 181 Rds (dynamic ON resistance)
waveform, 603 Rds(on) value for conduction
calculation, 605 reactive power, 501, 579 read configuration, 177 ReadIEEEBlock method, 67, 71, 73 ReadList method, 67, 71 ReadNumber method, 67, 71 readout, 1096 ReadString method, 67, 71 real (actual) power, 579 real power, 502 real-time acquisition mode, 237 recall, 181, 614, 888 recall arbitrary waveform, 615 RECall commands, 613 recall filename, 616, 1032 recall mask, 617 recall path information, 618 recall reference waveform, 620 recall setup, 619 recalling and saving data, 306 receiver width, I2S, 710 RECTangular window for transient
signals, 347 reference, 337, 896 reference for time base, 1120 reference waveform save source, 642 reference waveform, recall, 620 reference waveform, save, 643 reference waveforms, clear, 1063 reference waveforms, display, 1064 reference waveforms, label, 1065 reference waveforms, save to, 1066 reference waveforms, skew, 1067 reference waveforms, Y offset, 1068 reference waveforms, Y range, 1069 reference waveforms, Y scale, 1070 reference, lister, 388 registers, 174, 181, 185, 198, 207, 209,
211, 213, 215, 217, 219, 222, 224

1310

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Index

registers, clearing, 1150 reject filter, 930 reject high frequency, 907 reject noise, 913 relative standard deviation, 467 remote command logging,
enable/disable, 881, 885 remote control examples, 1173 Remote Terminal Address (RTA), M1553
trigger, 754 remove cursor information, 391 remove labels, 315 remove message from display, 873 reorder channels, 199 repetitive acquisitions, 225 report errors, 874 report transition, 468, 470 reporting status, 1131 reporting the setup, 904 request service, 189 Request-for-OPC flag clear, 171 reset, 182 reset conditions, 182 reset defauts, waveform generator, 1055 reset mask statistics, 517 reset measurements, 311 resolution of printed copy, 1091 resource session object, 67 ResourceManager object, 67 restore configurations, 177, 181, 185, 888 restore labels, 315 restore setup, 181 return values, query, 1171 returning acquisition type, 245 returning number of data points, 238 RF burst demo signal, 290 right reference, 896 ringing pulse demo signal, 290 ripple (output) analysis, 580 ripple, output, 503 rise time measurement, 420 rise time of positive edge, 457 Rise Time, power modulation analysis, 569 rising edge count measurement, 448 rising pulse count measurement, 451 RMS - AC, power modulation analysis, 569 RMS value measurement, 438, 479 roll time base mode, 893 root (:) commands, 193, 196 root level commands, 3 RQL (Request Control) status bit, 172, 174 RQS (Request Service), 189 RS-232/UART triggering, 646 RST (Reset), 182 rules, tree traversal, 1169 rules, truncation, 1166 run, 190, 225 Run bit, 213, 215 run count, current harmonics analysis, 560 run mode, mask test, 524 running configuration, 185, 888 RUNT SEARch commands, 810

runt search polarity, 811 runt search qualifier, 812 runt search source, 813 runt search, pulse time, 814 RUNT trigger commands, 952 runt trigger polarity, 953 runt trigger qualifier, 954 runt trigger source, 955 runt trigger time, 956 Rx frame count (UART), 780 Rx source, 785
S
sample rate, 244 sampled data, 1083 sampled data points, 993 SAV (Save), 185 save, 185, 623 save arbitrary waveform, 624 SAVE commands, 621 save current harmonics analysis
results, 634 save filename, 625 save image, 626 save image with inksaver, 629 save mask, 631, 632 save mask test failures, 527 save path information, 635 save reference waveform, 643 save setup, 636 save to reference waveform location, 1066 save waveform data, 637 saved image, area, 1117 saving and recalling data, 306 SBUS A429 commands, 650 SBUS CAN commands, 668 SBUS commands, 645 SBUS I2S commands, 704 SBUS<n> commands, general, 647 scale, 361, 897, 901 scale factors output on hardcopy, 371, 627 scale for channels, 285 scale units for channels, 286 scale units for external trigger, 331 scaling display factors, 278 SCPI commands, 75 SCPI.NET examples, 1299 scratch measurements, 1095 screen area for hardcopy print, 369 screen area for saved image, 1117 screen display of logged remote commands,
enable/disable, 883 screen image data, 312 SDI pattern, ARINC 429 trigger, 663, 824 SEARch commands, 795 SEARch commands, A429, 820 SEARch commands, CAN, 826 SEARch commands, EDGE, 800 SEARch commands, FLEXray, 832 SEARch commands, general, 796

SEARch commands, GLITch, 803 SEARch commands, I2S, 838 SEARch commands, IIC, 844 SEARch commands, LIN, 851 SEARch commands, M1553, 857 SEARch commands, RUNT, 810 SEARch commands, SPI, 861 SEARch commands, TRANsition, 815 SEARch commands, UART, 865 search mode, 798 search state, 799 search, edge slope, 801 search, edge source, 802 SECAM, 969, 973 seconds per division, 897 segmented waveform save option, 641 segments, analyze, 239 segments, count of waveform, 1003 segments, setting number of memory, 240 segments, setting the index, 241 segments, time tag, 1004 select measurement channel, 460 self-test, 191 sensing a channel probe, 1082 sensing a external trigger probe, 1086 sensitivity of oscilloscope input, 278 sequential commands, 1172 serial clock, 727, 762 serial data, 728 serial decode bus, 645 serial decode bus display, 648 serial decode mode, 649 serial frame, 763 serial number, 226 service request, 189 Service Request Enable Register
(SRE), 187, 1137 set center frequency, 344 set cursors, 1100, 1101 set date, 871 set time, 890 set up oscilloscope, 57 setting digital display, 299 setting digital label, 254, 300 setting digital position, 301 setting digital threshold, 303 setting display, 343 setting external trigger level, 327 setting impedance for channels, 274 setting inversion for channels, 275 setting pod display, 541 setting pod size, 542 setting pod threshold, 543 settings, 181, 185 settings, instrument, 368 setup, 234, 248, 269, 298, 306, 368,
888 setup and hold trigger clock source, 959 setup and hold trigger data source, 960 setup and hold trigger hold time, 961 setup and hold trigger setup time, 962 setup and hold trigger slope, 958

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1311

Index

setup configuration, 181, 185, 888 setup defaults, 182, 877 setup memory, 181 setup reported, 904 setup time, setup and hold trigger, 962 setup, recall, 619 setup, save, 636 shape of modulation signal, waveform
generator, 1046 SHOLd trigger commands, 957 short form, 5, 1166 show channel labels, 315 show measurements, 420, 459 SICL example in C, 1279 SICL example in Visual Basic, 1288 SICL examples, 1279 sigma, mask test run, 529 signal speed, ARINC 429, 660 signal type, 282 signal type, ARINC 429, 658 signed data, 988 simple command headers, 1167 sine cardinal waveform generator
output, 1035 sine waveform demo signal, 290 sine waveform generator output, 1033 single acquisition, 227 single-ended probe heads, 279 single-ended signal type, 282 single-shot demo signal, 291 single-shot DUT, synchronizing with, 1158 size, 542 size, digital channels, 302 skew, 281, 1080 skew reference waveform, 1067 slew rate power analysis, 600 slope, 759, 931 slope (direction) of waveform, 1102 slope not valid in TV trigger mode, 931 slope parameter for delay
measurement, 431 slope, arming edge, Edge Then Edge
trigger, 916 slope, Nth edge in burst, 925 slope, setup and hold trigger, 958 slope, transition search, 817 slope, transition trigger, 965 slope, trigger edge, Edge Then Edge
trigger, 920 slot, network printer, 379 smoothing acquisition type, 987 snapshot all measurement, 422 software version, 176 source, 460, 659, 678, 740 source (voltage or current) for slew rate
analysis, 601 source channel, M1553, 752 source for function, 1087 source for glitch search, 809 source for Nth edge burst trigger, 926 source for trigger, 932 source for TV trigger, 972

source input for function, first, 362 source input for function, second, 364 source, arming edge, Edge Then Edge
trigger, 917 source, automask, 512 source, FLEXray, 694 source, mask test, 537 source, runt search, 813 source, runt trigger, 955 source, save reference waveform, 642 source, transition trigger, 818, 966 source, trigger edge, Edge Then Edge
trigger, 921 source, waveform, 1005 span, 336 span of frequency on display, 345 specify measurement, 460 speed of ARINC 429 signal, 660 SPI, 759 SPI clock timeout, 760 SPI decode bit order, 758 SPI decode word width, 771 SPI demo signal, 292 SPI MISO data, 1009 SPI SEARch commands, 861 SPI serial search, data, 863 SPI serial search, data width, 864 SPI serial search, mode, 862 SPI trigger, 761, 767, 769 SPI trigger clock, 762 SPI trigger commands, 756 SPI trigger frame, 763 SPI trigger MISO data pattern, 766 SPI trigger MOSI data pattern, 768 SPI trigger type, 770 SPI trigger, MISO data source, 764 SPI trigger, MOSI data source, 765, 1119 SPI triggering, 646 square math function, 336, 357 square root math function, 336, 357 square wave duty cycle, waveform
generator, 1039 square waveform generator output, 1033 SRE (Service Request Enable
Register), 187, 1137 SRQ (Service Request interrupt), 207, 211,
222 SSM pattern, ARINC 429 trigger, 664, 825 standard deviation measured on
waveform, 458 Standard Event Status Enable Register
(ESE), 172, 1142 Standard Event Status Register (ESR), 174,
1141 standard for video, 973 standard, LIN, 741 start acquisition, 190, 205, 225, 227 start and stop edges, 429 start cursor, 1100 start measurement, 420 start print job, 383 start time, 940, 1100

start time marker, 1097 state memory, 185 state of instrument, 177, 888 statistics increment, 464 statistics reset, 466 statistics results, 454 statistics, max count, 465 statistics, relative standard deviation, 467 statistics, type of, 462 status, 188, 228, 230 Status Byte Register (STB), 186, 188, 189,
1135 status data structure clear, 171 status registers, 74 status reporting, 1131 STB (Status Byte Register), 186, 188, 189,
1135 steady state output voltage expected, 595,
596, 597 step size for frequency span, 345 stop, 205, 229 stop acquisition, 229 stop cursor, 1101 stop displaying channel, 204 stop displaying math function, 204 stop displaying pod, 204 stop on mask test failure, 528 stop time, 940, 1101 storage, 185 store instrument setup, 177, 185 store setup, 185 storing calibration information, 260 string variables, 72 string variables, reading multiple query
results into, 73 string variables, reading query results into
multiple, 73 string, quoted ASCII, 164 subnet mask, 58 subsource, waveform source, 1009 subsystem commands, 3, 1169 subtract math function, 336, 357, 1005 subtract math function as g(t) source, 350 sweep mode, trigger, 903, 914 sweep speed set to fast to measure fall
time, 440 sweep speed set to fast to measure rise
time, 457 switch disable, 875 switching level, current, 604 switching level, voltage, 607 switching loss per cycle, 490 switching loss power analysis, 602 sync break, LIN, 742 sync frame count (FlexRay), 692 syntax elements, 163 syntax rules, program data, 1168 syntax, optional terms, 163 syntax, program message, 1165 SYSTem commands, 869 system commands, 871, 873, 874, 875,
888, 890

1312

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Index

system commands introduction, 870
T
table of current harmonics results, 556 tdelta, 1096 tedge, 468 telnet ports 5024 and 5025, 993 Telnet sockets, 75 temporary message, 873 TER (Trigger Event Register), 230, 1138 termination conditions, mask test, 524 test sigma, mask test run, 529 test, self, 191 text, writing to display, 873 THD (total harmonics distortion), 563 threshold, 303, 543, 1079, 1121 threshold voltage (lower) for
measurement, 1094 threshold voltage (upper) for
measurement, 1103 thresholds, 429, 1097 thresholds used to measure period, 449 thresholds, how autoscale affects, 199 time base, 893, 894, 895, 896, 897,
1120 time base commands introduction, 892 time base reset conditions, 183, 878 time base window, 899, 900, 901 time between points, 1096 time buckets, 235, 236 time delay, 1120 time delay, Edge Then Edge trigger, 918 time delta, 1096 time difference between data points, 1013 time duration, 940, 948, 949, 951 time holdoff for trigger, 908 time interval, 468, 470, 1096 time interval between trigger and
occurrence, 1102 time marker sets start time, 1097 time measurements with X cursors, 397 time per division, 895 time record, 347 time reference, lister, 388 time specified, 480 time, calibration, 266 time, mask test run, 530 time, runt pulse search, 814 time, runt trigger, 956 time, start marker, 1100 time, stop marker, 1101 time, system, 890 time, transition search, 819 time, transition trigger, 967 time/div, how autoscale affects, 199 time-at-max measurement, 1098 time-at-min measurement, 1099 TIMebase commands, 891 timebase vernier, 898 TIMebase:MODE, 70

time-ordered label list, 316 timeout, SPI clock, 760 timing measurement, 420 title channels, 276 title, mask test, 538 tolerance, automask, 514, 515 top of waveform value measured, 481 total frame count (CAN), 673 total frame count (FlexRay), 693 total harmonics distortion (THD), 563 total waveforms in mask test, 519 trace memory, 228 track measurements, 459 transfer instrument state, 177, 888 transforms, math, 336 transient response, 504 transient response analysis, 608, 609, 612 TRANsition SEARch commands, 815 transition search qualifier, 816 transition search slope, 817 transition search time, 819 transition trigger qualifier, 964 transition trigger slope, 965 transition trigger source, 818, 966 transition trigger time, 967 transmit word size, I2S, 722 transparent screen background, remote
command logging, 886 tree traversal rules, 1169 trend measurement, 365 TRG (Trigger), 187, 189, 190 TRIG OUT BNC, 261 trigger armed event register, 213, 215 trigger burst, UART, 788 trigger channel source, 941, 972 TRIGger commands, 903 TRIGger commands, general, 905 trigger data, UART, 789 TRIGger DELay commands, 915 trigger duration, 948, 949 TRIGger EBURst commands, 922 TRIGger EDGE commands, 927 trigger edge coupling, 928 trigger edge slope, 931 trigger edge slope, Edge Then Edge
trigger, 920 trigger edge source, Edge Then Edge
trigger, 921 trigger event bit, 230 Trigger Event Register (TER), 1138 TRIGger FLEXray commands, 685 TRIGger GLITch commands, 933 trigger holdoff, 908 trigger idle, UART, 790 TRIGger IIC commands, 724 trigger level auto set up, 909 trigger level constants, 278 trigger level voltage, 929 trigger level, high, 910 trigger level, low, 911 TRIGger LIN commands, 735 TRIGger M1553 commands, 749

trigger occurred, 189 TRIGger OR commands, 942 TRIGger PATTern commands, 944 trigger pattern qualifier, 950 trigger qualifier, UART, 791 trigger reset conditions, 183, 878 TRIGger RUNT commands, 952 TRIGger SHOLd commands, 957 trigger SPI clock slope, 759 TRIGger SPI commands, 756 trigger status bit, 230 trigger sweep mode, 903 TRIGger TV commands, 963, 968 trigger type, ARINC 429, 666, 822 trigger type, SPI, 770 trigger type, UART, 792 TRIGger UART commands, 772 TRIGger USB commands, 978 trigger, ARINC 429 source, 659 trigger, CAN, 679 trigger, CAN pattern data length, 682 trigger, CAN pattern ID mode, 684 trigger, CAN sample point, 675 trigger, CAN signal baudrate, 676 trigger, CAN signal definition, 677 trigger, CAN source, 678 trigger, duration greater than, 948 trigger, duration less than, 949 trigger, duration range, 951 trigger, edge coupling, 928 trigger, edge level, 929 trigger, edge reject, 930 trigger, edge slope, 931 trigger, edge source, 932 trigger, FLEXray, 695 trigger, FLEXray error, 696 trigger, FLEXray event, 699 trigger, force a, 906 trigger, glitch greater than, 935 trigger, glitch less than, 936 trigger, glitch level, 937 trigger, glitch polarity, 938 trigger, glitch qualifier, 939 trigger, glitch range, 940 trigger, glitch source, 941 trigger, high frequency reject filter, 907 trigger, holdoff, 908 trigger, I2S, 714 trigger, I2S alignment, 707 trigger, I2S audio channel, 716 trigger, I2S clock slope, 709 trigger, I2S CLOCksource, 711 trigger, I2S DATA source, 712 trigger, I2S pattern data, 717 trigger, I2S pattern format, 719 trigger, I2S range, 720 trigger, I2S receiver width, 710 trigger, I2S transmit word size, 722 trigger, I2S word select (WS) low, 723 trigger, I2S word select (WS) source, 713 trigger, IIC clock source, 727 trigger, IIC data source, 728

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1313

Index

trigger, IIC pattern address, 729 trigger, IIC pattern data, 730 trigger, IIC pattern data 2, 731 trigger, IIC qualifier, 732 trigger, IIC signal baudrate, 739 trigger, IIC type, 733 trigger, LIN, 743 trigger, LIN pattern data, 745 trigger, LIN pattern data length, 747 trigger, LIN pattern format, 748 trigger, LIN sample point, 738 trigger, LIN signal definition, 1118 trigger, LIN source, 740 trigger, mode, 912 trigger, noise reject filter, 913 trigger, Nth edge burst source, 926 trigger, Nth edge in burst slope, 925 trigger, Nth edge of burst count, 923 trigger, Nth edge of Edge Then Edge
trigger, 919 trigger, SPI clock slope, 759 trigger, SPI clock source, 762 trigger, SPI clock timeout, 760 trigger, SPI frame source, 763 trigger, SPI framing, 761 trigger, SPI pattern MISO width, 767 trigger, SPI pattern MOSI width, 769 trigger, sweep, 914 trigger, threshold, 1121 trigger, TV line, 969 trigger, TV mode, 970, 1122 trigger, TV polarity, 971 trigger, TV source, 972 trigger, TV standard, 973 trigger, UART base, 787 trigger, UART baudrate, 776 trigger, UART bit order, 777 trigger, UART parity, 783 trigger, UART polarity, 784 trigger, UART Rx source, 785 trigger, UART Tx source, 786 trigger, UART width, 793 trigger, USB, 982 trigger, USB D- source, 979 trigger, USB D+ source, 980 trigger, USB speed, 981 truncation rules, 1166 TST (Self Test), 191 tstart, 1100 tstop, 1101 TTL threshold voltage for digital
channels, 303, 1079 TTL trigger threshold voltage, 1121 turn function on or off, 1088 turn off channel, 204 turn off channel labels, 315 turn off digital pod, 204 turn off math function, 204 turn off time, 496, 573 turn on channel labels, 315 turn on channel number display, 1084 turn on time, 497, 573 1314

turn on/turn off time analysis, 570, 571, 572, 573
turning channel display on and off, 273 turning off/on function calculation, 343 turning vectors on or off, 1083 TV mode, 970, 1122 TV trigger commands, 963, 968 TV trigger line number setting, 969 TV trigger mode, 972 TV trigger polarity, 971 TV trigger standard setting, 973 TV triggering, 904 tvmode, 1122 Tx data, UART, 1009 Tx frame count (UART), 781 Tx source, 786
U
UART base, 787 UART baud rate, 776 UART bit order, 777 UART frame counters, reset, 779 UART parity, 783 UART polarity, 784 UART Rx source, 785 UART SEARch commands, 865 UART serial search, data, 866 UART serial search, data qualifier, 868 UART serial search, mode, 867 UART trigger burst, 788 UART trigger commands, 772 UART trigger data, 789 UART trigger idle, 790 UART trigger qualifier, 791 UART trigger type, 792 UART Tx data, 1009 UART Tx source, 786 UART width, 793 UART/RS232 demo signal, 291 UART/RS-232 triggering, 646 units (vertical) for FFT, 346 units per division, 285, 286, 331, 897 units per division (vertical) for
function, 285, 361 units, automask, 513 units, X cursor, 397, 398 units, Y cursor, 404, 405 unsigned data, 988 unsigned mode, 1011 upper threshold, 449 upper threshold voltage for
measurement, 1103 uppercase characters in commands, 1165 URQ (User Request) status bit, 172, 174 USB (Device) interface, 57 USB source, 979, 980 USB speed, 981 USB storage device, recalling files
from, 614 USB storage device, saving files to, 623

USB trigger, 982 USB trigger commands, 978 USB triggering, 904 user defined channel labels, 276 user defined threshold, 1079 user event conditions occurred, 189 user name, network domain, 380 User's Guide, 6 user-defined threshold voltage for digital
channels, 303 user-defined trigger threshold, 1121 USR (User Event bit), 187, 189 utilization, CAN bus, 674
V
valid command strings, 1165 valid pattern time, 948, 949 value, 470 value measured at base of waveform, 436,
474 value measured at specified time, 480 value measured at top of waveform, 481 value ranges, 164 values required to fill time buckets, 236 VBA, 66, 1174 Vce(sat) value for conduction
calculation, 606 vectors turned on or off, 1083 vectors, display, 318 vectors, turning on or off, 306 vernier, channel, 287 vernier, horizontal, 898 vertical adjustment, fine (vernier), 287 vertical amplitude measurement, 434, 472 vertical axis defined by RANGe, 359 vertical axis range for channels, 284 vertical offset for channels, 277 vertical peak-to-peak measured on
waveform, 437, 477 vertical scale, 285, 361 vertical scaling, 1000 vertical threshold, 1079 vertical units for FFT, 346 vertical value at center screen, 356, 360 vertical value maximum measured on
waveform, 475 vertical value measurements to calculate
overshoot, 446 vertical value minimum measured on
waveform, 476 video line to trigger on, 969 video standard selection, 973 view, 231, 1012, 1084 view turns function on or off, 1088 VISA COM example in C#, 1183 VISA COM example in Python, 1200 VISA COM example in Visual Basic, 1174 VISA COM example in Visual Basic
.NET, 1192 VISA example in C, 1207

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Index

VISA example in C#, 1226 VISA example in Python, 1247, 1253 VISA example in Visual Basic, 1216 VISA example in Visual Basic .NET, 1237 VISA examples, 1174, 1207 VISA.NET example in C#, 1260 VISA.NET example in IronPython, 1273 VISA.NET example in Visual Basic
.NET, 1266 VISA.NET examples, 1260 Visual Basic .NET, VISA COM
example, 1192 Visual Basic .NET, VISA example, 1237 Visual Basic .NET, VISA.NET example, 1266 Visual Basic 6.0, 67 Visual Basic for Applications, 66, 1174 Visual Basic, SICL library example, 1288 Visual Basic, VISA COM example, 1174 Visual Basic, VISA example, 1216 visualizations, math, 337 voltage crossing reported or not
found, 1102 voltage difference between data
points, 1016 voltage difference measured, 1104 voltage level for active trigger, 929 voltage marker used to measure
waveform, 1105, 1106 voltage offset value for channels, 277 voltage probe, 286, 331 voltage ranges for channels, 284 voltage ranges for external trigger, 330 voltage source, 599 voltage threshold, 429 voltage, maximum expected input, 592,
593, 594
W
WAI (Wait To Continue), 192 wait, 192 wait for operation complete, 178 Wait Trig bit, 213, 215 warranty, 2 waveform base value measured, 436, 474 WAVeform command, 65 WAVeform commands, 983 waveform data, 985 waveform data format, 638 waveform data length, 639 waveform data length, maximum, 640 waveform data, save, 637 waveform generator, 1021 waveform generator amplitude, 1056 waveform generator function, 1033 waveform generator high-level
voltage, 1057 waveform generator low-level
voltage, 1058 waveform generator offset, 1059 waveform generator output control, 1052

waveform generator output load impedance, 1053
waveform generator period, 1054 waveform generator pulse width, 1037 waveform generator ramp symmetry, 1038 waveform generator reset defaults, 1055 waveform generator square wave duty
cycle, 1039 waveform introduction, 985 waveform maximum vertical value
measured, 475 waveform minimum vertical value
measured, 476 waveform must cross voltage level to be an
occurrence, 1102 WAVeform parameters, 70 waveform peak-to-peak vertical value
measured, 437, 477 waveform period, 449 waveform persistence, 306 waveform RMS value measured, 438, 479 waveform save option for segments, 641 waveform source, 1005 waveform source subsource, 1009 waveform standard deviation value
measured, 458 waveform vertical amplitude, 434, 472 waveform voltage measured at
marker, 1105, 1106 waveform, byte order, 991 waveform, count, 992 waveform, data, 993 waveform, format, 995 waveform, points, 996, 998 waveform, preamble, 1000 waveform, type, 1010 waveform, unsigned, 1011 waveform, view, 1012 waveform, X increment, 1013 waveform, X origin, 1014 waveform, X reference, 1015 waveform, Y increment, 1016 waveform, Y origin, 1017 waveform, Y reference, 1018 WAVeform:FORMat, 70 waveforms, mask test run, 531 Web control, 75 website, examples on, 1173 WGEN commands, 1019 WGEN trigger source, 932 what's new, 33 width, 793, 940 window, 899, 900, 901 window time, 895 window time base mode, 893 window, measurement, 482 windows, 347 windows as filters to Fast Fourier
Transforms, 347 windows for Fast Fourier Transform
functions, 347 WMEMory commands, 1061

word counter (ARINC 429), 656 word counter (ARINC 429), reset, 655 word format, 995 word format for data transfer, 988 word format, ARINC 429, 657 word select (WS) low, I2S trigger, 723 word select (WS) source, I2S, 713 word width, SPI decode, 771 write mode, remote command
logging, 881, 887 write text to display, 873 WriteIEEEBlock method, 67, 73 WriteList method, 67 WriteNumber method, 67 WriteString method, 67
X
X axis markers, 390 X cursor units, 397, 398 X delta, 396 X delta, mask scaling, 534 X1 and X2 cursor value difference, 396 X1 cursor, 390, 392, 393 X1, mask scaling, 533 X2 cursor, 390, 394, 395 X-axis functions, 892 X-increment, 1013 X-of-max measurement, 483 X-of-min measurement, 484 X-origin, 1014 X-reference, 1015 X-Y mode, 892, 893
Y
Y axis markers, 390 Y cursor units, 404, 405 Y offset, reference waveform, 1068 Y range, reference waveform, 1069 Y scale, reference waveform, 1070 Y1 and Y2 cursor value difference, 403 Y1 cursor, 390, 393, 399, 403 Y1, mask scaling, 535 Y2 cursor, 390, 395, 401, 403 Y2, mask scaling, 536 Y-axis value, 1017 Y-increment, 1016 Y-origin, 1017, 1018 Y-reference, 1018
Z
zero values in waveform data, 993 zoomed time base, 893 zoomed time base measurement
window, 482 zoomed time base mode, how autoscale
affects, 199

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

1315

Index zoomed window horizontal scale, 901

1316

Keysight InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide


Acrobat Distiller 10.1.16 (Windows)