Agilent Technologies 5000 Series, Sander 5000 Series User manual

  • Hello! I am an AI chatbot trained to assist you with the Agilent Technologies 5000 Series User manual. I’ve already reviewed the document and can help you find the information you need or explain it in simple terms. Just ask your questions, and providing more details will help me assist you more effectively!
A
Agilent InfiniiVision
5000 Series
Oscilloscopes
Programmer's Reference
Notices
© Agilent Technologies, Inc. 2007-2008
No part of this manual may be reproduced
in any form or by any means (including
electronic storage and retrieval or transla-
tion into a foreign language) without prior
agreement and written consent from Agi-
lent Technologies, Inc. as governed by
United States and international copyright
laws.
Manual Part Number
Version 05.00.0001
Edition
January 28, 2008
Available in electronic format only
Agilent Technologies, Inc.
1900 Garden of the Gods Road
Colorado Springs, CO 80907 USA
Warranty
The material contained in this docu-
ment is provided “as is,” and is sub-
ject to being changed, without notice,
in future editions. Further, to the max-
imum extent permitted by applicable
law, Agilent 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 par-
ticular purpose. Agilent shall not be
liable for errors or for incidental or
consequential damages in connection
with the furnishing, use, or perfor-
mance of this document or of any
information contained herein. Should
Agilent 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 sep-
arate agreement shall control.
Technology Licenses
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.
Restricted Rights Legend
If software is for use in the performance of
a U.S. Government prime contract or sub-
contract, Software is delivered and
licensed as “Commercial computer soft-
ware” as defined in DFAR 252.227-7014
(June 1995), or as a “commercial item” as
defined in FAR 2.101(a) or as “Restricted
computer software” as defined in FAR
52.227-19 (June 1987) or any equivalent
agency regulation or contract clause. Use,
duplication or disclosure of Software is
subject to Agilent Technologies’ standard
commercial license terms, and non-DOD
Departments and Agencies of the U.S. Gov-
ernment will receive no greater than
Restricted Rights as defined in FAR
52.227-19(c)(1-2) (June 1987). U.S. Govern-
ment users will receive no greater than
Limited Rights as defined in FAR 52.227-14
(June 1987) or DFAR 252.227-7015 (b)(2)
(November 1995), as applicable in any
technical data.
Safety Notices
CAUTION
A CAUTION notice denotes a haz-
ard. It calls attention to an operat-
ing 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 per-
formed or adhered to, could result
in personal injury or death. Do not
proceed beyond a WARNING
notice until the indicated condi-
tions are fully understood and met.
Trademarks
Microsoft®, MS-DOS®, Windows®, Win-
dows 2000®, and Windows XP® are U.S.
registered trademarks of Microsoft Corpo-
ration.
Adobe®, Acrobat®, and the Acrobat
Logo® are trademarks of Adobe Systems
Incorporated.
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference 3
In This Book
This programmer's reference gives detailed information on all the
commands available for controlling these oscilloscope models:
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.
Command arguments and syntax are described for each command. Some
command descriptions have example code.
"What's New" on page 17
"Commands Quick Reference" on page 23
"Commands by Subsystem" on page 59
"Commands A- Z" on page 435
"Obsolete and Discontinued Commands" on page 457
"Error Messages" on page 499
"Status Reporting" on page 507
"More About Oscilloscope Commands" on page 529
"Programming Examples" on page 549
See the Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's
Quick Start Guide for information on installing the IO libraries,
connecting the oscilloscope to the controller PC, and getting started with
oscilloscope programming.
See your oscilloscope's User's Guide for more information on front-panel
operation.
Example
Programs
The example programs are designed to work with multiple InfiniiVision
5000 Series oscilloscopes. Therefore, the commands may not match the
example code exactly, but the example code should run because of the
designed- in backward compatibility with earlier commands.
Table 1 InfiniiVision 5000 Series Oscilloscope Models
Channels Input Bandwidth (Maximum Sample Rate)
500 MHz (4 GSa/s) 300 MHz (2 GSa/s) 100 MHz (2 GSa/s)
4 analog DSO5054A DSO5034A DSO5014A
2 analog DSO5052A DSO5032A DSO5012A
4 Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference 5
Contents
In This Book 3
1 What's New
What's New in Version 5.00 18
What's New in Version 4.10 20
Version 4.00 at Introduction 21
2 Commands Quick Reference
Command Summary 24
Syntax Elements 56
Number Format 56
<NL> (Line Terminator) 56
[ ] (Optional Syntax Terms) 56
{ } (Braces) 56
::= (Defined As) 56
< > (Angle Brackets) 57
... (Ellipsis) 57
n,..,p (Value Ranges) 57
d (Digits) 57
Quoted ASCII String 57
Definite-Length Block Response Data 57
3 Commands by Subsystem
Common (*) Commands 61
*CLS (Clear Status) 65
*ESE (Standard Event Status Enable) 66
*ESR (Standard Event Status Register) 68
*IDN (Identification Number) 70
*LRN (Learn Device Setup) 71
*OPC (Operation Complete) 72
*OPT (Option Identification) 73
*RCL (Recall) 74
*RST (Reset) 75
*SAV (Save) 78
6 Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
*SRE (Service Request Enable) 79
*STB (Read Status Byte) 81
*TRG (Trigger) 83
*TST (Self Test) 84
*WAI (Wait To Continue) 85
Root (:) Commands 86
:AER (Arm Event Register) 89
:AUToscale 90
:AUToscale:AMODE 92
:AUToscale:CHANnels 93
:BLANk 94
:CDISplay 95
:DIGitize 96
:HWEenable (Hardware Event Enable Register) 98
:HWERegister:CONDition (Hardware Event Condition Register) 100
:HWERegister[:EVENt] (Hardware Event Event Register) 102
:MERGe 104
:OPEE (Operation Status Enable Register) 105
:OPERegister:CONDition (Operation Status Condition Register) 107
:OPERegister[:EVENt] (Operation Status Event Register) 109
:OVLenable (Overload Event Enable Register) 111
:OVLRegister (Overload Event Register) 113
:PRINt 115
:RUN 116
:SERial 117
:SINGle 118
:STATus 119
:STOP 120
:TER (Trigger Event Register) 121
:VIEW 122
:ACQuire Commands 123
:ACQuire:AALias 125
:ACQuire:COMPlete 126
:ACQuire:COUNt 127
:ACQuire:DAALias 128
:ACQuire:MODE 129
:ACQuire:POINts 130
:ACQuire:SRATe 131
:ACQuire:TYPE 132
:CALibrate Commands 134
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference 7
:CALibrate:DATE 135
:CALibrate:LABel 136
:CALibrate:STARt 137
:CALibrate:STATus 138
:CALibrate:SWITch 139
:CALibrate:TEMPerature 140
:CALibrate:TIME 141
:CHANnel<n> Commands 142
:CHANnel<n>:BWLimit 145
:CHANnel<n>:COUPling 146
:CHANnel<n>:DISPlay 147
:CHANnel<n>:IMPedance 148
:CHANnel<n>:INVert 149
:CHANnel<n>:LABel 150
:CHANnel<n>:OFFSet 151
:CHANnel<n>:PROBe 152
:CHANnel<n>:PROBe:ID 153
:CHANnel<n>:PROBe:SKEW 154
:CHANnel<n>:PROBe:STYPe 155
:CHANnel<n>:PROTection 156
:CHANnel<n>:RANGe 157
:CHANnel<n>:SCALe 158
:CHANnel<n>:UNITs 159
:CHANnel<n>:VERNier 160
:DISPlay Commands 161
:DISPlay:CLEar 163
:DISPlay:DATA 164
:DISPlay:LABel 166
:DISPlay:LABList 167
:DISPlay:PERSistence 168
:DISPlay:SOURce 169
:DISPlay:VECTors 170
:EXTernal Trigger Commands 171
:EXTernal:BWLimit 173
:EXTernal:IMPedance 174
:EXTernal:PROBe 175
:EXTernal:PROBe:ID 176
:EXTernal:PROBe:STYPe 177
:EXTernal:PROTection 178
:EXTernal:RANGe 179
8 Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
:EXTernal:UNITs 180
:FUNCtion Commands 181
:FUNCtion:CENTer 183
:FUNCtion:DISPlay 184
:FUNCtion:OFFSet 185
:FUNCtion:OPERation 186
:FUNCtion:RANGe 187
:FUNCtion:REFerence 188
:FUNCtion:SCALe 189
:FUNCtion:SOURce 190
:FUNCtion:SPAN 191
:FUNCtion:WINDow 192
:HARDcopy Commands 193
:HARDcopy:AREA 195
:HARDcopy:APRinter 196
:HARDcopy:FACTors 197
:HARDcopy:FFEed 198
:HARDcopy:INKSaver 199
:HARDcopy:PALette 200
:HARDcopy:PRinter:LIST 201
:HARDcopy:STARt 202
:MARKer Commands 203
:MARKer:MODE 205
:MARKer:X1Position 206
:MARKer:X1Y1source 207
:MARKer:X2Position 208
:MARKer:X2Y2source 209
:MARKer:XDELta 210
:MARKer:Y1Position 211
:MARKer:Y2Position 212
:MARKer:YDELta 213
:MEASure Commands 214
:MEASure:CLEar 220
:MEASure:COUNter 221
:MEASure:DEFine 222
:MEASure:DELay 225
:MEASure:DUTYcycle 227
:MEASure:FALLtime 228
:MEASure:FREQuency 229
:MEASure:NWIDth 230
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference 9
:MEASure:OVERshoot 231
:MEASure:PERiod 233
:MEASure:PHASe 234
:MEASure:PREShoot 235
:MEASure:PWIDth 236
:MEASure:RISetime 237
:MEASure:SDEViation 238
:MEASure:SHOW 239
:MEASure:SOURce 240
:MEASure:TEDGe 242
:MEASure:TVALue 244
:MEASure:VAMPlitude 246
:MEASure:VAVerage 247
:MEASure:VBASe 248
:MEASure:VMAX 249
:MEASure:VMIN 250
:MEASure:VPP 251
:MEASure:VRMS 252
:MEASure:VTIMe 253
:MEASure:VTOP 254
:MEASure:XMAX 255
:MEASure:XMIN 256
:RECall Commands 257
:RECall:FILename 258
:RECall:IMAGe[:STARt] 259
:RECall:PWD 260
:RECall:SETup[:STARt] 261
:SAVE Commands 262
:SAVE:FILename 264
:SAVE:IMAGe[:STARt] 265
:SAVE:IMAGe:AREA 266
:SAVE:IMAGe:FACTors 267
:SAVE:IMAGe:FORMat 268
:SAVE:IMAGe:INKSaver 269
:SAVE:IMAGe:PALette 270
:SAVE:PWD 271
:SAVE:SETup[:STARt] 272
:SAVE:WAVeform[:STARt] 273
:SAVE:WAVeform:FORMat 274
:SAVE:WAVeform:LENGth 275
10 Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
:SBUS Commands 276
:SBUS:CAN:COUNt:ERRor 278
:SBUS:CAN:COUNt:OVERload 279
:SBUS:CAN:COUNt:RESet 280
:SBUS:CAN:COUNt:TOTal 281
:SBUS:CAN:COUNt:UTILization 282
:SBUS:DISPlay 283
:SBUS:IIC:ASIZe 284
:SBUS:LIN:PARity 285
:SBUS:MODE 286
:SBUS:SPI:WIDTh 287
:SBUS:UART:BASE 288
:SBUS:UART:COUNt:ERRor 289
:SBUS:UART:COUNt:RESet 290
:SBUS:UART:COUNt:RXFRames 291
:SBUS:UART:COUNt:TXFRames 292
:SBUS:UART:FRAMing 293
:SYSTem Commands 294
:SYSTem:DATE 295
:SYSTem:DSP 296
:SYSTem:ERRor 297
:SYSTem:LOCK 298
:SYSTem:SETup 299
:SYSTem:TIME 301
:TIMebase Commands 302
:TIMebase:MODE 304
:TIMebase:POSition 305
:TIMebase:RANGe 306
:TIMebase:REFerence 307
:TIMebase:SCALe 308
:TIMebase:VERNier 309
:TIMebase:WINDow:POSition 310
:TIMebase:WINDow:RANGe 311
:TIMebase:WINDow:SCALe 312
:TRIGger Commands 313
General :TRIGger Commands 316
:TRIGger:HFReject 317
:TRIGger:HOLDoff 318
:TRIGger:MODE 319
:TRIGger:NREJect 320
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference 11
:TRIGger:PATTern 321
:TRIGger:SWEep 323
:TRIGger:CAN Commands 324
:TRIGger:CAN:PATTern:DATA 326
:TRIGger:CAN:PATTern:DATA:LENGth 327
:TRIGger:CAN:PATTern:ID 328
:TRIGger:CAN:PATTern:ID:MODE 329
:TRIGger:CAN:SAMPlepoint 330
:TRIGger:CAN:SIGNal:BAUDrate 331
:TRIGger:CAN:SOURce 332
:TRIGger:CAN:TRIGger 333
:TRIGger:DURation Commands 335
:TRIGger:DURation:GREaterthan 336
:TRIGger:DURation:LESSthan 337
:TRIGger:DURation:PATTern 338
:TRIGger:DURation:QUALifier 339
:TRIGger:DURation:RANGe 340
:TRIGger[:EDGE] Commands 341
:TRIGger[:EDGE]:COUPling 342
:TRIGger[:EDGE]:LEVel 343
:TRIGger[:EDGE]:REJect 344
:TRIGger[:EDGE]:SLOPe 345
:TRIGger[:EDGE]:SOURce 346
:TRIGger:GLITch Commands 347
:TRIGger:GLITch:GREaterthan 348
:TRIGger:GLITch:LESSthan 349
:TRIGger:GLITch:LEVel 350
:TRIGger:GLITch:POLarity 351
:TRIGger:GLITch:QUALifier 352
:TRIGger:GLITch:RANGe 353
:TRIGger:GLITch:SOURce 354
:TRIGger:IIC Commands 355
:TRIGger:IIC:PATTern:ADDRess 356
:TRIGger:IIC:PATTern:DATA 357
:TRIGger:IIC:PATTern:DATa2 358
:TRIGger:IIC:SOURce:CLOCk 359
:TRIGger:IIC:SOURce:DATA 360
:TRIGger:IIC:TRIGger:QUALifier 361
:TRIGger:IIC:TRIGger[:TYPE] 362
:TRIGger:LIN Commands 364
:TRIGger:LIN:ID 365
:TRIGger:LIN:SAMPlepoint 366
12 Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
:TRIGger:LIN:SIGNal:BAUDrate 367
:TRIGger:LIN:SOURce 368
:TRIGger:LIN:STANdard 369
:TRIGger:LIN:SYNCbreak 370
:TRIGger:LIN:TRIGger 371
:TRIGger:SPI Commands 372
:TRIGger:SPI:CLOCk:SLOPe 373
:TRIGger:SPI:CLOCk:TIMeout 374
:TRIGger:SPI:FRAMing 375
:TRIGger:SPI:PATTern:DATA 376
:TRIGger:SPI:PATTern:WIDTh 377
:TRIGger:SPI:SOURce:CLOCk 378
:TRIGger:SPI:SOURce:DATA 379
:TRIGger:SPI:SOURce:FRAMe 380
:TRIGger:TV Commands 381
:TRIGger:TV:LINE 382
:TRIGger:TV:MODE 383
:TRIGger:TV:POLarity 384
:TRIGger:TV:SOURce 385
:TRIGger:TV:STANdard 386
:TRIGger:UART Commands 387
:TRIGger:UART:BAUDrate 389
:TRIGger:UART:BITorder 390
:TRIGger:UART:BURSt 391
:TRIGger:UART:DATA 392
:TRIGger:UART:IDLE 393
:TRIGger:UART:PARity 394
:TRIGger:UART:POLarity 395
:TRIGger:UART:QUALifier 396
:TRIGger:UART:SOURce:RX 397
:TRIGger:UART:SOURce:TX 398
:TRIGger:UART:TYPE 399
:TRIGger:UART:WIDTh 400
:WAVeform Commands 401
:WAVeform:BYTeorder 408
:WAVeform:COUNt 409
:WAVeform:DATA 410
:WAVeform:FORMat 412
:WAVeform:POINts 413
:WAVeform:POINts:MODE 415
:WAVeform:PREamble 417
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference 13
:WAVeform:SOURce 420
:WAVeform:SOURce:SUBSource 424
:WAVeform:TYPE 425
:WAVeform:UNSigned 426
:WAVeform:VIEW 427
:WAVeform:XINCrement 428
:WAVeform:XORigin 429
:WAVeform:XREFerence 430
:WAVeform:YINCrement 431
:WAVeform:YORigin 432
:WAVeform:YREFerence 433
4 Commands A-Z
5 Obsolete and Discontinued Commands
:CHANnel:LABel 462
:CHANnel2:SKEW 463
:CHANnel<n>:INPut 464
:CHANnel<n>:PMODe 465
:DISPlay:CONNect 466
:ERASe 467
:EXTernal:INPut 468
:EXTernal:PMODe 469
:FUNCtion:VIEW 470
:HARDcopy:DESTination 471
:HARDcopy:DEVice 472
:HARDcopy:FILename 473
:HARDcopy:FORMat 474
:HARDcopy:GRAYscale 475
:HARDcopy:IGColors 476
:HARDcopy:PDRiver 477
:MEASure:LOWer 478
:MEASure:SCRatch 479
:MEASure:TDELta 480
:MEASure:THResholds 481
:MEASure:TMAX 482
:MEASure:TMIN 483
:MEASure:TSTArt 484
:MEASure:TSTOp 485
:MEASure:TVOLt 486
:MEASure:UPPer 488
:MEASure:VDELta 489
14 Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
:MEASure:VSTArt 490
:MEASure:VSTOp 491
:PRINt? 492
:TIMebase:DELay 494
:TRIGger:CAN:ACKNowledge 495
:TRIGger:CAN:SIGNal:DEFinition 496
:TRIGger:LIN:SIGNal:DEFinition 497
:TRIGger:TV:TVMode 498
6 Error Messages
7 Status Reporting
Status Reporting Data Structures 509
Status Byte Register (STB) 512
Service Request Enable Register (SRE) 514
Trigger Event Register (TER) 515
Output Queue 516
Message Queue 517
(Standard) Event Status Register (ESR) 518
(Standard) Event Status Enable Register (ESE) 519
Error Queue 520
Operation Status Event Register (:OPERegister[:EVENt]) 521
Operation Status Condition Register (:OPERegister:CONDition) 522
Arm Event Register (AER) 523
Hardware Event Event Register (:HWERegister[:EVENt]) 524
Hardware Event Condition Register (:HWERegister:CONDition) 525
Clearing Registers and Queues 526
Status Reporting Decision Chart 527
8 More About Oscilloscope Commands
Command Classifications 530
Core Commands 530
Non-Core Commands 530
Obsolete Commands 530
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference 15
Valid Command/Query Strings 531
Program Message Syntax 531
Command Tree 535
Duplicate Mnemonics 545
Tree Traversal Rules and Multiple Commands 545
Query Return Values 547
All Oscilloscope Commands Are Sequential 548
9 Programming Examples
SICL Example in C 550
VISA Example in C 559
VISA Example in Visual Basic 568
VISA COM Example in Visual Basic 578
Index
16 Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
A
17
Agilent InfiniiVision 5000 Series Oscilloscopes
Programmer's Reference
1
What's New
What's New in Version 5.00 18
What's New in Version 4.10 20
Version 4.00 at Introduction 21
18 Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
1 What's New
What's New in Version 5.00
New features in version 5.00 of the InfiniiVision 5000 Series oscilloscope
software are:
Serial triggering and decode options are now available.
The :SAVE and :RECall command subsystems.
Changes to the :HARDcopy sommand subsystem to make a clearer
distinction between printing and save/recall functionality.
More detailed descriptions of the new and changed commands appear
below.
New Commands
Command Description
:HARDcopy:STARt (see page 202) Starts a print job.
:HARDcopy:APRinter (see page 196) Sets the active printer.
:HARDcopy:AREA (see page 195) Specifies the area of the display to print
(currently SCReen only).
:HARDcopy:INKSaver (see page 199) Inverts screen colors to save ink when printing.
:HARDcopy:PRinter:LIST (see page 201) Returns a list of the available printers.
:RECall Commands (see page 257) Commands for recalling previously saved
oscilloscope setups and traces.
:SAVE Commands (see page 262) Commands for saving oscilloscope setups and
traces, screen images, and data.
:SBUS Commands (see page 276) Commands for controlling oscilloscope
functions associated with the serial decode
bus.
:TRIGger:CAN Commands (see page 324) Commands for triggering on Controller Area
Network (CAN) version 2.0A and 2.0B signals.
:TRIGger:IIC Commands (see page 355) Commands for triggering on Inter-IC (IIC)
signals.
:TRIGger:LIN Commands (see page 364) Commands for triggering on Local Interconnect
Network (LIN) signals.
:TRIGger:SPI Commands (see page 372) Commands for triggering on Serial Peripheral
Interface (SPI) signals.
:TRIGger:UART Commands (see page 387) Commands for triggering on UART/RS-232
signals.
:WAVeform:SOURce:SUBSource (see
page 424)
Selects subsource when :WAVeform:SOURce
is SBUS (serial decode).
What's New 1
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference 19
Changed
Commands
Obsolete
Commands
Command Differences
:TRIGger:MODE (see page 319) You can now select the serial triggering modes.
Obsolete Command Current Command Equivalent Behavior Differences
:HARDcopy:FILename (see
page 473)
:RECall:FILename (see
page 258)
:SAVE:FILename (see
page 258)
:HARDcopy:FORMat (see
page 474)
:HARDcopy:APRinter (see
page 196)
:SAVE:IMAGe:FORMat (see
page 268)
:SAVE:WAVeform:FORMat
(see page 274)
:HARDcopy:IGColors (see
page 476)
:HARDcopy:INKSaver (see
page 199)
:HARDcopy:PDRiver (see
page 477)
:HARDcopy:APRinter (see
page 196)
20 Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
1 What's New
What's New in Version 4.10
New features in version 4.10 of the InfiniiVision 5000 Series oscilloscope
software are:
The square root waveform math function.
Several new hardcopy printer drivers.
More detailed descriptions of the new and changed commands appear
below.
Changed
Commands
Command Differences
:FUNCtion:OPERation (see page 186) You can now select the SQRT (square root)
waveform math function.
:HARDcopy:PDRiver (see page 477) You can now select the new DJPR0kx50,
DJ55xx, PS470, and LJFastraster printer
drivers.
/