• Chapter 7, Chapter 7, “Obsolete and Discontinued Commands,” starting on page 687, describes obsolete commands which still work but have been replaced by newer commands and discontinued commands which are no longer supported. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 4
82350A GPIB interface). • For information on oscilloscope front- panel operation, see the User's Guide. • For detailed connectivity information, refer to the Agilent Technologies USB/LAN/GPIB Connectivity Guide. For a printable electronic copy of the Connectivity Guide, direct your Web browser to "www.agilent.com"...
Step 2. Connect and set up the oscilloscope Using the USB (Device) Interface Using the LAN Interface Step 3. Verify the oscilloscope connection 3 Getting Started Basic Oscilloscope Program Structure Initializing Capturing Data Analyzing Captured Data Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 6
Definite-Length Block Response Data 5 Commands by Subsystem Common (*) Commands *CLS (Clear Status) *ESE (Standard Event Status Enable) *ESR (Standard Event Status Register) *IDN (Identification Number) *LRN (Learn Device Setup) *OPC (Operation Complete) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 19
Synchronization in the Programming Flow Set Up the Oscilloscope Acquire a Waveform Retrieve Results Blocking Synchronization Polling Synchronization With Timeout Synchronizing with a Single-Shot Device Under Test (DUT) Synchronization with an Averaging Acquisition Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 20
VISA Examples VISA Example in C VISA Example in Visual Basic VISA Example in C# VISA Example in Visual Basic .NET SICL Examples SICL Example in C SICL Example in Visual Basic Index Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 21
Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide What's New What's New in Version 6.00 What's New in Version 5.25 What's New in Version 5.20 What's New in Version 5.15 What's New in Version 5.10 Version 5.00 at Introduction ...
Commands Command Differences :SBUS:MODE (see page 436) You can now select the M1553 serial bus decode mode. :TRIGger:FLEXray:ERRor:TYPE (see page 509) Now, only the FCRC, HCRC, or ALL error types can be selected. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 23
507) command. :SBUS:BUSDoctor:CHANnel none The VPT1000 (BusDoctor) vehicle protocol tester module is not used with the new FLX option. You now specify bus A or B using the :TRIGger:FLEXray:CHANnel (see page 508) command. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 24
FLX option. :TRIGger:FLEXray:EVENt:LEVel none The :TRIGger[:EDGE]:LEVel (see page 501) command is used instead, as with other trigger modes. :TRIGger:FLEXray:EVENt:SOU none The input source channels are now specified using the :TRIGger:FLEXray:SOURce (see page 515) command. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
ID and data. :TRIGger:LIN:PATTern:DATA:LENGth (see Sets the byte length of the LIN data string. page 558) :TRIGger:LIN:PATTern:FORMat (see page 559) Sets the entry (and query) number base used by the :TRIGger:LIN:PATTern:DATA command. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 26
You can now select the DATA option for triggering on a LIN frame ID and data. :TRIGger:MODE (see page 473) You can now select the I2S trigger mode. :TRIGger:TV:STANdard (see page 595) The P1080L50HZ and P1080L60HZ standards have been added. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Saves the current mask. :SAVE:WAVeform:SEGMented (see page 419) Specifies which segments are included when the waveform is saved. :TRIGger:UART:BASE (see page 598) Selects the front panel UART/RS232 trigger setup data selection option from HEX or BINary. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 28
:MTESt:AVERage (see :ACQuire:TYPE AVERage (see page 728) page 196) :MTESt:AVERage:COUNt (see :ACQuire:COUNt (see page 729) page 185) :MTESt:LOAD (see page 730) :RECall:MASK[:STARt] (see page 400) :MTESt:RUMode (see :MTESt:RMODe (see page 731) page 377) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 29
:RUN (see page 174) or :STOP page 733) (see page 178) :MTESt:TRIGger:SOURce (see :TRIGger Commands (see There are various commands page 734) page 467) for setting the source with different types of triggers. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
SUBTract, and MULTiply arithmetic operations. :MEASure:VRATio (see page 352) Measures and returns the ratio of AC RMS values of the specified sources expressed in :SYSTem:PROTection:LOCK (see page 451) Disables/enables the fifty ohm input impedance setting. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 31
You can now select the Blackman-Harris FFT window. Obsolete Commands Obsolete Command Current Command Equivalent Behavior Differences :FUNCtion:SOURce (see :FUNCtion:SOURce1 (see Obsolete command has ADD, page 704) page 277) SUBTract, and MULTiply parameters; current command has GOFT parameter. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
:WAVeform:SEGMented:TTAG (see page 637) Returns the time tag for the selected segmented memory index. Changed Commands Command Differences :ACQuire:MODE (see page 187) You can now select the SEGMented memory mode. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Version 5.00 at Introduction The Agilent InfiniiVision 7000 Series oscilloscopes were introduced with version 5.00 of oscilloscope operating software. The command set is based on the 6000 Series oscilloscopes (and the 54620/54640 Series oscilloscopes before them). Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 34
What's New Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide Setting Up Step 1. Install Agilent IO Libraries Suite software Step 2. Connect and set up the oscilloscope Step 3. Verify the oscilloscope connection This chapter explains how to install the Agilent IO Libraries Suite software, connect the oscilloscope to the controller PC, set up the oscilloscope, and verify the oscilloscope connection.
Insert the Automation- Ready CD that was shipped with your oscilloscope into the controller PC's CD- ROM drive, and follow its installation instructions. You can also download the Agilent IO Libraries Suite software from the web at: • "http://www.agilent.com/find/iolib" Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
IP, DNS IP, etc.) from your network administrator. Connect the oscilloscope to the local area network (LAN) by inserting LAN cable into the "LAN" port on the back of the oscilloscope. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 38
Press the Domain softkey. Use the Modify softkey (and the other softkeys and the Entry knob) to enter the Host name and the Domain name. When you are done, press the return (up arrow) softkey. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Agilent Connection Expert from the popup menu. In the Agilent Connection Expert application, instruments connected to the controller's USB and GPIB interfaces should automatically appear. (You can click Refresh All to update the list of instruments on these interfaces.) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 40
You must manually add instruments on LAN interfaces: Right- click on the LAN interface, choose Add Instrument from the popup menu If the oscilloscope is on the same subnet, select it, and click OK. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 41
Otherwise, if the instrument is not on the same subnet, click Add Address. In the next dialog, select either Hostname or IP address, and enter the oscilloscope's hostname or IP address. Click Test Connection. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 42
Setting Up If the instrument is successfully opened, click OK to close the dialog. If the instrument is not opened successfully, go back and verify the LAN connections and the oscilloscope setup. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 43
Command field and press Send Command, Read Response, or Send&Read. Choose Connect>Exit from the menu to exit the Agilent Interactive IO application. In the Agilent Connection Expert application, choose File>Exit from the menu to exit the application. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 44
Setting Up Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide Getting Started Basic Oscilloscope Program Structure Programming the Oscilloscope Other Ways of Sending Commands This chapter gives you an overview of programming the 7000 Series oscilloscopes. It describes basic oscilloscope program structure and shows how to program the oscilloscope using a few simple examples.
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
To reference the Agilent VISA COM library in Visual Basic for Applications (VBA, which comes with Microsoft Office products like Excel): Choose Tools>References... from the main menu. In the References dialog, check the "VISA COM 3.0 Type Library". Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
To make sure the bus and all appropriate interfaces are in a known state, begin every program with an initialization statement. When using the Agilent VISA COM library, you can use the resource session object's Clear method to clears the interface buffer: Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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" Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 52
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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: Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
For more information, see Chapter 9, “Status Reporting,” starting on page 751 which explains how to check the status of the instrument. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
LAN as described in the 7000 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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 58
Getting Started Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
IEEE 488.2 # format *OPC (see page 124) *OPC? (see page 124) ASCII "1" is placed in the output queue when all pending device operations have completed. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 62
---- (Not used.) Message displayed. User event condition occurred. A trigger occurred. *TRG (see page 136) *TST? (see page 137) <result> ::= 0 or non-zero value; an integer in NR1 format *WAI (see page 138) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 63
DIGital0,..,DIGital15 | POD{1 | 2} | BUS{1 | 2} | FUNCtion | MATH | SBUS} for MSO models <source> can be repeated up to 5 times <n> ::= 1-2 or 1-4 in NR1 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 64
<options> ::= [<print (see page 173) option>][,..,<print option>] <print option> ::= {COLor | GRAYscale | PRINter0 | BMP8bit | BMP | PNG | NOFactors | FACTors} <print option> can be repeated up to 5 times. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 65
65536 in NR1 format page 185) :ACQuire:DAALias :ACQuire:DAALias? <mode> ::= {DISable | AUTO} <mode> (see page 186) (see page 186) :ACQuire:MODE <mode> :ACQuire:MODE? (see <mode> ::= {RTIMe | ETIMe | (see page 187) page 187) SEGMented} Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 66
<n> ::= 1 or 2; an integer in NR1 page 203) format :BUS<n>:DISPlay {{0 | :BUS<n>:DISPlay? (see {0 | 1} OFF} | {1 | ON}} (see page 204) <n> ::= 1 or 2; an integer in NR1 page 204) format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 67
211) :CALibrate:STARt (see page 212) :CALibrate:STATus? <return value> ::= (see page 213) ALL,<status_code>,<status_string > <status_code> ::= an integer status code <status_string> ::= an ASCII status string :CALibrate:SWITch? {PROTected | UNPRotected} (see page 214) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 68
<head_param> ::= {SEND0 | SEND6 | D[:TYPE] <head_param> D[:TYPE]? (see SEND12 | SEND20 | DIFF0 | DIFF6 | (see page 228) page 228) DIFF12 | DIFF20 | NONE} <n> ::= 1-2 or 1-4 in NR1 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 69
239) format :DIGital<n>:LABel :DIGital<n>:LABel? <string> ::= any series of 10 or <string> (see (see page 240) less ASCII characters enclosed in page 240) quotation marks <n> ::= 0-15; an integer in NR1 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 70
249) page 249) :DISPlay:LABList :DISPlay:LABList? <binary block> ::= an ordered <binary block> (see (see page 250) list of up to 75 labels, each 10 page 250) characters maximum, separated by newline characters Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 71
<range> ::= vertical full-scale <range>[<suffix>] page 262) range value in NR3 format (see page 262) <suffix> ::= {V | mV} :EXTernal:UNITs :EXTernal:UNITs? (see <units> ::= {VOLT | AMPere} <units> (see page 263) page 263) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 72
8E-6 to 800E+3. The range for the INTegrate function is 8E-9 to 400E+3. The range for the DIFFerentiate function is 80E-3 to 8.0E12 (depends on current sweep speed). The range for the FFT function is 8 to 800 dBV. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 73
283) page 283) :HARDcopy:APRinter :HARDcopy:APRinter? <active_printer> ::= {<index> | <active_printer> (see (see page 284) <name>} page 284) <index> ::= integer index of printer in list <name> ::= name of printer in list Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 74
:LISTer:DATA? (see <binary_block> ::= page 293) comma-separated data with newlines at the end of each row :LISTer:DISPlay {{0 | :LISTer:DISPlay? (see {0 | 1} OFF} | {1 | ON}} (see page 294) page 294) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 75
NR3 format (see page 304) [suffix] ::= {V | mV | dB} <return_value> ::= Y2 cursor position value in NR3 format :MARKer:YDELta? (see <return_value> ::= Y cursors page 305) delta value in NR3 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 76
321) <source> ::= {CHANnel<n> | DIGital0,..,DIGital15 | FUNCtion | MATH} for MSO models <n> ::= 1-2 or 1-4 in NR1 format <return_value> ::= ratio of positive pulse width to period in NR3 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 77
327) page 327) <source> ::= {CHANnel<n> | DIGital0,..,DIGital15 | FUNCtion | MATH} for MSO models <n> ::= 1-2 or 1-4 in NR1 format <return_value> ::= waveform period in seconds in NR3 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 78
FUNCtion | MATH} page 335) page 335) <n> ::= 1-2 or 1-4 in NR1 format <return_value> ::= calculated std deviation in NR3 format :MEASure:SHOW {1 | :MEASure:SHOW? (see ON} (see page 336) page 336) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 79
FUNCtion | MATH} for DSO models <source> ::= {CHANnel<n> | DIGital0,..,DIGital15 | FUNCtion | MATH} for MSO models <n> ::= 1-2 or 1-4 in NR1 format <return_value> ::= time in seconds of the specified transition Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 80
<source> ::= {CHANnel<n> | [<source>] (see [<source>] (see FUNCtion | MATH} page 350) page 350) <n> ::= 1-2 or 1-4 in NR1 format <return_value> ::= minimum voltage of the selected waveform in NR3 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 81
<source> ::= {CHANnel<n> | [<source>] (see [<source>] (see FUNCtion | MATH} page 357) page 357) <n> ::= 1-2 or 1-4 in NR1 format <return_value> ::= horizontal value of the maximum in NR3 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 82
375) :MTESt:OUTPut :MTESt:OUTPut? (see <signal> ::= {FAIL | PASS} <signal> (see page 376) page 376) :MTESt:RMODe <rmode> :MTESt:RMODe? (see <rmode> ::= {FORever | TIME | (see page 377) page 377) SIGMa | WAVeforms} Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 83
387) :MTESt:SCALe:Y1 :MTESt:SCALe:Y1? (see <y1_value> ::= Y1 value in NR3 <y1_value> (see page 388) format page 388) :MTESt:SCALe:Y2 :MTESt:SCALe:Y2? (see <y2_value> ::= Y2 value in NR3 <y2_value> (see page 389) format page 389) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 84
<internal_loc> ::= 0-9; an integer in NR1 format <file_name> ::= quoted ASCII string :RECall:MASK[:STARt] <file_spec> ::= {<internal_loc> [<file_spec>] (see | <file_name>} page 400) <internal_loc> ::= 0-3; an integer in NR1 format <file_name> ::= quoted ASCII string Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 85
(see page 410) ON}} (see page 410) :SAVE:IMAGe:PALette :SAVE:IMAGe:PALette? <palette> ::= {COLor | GRAYscale <palette> (see (see page 411) | MONochrome} page 411) :SAVE:LISTer[:STARt] <file_name> ::= quoted ASCII [<file_name>] (see string page 412) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 86
<frame_count> ::= integer in NR1 ? (see page 422) format :SBUS:CAN:COUNt:OVERl <frame_count> ::= integer in NR1 oad? (see page 423) format :SBUS:CAN:COUNt:RESet (see page 424) :SBUS:CAN:COUNt:TOTal <frame_count> ::= integer in NR1 ? (see page 425) format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 87
<base> (see page 439) page 439) :SBUS:UART:COUNt:ERRo <frame_count> ::= integer in NR1 r? (see page 440) format :SBUS:UART:COUNt:RESe t (see page 441) :SBUS:UART:COUNt:RXFR <frame_count> ::= integer in NR1 ames? (see page 442) format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 88
<value> ::= {{1 | ON} | {0 | <value> (see (see page 450) OFF}} page 450) :SYSTem:PROTection:LO :SYSTem:PROTection:LO <value> ::= {{1 | ON} | {0 | CK <value> (see CK? (see page 451) OFF}} page 451) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 89
NR3 format for the page 465) zoomed window :TIMebase:WINDow:SCAL :TIMebase:WINDow:SCAL <scale_value> ::= scale value in e <scale_value> (see e? (see page 466) seconds in NR3 format for the page 466) zoomed window Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 90
DIGital0,..,DIGital15 | NONE} for MSO models <edge> ::= {POSitive | NEGative} <n> ::= 1-2 or 1-4 in NR1 format :TRIGger:SWEep :TRIGger:SWEep? (see <sweep> ::= {AUTO | NORMal} <sweep> (see page 477) page 477) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 91
| 75 | 80 | 87.5} in NR3 format page 484) :TRIGger:CAN:SIGNal:B :TRIGger:CAN:SIGNal:B <baudrate> ::= integer from 10000 AUDrate <baudrate> AUDrate? (see to 1000000 in 100 b/s increments (see page 485) page 485) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 92
494) 10 seconds in NR3 format <less_than_time>[suff <greater_than_time> ::= 10 ns to ix], 9.99 seconds in NR3 format <greater_than_time>[s [suffix] ::= {s | ms | us | ns | uffix] (see page 494) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 93
<source> ::= {CHANnel<n> | e <source> (see e? (see page 504) EXTernal} for DSO models page 504) <source> ::= {CHANnel<n> | DIGital0,..,DIGital15 | EXTernal} for MSO models <n> ::= 1-2 or 1-4 in NR1 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 94
<source> (see ce? (see page 515) <n> ::= 1-2 or 1-4 in NR1 format page 515) :TRIGger:FLEXray:TRIG :TRIGger:FLEXray:TRIG <condition> ::= {FRAMe | ERRor | ger <condition> (see ger? (see page 516) EVENt} page 516) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 95
<source> ::= {CHANnel<n> | e <source> (see e? (see page 525) EXTernal} for DSO models page 525) <source> ::= {CHANnel<n> | DIGital0,..,DIGital15 } for MSO models <n> ::= 1-2 or 1-4 in NR1 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 96
<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary <string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F} for hexadecimal :TRIGger:I2S:RWIDth :TRIGger:I2S:RWIDth? <receiver> ::= 4-32 in NR1 format <receiver> (see (see page 536) page 536) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 97
<string> ::= "0xnn" n ::= {0,..,9 page 546) | A,..,F} :TRIGger:IIC:PATTern: :TRIGger:IIC:PATTern: <value> ::= integer or <string> DATa2 <value> (see DATa2? (see page 547) <string> ::= "0xnn" n ::= {0,..,9 page 547) | A,..,F} Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 98
<string> ::= "nn...n" where n ::= {0 | 1 | X | $} when <base> = BINary <string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $} when <base> = HEX Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 99
Command Query Options and Query Returns :TRIGger:M1553:AUTose tup (see page 567) :TRIGger:M1553:PATTer :TRIGger:M1553:PATTer <string> ::= "nn...n" where n ::= n:DATA <string> (see n:DATA? (see {0 | 1 | X} page 568) page 568) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 100
576) PATTern1,AND,EDGE1} :TRIGger:SEQuence:PAT :TRIGger:SEQuence:PAT <value> ::= integer or <string> Tern{1|2} <value>, Tern{1|2}? (see <mask> ::= integer or <string> <mask> (see page 577) page 577) <string> ::= "0xnnnnnn" n ::= {0,..,9 | A,..,F} Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 101
(see page 585) <string> ::= "0xnnnnnn" where n ::= {0,..,9 | A,..,F} :TRIGger:SPI:PATTern: :TRIGger:SPI:PATTern: <width> ::= integer from 4 to 32 WIDTh <width> (see WIDTh? (see page 586) in NR1 format page 586) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 103
<source> ::= {CHANnel<n> | RX <source> (see RX? (see page 607) EXTernal} for DSO models page 607) <source> ::= {CHANnel<n> | DIGital0,..,DIGital15} for MSO models <n> ::= 1-2 or 1-4 in NR1 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 104
:TRIGger:USB:SPEed? <value> ::= {LOW | FULL} <value> (see (see page 614) page 614) :TRIGger:USB:TRIGger :TRIGger:USB:TRIGger? <value> ::= {SOP | EOP | <value> (see (see page 615) ENTersuspend | EXITsuspend | page 615) RESet} Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 105
| <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 632) MAXimum | RAW} page 631) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 106
AVER | HRES} :WAVeform:UNSigned :WAVeform:UNSigned? {0 | 1} {{0 | OFF} | {1 | (see page 644) ON}} (see page 644) :WAVeform:VIEW <view> :WAVeform:VIEW? (see <view> ::= {MAIN} (see page 645) page 645) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 107
NR3 format :WAVeform:YORigin? <return_value> ::= y-origin in (see page 650) the current preamble in NR3 format :WAVeform:YREFerence? <return_value> ::= y-reference (see page 651) value in the current preamble in NR1 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Vertical line ( | ) indicates "or". For example, {ON | OFF} indicates that only ON or OFF may be selected, not both. ::= (Defined As) ::= means "defined as". Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 110
Commands Quick Reference #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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide Commands by Subsystem Subsystem Description "Common (*) Commands" on page 113 Commands defined by IEEE 488.2 standard that are common to all instruments. "Root (:) Commands" on page 139 Control many of the basic functions of the oscilloscope and reside at the root level of the command tree.
Page 112
:TIMebase commands. Only one subsystem may be selected at any given time. When the instrument is initially turned on, the command parser is set to the root of the command tree; therefore, no subsystem is selected. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
IEEE 488.2 # format *OPC (see page 124) *OPC? (see page 124) ASCII "1" is placed in the output queue when all pending device operations have completed. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 115
---- (Not used.) Message displayed. User event condition occurred. A trigger occurred. *TRG (see page 136) *TST? (see page 137) <result> ::= 0 or non-zero value; an integer in NR1 format *WAI (see page 138) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 116
ACQuire subsystem and set the count. Each of the status registers has an enable (mask) register. By setting the bits in the enable N O T E register, you can select the status information you want to use. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Event when a command error is detected. Execution Error Event when an execution error is detected. Device Dependent Error Event when a device-dependent error is detected. Query Error Event when a query error is detected. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 119
See Also • "Introduction to Common (*) Commands" on page 116 • "*ESR (Standard Event Status Register)" on page 120 • "*OPC (Operation Complete)" on page 124 • "*CLS (Clear Status)" on page 117 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Command Error A command error has been detected. Execution Error An execution error has been detected. Device Dependent Error A device-dependent error has been detected. Query Error A query error has been detected. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 121
"Introduction to Common (*) Commands" on page 116 • "*ESE (Standard Event Status Enable)" on page 118 • "*OPC (Operation Complete)" on page 124 • "*CLS (Clear Status)" on page 117 • ":SYSTem:ERRor" on page 448 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<serial number> ::= the serial number of the instrument X.XX.XX ::= the software revision of the instrument See Also • "Introduction to Common (*) Commands" on page 116 • "*OPT (Option Identification)" on page 125 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
See Also • "Introduction to Common (*) Commands" on page 116 • "*RCL (Recall)" on page 127 • "*SAV (Save)" on page 131 • ":SYSTem:SETup" on page 452 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"Introduction to Common (*) Commands" on page 116 • "*ESE (Standard Event Status Enable)" on page 118 • "*ESR (Standard Event Status Register)" on page 120 • "*CLS (Clear Status)" on page 117 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 126
(DSO). The *OPT? query returns the following: Module Module Id No modules attached 0,0,0,0,MSO,0,0,mem8M,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 116 • "*IDN (Identification Number)" on page 122 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<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 116 • "*SAV (Save)" on page 131 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Channel 2 Volts/division 5.00 V Offset 0.00 Coupling Probe attenuation AutoProbe (if AutoProbe is connected), otherwise 1.0:1 Vernier Invert BW limit Impedance 1 M Ohm Units Volts Skew Cursor Menu Source Channel 1 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 129
Main time base delay 0.00 s Delay time/division 500 ns Delay time base delay 0.00 s Reference center Mode main Vernier Trigger Menu Type Edge Mode Auto Coupling Source Channel 1 Level 0.0 V Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 130
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. Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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 116 • "*RCL (Recall)" on page 127 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Table 43 Service Request Enable Register (SRE) Name Description When Set (1 = High = True), Enables: OPER Operation Status Register Interrupts when enabled conditions in the Operation Status Register (OPER) occur. (Not used.) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 133
<mask> ::= sum of all bits that are set, 0,..,255; an integer in NR1 format See Also • "Introduction to Common (*) Commands" on page 116 • "*STB (Read Status Byte)" on page 134 • "*CLS (Clear Status)" on page 117 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Service Request Table 44 Status Byte Register (STB) Name Description When Set (1 = High = True), Indicates: OPER Operation Status Register An enabled condition in the Operation Status Register (OPER) has occurred. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 135
To read the instrument's status byte with RQS reported on bit 6, use the interface Serial N O T E Poll. See Also • "Introduction to Common (*) Commands" on page 116 • "*SRE (Service Request Enable)" on page 132 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The *TRG command has the same effect as the :DIGitize command with no parameters. See Also • "Introduction to Common (*) Commands" on page 116 • ":DIGitize" on page 150 • ":RUN" on page 174 • ":STOP" on page 178 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
If the test fails, refer to the troubleshooting section of the Service Guide. Return Format <result><NL> <result> ::= 0 or non-zero value; an integer in NR1 format See Also • "Introduction to Common (*) Commands" on page 116 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
786) Command Syntax *WAI The *WAI command has no function in the oscilloscope, but is parsed for compatibility with other instruments. See Also • "Introduction to Common (*) Commands" on page 116 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 141
These commands are always recognized by the parser if they Commands 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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
(The threshold voltage must be set appropriately for the logic levels of the signals being probed.) See Also • "Introduction to Root (:) Commands" on page 141 • ":POD<n>:THReshold" on page 395 • ":DIGital<n>:THReshold" on page 243 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• Trigger conditioning. The :AUToscale command turns off the following items: • Cursors. • Measurements. • Trace memories. • Zoomed (delayed) time base mode. For further information on :AUToscale, see the User's Guide. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 145
' 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 Autoscale key. Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= {NORM | CURR} See Also • "Introduction to Root (:) Commands" on page 141 • ":AUToscale" on page 144 • ":AUToscale:CHANnels" on page 147 • ":ACQuire:TYPE" on page 196 • ":ACQuire:MODE" on page 187 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= {ALL | DISP} See Also • "Introduction to Root (:) Commands" on page 141 • ":AUToscale" on page 144 • ":AUToscale:AMODE" on page 146 • ":VIEW" on page 180 • ":BLANk" on page 148 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• ":DIGital<n>:DISPlay" on page 239 • ":FUNCtion:DISPlay" on page 268 • ":POD<n>:DISPlay" on page 393 • ":STATus" on page 177 • ":VIEW" on page 180 Example Code • "Example Code" on page 180 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
If the oscilloscope is running, all the data in active channels and functions is erased; however, new data is displayed on the next acquisition. See Also • "Introduction to Root (:) Commands" on page 141 • ":DISPlay:CLEar" on page 246 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
' with a 1000-point memory, a sweep speed of 10 us/div (100 us ' total time across the screen), and a 20 MSa/s maximum sample rate. ' 1000 divided by 100 us equals 10 MSa/s. Because this number is Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 151
' the results may not be accurate. An error value of 9.9E+37 may be ' returned over the bus in this situation. myScope.WriteString ":DIGITIZE CHAN1" Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Event when the battery is on. Query Syntax :HWEenable? The :HWEenable? query returns the current value contained in the Hardware Event Enable register as an integer number. Return Format <value><NL> <value> ::= integer in NR1 format. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 153
• ":OVLenable (Overload Event Enable Register)" on page 169 • ":OVLRegister (Overload Event Register)" on page 171 • "*STB (Read Status Byte)" on page 134 • "*SRE (Service Request Enable)" on page 132 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"Introduction to Root (:) Commands" on page 141 • ":CHANnel<n>:PROTection" on page 232 • ":EXTernal:PROTection" on page 261 • ":OPEE (Operation Status Enable Register)" on page 163 • ":OPERegister[:EVENt] (Operation Status Event Register)" on page 167 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 155
• ":OVLenable (Overload Event Enable Register)" on page 169 • ":OVLRegister (Overload Event Register)" on page 171 • "*STB (Read Status Byte)" on page 134 • "*SRE (Service Request Enable)" on page 132 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= integer in NR1 format. See Also • "Introduction to Root (:) Commands" on page 141 • ":CHANnel<n>:PROTection" on page 232 • ":EXTernal:PROTection" on page 261 • ":OPEE (Operation Status Enable Register)" on page 163 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 157
• ":OVLenable (Overload Event Enable Register)" on page 169 • ":OVLRegister (Overload Event Register)" on page 171 • "*STB (Read Status Byte)" on page 134 • "*SRE (Service Request Enable)" on page 132 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
See Also • "Introduction to Root (:) Commands" on page 141 • "*SAV (Save)" on page 131 • "*RCL (Recall)" on page 127 • ":VIEW" on page 180 • ":BLANk" on page 148 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Mask test failed. Comple Mask Test Complete Mask test is complete. Query Syntax :MTEenable? The :MTEenable? query returns the current value contained in the Mask Test Event Enable register as an integer number. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 160
• ":OVLenable (Overload Event Enable Register)" on page 169 • ":OVLRegister (Overload Event Register)" on page 171 • "*STB (Read Status Byte)" on page 134 • "*SRE (Service Request Enable)" on page 132 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The mask test is complete. Return Format <value><NL> <value> ::= integer in NR1 format. See Also • "Introduction to Root (:) Commands" on page 141 • ":CHANnel<n>:PROTection" on page 232 • ":EXTernal:PROTection" on page 261 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 162
• ":OVLenable (Overload Event Enable Register)" on page 169 • ":OVLRegister (Overload Event Register)" on page 171 • "*STB (Read Status Byte)" on page 134 • "*SRE (Service Request Enable)" on page 132 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
A 50Ω input overload has occurred. (Not used.) Mask Test Event A mask test event has occurred. (Not used.) Wait Wait Trig The trigger is armed (set by the Trigger Armed Trig Event Register (TER)). (Not used.) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 166
":HWERegister[:EVENt] (Hardware Event Event Register)" on page 156 • ":HWEenable (Hardware Event Enable Register)" on page 152 • ":MTERegister[:EVENt] (Mask Test Event Event Register)" on page 161 • ":MTEenable (Mask Test Event Enable Register)" on page 159 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
A 50Ω input overload has occurred. (Not used.) Mask Test Event A mask test event has occurred. (Not used.) Wait Wait Trig The trigger is armed (set by the Trigger Armed Trig Event Register (TER)). (Not used.) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 168
":HWERegister[:EVENt] (Hardware Event Event Register)" on page 156 • ":HWEenable (Hardware Event Enable Register)" on page 152 • ":MTERegister[:EVENt] (Mask Test Event Event Register)" on page 161 • ":MTEenable (Mask Test Event Enable Register)" on page 159 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"Introduction to Root (:) Commands" on page 141 • "Introduction to :HARDcopy Commands" on page 282 • ":HARDcopy:FORMat" on page 709 • ":HARDcopy:FACTors" on page 285 • ":HARDcopy:GRAYscale" on page 710 • ":DISPlay:DATA" on page 247 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
- STOP stops the data acquisition and turns off AUTOSTORE. ' myScope.WriteString ":RUN" ' Start data acquisition. ' myScope.WriteString ":STOP" ' Stop the data acquisition. Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Commands by Subsystem :SERial (see page 786) Query Syntax :SERial? The :SERial? query returns the serial number of the instrument. Return Format: Unquoted string<NL> See Also • "Introduction to Root (:) Commands" on page 141 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
This is the same as pressing the Single key on the front panel. See Also • "Introduction to Root (:) Commands" on page 141 • ":RUN" on page 174 • ":STOP" on page 178 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Stop key on the front panel. See Also • "Introduction to Root (:) Commands" on page 141 • ":RUN" on page 174 • ":SINGle" on page 176 Example Code • "Example Code" on page 174 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= {1 | 0}; a 16-bit integer in NR1 format. See Also • "Introduction to Root (:) Commands" on page 141 • "*SRE (Service Request Enable)" on page 132 • "*STB (Read Status Byte)" on page 134 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
- BLANK turns off (stops displaying) a channel or pixel memory. ' myScope.WriteString ":BLANK CHANNEL1" ' Turn channel 1 off. ' myScope.WriteString ":VIEW CHANNEL1" ' Turn channel 1 on. Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The ACQuire subsystem controls the way in which waveforms are :ACQuire acquired. These acquisition types are available: normal, averaging, peak Commands detect, and high resolution. Two acquisition modes are available: real- time mode, and equivalent- time mode. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 182
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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
This control can be directly disabled or disabled automatically. Return Format <value><NL> <value> ::= {1 | 0} See Also • "Introduction to :ACQuire Commands" on page 181 • ":ACQuire:DAALias" on page 186 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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" Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<count_argument> ::= an integer from 2 to 65536 in NR1 format See Also • "Introduction to :ACQuire Commands" on page 181 • ":ACQuire:TYPE" on page 196 • ":DIGitize" on page 150 • ":WAVeform:COUNt" on page 625 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :ACQuire:DAALias? query returns the oscilloscope's current disable anti- alias mode setting. Return Format <mode><NL> <mode> ::= {DIS | AUTO} See Also • "Introduction to :ACQuire Commands" on page 181 • ":ACQuire:AALias" on page 183 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :ACQuire:MODE? query returns the acquisition mode of the oscilloscope. Return Format <mode_argument><NL> <mode_argument> ::= {RTIM | ETIM | SEGM} See Also • "Introduction to :ACQuire Commands" on page 181 • ":ACQuire:TYPE" on page 196 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <points_argument><NL> <points_argument> ::= an integer in NR1 format See Also • "Introduction to :ACQuire Commands" on page 181 • ":DIGitize" on page 150 • ":WAVeform:POINts" on page 629 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<ref_signal_mode><NL> <ref_signal_mode> ::= {OFF | OUT | IN} See Also • ":TIMebase:REFClock" on page 460 • The Agilent InfiniiVision 7000 Series Oscilloscope User's Guide for information on using the 10 MHz reference clock. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
In order to use this command, the oscilloscope must be stopped and in segmented acquisition mode, with either quick measurements or infinite persistence on. See Also • ":ACQuire:MODE" on page 187 • ":ACQuire:SEGMented:COUNt" on page 191 • "Introduction to :ACQuire Commands" on page 181 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
176 • ":RUN" on page 174 • ":WAVeform:SEGMented:COUNt" on page 636 • ":ACQuire:SEGMented:ANALyze" on page 190 • "Introduction to :ACQuire Commands" on page 181 Example Code • "Example Code" on page 192 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
174 • ":WAVeform:SEGMented:COUNt" on page 636 • ":WAVeform:SEGMented:TTAG" on page 637 • ":ACQuire:SEGMented:ANALyze" on page 190 • "Introduction to :ACQuire Commands" on page 181 Example Code ' Segmented memory commands example. ' ------------------------------------------------------------------- Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 193
Loop Until varQueryResult = 50 Debug.Print "Number of segments in acquired data: " _ + FormatNumber(varQueryResult) Dim lngSegments As Long lngSegments = varQueryResult ' For each segment: Dim dblTimeTag As Double Dim lngI As Long Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 194
":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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The sample rate is not directly controllable. Return Format <sample_rate><NL> <sample_rate> ::= sample rate in NR3 format See Also • "Introduction to :ACQuire Commands" on page 181 • ":ACQuire:POINts" on page 188 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The obsolete command ACQuire:TYPE:REALtime is functionally equivalent to sending N O T E ACQuire:MODE RTIME; TYPE NORMal. Query Syntax :ACQuire:TYPE? The :ACQuire:TYPE? query returns the current acquisition type. Return Format <acq_type><NL> <acq_type> ::= {NORM | AVER | HRES | PEAK} Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 197
Example Code ' AQUIRE_TYPE - Sets the acquisition mode, which can be NORMAL, ' PEAK, or AVERAGE. myScope.WriteString ":ACQUIRE:TYPE NORMAL" Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 199
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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• ":BUS<n>:CLEar" on page 203 • ":BUS<n>:DISPlay" on page 204 • ":BUS<n>:LABel" on page 205 • ":BUS<n>:MASK" on page 206 Example Code ' Include digital channel 1 in bus 1: myScope.WriteString ":BUS1:BIT1 ON" Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
":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: myScope.WriteString ":BUS1:BITS (@1:15), ON" Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 202
Commands by Subsystem ' Include digital channels 1 through 5, 8, and 14 in bus 1: myScope.WriteString ":BUS1:BITS (@1:5,8,14), ON" Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :BUS<n> Commands" on page 199 • ":BUS<n>:BIT<m>" on page 200 • ":BUS<n>:BITS" on page 201 • ":BUS<n>:DISPlay" on page 204 • ":BUS<n>:LABel" on page 205 • ":BUS<n>:MASK" on page 206 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :BUS<n> Commands" on page 199 • ":BUS<n>:BIT<m>" on page 200 • ":BUS<n>:BITS" on page 201 • ":BUS<n>:CLEar" on page 203 • ":BUS<n>:LABel" on page 205 • ":BUS<n>:MASK" on page 206 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• ":BUS<n>:MASK" on page 206 • ":CHANnel<n>:LABel" on page 225 • ":DISPlay:LABList" on page 250 • ":DIGital<n>:LABel" on page 240 Example Code ' Set the bus 1 label to "Data": myScope.WriteString ":BUS1:LABel 'Data'" Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :BUS<n> Commands" on page 199 • ":BUS<n>:BIT<m>" on page 200 • ":BUS<n>:BITS" on page 201 • ":BUS<n>:CLEar" on page 203 • ":BUS<n>:DISPlay" on page 204 • ":BUS<n>:LABel" on page 205 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• Determining the state of the calibration factor protection switch Commands (CAL PROTECT). • Saving and querying the calibration label string. • Reporting the calibration time and date. • Reporting changes in the temperature since the last calibration. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 208
Commands by Subsystem • Starting the user calibration procedure. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
786) Query Syntax :CALibrate:DATE? The :CALibrate:DATE? query returns the date of the last calibration. Return Format <date><NL> <date> ::= day,month,year in NR1 format<NL> See Also • "Introduction to :CALibrate Commands" on page 207 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :CALibrate:LABel? query returns the contents of the calibration label string. Return Format <string><NL> <string>::= unquoted ASCII string of up to 32 characters in length See Also • "Introduction to :CALibrate Commands" on page 207 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :CALibrate:OUTPut query returns the current source of the TRIG OUT BNC signal. Return Format <signal><NL> <signal> ::= {TRIG | SOUR | DSO | MASK} See Also • "Introduction to :CALibrate Commands" on page 207 • ":MTESt:OUTPut" on page 376 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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 207 • ":CALibrate:SWITch" on page 214 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <return value><NL> <return value> ::= ALL,<status_code>,<status_string> <status_code> ::= an integer status code <status_string> ::= an ASCII status string See Also • "Introduction to :CALibrate Commands" on page 207 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
(CAL PROTECT) switch state. The value PROTected indicates calibration is disabled, and UNPRotected indicates calibration is enabled. Return Format <switch><NL> <switch> ::= {PROT | UNPR} See Also • "Introduction to :CALibrate Commands" on page 207 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :CALibrate:TEMPerature? query returns the change in temperature since the last user calibration procedure. Return Format <return value><NL> <return value> ::= degrees C delta since last cal in NR3 format See Also • "Introduction to :CALibrate Commands" on page 207 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
786) Query Syntax :CALibrate:TIME? The :CALibrate:TIME? query returns the time of the last calibration. Return Format <date><NL> <date> ::= hour,minutes,seconds in NR1 format See Also • "Introduction to :CALibrate Commands" on page 207 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
DIFF12 | DIFF20 | NONE} <n> ::= 1-2 or 1-4 in NR1 format :CHANnel<n>:PROBe:ID? <probe id> ::= unquoted ASCII (see page 229) string up to 11 characters <n> ::= 1-2 or 1-4 in NR1 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 218
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. The obsolete CHANnel subsystem is supported. N O T E Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 219
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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Query Syntax :CHANnel<n>:BWLimit? The :CHANnel<n>:BWLimit? query returns the current setting of the low- pass filter. Return Format <bwlimit><NL> <bwlimit> ::= {1 | 0} See Also • "Introduction to :CHANnel<n> Commands" on page 218 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Query Syntax :CHANnel<n>:COUPling? The :CHANnel<n>:COUPling? query returns the current coupling for the specified channel. Return Format <coupling value><NL> <coupling value> ::= {AC | DC} See Also • "Introduction to :CHANnel<n> Commands" on page 218 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :CHANnel<n> Commands" on page 218 • ":VIEW" on page 180 • ":BLANk" on page 148 • ":STATus" on page 177 • ":POD<n>:DISPlay" on page 393 • ":DIGital<n>:DISPlay" on page 239 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :CHANnel<n>:IMPedance? query returns the current input impedance setting for the specified channel. Return Format <impedance value><NL> <impedance value> ::= {ONEM | FIFT} See Also • "Introduction to :CHANnel<n> Commands" on page 218 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Query Syntax :CHANnel<n>:INVert? The :CHANnel<n>:INVert? query returns the current state of the channel inversion. Return Format <invert value><NL> <invert value> ::= {0 | 1} See Also • "Introduction to :CHANnel<n> Commands" on page 218 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
' 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". Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<offset> ::= Vertical offset value in NR3 format See Also • "Introduction to :CHANnel<n> Commands" on page 218 • ":CHANnel<n>:RANGe" on page 233 • ":CHANnel<n>:SCALe" on page 234 • ":CHANnel<n>:PROBe" on page 227 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
' channel. The probe attenuation factor may be set from 0.1 to 1000. myScope.WriteString ":CHAN1:PROBE 10" ' Set Probe to 10:1. Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
| DIFF12 | DIFF20 | NONE} See Also • "Introduction to :CHANnel<n> Commands" on page 218 • ":CHANnel<n>:PROBe" on page 227 • ":CHANnel<n>:PROBe:ID" on page 229 • ":CHANnel<n>:PROBe:SKEW" on page 230 • ":CHANnel<n>:PROBe:STYPe" on page 231 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :CHANnel<n>:PROBe:SKEW? query returns the current probe skew setting for the selected channel. Return Format <skew value><NL> <skew value> ::= skew value in NR3 format See Also • "Introduction to :CHANnel<n> Commands" on page 218 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :CHANnel<n>:PROBe:STYPe? query returns the current probe signal type setting for the selected channel. Return Format <signal type><NL> <signal type> ::= {DIFF | SING} See Also • "Introduction to :CHANnel<n> Commands" on page 218 • ":CHANnel<n>:OFFSet" on page 226 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
TRIP (tripped) will be returned; otherwise NORM (normal) is returned. Return Format {NORM | TRIP}<NL> See Also • "Introduction to :CHANnel<n> Commands" on page 218 • ":CHANnel<n>:COUPling" on page 221 • ":CHANnel<n>:IMPedance" on page 223 • ":CHANnel<n>:PROBe" on page 227 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
' range value is 8 times the volts per division. myScope.WriteString ":CHANNEL1:RANGE 8" ' Set the vertical range to 8 volts. Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <scale value><NL> <scale value> ::= vertical units per division in NR3 format See Also • "Introduction to :CHANnel<n> Commands" on page 218 • ":CHANnel<n>:RANGe" on page 233 • ":CHANnel<n>:PROBe" on page 227 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <units><NL> <units> ::= {VOLT | AMP} See Also • "Introduction to :CHANnel<n> Commands" on page 218 • ":CHANnel<n>:RANGe" on page 233 • ":CHANnel<n>:PROBe" on page 227 • ":EXTernal:UNITs" on page 263 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
:CHANnel<n>:VERNier? The :CHANnel<n>:VERNier? query returns the current state of the channel's vernier setting. Return Format <vernier value><NL> <vernier value> ::= {0 | 1} See Also • "Introduction to :CHANnel<n> Commands" on page 218 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
(D0- D7, D8- D15). These commands are only valid for the MSO models. N O T E Reporting the Setup Use :DIGital<n>? to query setup information for the DIGital subsystem. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 238
Commands by 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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :DIGital<n> Commands" on page 237 • ":POD<n>:DISPlay" on page 393 • ":CHANnel<n>:DISPlay" on page 222 • ":VIEW" on page 180 • ":BLANk" on page 148 • ":STATus" on page 177 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<label string> ::= any series of 10 or less characters as a quoted ASCII string. See Also • "Introduction to :DIGital<n> Commands" on page 237 • ":CHANnel<n>:LABel" on page 225 • ":DISPlay:LABList" on page 250 • ":BUS<n>:LABel" on page 205 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
N O T E Query Syntax :DIGital<n>:POSition? The :DIGital<n>:POSition? query returns the position of the specified channel. Return Format <position><NL> <position> ::= integer in NR1 format. See Also • "Introduction to :DIGital<n> Commands" on page 237 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :DIGital<n>:SIZE? query returns the size setting for the specified digital channels. Return Format <size_value><NL> <size_value> ::= {SMAL | MED | LARG} See Also • "Introduction to :DIGital<n> Commands" on page 237 • ":POD<n>:SIZE" on page 394 • ":DIGital<n>:POSition" on page 241 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :DIGital<n>:THReshold? query returns the threshold value for the specified channel. Return Format <value><NL> <value> ::= threshold value in NR3 format See Also • "Introduction to :DIGital<n> Commands" on page 237 • ":POD<n>:THReshold" on page 395 • ":TRIGger[:EDGE]:LEVel" on page 501 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The DISPlay subsystem is used to control the display storage and retrieval :DISPlay of waveform data, labels, and text. This subsystem allows the following Commands actions: • Clear the waveform area on the display. • Turn vectors on or off. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 245
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;CONN 1;PERS MIN;SOUR PMEM9 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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. See Also • "Introduction to :DISPlay Commands" on page 244 • ":CDISplay" on page 149 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
This data cannot be sent back to the instrument. Graticule data is a low resolution bitmap of the graticule area in TIFF format. You can get this data and send it back to the oscilloscope. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 248
' Open file f or output. Put #1, , byteData ' Write data. Close #1 ' Close file. myScope.IO.Timeout = 5000 Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
' DISP_LABEL (not executed in this example) - Turns label names ON or OFF on the analyzer display. myScope.WriteString ":DISPLAY:LABEL ON" ' Turn on labels. Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
See Also • "Introduction to :DISPlay Commands" on page 244 • ":DISPlay:LABel" on page 249 • ":CHANnel<n>:LABel" on page 225 • ":DIGital<n>:LABel" on page 240 • ":BUS<n>:LABel" on page 205 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :DISPlay:PERSistence? query returns the specified persistence value. Return Format <value><NL> <value> ::= {MIN | INF} See Also • "Introduction to :DISPlay Commands" on page 244 • ":DISPlay:CLEar" on page 246 • ":CDISplay" on page 149 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Query Syntax :DISPlay:VECTors? The :DISPlay:VECTors? query returns whether vector display is on or off. Return Format <vectors><NL> <vectors> ::= {1 | 0} See Also • "Introduction to :DISPlay Commands" on page 244 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 255
Commands by Subsystem The following is a sample response from the :EXTernal query. In this case, the query was issued following a *RST command. :EXT:BWL 0;IMP ONEM;RANG +8.0E+00;UNIT VOLT;PROB +1.0E+00;PROB:STYP SING Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
(always 0). Return Format <bwlimit><NL> <bwlimit> ::= 0 See Also • "Introduction to :EXTernal Trigger Commands" on page 254 • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:HFReject" on page 471 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <impedance value><NL> <impedance value> ::= {ONEM | FIFT} See Also • "Introduction to :EXTernal Trigger Commands" on page 254 • "Introduction to :TRIGger Commands" on page 467 • ":CHANnel<n>:IMPedance" on page 223 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<attenuation> ::= probe attenuation ratio in NR3 format See Also • "Introduction to :EXTernal Trigger Commands" on page 254 • ":EXTernal:RANGe" on page 262 • "Introduction to :TRIGger Commands" on page 467 • ":CHANnel<n>:PROBe" on page 227 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :EXTernal:PROBe:STYPe? query returns the current probe signal type setting for the external trigger. Return Format <signal type><NL> <signal type> ::= {DIFF | SING} See Also • "Introduction to :EXTernal Trigger Commands" on page 254 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
TRIP (tripped) will be returned; otherwise NORM (normal) is returned. Return Format {NORM | TRIP}<NL> See Also • "Introduction to :EXTernal Trigger Commands" on page 254 • ":EXTernal:IMPedance" on page 257 • ":EXTernal:PROBe" on page 258 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<range_argument> ::= external trigger range value in NR3 format See Also • "Introduction to :EXTernal Trigger Commands" on page 254 • ":EXTernal:PROBe" on page 258 • "Introduction to :TRIGger Commands" on page 467 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
See Also • "Introduction to :EXTernal Trigger Commands" on page 254 • "Introduction to :TRIGger Commands" on page 467 • ":EXTernal:RANGe" on page 262 • ":EXTernal:PROBe" on page 258 • ":CHANnel<n>:UNITs" on page 235 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
+/-10 times the current sensitivity of the selected function. :FUNCtion:OPERation :FUNCtion:OPERation? <operation> ::= {ADD | SUBTract | <operation> (see (see page 273) MULTiply | INTegrate | page 273) DIFFerentiate | FFT | SQRT} Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 265
279) page 279) span in NR3 format. Legal values are 1 Hz to 100 GHz. :FUNCtion:WINDow :FUNCtion:WINDow? <window> ::= {RECTangular | <window> (see (see page 280) HANNing | FLATtop | BHARris} page 280) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 266
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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Once you change either the :FUNCtion:CENTer or :FUNCtion:SPAN value, they no longer track the :TIMebase:RANGe value. See Also • "Introduction to :FUNCtion Commands" on page 266 • ":FUNCtion:SPAN" on page 279 • ":TIMebase:RANGe" on page 459 • ":TIMebase:SCALe" on page 462 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <display><NL> <display> ::= {1 | 0} See Also • "Introduction to :FUNCtion Commands" on page 266 • ":VIEW" on page 180 • ":BLANk" on page 148 • ":STATus" on page 177 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<operation><NL> <operation> ::= {ADD | SUBT | MULT} See Also • "Introduction to :FUNCtion Commands" on page 266 • ":FUNCtion:GOFT:SOURce1" on page 270 • ":FUNCtion:GOFT:SOURce2" on page 271 • ":FUNCtion:SOURce1" on page 277 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<n> ::= {1 | 2 | 3 | 4} for the 4ch models <n> ::= {1 | 2} for the 2ch models See Also • "Introduction to :FUNCtion Commands" on page 266 • ":FUNCtion:GOFT:SOURce2" on page 271 • ":FUNCtion:GOFT:OPERation" on page 269 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<offset> ::= the value at center screen in NR3 format. See Also • "Introduction to :FUNCtion Commands" on page 266 • ":FUNCtion:RANGe" on page 274 • ":FUNCtion:REFerence" on page 275 • ":FUNCtion:SCALe" on page 276 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<operation> ::= {ADD | SUBT | MULT | INT | DIFF | FFT | SQRT} See Also • "Introduction to :FUNCtion Commands" on page 266 • ":FUNCtion:SOURce1" on page 277 • ":FUNCtion:SOURce2" on page 278 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The range for the DIFFerentiate function is 80E- 3 to 8.0E12 (depends on sweep speed). The range for the FFT (Fast Fourier Transform) function is 8 to 800 dBV. See Also • "Introduction to :FUNCtion Commands" on page 266 • ":FUNCtion:SCALe" on page 276 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<level> ::= the current reference level in NR3 format. See Also • "Introduction to :FUNCtion Commands" on page 266 • ":FUNCtion:OFFSet" on page 272 • ":FUNCtion:RANGe" on page 274 • ":FUNCtion:SCALe" on page 276 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :FUNCtion:SCALe? query returns the current scale value for the selected function. Return Format <scale value><NL> <scale value> ::= integer in NR1 format See Also • "Introduction to :FUNCtion Commands" on page 266 • ":FUNCtion:RANGe" on page 274 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<n> ::= {1 | 2} for 2ch models See Also • "Introduction to :FUNCtion Commands" on page 266 • ":FUNCtion:OPERation" on page 273 • ":FUNCtion:GOFT:OPERation" on page 269 • ":FUNCtion:GOFT:SOURce1" on page 270 • ":FUNCtion:GOFT:SOURce2" on page 271 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<span> ::= the current frequency span in NR3 format. Legal values are 1 Hz to 100 GHz. See Also • "Introduction to :FUNCtion Commands" on page 266 • ":FUNCtion:CENTer" on page 267 • ":TIMebase:RANGe" on page 459 • ":TIMebase:SCALe" on page 462 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :FUNCtion: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 266 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
:HARDcopy:PRINter:LIS <list> ::= [<printer_spec>] ... T? (see page 290) [printer_spec>] <printer_spec> ::= "<index>,<active>,<name>;" <index> ::= integer index of printer <active> ::= {Y | N} <name> ::= name of printer :HARDcopy:STARt (see page 291) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 282
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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :HARDcopy:APRinter? query returns the name of the active printer. Return Format <name><NL> <name> ::= name of printer in list See Also • "Introduction to :HARDcopy Commands" on page 282 • ":HARDcopy:PRINter:LIST" on page 290 • ":HARDcopy:STARt" on page 291 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :HARDcopy Commands" on page 282 • ":HARDcopy:STARt" on page 291 • ":HARDcopy:FFEed" on page 286 • ":HARDcopy:INKSaver" on page 287 • ":HARDcopy:LAYout" on page 288 • ":HARDcopy:PALette" on page 289 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :HARDcopy Commands" on page 282 • ":HARDcopy:STARt" on page 291 • ":HARDcopy:FACTors" on page 285 • ":HARDcopy:INKSaver" on page 287 • ":HARDcopy:LAYout" on page 288 • ":HARDcopy:PALette" on page 289 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :HARDcopy Commands" on page 282 • ":HARDcopy:STARt" on page 291 • ":HARDcopy:FACTors" on page 285 • ":HARDcopy:FFEed" on page 286 • ":HARDcopy:LAYout" on page 288 • ":HARDcopy:PALette" on page 289 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :HARDcopy Commands" on page 282 • ":HARDcopy:STARt" on page 291 • ":HARDcopy:FACTors" on page 285 • ":HARDcopy:PALette" on page 289 • ":HARDcopy:FFEed" on page 286 • ":HARDcopy:INKSaver" on page 287 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :HARDcopy Commands" on page 282 • ":HARDcopy:STARt" on page 291 • ":HARDcopy:FACTors" on page 285 • ":HARDcopy:LAYout" on page 288 • ":HARDcopy:FFEed" on page 286 • ":HARDcopy:INKSaver" on page 287 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<active> ::= {Y | N} <name> ::= name of printer (for example "DESKJET 950C") See Also • "Introduction to :HARDcopy Commands" on page 282 • ":HARDcopy:APRinter" on page 284 • ":HARDcopy:STARt" on page 291 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
OFF} | {1 | ON}} (see page 294) page 294) Introduction to The LISTer subsystem is used to turn on/off the serial decode Lister :LISTer display and return data from the Lister display. Commands Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<binary_block> ::= comma-separated data with newlines at the end of each row See Also • "Introduction to :LISTer Commands" on page 292 • ":LISTer:DISPlay" on page 294 • "Definite- Length Block Response Data" on page 109 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Query Syntax :LISTer:DISPlay? The :LISTer:DISPlay? query returns lister display setting. Return Format <value><NL> <value> ::= {0 | 1} See Also • "Introduction to :LISTer Commands" on page 292 • ":LISTer:DATA" on page 293 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
:MARKer:Y1Position? <position> ::= Y1 cursor position <position>[suffix] (see page 303) value in NR3 format (see page 303) [suffix] ::= {V | mV | dB} <return_value> ::= Y1 cursor position value in NR3 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 296
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 NONE;X2Y2 NONE;MODE OFF Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :MARKer Commands" on page 296 • ":MARKer:MODE" on page 297 • ":MARKer:X2Position" on page 300 • ":MARKer:X1Y1source" on page 299 • ":MARKer:X2Y2source" on page 301 • ":MEASure:TSTArt" on page 719 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<source><NL> <source> ::= {CHAN<n> | FUNC | NONE} See Also • "Introduction to :MARKer Commands" on page 296 • ":MARKer:MODE" on page 297 • ":MARKer:X2Y2source" on page 301 • ":MEASure:SOURce" on page 337 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<position> ::= X2 cursor position in NR3 format See Also • "Introduction to :MARKer Commands" on page 296 • ":MARKer:MODE" on page 297 • ":MARKer:X1Position" on page 298 • ":MARKer:X2Y2source" on page 301 • ":MEASure:TSTOp" on page 720 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<source><NL> <source> ::= {CHAN<n> | FUNC | NONE} See Also • "Introduction to :MARKer Commands" on page 296 • ":MARKer:MODE" on page 297 • ":MARKer:X1Y1source" on page 299 • ":MEASure:SOURce" on page 337 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :MARKer Commands" on page 296 • ":MARKer:MODE" on page 297 • ":MARKer:X1Position" on page 298 • ":MARKer:X2Position" on page 300 • ":MARKer:X1Y1source" on page 299 • ":MARKer:X2Y2source" on page 301 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :MARKer Commands" on page 296 • ":MARKer:MODE" on page 297 • ":MARKer:X1Y1source" on page 299 • ":MARKer:X2Y2source" on page 301 • ":MARKer:Y2Position" on page 304 • ":MEASure:VSTArt" on page 725 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :MARKer Commands" on page 296 • ":MARKer:MODE" on page 297 • ":MARKer:X1Y1source" on page 299 • ":MARKer:X2Y2source" on page 301 • ":MARKer:Y1Position" on page 303 • ":MEASure:VSTOp" on page 726 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :MARKer Commands" on page 296 • ":MARKer:MODE" on page 297 • ":MARKer:X1Y1source" on page 299 • ":MARKer:X2Y2source" on page 301 • ":MARKer:Y1Position" on page 303 • ":MARKer:Y2Position" on page 304 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
321) <source> ::= {CHANnel<n> | DIGital0,..,DIGital15 | FUNCtion | MATH} for MSO models <n> ::= 1-2 or 1-4 in NR1 format <return_value> ::= ratio of positive pulse width to period in NR3 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 307
327) page 327) <source> ::= {CHANnel<n> | DIGital0,..,DIGital15 | FUNCtion | MATH} for MSO models <n> ::= 1-2 or 1-4 in NR1 format <return_value> ::= waveform period in seconds in NR3 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 308
FUNCtion | MATH} page 335) page 335) <n> ::= 1-2 or 1-4 in NR1 format <return_value> ::= calculated std deviation in NR3 format :MEASure:SHOW {1 | :MEASure:SHOW? (see ON} (see page 336) page 336) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 309
FUNCtion | MATH} for DSO models <source> ::= {CHANnel<n> | DIGital0,..,DIGital15 | FUNCtion | MATH} for MSO models <n> ::= 1-2 or 1-4 in NR1 format <return_value> ::= time in seconds of the specified transition Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 310
<source> ::= {CHANnel<n> | [<source>] (see [<source>] (see FUNCtion | MATH} page 350) page 350) <n> ::= 1-2 or 1-4 in NR1 format <return_value> ::= minimum voltage of the selected waveform in NR3 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 311
<source> ::= {CHANnel<n> | [<source>] (see [<source>] (see FUNCtion | MATH} page 357) page 357) <n> ::= 1-2 or 1-4 in NR1 format <return_value> ::= horizontal value of the maximum in NR3 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 312
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.) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 313
Commands by Subsystem 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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Commands by Subsystem :MEASure:CLEar (see page 786) Command Syntax :MEASure:CLEar This command clears all selected measurements and markers from the screen. See Also • "Introduction to :MEASure Commands" on page 312 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<source> ::= count in Hertz in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:SOURce" on page 337 • ":MEASure:FREQuency" on page 323 • ":MEASure:CLEar" on page 314 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 317
ABSolute thresholds. Query Syntax :MEASure:DEFine? <meas_spec> <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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 318
312 • ":MEASure:DELay" on page 319 • ":MEASure:SOURce" on page 337 • ":CHANnel<n>:RANGe" on page 233 • ":CHANnel<n>:SCALe" on page 234 • ":CHANnel<n>:PROBe" on page 227 • ":CHANnel<n>:UNITs" on page 235 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
It is the middle threshold value that is used when performing the delay query. The standard upper, middle, and lower measurement thresholds are 90%, 50%, and 10% values between Vbase and Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 320
Return Format <value><NL> <value> ::= floating-point number delay time in seconds in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:DEFine" on page 316 • ":MEASure:PHASe" on page 328 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:PERiod" on page 327 • ":MEASure:PWIDth" on page 330 • ":MEASure:SOURce" on page 337 Example Code • "Example Code" on page 338 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= time in seconds between the lower threshold and upper threshold in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:RISetime" on page 334 • ":MEASure:SOURce" on page 337 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<source> ::= frequency in Hertz in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:SOURce" on page 337 • ":MEASure:PERiod" on page 327 Example Code • "Example Code" on page 338 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= negative pulse width in seconds in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:SOURce" on page 337 • ":MEASure:PWIDth" on page 330 • ":MEASure:PERiod" on page 327 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<overshoot>::= the percent of the overshoot of the selected waveform in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:PREShoot" on page 329 • ":MEASure:SOURce" on page 337 • ":MEASure:VMAX" on page 349 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 326
Commands by Subsystem • ":MEASure:VTOP" on page 355 • ":MEASure:VBASe" on page 348 • ":MEASure:VMIN" on page 350 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"Introduction to :MEASure Commands" on page 312 • ":MEASure:SOURce" on page 337 • ":MEASure:NWIDth" on page 324 • ":MEASure:PWIDth" on page 330 • ":MEASure:FREQuency" on page 323 Example Code • "Example Code" on page 338 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= the phase angle value in degrees in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:DELay" on page 319 • ":MEASure:PERiod" on page 327 • ":MEASure:SOURce" on page 337 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :MEASure Commands" on page 312 • ":MEASure:SOURce" on page 337 • ":MEASure:VMIN" on page 350 • ":MEASure:VMAX" on page 349 • ":MEASure:VTOP" on page 355 • ":MEASure:VBASe" on page 348 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= width of positive pulse in seconds in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:SOURce" on page 337 • ":MEASure:NWIDth" on page 324 • ":MEASure:PERiod" on page 327 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Example Code ' 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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 332
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" Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 333
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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
= time at upper threshold - time at lower threshold Return Format <value><NL> <value> ::= rise time in seconds in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:SOURce" on page 337 • ":MEASure:FALLtime" on page 322 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The oscilloscope computes the std deviation on all displayed data points. Return Format <value><NL> <value> ::= calculated std deviation value in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:SOURce" on page 337 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
This feature is always on. Query Syntax :MEASure:SHOW? The :MEASure:SHOW? query returns the current state of the markers. Return Format <show><NL> <show> ::= 1 See Also • "Introduction to :MEASure Commands" on page 312 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :MEASure Commands" on page 312 • ":MARKer:MODE" on page 297 • ":MARKer:X1Y1source" on page 299 • ":MARKer:X2Y2source" on page 301 • ":MEASure:DELay" on page 319 • ":MEASure:PHASe" on page 328 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 338
' Query for Vmax. varQueryResult = myScope.ReadNumber ' Read Vmax. MsgBox "Maximum voltage:" + vbCrLf _ + FormatNumber(varQueryResult, 4) + " V" Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:RESults" on page 331 • ":MEASure:STATistics:RESet" on page 341 • ":MEASure:STATistics:INCRement" on page 340 Example Code • "Example Code" on page 331 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The command is allowed in segmented acquisition mode even though the corresponding front panel softkey is not available. See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:STATistics" on page 339 • ":MEASure:STATistics:RESet" on page 341 • ":MEASure:RESults" on page 331 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:STATistics" on page 339 • ":MEASure:RESults" on page 331 • ":MEASure:STATistics:INCRement" on page 340 Example Code • "Example Code" on page 331 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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 343. If the optional source parameter is specified, the current source is modified. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 343
Example program from the start: "VISA COM Example in Visual Basic" page 812 See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:TVALue" on page 344 • ":MEASure:VTIMe" on page 354 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
If the optional source parameter is specified, the current source is modified. This query is not available if the source is FFT (Fast Fourier Transform). N O T E Return Format <value><NL> Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 345
<value> ::= time in seconds of the specified value crossing in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:TEDGe" on page 342 • ":MEASure:VTIMe" on page 354 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= the amplitude of the selected waveform in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:SOURce" on page 337 • ":MEASure:VBASe" on page 348 • ":MEASure:VTOP" on page 355 • ":MEASure:VPP" on page 351 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
If at least three edges are not present, the oscilloscope averages all data points. Return Format <value><NL> <value> ::= calculated average value in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:SOURce" on page 337 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<base_voltage> ::= value at the base of the selected waveform in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:SOURce" on page 337 • ":MEASure:VTOP" on page 355 • ":MEASure:VAMPlitude" on page 346 • ":MEASure:VMIN" on page 350 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= maximum vertical value of the selected waveform in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:SOURce" on page 337 • ":MEASure:VMIN" on page 350 • ":MEASure:VPP" on page 351 • ":MEASure:VTOP" on page 355 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= minimum vertical value of the selected waveform in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:SOURce" on page 337 • ":MEASure:VBASe" on page 348 • ":MEASure:VMAX" on page 349 • ":MEASure:VPP" on page 351 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= vertical peak to peak value in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:SOURce" on page 337 • ":MEASure:VMAX" on page 349 • ":MEASure:VMIN" on page 350 • ":MEASure:VAMPlitude" on page 346 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <value><NL> <value> ::= the ratio value in dB in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:VRMS" on page 353 • ":MEASure:SOURce" on page 337 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
RMS value on all displayed data points. Return Format <value><NL> <value> ::= calculated dc RMS value in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:SOURce" on page 337 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= value at the specified time in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:SOURce" on page 337 • ":MEASure:TEDGe" on page 342 • ":MEASure:TVALue" on page 344 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= vertical value at the top of the waveform in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:SOURce" on page 337 • ":MEASure:VMAX" on page 349 • ":MEASure:VAMPlitude" on page 346 • ":MEASure:VBASe" on page 348 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <value><NL> <value> ::= horizontal value of the maximum in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:XMIN" on page 357 • ":MEASure:TMAX" on page 717 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <value><NL> <value> ::= horizontal value of the minimum in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:XMAX" on page 356 • ":MEASure:TMIN" on page 718 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
:MTESt:ENABle? (see {0 | 1} OFF} | {1 | ON}} (see page 374) page 374) :MTESt:LOCK {{0 | :MTESt:LOCK? (see {0 | 1} OFF} | {1 | ON}} (see page 375) page 375) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 359
:MTESt:SCALe:XDELta :MTESt:SCALe:XDELta? <xdelta_value> ::= X delta value <xdelta_value> (see (see page 387) in NR3 format page 387) :MTESt:SCALe:Y1 :MTESt:SCALe:Y1? (see <y1_value> ::= Y1 value in NR3 <y1_value> (see page 388) format page 388) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 360
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 361
Debug.Print "Auto-mask created, mask test automatically enabled." ' Set up timeout variables. Dim lngTimeout As Long ' Max millisecs to wait. Dim lngElapsed As Long lngTimeout = 60000 ' 60 seconds. ' Wait until mask is created. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 362
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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• ":MTESt:AMASk:XDELta" on page 366 • ":MTESt:AMASk:YDELta" on page 367 • ":MTESt:AMASk:UNITs" on page 365 • ":MTESt:AMASk:SOURce" on page 364 • ":MTESt:SOURce" on page 390 Example Code • "Example Code" on page 360 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"Introduction to :MTESt Commands" on page 360 • ":MTESt:AMASk:XDELta" on page 366 • ":MTESt:AMASk:YDELta" on page 367 • ":MTESt:AMASk:UNITs" on page 365 • ":MTESt:SOURce" on page 390 Example Code • "Example Code" on page 360 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• ":MTESt:AMASk:XDELta" on page 366 • ":MTESt:AMASk:YDELta" on page 367 • ":CHANnel<n>:UNITs" on page 235 • ":MTESt:AMASk:SOURce" on page 364 • ":MTESt:SOURce" on page 390 Example Code • "Example Code" on page 360 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"Introduction to :MTESt Commands" on page 360 • ":MTESt:AMASk:UNITs" on page 365 • ":MTESt:AMASk:YDELta" on page 367 • ":MTESt:AMASk:SOURce" on page 364 • ":MTESt:SOURce" on page 390 Example Code • "Example Code" on page 360 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"Introduction to :MTESt Commands" on page 360 • ":MTESt:AMASk:UNITs" on page 365 • ":MTESt:AMASk:XDELta" on page 366 • ":MTESt:AMASk:SOURce" on page 364 • ":MTESt:SOURce" on page 390 Example Code • "Example Code" on page 360 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"Introduction to :MTESt Commands" on page 360 • ":MTESt:COUNt:WAVeforms" on page 371 • ":MTESt:COUNt:TIME" on page 370 • ":MTESt:COUNt:RESet" on page 369 • ":MTESt:SOURce" on page 390 Example Code • "Example Code" on page 360 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
:MTESt:COUNt:RESet The :MTESt:COUNt:RESet command resets the mask statistics. See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:COUNt:WAVeforms" on page 371 • ":MTESt:COUNt:FWAVeforms" on page 368 • ":MTESt:COUNt:TIME" on page 370 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:COUNt:WAVeforms" on page 371 • ":MTESt:COUNt:FWAVeforms" on page 368 • ":MTESt:COUNt:RESet" on page 369 Example Code • "Example Code" on page 360 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:COUNt:FWAVeforms" on page 368 • ":MTESt:COUNt:TIME" on page 370 • ":MTESt:COUNt:RESet" on page 369 Example Code • "Example Code" on page 360 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
# format defined in the IEEE 488.2 specification. Return Format <mask><NL> <mask> ::= binary block data in IEEE 488.2 # format See Also • ":SAVE:MASK[:STARt]" on page 413 • ":RECall:MASK[:STARt]" on page 400 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Commands by Subsystem :MTESt:DELete (see page 786) Command Syntax :MTESt:DELete The :MTESt:DELete command clears the currently loaded mask. See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:AMASk:CREate" on page 363 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• OFF — Disables the mask test features. Query Syntax :MTESt:ENABle? The :MTESt:ENABle? query returns the current state of mask test features. Return Format <on_off><NL> <on_off> ::= {1 | 0} See Also • "Introduction to :MTESt Commands" on page 360 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
:MTESt:LOCK? The :MTESt:LOCK? query returns the current mask lock setting. Return Format <on_off><NL> <on_off> ::= {1 | 0} See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:SOURce" on page 390 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
:MTESt:OUTPut? The :MTESt:OUTPut? query returns the currently set output signal. Return Format <signal><NL> <signal> ::= {FAIL | PASS} See Also • "Introduction to :MTESt Commands" on page 360 • ":CALibrate:OUTPut" on page 211 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:RMODe:SIGMa" on page 382 • ":MTESt:RMODe:TIME" on page 383 • ":MTESt:RMODe:WAVeforms" on page 384 Example Code • "Example Code" on page 360 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <on_off><NL> <on_off> ::= {1 | 0} See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:RMODe:FACTion:PRINt" on page 379 • ":MTESt:RMODe:FACTion:SAVE" on page 380 • ":MTESt:RMODe:FACTion:STOP" on page 381 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <on_off><NL> <on_off> ::= {1 | 0} See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:RMODe:FACTion:MEASure" on page 378 • ":MTESt:RMODe:FACTion:SAVE" on page 380 • ":MTESt:RMODe:FACTion:STOP" on page 381 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <on_off><NL> <on_off> ::= {1 | 0} See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:RMODe:FACTion:MEASure" on page 378 • ":MTESt:RMODe:FACTion:PRINt" on page 379 • ":MTESt:RMODe:FACTion:STOP" on page 381 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <on_off><NL> <on_off> ::= {1 | 0} See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:RMODe:FACTion:MEASure" on page 378 • ":MTESt:RMODe:FACTion:PRINt" on page 379 • ":MTESt:RMODe:FACTion:SAVE" on page 380 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<level><NL> <level> ::= from 0.1 to 9.3 in NR3 format See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:RMODe" on page 377 Example Code • "Example Code" on page 360 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :MTESt:RMODe:TIME? query returns the number of seconds currently set. Return Format <seconds><NL> <seconds> ::= from 1 to 86400 in NR3 format See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:RMODe" on page 377 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :MTESt:RMODe:WAVeforms? query returns the number of waveforms currently set. Return Format <count><NL> <count> ::= number of waveforms in NR1 format from 1 to 2,000,000,000 See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:RMODe" on page 377 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<on_off> ::= {1 | 0} See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:SCALe:X1" on page 386 • ":MTESt:SCALe:XDELta" on page 387 • ":MTESt:SCALe:Y1" on page 388 • ":MTESt:SCALe:Y2" on page 389 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<x1_value> ::= X1 value in NR3 format See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:SCALe:BIND" on page 385 • ":MTESt:SCALe:XDELta" on page 387 • ":MTESt:SCALe:Y1" on page 388 • ":MTESt:SCALe:Y2" on page 389 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<xdelta_value> ::= X delta value in NR3 format See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:SCALe:BIND" on page 385 • ":MTESt:SCALe:X1" on page 386 • ":MTESt:SCALe:Y1" on page 388 • ":MTESt:SCALe:Y2" on page 389 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<y1_value> ::= Y1 value in NR3 format See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:SCALe:BIND" on page 385 • ":MTESt:SCALe:X1" on page 386 • ":MTESt:SCALe:XDELta" on page 387 • ":MTESt:SCALe:Y2" on page 389 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<y2_value> ::= Y2 value in NR3 format See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:SCALe:BIND" on page 385 • ":MTESt:SCALe:X1" on page 386 • ":MTESt:SCALe:XDELta" on page 387 • ":MTESt:SCALe:Y1" on page 388 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<n> ::= {1 | 2 | 3 | 4} for the four channel oscilloscope models <n> ::= {1 | 2} for the two channel oscilloscope models See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:AMASk:SOURce" on page 364 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
128 characters. The title is displayed in the mask test dialog box and mask test tab when a mask file is loaded. Return Format <title><NL> <title> ::= a string of up to 128 ASCII characters. See Also • "Introduction to :MTESt Commands" on page 360 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Use :POD1? or :POD2? to query setup information for the POD subsystem. 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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :POD<n> Commands" on page 392 • ":DIGital<n>:DISPlay" on page 239 • ":CHANnel<n>:DISPlay" on page 222 • ":VIEW" on page 180 • ":BLANk" on page 148 • ":STATus" on page 177 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :POD<n>:SIZE? query returns the size setting for the specified group of channels. Return Format <size_value><NL> <size_value> ::= {SMAL | MED | LARG} See Also • "Introduction to :POD<n> Commands" on page 392 • ":DIGital<n>:SIZE" on page 242 • ":DIGital<n>:POSition" on page 241 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
' 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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 396
' 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" Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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" Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <base_name><NL> <base_name> ::= quoted ASCII string See Also • "Introduction to :RECall Commands" on page 397 • ":RECall:IMAGe[:STARt]" on page 399 • ":RECall:SETup[:STARt]" on page 402 • ":SAVE:FILename" on page 405 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
If a file extension is provided as part of a specified <file_name>, it must be ".tif". N O T E See Also • "Introduction to :RECall Commands" on page 397 • ":RECall:FILename" on page 398 • ":SAVE:IMAGe[:STARt]" on page 406 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
If a file extension is provided as part of a specified <file_name>, it must be ".msk". N O T E See Also • "Introduction to :RECall Commands" on page 397 • ":RECall:FILename" on page 398 • ":SAVE:MASK[:STARt]" on page 413 • ":MTESt:DATA" on page 372 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :RECall:PWD? query returns the currently set working directory for recall operations. Return Format <path_name><NL> <path_name> ::= quoted ASCII string See Also • "Introduction to :RECall Commands" on page 397 • ":SAVE:PWD" on page 414 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
If a file extension is provided as part of a specified <file_name>, it must be ".scp". N O T E See Also • "Introduction to :RECall Commands" on page 397 • ":RECall:FILename" on page 398 • ":SAVE:SETup[:STARt]" on page 415 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
[<file_spec>] (see | <file_name>} page 413) <internal_loc> ::= 0-3; an integer in NR1 format <file_name> ::= quoted ASCII string :SAVE:PWD <path_name> :SAVE:PWD? (see <path_name> ::= quoted ASCII (see page 414) page 414) string Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 404
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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :SAVE Commands" on page 404 • ":SAVE:IMAGe[:STARt]" on page 406 • ":SAVE:SETup[:STARt]" on page 415 • ":SAVE:WAVeform[:STARt]" on page 416 • ":SAVE:PWD" on page 414 • ":RECall:FILename" on page 398 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :SAVE Commands" on page 404 • ":SAVE:IMAGe[:STARt]" on page 406 • ":SAVE:IMAGe:FACTors" on page 408 • ":SAVE:IMAGe:FORMat" on page 409 • ":SAVE:IMAGe:INKSaver" on page 410 • ":SAVE:IMAGe:PALette" on page 411 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :SAVE Commands" on page 404 • ":SAVE:IMAGe[:STARt]" on page 406 • ":SAVE:IMAGe:AREA" on page 407 • ":SAVE:IMAGe:FORMat" on page 409 • ":SAVE:IMAGe:INKSaver" on page 410 • ":SAVE:IMAGe:PALette" on page 411 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :SAVE Commands" on page 404 • ":SAVE:IMAGe[:STARt]" on page 406 • ":SAVE:IMAGe:AREA" on page 407 • ":SAVE:IMAGe:FACTors" on page 408 • ":SAVE:IMAGe:FORMat" on page 409 • ":SAVE:IMAGe:PALette" on page 411 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :SAVE Commands" on page 404 • ":SAVE:IMAGe[:STARt]" on page 406 • ":SAVE:IMAGe:AREA" on page 407 • ":SAVE:IMAGe:FACTors" on page 408 • ":SAVE:IMAGe:FORMat" on page 409 • ":SAVE:IMAGe:INKSaver" on page 410 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
If a file extension is provided as part of a specified <file_name>, it must be ".csv". N O T E See Also • "Introduction to :SAVE Commands" on page 404 • ":SAVE:FILename" on page 405 • ":LISTer Commands" on page 292 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
If a file extension is provided as part of a specified <file_name>, it must be ".msk". N O T E See Also • "Introduction to :SAVE Commands" on page 404 • ":SAVE:FILename" on page 405 • ":RECall:MASK[:STARt]" on page 400 • ":MTESt:DATA" on page 372 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :SAVE:PWD? query returns the currently set working directory for save operations. Return Format <path_name><NL> <path_name> ::= quoted ASCII string See Also • "Introduction to :SAVE Commands" on page 404 • ":SAVE:FILename" on page 405 • ":RECall:PWD" on page 401 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
If a file extension is provided as part of a specified <file_name>, it must be ".scp". N O T E See Also • "Introduction to :SAVE Commands" on page 404 • ":SAVE:FILename" on page 405 • ":RECall:SETup[:STARt]" on page 402 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
See Also • "Introduction to :SAVE Commands" on page 404 • ":SAVE:WAVeform:FORMat" on page 417 • ":SAVE:WAVeform:LENGth" on page 418 • ":SAVE:FILename" on page 405 • ":RECall:SETup[:STARt]" on page 402 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
When NONE is returned, it indicates that an image file format is currently selected. See Also • "Introduction to :SAVE Commands" on page 404 • ":SAVE:WAVeform[:STARt]" on page 416 • ":SAVE:WAVeform:LENGth" on page 418 • ":SAVE:IMAGe:FORMat" on page 409 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<length> ::= 100 to max. length; an integer in NR1 format See Also • "Introduction to :SAVE Commands" on page 404 • ":SAVE:WAVeform[:STARt]" on page 416 • ":WAVeform:POINts" on page 629 • ":SAVE:WAVeform:FORMat" on page 417 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <option><NL> <option> ::= {ALL | CURR} See Also • "Introduction to :SAVE Commands" on page 404 • ":SAVE:WAVeform[:STARt]" on page 416 • ":SAVE:WAVeform:FORMat" on page 417 • ":SAVE:WAVeform:LENGth" on page 418 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<base> ::= {DECimal | HEX} <base> (see page 435) (see page 435) :SBUS:MODE <mode> :SBUS:MODE? (see <mode> ::= {CAN | FLEXray | I2S | (see page 436) page 436) IIC | LIN | SPI | UART} Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 421
Use :SBUS? to query setup information for the :SBUS subsystem. Return Format The following is a sample response from the :SBUS? query. In this case, the query was issued following a *RST command. :SBUS:DISP 0;MODE IIC Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"- 241, Hardware missing" on page 745 See Also • ":SBUS:CAN:COUNt:RESet" on page 424 • "Introduction to :SBUS Commands" on page 421 • ":SBUS:MODE" on page 436 • ":TRIGger:CAN Commands" on page 478 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"- 241, Hardware missing" on page 745 See Also • ":SBUS:CAN:COUNt:RESet" on page 424 • "Introduction to :SBUS Commands" on page 421 • ":SBUS:MODE" on page 436 • ":TRIGger:CAN Commands" on page 478 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
":SBUS:CAN:COUNt:OVERload" on page 423 • ":SBUS:CAN:COUNt:TOTal" on page 425 • ":SBUS:CAN:COUNt:UTILization" on page 426 • "Introduction to :SBUS Commands" on page 421 • ":SBUS:MODE" on page 436 • ":TRIGger:CAN Commands" on page 478 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"- 241, Hardware missing" on page 745 See Also • ":SBUS:CAN:COUNt:RESet" on page 424 • "Introduction to :SBUS Commands" on page 421 • ":SBUS:MODE" on page 436 • ":TRIGger:CAN Commands" on page 478 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"- 241, Hardware missing" on page 745 See Also • ":SBUS:CAN:COUNt:RESet" on page 424 • "Introduction to :SBUS Commands" on page 421 • ":SBUS:MODE" on page 436 • ":TRIGger:CAN Commands" on page 478 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"- 241, Hardware missing" on page 745 See Also • ":SBUS:FLEXray:COUNt:RESet" on page 429 • "Introduction to :SBUS Commands" on page 421 • ":SBUS:MODE" on page 436 • ":TRIGger:FLEXray Commands" on page 505 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
":SBUS:FLEXray:COUNt:NULL" on page 428 • ":SBUS:FLEXray:COUNt:SYNC" on page 430 • ":SBUS:FLEXray:COUNt:TOTal" on page 431 • "Introduction to :SBUS Commands" on page 421 • ":SBUS:MODE" on page 436 • ":TRIGger:FLEXray Commands" on page 505 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"- 241, Hardware missing" on page 745 See Also • ":SBUS:FLEXray:COUNt:RESet" on page 429 • "Introduction to :SBUS Commands" on page 421 • ":SBUS:MODE" on page 436 • ":TRIGger:FLEXray Commands" on page 505 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"- 241, Hardware missing" on page 745 See Also • ":SBUS:FLEXray:COUNt:RESet" on page 429 • "Introduction to :SBUS Commands" on page 421 • ":SBUS:MODE" on page 436 • ":TRIGger:FLEXray Commands" on page 505 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <base><NL> <base> ::= {DECimal | HEX} Errors • "- 241, Hardware missing" on page 745 See Also • "Introduction to :SBUS Commands" on page 421 • ":TRIGger:I2S Commands" on page 526 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <mode><NL> <mode> ::= {BIT7 | BIT8} Errors • "- 241, Hardware missing" on page 745 See Also • "Introduction to :SBUS Commands" on page 421 • ":TRIGger:IIC Commands" on page 544 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <display><NL> <display> ::= {0 | 1} Errors • "- 241, Hardware missing" on page 745 See Also • "Introduction to :SBUS Commands" on page 421 • ":TRIGger:LIN Commands" on page 553 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <base><NL> <base> ::= {BIN | HEX} Errors • "- 241, Hardware missing" on page 745 See Also • "Introduction to :SBUS Commands" on page 421 • ":TRIGger:M1553 Commands" on page 566 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<word_width> ::= integer 4-16 in NR1 format Errors • "- 241, Hardware missing" on page 745 See Also • "Introduction to :SBUS Commands" on page 421 • ":SBUS:MODE" on page 436 • ":TRIGger:SPI Commands" on page 581 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"- 241, Hardware missing" on page 745 See Also • ":SBUS:UART:COUNt:RESet" on page 441 • "Introduction to :SBUS Commands" on page 421 • ":SBUS:MODE" on page 436 • ":TRIGger:UART Commands" on page 596 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
":SBUS:UART:COUNt:ERRor" on page 440 • ":SBUS:UART:COUNt:RXFRames" on page 442 • ":SBUS:UART:COUNt:TXFRames" on page 443 • "Introduction to :SBUS Commands" on page 421 • ":SBUS:MODE" on page 436 • ":TRIGger:UART Commands" on page 596 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"- 241, Hardware missing" on page 745 See Also • ":SBUS:UART:COUNt:RESet" on page 441 • "Introduction to :SBUS Commands" on page 421 • ":SBUS:MODE" on page 436 • ":TRIGger:UART Commands" on page 596 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"- 241, Hardware missing" on page 745 See Also • ":SBUS:UART:COUNt:RESet" on page 441 • "Introduction to :SBUS Commands" on page 421 • ":SBUS:MODE" on page 436 • ":TRIGger:UART Commands" on page 596 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<decimal> ::= 8-bit integer in decimal from 0-255 Errors • "- 241, Hardware missing" on page 745 See Also • "Introduction to :SBUS Commands" on page 421 • ":TRIGger:UART Commands" on page 596 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
NR1 format Introduction to SYSTem subsystem commands enable writing messages to the display, :SYSTem setting and reading both the time and the date, querying for errors, and Commands saving and recalling setups. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Query Syntax :SYSTem:DATE? The SYSTem:DATE? query returns the date. Return Format <year>,<month>,<day><NL> See Also • "Introduction to :SYSTem Commands" on page 445 • ":SYSTem:TIME" on page 454 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
(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. See Also • "Introduction to :SYSTem Commands" on page 445 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
8, “Error Messages,” starting on page 743. See Also • "Introduction to :SYSTem Commands" on page 445 • "*ESR (Standard Event Status Register)" on page 120 • "*CLS (Clear Status)" on page 117 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Query Syntax :SYSTem:LOCK? The :SYSTem:LOCK? query returns the lock status of the front panel. Return Format <value><NL> <value> ::= {1 | 0} See Also • "Introduction to :SYSTem Commands" on page 445 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :SYSTem:PRECision? query returns the current precision analysis setting. Return Format <value><NL> <value> ::= {1 | 0} See Also • "Introduction to :SYSTem Commands" on page 445 • ":WAVeform:POINts:MODE" on page 631 • "*RST (Reset)" on page 128 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Query Syntax :SYSTem:PROTection:LOCK? The :SYSTem:PROTection:LOCK? query returns the analog channel protection lock status. Return Format <value><NL> <value> ::= {1 | 0} See Also • "Introduction to :SYSTem Commands" on page 445 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
' 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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 453
Commands by Subsystem ' Write setup string back to oscilloscope using ":SYSTEM:SETUP" ' command: myScope.WriteIEEEBlock ":SYSTEM:SETUP ", varSetupString CheckForInstrumentErrors Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
:SYSTem:TIME? <time> The :SYSTem:TIME? query returns the current system time. Return Format <time><NL> <time> ::= hours,minutes,seconds in NR1 format See Also • "Introduction to :SYSTem Commands" on page 445 • ":SYSTem:DATE" on page 446 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
NR3 format for the page 465) zoomed window :TIMebase:WINDow:SCAL :TIMebase:WINDow:SCAL <scale_value> ::= scale value in e <scale_value> (see e? (see page 466) seconds in NR3 format for the page 466) zoomed window Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 456
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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
' Set the time base mode to MAIN, DELAYED, XY, or ROLL. ' Set time base mode to main. myScope.WriteString ":TIMEBASE:MODE MAIN" Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :TIMebase Commands" on page 456 • ":TIMebase:REFerence" on page 461 • ":TIMebase:RANGe" on page 459 • ":TIMebase:SCALe" on page 462 • ":TIMebase:WINDow:POSition" on page 464 • ":TIMebase:DELay" on page 737 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
' range value is 10 times the time per division. myScope.WriteString ":TIM:RANG 2e-3" ' Set the time range to 0.002 seconds. Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
(on), and a "0" indicates that either the 10 MHz REF BNC is disabled (off) or that it is set as an output (by the :ACQuire:RSIGnal command). Return Format <value><NL> <value> ::= {0 | 1} See Also • ":ACQuire:RSIGnal" on page 189 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
- CENTER sets the display reference to the center of the screen. myScope.WriteString ":TIMEBASE:REFERENCE CENTER" ' Set reference to center. Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<scale_value> ::= 500 ps through 50 s in NR3 format See Also • "Introduction to :TIMebase Commands" on page 456 • ":TIMebase:RANGe" on page 459 • ":TIMebase:WINDow:SCALe" on page 466 • ":TIMebase:WINDow:RANGe" on page 465 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TIMebase:VERNier? query returns the current state of the time base control's vernier setting. Return Format <vernier value><NL> <vernier value> ::= {0 | 1} See Also • "Introduction to :TIMebase Commands" on page 456 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <value><NL> <value> ::= range value in seconds See Also • "Introduction to :TIMebase Commands" on page 456 • ":TIMebase:RANGe" on page 459 • ":TIMebase:POSition" on page 458 • ":TIMebase:SCALe" on page 462 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<scale_value> ::= current seconds per division for the zoomed window See Also • "Introduction to :TIMebase Commands" on page 456 • ":TIMebase:RANGe" on page 459 • ":TIMebase:POSition" on page 458 • ":TIMebase:SCALe" on page 462 • ":TIMebase:WINDow:RANGe" on page 465 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 468
With the automotive CAN and LIN serial decode option (Option ASM), you can also trigger on Frame IDs. • MIL- STD 1553 triggering (with Option 553) — lets you trigger on MIL- STD 1553 serial data. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 469
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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:HFReject? query returns the current high frequency reject filter mode. Return Format <value><NL> <value> ::= {0 | 1} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger[:EDGE]:REJect" on page 502 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:HOLDoff? query returns the holdoff time value for the current trigger mode. Return Format <holdoff_time><NL> <holdoff_time> ::= the holdoff time value in seconds in NR3 format. See Also • "Introduction to :TRIGger Commands" on page 467 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
477 • ":TIMebase:MODE" on page 457 Example Code ' TRIGGER_MODE - Set the trigger mode to EDGE. myScope.WriteString ":TRIGGER:MODE EDGE" Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
This command is not valid in TV trigger mode. Query Syntax :TRIGger:NREJect? The :TRIGger:NREJect? query returns the current noise reject filter mode. Return Format <value><NL> <value> ::= {0 | 1} See Also • "Introduction to :TRIGger Commands" on page 467 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The optional source and the optional edge should be sent together or not at all. The edge N O T E will be set in the simple pattern if it is included. If the edge source is also specified in the mask, the edge takes precedence. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 476
The :TRIGger:PATTern? query returns the pattern value, the mask, and the edge of interest in the simple pattern. Return Format <pattern><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
N O T E 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 467 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
| 75 | 80 | 87.5} in NR3 format page 484) :TRIGger:CAN:SIGNal:B :TRIGger:CAN:SIGNal:B <baudrate> ::= integer from 10000 AUDrate <baudrate> AUDrate? (see to 1000000 in 100 b/s increments (see page 485) page 485) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value>, <mask><NL> in nondecimal format Errors • "- 241, Hardware missing" on page 745 See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:CAN:PATTern:DATA:LENGth" on page 481 • ":TRIGger:CAN:PATTern:ID" on page 482 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<count> ::= integer from 1 to 8 in NR1 format Errors • "- 241, Hardware missing" on page 745 See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:CAN:PATTern:DATA" on page 480 • ":TRIGger:CAN:SOURce" on page 486 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value>, <mask><NL> in nondecimal format Errors • "- 241, Hardware missing" on page 745 See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:CAN:PATTern:ID:MODE" on page 483 • ":TRIGger:CAN:PATTern:DATA" on page 480 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
745 See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:CAN:PATTern:DATA" on page 480 • ":TRIGger:CAN:PATTern:DATA:LENGth" on page 481 • ":TRIGger:CAN:PATTern:ID" on page 482 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= {60 | 62.5 | 68 | 70 | 75 | 80 | 87.5} in NR3 format See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:CAN:TRIGger" on page 487 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<baudrate> ::= integer from 10000 to 1000000 in 100 b/s increments See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:CAN:TRIGger" on page 487 • ":TRIGger:CAN:SIGNal:DEFinition" on page 739 • ":TRIGger:CAN:SOURce" on page 486 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:CAN:SOURce? query returns the current source for the CAN signal. Return Format <source><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:CAN:TRIGger" on page 487 • ":TRIGger:CAN:SIGNal:DEFinition" on page 739 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Id - Remote or Data Frame Id IDRemote Id & RTR - Remote Frame Id (RTR) ALLerrors All Errors - All Errors OVERload Overload - Overload Frame ACKerror Ack Error - Acknowledge Error Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 488
473 • ":TRIGger:CAN:PATTern:DATA" on page 480 • ":TRIGger:CAN:PATTern:DATA:LENGth" on page 481 • ":TRIGger:CAN:PATTern:ID" on page 482 • ":TRIGger:CAN:PATTern:ID:MODE" on page 483 • ":TRIGger:CAN:SIGNal:DEFinition" on page 739 • ":TRIGger:CAN:SOURce" on page 486 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
494) 10 seconds in NR3 format <less_than_time>[suff <greater_than_time> ::= 10 ns to ix], 9.99 seconds in NR3 format <greater_than_time>[s [suffix] ::= {s | ms | us | ns | uffix] (see page 494) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <greater_than_time><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:DURation:PATTern" on page 492 • ":TRIGger:DURation:QUALifier" on page 493 • ":TRIGger:MODE" on page 473 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:DURation:LESSthan? query returns the duration time for the defined pattern. Return Format <less_than_time><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:DURation:PATTern" on page 492 • ":TRIGger:DURation:QUALifier" on page 493 • ":TRIGger:MODE" on page 473 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value>, <mask><NL> <value> ::= a 32-bit integer in NR1 format. <mask> ::= a 32-bit integer in NR1 format. See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:PATTern" on page 475 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:DURation:QUALifier? query returns the trigger duration qualifier. Return Format <qualifier><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:DURation:GREaterthan" on page 490 • ":TRIGger:DURation:LESSthan" on page 491 • ":TRIGger:DURation:RANGe" on page 494 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:DURation:RANGe? query returns the duration time for the defined pattern. Return Format <less_than_time>,<greater_than_time><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:DURation:PATTern" on page 492 • ":TRIGger:DURation:QUALifier" on page 493 • ":TRIGger:MODE" on page 473 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
: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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:EBURst:COUNt? query returns the current Nth edge of burst edge counter setting. Return Format <count><NL> <count> ::= integer in NR1 format See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:EBURst:SLOPe" on page 498 • ":TRIGger:EBURst:IDLE" on page 497 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <time value><NL> <time_value> ::= time in seconds in NR3 format See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:EBURst:SLOPe" on page 498 • ":TRIGger:EBURst:COUNt" on page 496 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:EBURst:SLOPe? query returns the current Nth edge in a burst slope. Return Format <slope><NL> <slope> ::= {NEG | POS} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:EBURst:IDLE" on page 497 • ":TRIGger:EBURst:COUNt" on page 496 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<source> ::= {CHANnel<n> | e <source> (see e? (see page 504) EXTernal} for DSO models page 504) <source> ::= {CHANnel<n> | DIGital0,..,DIGital15 | EXTernal} for MSO models <n> ::= 1-2 or 1-4 in NR1 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger[:EDGE]:COUPling? query returns the current coupling selection. Return Format <coupling><NL> <coupling> ::= {AC | DC | LFR} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger[:EDGE]:REJect" on page 502 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <level><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger[:EDGE]:SOURce" on page 504 • ":EXTernal:RANGe" on page 262 • ":POD<n>:THReshold" on page 395 • ":DIGital<n>:THReshold" on page 243 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger[:EDGE]:REJect? query returns the current status of the reject filter. Return Format <reject><NL> <reject> ::= {OFF | LFR | HFR} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:HFReject" on page 471 • ":TRIGger[:EDGE]:COUPling" on page 500 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
' TRIGGER_EDGE_SLOPE - Sets the slope of the edge for the trigger. ' Set the slope to positive. myScope.WriteString ":TRIGGER:EDGE:SLOPE POSITIVE" Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
' TRIGGER_EDGE_SOURCE - Selects the channel that actually produces th ' edge trigger. Any channel can be selected. myScope.WriteString ":TRIGGER:EDGE:SOURCE CHANNEL1" Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<source> (see ce? (see page 515) <n> ::= 1-2 or 1-4 in NR1 format page 515) :TRIGger:FLEXray:TRIG :TRIGger:FLEXray:TRIG <condition> ::= {FRAMe | ERRor | ger <condition> (see ger? (see page 516) EVENt} page 516) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
FLX) has been licensed. See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:FLEXray:TRIGger" on page 516 • ":TRIGger:FLEXray:BAUDrate" on page 507 • ":TRIGger[:EDGE]:LEVel" on page 501 • ":TRIGger:FLEXray:SOURce" on page 515 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:FLEXray:BAUDrate? query returns the current baud rate setting. Return Format <baudrate><NL> <baudrate> ::= {2500000 | 5000000 | 10000000} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:FLEXray Commands" on page 505 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:FLEXray:CHANnel? query returns the current bus channel setting. Return Format <channel><NL> <channel> ::= {A | B} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:FLEXray Commands" on page 505 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:FLEXray:ERRor:TYPE? query returns the currently selected FLEXray error type. Return Format <error_type><NL> <error_type> ::= {ALL | HCRC | FCRC} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:FLEXray:TRIGger" on page 516 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:FLEXray:FRAMe:CCBase? query returns the current cycle count base setting for the FlexRay frame trigger setup. Return Format <cycle_count_base><NL> <cycle_count_base> ::= integer from 0-63 See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:FLEXray:TRIGger" on page 516 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<frame_id><NL> <frame_id> ::= {ALL | <frame #>} <frame #> ::= integer from 1-2047 See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:FLEXray:TRIGger" on page 516 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:FLEXray:SOURce? query returns the current source for the FlexRay signal. Return Format <source><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:FLEXray:TRIGger" on page 516 • ":TRIGger:FLEXray:EVENt:TYPE" on page 510 • ":TRIGger:FLEXray:AUTosetup" on page 506 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
:TRIGger:GLITch:POLar <polarity> ::= {POSitive | ity <polarity> (see ity? (see page 522) NEGative} page 522) :TRIGger:GLITch:QUALi :TRIGger:GLITch:QUALi <qualifier> ::= {GREaterthan | fier <qualifier> (see fier? (see page 523) LESSthan | RANGe} page 523) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 518
<source> ::= {CHANnel<n> | e <source> (see e? (see page 525) EXTernal} for DSO models page 525) <source> ::= {CHANnel<n> | DIGital0,..,DIGital15 } for MSO models <n> ::= 1-2 or 1-4 in NR1 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<greater_than_time><NL> <greater_than_time> ::= floating-point number in NR3 format. See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:GLITch:SOURce" on page 525 • ":TRIGger:GLITch:QUALifier" on page 523 • ":TRIGger:MODE" on page 473 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<less_than_time><NL> <less_than_time> ::= floating-point number in NR3 format. See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:GLITch:SOURce" on page 525 • ":TRIGger:GLITch:QUALifier" on page 523 • ":TRIGger:MODE" on page 473 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
If all channels are off, the query returns "NONE." Return Format <level_argument><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:GLITch:SOURce" on page 525 • ":EXTernal:RANGe" on page 262 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:GLITch:POLarity? query returns the glitch pulse width trigger polarity. Return Format <polarity><NL> <polarity> ::= {POS | NEG} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:GLITch:SOURce" on page 525 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:GLITch:QUALifier? query returns the glitch pulse width qualifier. Return Format <operator><NL> <operator> ::= {GRE | LESS | RANG} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:GLITch:SOURce" on page 525 • ":TRIGger:MODE" on page 473 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:GLITch:RANGe? query returns the pulse width duration time for :TRIGger:GLITch:SOURce. Return Format <less_than_time>,<greater_than_time><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:GLITch:SOURce" on page 525 • ":TRIGger:GLITch:QUALifier" on page 523 • ":TRIGger:MODE" on page 473 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• ":TRIGger:MODE" on page 473 • ":TRIGger:GLITch:LEVel" on page 521 • ":TRIGger:GLITch:POLarity" on page 522 • ":TRIGger:GLITch:QUALifier" on page 523 • ":TRIGger:GLITch:RANGe" on page 524 Example Code • "Example Code" on page 504 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary <string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F} for hexadecimal :TRIGger:I2S:RWIDth :TRIGger:I2S:RWIDth? <receiver> ::= 4-32 in NR1 format <receiver> (see (see page 536) page 536) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 527
INRange | OUTRange | INCReasing | DECReasing} :TRIGger:I2S:TWIDth :TRIGger:I2S:TWIDth? <word_size> ::= 4-32 in NR1 <word_size> (see (see page 542) format page 542) :TRIGger:I2S:WSLow :TRIGger:I2S:WSLow? <low_def> ::= {LEFT | RIGHt} <low_def> (see (see page 543) page 543) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<setting> ::= {I2S | LJ | RJ} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:I2S:CLOCk:SLOPe" on page 530 • ":TRIGger:I2S:RWIDth" on page 536 • ":TRIGger:I2S:TWIDth" on page 542 • ":TRIGger:I2S:WSLow" on page 543 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:I2S:AUDio? query returns the current audio channel for the I2S trigger. Return Format <audio_ch><NL> <audio_ch> ::= {RIGH | LEFT | EITH} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:I2S:TRIGger" on page 540 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<slope> ::= {NEG | POS} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:I2S:ALIGnment" on page 528 • ":TRIGger:I2S:RWIDth" on page 536 • ":TRIGger:I2S:TWIDth" on page 542 • ":TRIGger:I2S:WSLow" on page 543 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
When the receiver word size is greater than the transmitter word size, the data length is equal to the transmitter word size. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 532
• "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:I2S:PATTern:FORMat" on page 533 • ":TRIGger:I2S:TRIGger" on page 540 • ":TRIGger:I2S:RWIDth" on page 536 • ":TRIGger:I2S:TWIDth" on page 542 • ":TRIGger:I2S:AUDio" on page 529 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
I2S pattern data. Return Format <base><NL> <base> ::= {BIN | HEX | DEC} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:I2S:AUDio" on page 529 • ":TRIGger:I2S:TRIGger" on page 540 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<nondecimal> ::= #Bnn...n where n ::= {0 | 1} for binary <string> ::= "0xnn...n" where n ::= {0,..,9 | A,..,F} for hexadecimal See Also • "Introduction to :TRIGger Commands" on page 467 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 535
Commands by Subsystem • ":TRIGger:I2S:TRIGger" on page 540 • ":TRIGger:I2S:RWIDth" on page 536 • ":TRIGger:I2S:TWIDth" on page 542 • ":TRIGger:I2S:WSLow" on page 543 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<receiver> ::= 4-32 in NR1 format See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:I2S:ALIGnment" on page 528 • ":TRIGger:I2S:CLOCk:SLOPe" on page 530 • ":TRIGger:I2S:TWIDth" on page 542 • ":TRIGger:I2S:WSLow" on page 543 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:I2S:SOURce:CLOCk? query returns the current source for the I2S serial clock (SCLK). Return Format <source><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:I2S:SOURce:DATA" on page 538 • ":TRIGger:I2S:SOURce:WSELect" on page 539 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:I2S:SOURce:DATA? query returns the current source for the I2S serial data (SDATA). Return Format <source><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:I2S:SOURce:CLOCk" on page 537 • ":TRIGger:I2S:SOURce:WSELect" on page 539 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:I2S:SOURce:WSELect? query returns the current source for I2S word select (WS). Return Format <source><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:I2S:SOURce:CLOCk" on page 537 • ":TRIGger:I2S:SOURce:DATA" on page 538 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"Armed" value • 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. Query Syntax :TRIGger:I2S:TRIGger? Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 541
<operator> ::= {EQU | NOT | LESS | GRE | INR | OUTR | INCR | DECR} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:I2S:AUDio" on page 529 • ":TRIGger:I2S:RANGe" on page 534 • ":TRIGger:I2S:PATTern:FORMat" on page 533 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<word_size> ::= 4-32 in NR1 format See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:I2S:ALIGnment" on page 528 • ":TRIGger:I2S:CLOCk:SLOPe" on page 530 • ":TRIGger:I2S:RWIDth" on page 536 • ":TRIGger:I2S:WSLow" on page 543 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<low_def> ::= {LEFT | RIGHt} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:I2S:ALIGnment" on page 528 • ":TRIGger:I2S:CLOCk:SLOPe" on page 530 • ":TRIGger:I2S:RWIDth" on page 536 • ":TRIGger:I2S:TWIDth" on page 542 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
IIC data. Return Format <value><NL> <value> ::= integer See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:IIC:PATTern:DATA" on page 546 • ":TRIGger:IIC:PATTern:DATa2" on page 547 • ":TRIGger:IIC:TRIGger[:TYPE]" on page 551 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:IIC:PATTern:DATA? query returns the current pattern for IIC data. Return Format <value><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:IIC:PATTern:ADDRess" on page 545 • ":TRIGger:IIC:PATTern:DATa2" on page 547 • ":TRIGger:IIC:TRIGger[:TYPE]" on page 551 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:IIC:PATTern:DATa2? query returns the current pattern for IIC data 2. Return Format <value><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:IIC:PATTern:ADDRess" on page 545 • ":TRIGger:IIC:PATTern:DATA" on page 546 • ":TRIGger:IIC:TRIGger[:TYPE]" on page 551 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Query Syntax :TRIGger:IIC:[SOURce:]CLOCk? The :TRIGger:IIC:[SOURce:]CLOCk? query returns the current source for the IIC serial clock. Return Format <source><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:IIC[:SOURce]:DATA" on page 549 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
(SDA). Query Syntax :TRIGger:IIC:[SOURce:]DATA? The :TRIGger:IIC:[SOURce:]DATA? query returns the current source for IIC serial data. Return Format <source><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:IIC[:SOURce]:CLOCk" on page 548 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <value><NL> <value> ::= {EQUal | NOTequal | LESSthan | GREaterthan} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:IIC:TRIGger[:TYPE]" on page 551 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= {STAR | STOP | READ7 | READE | WRIT7 | WRIT10 | NACK | ANAC | R7D2 | W7D2 | REST} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 552
Commands by Subsystem • ":TRIGger:IIC:PATTern:ADDRess" on page 545 • ":TRIGger:IIC:PATTern:DATA" on page 546 • ":TRIGger:IIC:PATTern:DATa2" on page 547 • ":TRIGger:IIC:TRIGger:QUALifier" on page 550 • "Long Form to Short Form Truncation Rules" on page 788 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
745 See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:LIN:TRIGger" on page 565 • ":TRIGger:LIN:SIGNal:DEFinition" on page 740 • ":TRIGger:LIN:SOURce" on page 562 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 557
The :TRIGger:LIN:PATTern:DATA? query returns the currently specified LIN trigger data pattern. Return Format <string><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:LIN:PATTern:FORMat" on page 559 • ":TRIGger:LIN:TRIGger" on page 565 • ":TRIGger:LIN:PATTern:DATA:LENGth" on page 558 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<count> ::= integer from 1 to 8 in NR1 format Errors • "- 241, Hardware missing" on page 745 See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:LIN:PATTern:DATA" on page 556 • ":TRIGger:LIN:SOURce" on page 562 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
LIN pattern data. Return Format <base><NL> <base> ::= {BIN | HEX | DEC} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:LIN:PATTern:DATA" on page 556 • ":TRIGger:LIN:PATTern:DATA:LENGth" on page 558 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= {60 | 62.5 | 68 | 70 | 75 | 80 | 87.5} in NR3 format See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:LIN:TRIGger" on page 565 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<baudrate> ::= integer from 2400 to 625000 in 100 b/s increments See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:LIN:TRIGger" on page 565 • ":TRIGger:LIN:SIGNal:DEFinition" on page 740 • ":TRIGger:LIN:SOURce" on page 562 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:LIN:SOURce? query returns the current source for the LIN signal. Return Format <source><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:LIN:TRIGger" on page 565 • ":TRIGger:LIN:SIGNal:DEFinition" on page 740 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <std><NL> <std> ::= {LIN13 | LIN20} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:LIN:SIGNal:DEFinition" on page 740 • ":TRIGger:LIN:SOURce" on page 562 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value><NL> <value> ::= {11 | 12 | 13} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:LIN:SIGNal:DEFinition" on page 740 • ":TRIGger:LIN:SOURce" on page 562 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
+/- 500 mV, turns on serial decode, and sets the trigger mode to M1553. See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:M1553:SOURce:UPPer" on page 571 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:M1553:PATTern:DATA? query returns the current 11- bit setting. Return Format <string><NL> <string> ::= "nn...n" where n ::= {0 | 1 | X} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:M1553:TYPE" on page 572 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
:TRIGger:M1553:RTA? The :TRIGger:M1553:RTA? query returns the current TV trigger line number setting. Return Format <value><NL> in nondecimal format See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:M1553:TYPE" on page 572 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:SEQuence:COUNt? query returns the current sequencer edge counter setting. Return Format <count><NL> <count> ::= integer in NR1 format See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:SEQuence:TRIGger" on page 580 • ":TRIGger:SEQuence:EDGE" on page 575 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <source>, <slope><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:SEQuence:FIND" on page 576 • ":TRIGger:SEQuence:TRIGger" on page 580 • ":TRIGger:SEQuence:RESet" on page 578 • ":TRIGger:SEQuence:COUNt" on page 574 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <value>, <mask><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:SEQuence:FIND" on page 576 • ":TRIGger:SEQuence:TRIGger" on page 580 • ":TRIGger:SEQuence:RESet" on page 578 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:SEQuence:PATTern" on page 577 • ":TRIGger:SEQuence:EDGE" on page 575 • ":TRIGger:SEQuence:TIMer" on page 579 • ":TRIGger:SEQuence:FIND" on page 576 • ":TRIGger:SEQuence:TRIGger" on page 580 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:SEQuence:TIMer? query returns current sequencer timer setting. Return Format <time value><NL> <time_value> ::= time in seconds in NR1 format See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:SEQuence:RESet" on page 578 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= {CHANnel<n> | RAMe <source> (see RAMe? (see page 589) EXTernal} for the DSO models page 589) <value> ::= {CHANnel<n> | DIGital0,..,DIGital15} for the MSO models <n> ::= 1-2 or 1-4 in NR1 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:SPI:CLOCk:SLOPe? query returns the current SPI clock source slope. Return Format <slope><NL> <slope> ::= {NEG | POS} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:SPI:CLOCk:TIMeout" on page 583 • ":TRIGger:SPI:SOURce:CLOCk" on page 587 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<time_value> ::= time in seconds in NR1 format See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:SPI:CLOCk:SLOPe" on page 582 • ":TRIGger:SPI:SOURce:CLOCk" on page 587 • ":TRIGger:SPI:FRAMing" on page 584 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value><NL> <value> ::= {CHIPselect | NOTChipselect | TIMeout} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:SPI:CLOCk:TIMeout" on page 583 • ":TRIGger:SPI:SOURce:FRAMe" on page 589 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:SPI:PATTern:DATA? query returns the current settings of the specified SPI data pattern resource. Return Format <value>, <mask><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:SPI:PATTern:WIDTh" on page 586 • ":TRIGger:SPI:SOURce:DATA" on page 588 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <width><NL> <width> ::= integer from 4 to 32 in NR1 format See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:SPI:PATTern:DATA" on page 585 • ":TRIGger:SPI:SOURce:DATA" on page 588 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <source><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:SPI:CLOCk:SLOPe" on page 582 • ":TRIGger:SPI:CLOCk:TIMeout" on page 583 • ":TRIGger:SPI:SOURce:FRAMe" on page 589 • ":TRIGger:SPI:SOURce:DATA" on page 588 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <source><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:SPI:SOURce:CLOCk" on page 587 • ":TRIGger:SPI:SOURce:FRAMe" on page 589 • ":TRIGger:SPI:PATTern:DATA" on page 585 • ":TRIGger:SPI:PATTern:WIDTh" on page 586 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
SPI serial frame. Return Format <source><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:SPI:SOURce:CLOCk" on page 587 • ":TRIGger:SPI:SOURce:DATA" on page 588 • ":TRIGger:SPI:FRAMing" on page 584 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:TV:LINE? query returns the current TV trigger line number setting. Return Format <line_number><NL> <line_number>::= integer in NR1 format See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:TV:STANdard" on page 595 • ":TRIGger:TV:MODE" on page 592 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:TV:POLarity? query returns the TV trigger polarity. Return Format <polarity><NL> <polarity> ::= {POS | NEG} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:TV:SOURce" on page 594 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <source><NL> <source> ::= {CHAN<n>} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:TV:POLarity" on page 593 Example Code • "Example Code" on page 504 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:UART:BASE? query returns the current UART base setting. Return Format <base><NL> <base> ::= {ASC | HEX} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:UART:DATA" on page 602 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <baudrate><NL> <baudrate> ::= integer from 1200 to 3000000 in 100 b/s increments See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:UART:TYPE" on page 609 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<bitorder> ::= {LSBF | MSBF} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:UART:TYPE" on page 609 • ":TRIGger:UART:SOURce:RX" on page 607 • ":TRIGger:UART:SOURce:TX" on page 608 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= {OFF | 1 to 4096 in NR1 format} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:UART:IDLE" on page 603 • ":TRIGger:UART:TYPE" on page 609 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= 8-bit integer in decimal from 0-255 See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:UART:BASE" on page 598 • ":TRIGger:UART:TYPE" on page 609 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<time_value> ::= time from 1 us to 10 s in NR3 format See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:UART:BURSt" on page 601 • ":TRIGger:UART:TYPE" on page 609 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:UART:PARity? query returns the current UART parity setting. Return Format <parity><NL> <parity> ::= {EVEN | ODD | NONE} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:UART:TYPE" on page 609 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:UART:POLarity? query returns the current UART polarity setting. Return Format <polarity><NL> <polarity> ::= {HIGH | LOW} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:UART:TYPE" on page 609 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <value><NL> <value> ::= {EQU | NOT | GRE | LESS} See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:UART:TYPE" on page 609 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:UART:SOURce:RX? query returns the current source for the UART Rx signal. Return Format <source><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:UART:TYPE" on page 609 • ":TRIGger:UART:BITorder" on page 600 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:UART:SOURce:TX? query returns the current source for the UART Tx signal. Return Format <source><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:UART:TYPE" on page 609 • ":TRIGger:UART:BITorder" on page 600 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:USB:SOURce:DMINus? query returns the current source for the USB D- signal. Return Format <source><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:USB:SOURce:DPLus" on page 613 • ":TRIGger:USB:TRIGger" on page 615 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:USB:SOURce:DPLus? query returns the current source for the USB D+ signal. Return Format <source><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:USB:SOURce:DMINus" on page 612 • ":TRIGger:USB:TRIGger" on page 615 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <value><NL> See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:USB:SOURce:DMINus" on page 612 • ":TRIGger:USB:SOURce:DPLus" on page 613 • ":TRIGger:USB:TRIGger" on page 615 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
| <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 632) MAXimum | RAW} page 631) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 617
AVER | HRES} :WAVeform:UNSigned :WAVeform:UNSigned? {0 | 1} {{0 | OFF} | {1 | (see page 644) ON}} (see page 644) :WAVeform:VIEW <view> :WAVeform:VIEW? (see <view> ::= {MAIN} (see page 645) page 645) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 618
Data Acquisition Types There are four types of waveform acquisitions that can be selected for analog channels with the :ACQuire:TYPE command (see page 196): NORMal, AVERage, PEAK, and HRESolution. Digital channels are always Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 619
:WAVeform:POINts? query (see page 629). 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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 620
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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 621
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 622
BYTE format one byte per point is transferred, and in WORD format two bytes per point are transferred. The :WAVeform:BYTeorder command (see page 624) has no effect when the data format is BYTE. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 623
198) 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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"Introduction to :WAVeform Commands" on page 618 • ":WAVeform:DATA" on page 626 • ":WAVeform:FORMat" on page 628 • ":WAVeform:PREamble" on page 633 Example Code • "Example Code" on page 639 • "Example Code" on page 634 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <count_argument><NL> <count_argument> ::= an integer from 1 to 65536 in NR1 format See Also • "Introduction to :WAVeform Commands" on page 618 • ":ACQuire:COUNt" on page 185 • ":ACQuire:TYPE" on page 196 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
' 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, Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 627
* sngXIncrement + dblXOrigin) * 1000000) + " us" + vbCrLf Next lngI MsgBox "Waveform data:" + vbCrLf + strOutput Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"Introduction to :WAVeform Commands" on page 618 • ":WAVeform:BYTeorder" on page 624 • ":WAVeform:SOURce" on page 638 • ":WAVeform:DATA" on page 626 • ":WAVeform:PREamble" on page 633 Example Code • "Example Code" on page 639 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<# 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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 630
Example Code ' WAVE_POINTS - Specifies the number of points to be transferred ' using the ":WAVEFORM:DATA?" query. myScope.WriteString ":WAVEFORM:POINTS 1000" Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• The instrument must be stopped (see the :STOP command (see for MAXimum or page 178) or the :DIGitize command (see page 150) in the root RAW data subsystem) in order to return more than the measurement record or retrieval precision analysis record. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 632
450 • ":WAVeform:VIEW" on page 645 • ":WAVeform:PREamble" on page 633 • ":WAVeform:POINts" on page 629 • ":TIMebase:MODE" on page 457 • ":ACQuire:TYPE" on page 196 • ":ACQuire:COUNt" on page 185 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<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). Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 634
' 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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 635
= Preamble(3) dblXIncrement = Preamble(4) dblXOrigin = Preamble(5) lngXReference = Preamble(6) sngYIncrement = Preamble(7) sngYOrigin = Preamble(8) lngYReference = Preamble(9) Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
191 • ":DIGitize" on page 150 • ":SINGle" on page 176 • ":RUN" on page 174 • "Introduction to :WAVeform Commands" on page 618 Example Code • "Example Code" on page 192 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
:ACQuire:SEGMented:INDex command. Return Format <time_tag> ::= in NR3 format See Also • ":ACQuire:SEGMented:INDex" on page 192 • "Introduction to :WAVeform Commands" on page 618 Example Code • "Example Code" on page 192 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :WAVeform:SOURce? query returns the currently selected source for the WAVeform commands. MATH is an alias for FUNCtion. The :WAVeform:SOURce? Query returns FUNC if the source N O T E is FUNCtion or MATH. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 639
: 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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 641
* sngXIncrement + dblXOrigin) * 1000000) + " us" + vbCrLf Next lngI MsgBox "Waveform data:" + vbCrLf + strOutput Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
:WAVeform:SOURce:SUBSource? The :WAVeform:SOURce:SUBSource? query returns the current waveform subsource setting. Return Format <subsource><NL> <subsource> ::= {NONE | TX} See Also • "Introduction to :WAVeform Commands" on page 618 • ":WAVeform:SOURce" on page 638 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
N O T E See Also • "Introduction to :WAVeform Commands" on page 618 • ":ACQuire:TYPE" on page 196 • ":WAVeform:DATA" on page 626 • ":WAVeform:PREamble" on page 633 • ":WAVeform:SOURce" on page 638 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :WAVeform:UNSigned? query returns the status of unsigned mode for the currently selected waveform. Return Format <unsigned><NL> <unsigned> ::= {0 | 1} See Also • "Introduction to :WAVeform Commands" on page 618 • ":WAVeform:SOURce" on page 638 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :WAVeform:VIEW? query returns the view setting associated with the currently selected waveform. Return Format <view><NL> <view> ::= {MAIN} See Also • "Introduction to :WAVeform Commands" on page 618 • ":WAVeform:POINts" on page 629 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= x-increment in the current preamble in 64-bit floating point NR3 format See Also • "Introduction to :WAVeform Commands" on page 618 • ":WAVeform:PREamble" on page 633 Example Code • "Example Code" on page 634 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= x-origin value in the current preamble in 64-bit floating point NR3 format See Also • "Introduction to :WAVeform Commands" on page 618 • ":WAVeform:PREamble" on page 633 • ":WAVeform:XREFerence" on page 648 Example Code • "Example Code" on page 634 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= x-reference value = 0 in 32-bit NR1 format See Also • "Introduction to :WAVeform Commands" on page 618 • ":WAVeform:PREamble" on page 633 • ":WAVeform:XORigin" on page 647 Example Code • "Example Code" on page 634 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= y-increment value in the current preamble in 32-bit floating point NR3 format See Also • "Introduction to :WAVeform Commands" on page 618 • ":WAVeform:PREamble" on page 633 Example Code • "Example Code" on page 634 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= y-origin in the current preamble in 32-bit floating point NR3 format See Also • "Introduction to :WAVeform Commands" on page 618 • ":WAVeform:PREamble" on page 633 • ":WAVeform:YREFerence" on page 651 Example Code • "Example Code" on page 634 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= y-reference value in the current preamble in 32-bit NR1 format See Also • "Introduction to :WAVeform Commands" on page 618 • ":WAVeform:PREamble" on page 633 • ":WAVeform:YORigin" on page 650 Example Code • "Example Code" on page 634 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 652
Commands by Subsystem Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide 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 786). Obsolete Command Current Command Equivalent Behavior Differences ANALog<n>:BWLimit...
Page 688
398) :HARDcopy:FORMat (see :HARDcopy:APRinter (see page 709) page 284) :SAVE:IMAGe:FORMat (see page 409) :SAVE:WAVeform:FORMat (see page 417) :HARDcopy:GRAYscale (see :HARDcopy:PALette (see page 710) page 289) :HARDcopy:IGColors (see :HARDcopy:INKSaver (see page 711) page 287) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 689
:SAVE:MASK[:STARt] (see STORe} (see page 727) page 413) :MTESt:AVERage (see :ACQuire:TYPE AVERage (see page 728) page 196) :MTESt:AVERage:COUNt (see :ACQuire:COUNt (see page 729) page 185) :MTESt:LOAD (see page 730) :RECall:MASK[:STARt] (see page 400) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 690
Listed below are the Discontinued commands and the nearest equivalent command available (if any). Discontinued Command Current Command Equivalent Comments ASTore :DISPlay:PERSistence INFinite (see page 251) CHANnel:MATH :FUNCtion:OPERation (see ADD not included page 273) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 691
*TST (Self Test) (see page 137) TRACE subsystem none All commands discontinued, feature not available TRIGger:ADVanced subsystem Use new GLITch, PATTern, or TV trigger modes TRIGger:TV:FIELd :TRIGger:TV:MODE (see page 592) TRIGger:TV:TVHFrej TRIGger:TV:VIR none VAUToscale none Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 692
Obsolete and Discontinued Commands Discontinued Some previous oscilloscope queries returned control setting values of OFF Parameters and ON. The InfiniiVision 7000 Series oscilloscopes only return the enumerated values 0 (for off) and 1 (for on). Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
:DIGital<n>:LABel command (see page 240) for the InfiniiVision 7000 Series oscilloscopes. Query Syntax :CHANnel:LABel? The :CHANnel:LABel? query returns the label associated with a particular analog channel. Return Format <string><NL> <string> ::= quoted ASCII string Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :CHANnel2:SKEW? query returns the current probe skew setting for the selected channel. Return Format <skew value><NL> <skew value> ::= skew value in NR3 format See Also • "Introduction to :CHANnel<n> Commands" on page 218 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Use the :CHANnel<n>:IMPedance command (see page 223) 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} Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
N O T E previous oscilloscopes. Query Syntax :CHANnel<n>:PMODe? The :CHANnel<n>:PMODe? query returns AUT if an autosense probe is attached and MAN otherwise. Return Format <pmode value><NL> <pmode value> ::= {AUT | MAN} Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Use the :DISPlay:VECTors command (see page 253) instead. Query Syntax :DISPlay:CONNect? The :DISPlay:CONNect? query returns the current state of the vectors setting. Return Format <connect><NL> <connect> ::= {1 | 0} See Also • ":DISPlay:VECTors" on page 253 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
' 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" Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Command Syntax :ERASe The :ERASe command erases the screen. The :ERASe command is an obsolete command provided for compatibility to previous N O T E oscilloscopes. Use the :CDISplay command (see page 149) instead. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <impedance value><NL> <impedance value> ::= {ONEM | FIFT} See Also • "Introduction to :EXTernal Trigger Commands" on page 254 • "Introduction to :TRIGger Commands" on page 467 • ":CHANnel<n>:IMPedance" on page 223 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
N O T E previous oscilloscopes. Query Syntax :EXTernal:PMODe? The :EXTernal:PMODe? query returns AUT if an autosense probe is attached and MAN otherwise. Return Format <pmode value><NL> <pmode value> ::= {AUT | MAN} Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<n> ::= {1 | 2 | 3 | 4} for the four channel oscilloscope models <n> ::= {1 | 2} for the two channel oscilloscope models See Also • "Introduction to :FUNCtion Commands" on page 266 • ":FUNCtion:OPERation" on page 273 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
N O T E oscilloscopes. Use the :FUNCtion:DISPlay command (see page 268) instead. Query Syntax :FUNCtion:VIEW? The :FUNCtion:VIEW? query returns the current state of the selected function. Return Format <view><NL> <view> ::= {1 | 0} Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Query Syntax :HARDcopy:DESTination? The :HARDcopy:DESTination? query returns the selected hardcopy destination. Return Format <destination><NL> <destination> ::= {CENT | FLOP} See Also • "Introduction to :HARDcopy Commands" on page 282 • ":HARDcopy:FORMat" on page 709 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
:HARDcopy:FILename? The :HARDcopy:FILename? query returns the current hardcopy output filename. Return Format <string><NL> <string> ::= quoted ASCII string See Also • "Introduction to :HARDcopy Commands" on page 282 • ":HARDcopy:FORMat" on page 709 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :HARDcopy:FORMat? query returns the selected hardcopy format type. Return Format <format><NL> <format> ::= {BMP | BMP8 | PNG | CSV | ASC | BIN | PRIN0 | PRIN1} See Also • "Introduction to :HARDcopy Commands" on page 282 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :HARDcopy:GRAYscale? query returns a flag indicating whether grayscaling is performed in the hardcopy dump. Return Format <gray><NL> <gray> ::= {0 | 1} See Also • "Introduction to :HARDcopy Commands" on page 282 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
:HARDcopy:IGColors? The :HARDcopy:IGColors? query returns a flag indicating whether graticule colors are inverted or not. Return Format <value><NL> <value> ::= {0 | 1} See Also • "Introduction to :HARDcopy Commands" on page 282 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Return Format <voltage><NL> <voltage> ::= the user-defined lower threshold in volts in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:THResholds" on page 716 • ":MEASure:UPPer" on page 723 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :MEASure:SCRatch command clears all selected measurements and markers from the screen. The :MEASure:SCRatch command is obsolete and is provided for backward compatibility to N O T E previous oscilloscopes. Use the :MEASure:CLEar command (see page 314) instead. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :MEASure Commands" on page 312 • ":MARKer:X1Position" on page 298 • ":MARKer:X2Position" on page 300 • ":MARKer:XDELta" on page 302 • ":MEASure:TSTArt" on page 719 • ":MEASure:TSTOp" on page 720 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
{VOLTage} uses the upper and lower voltage thresholds set by the UPPer and LOWer commands on the selected waveform. See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:LOWer" on page 713 • ":MEASure:UPPer" on page 723 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= time at maximum in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:TMIN" on page 718 • ":MEASure:XMAX" on page 356 • ":MEASure:XMIN" on page 357 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= time at minimum in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:TMAX" on page 717 • ":MEASure:XMAX" on page 356 • ":MEASure:XMIN" on page 357 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :MEASure Commands" on page 312 • ":MARKer:X1Position" on page 298 • ":MARKer:X2Position" on page 300 • ":MARKer:XDELta" on page 302 • ":MEASure:TDELta" on page 715 • ":MEASure:TSTOp" on page 720 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :MEASure Commands" on page 312 • ":MARKer:X1Position" on page 298 • ":MARKer:X2Position" on page 300 • ":MARKer:XDELta" on page 302 • ":MEASure:TDELta" on page 715 • ":MEASure:TSTArt" on page 719 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :MEASure:TVOLt command is obsolete and is provided for backward compatibility to N O T E previous oscilloscopes. Use the :MEASure:TVALue command (see page 344) for the InfiniiVision 7000 Series oscilloscopes. Return Format <value><NL> Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 722
Obsolete and Discontinued Commands <value> ::= time in seconds of the specified voltage crossing in NR3 format Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :MEASure:UPPer? query returns the current upper threshold level. Return Format <value><NL> <value> ::= the user-defined upper threshold in NR3 format See Also • "Introduction to :MEASure Commands" on page 312 • ":MEASure:LOWer" on page 713 • ":MEASure:THResholds" on page 716 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• "Introduction to :MEASure Commands" on page 312 • ":MARKer:Y1Position" on page 303 • ":MARKer:Y2Position" on page 304 • ":MARKer:YDELta" on page 305 • ":MEASure:TDELta" on page 715 • ":MEASure:TSTArt" on page 719 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :MTESt:AMASk:{SAVE | STORe} command is obsolete and is provided for backward N O T E compatibility to previous oscilloscopes. Use the :SAVE:MASK[:STARt] command (see page 413) instead. See Also • "Introduction to :MTESt Commands" on page 360 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
:MTESt:AVERage? The :MTESt:AVERage? query returns the current setting for averaging. Return Format <on_off><NL> <on_off> ::= {1 | 0} See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:AVERage:COUNt" on page 729 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :MTESt:AVERage:COUNt? query returns the currently selected count value. Return Format <count><NL> <count> ::= an integer from 2 to 65536 in NR1 format See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:AVERage" on page 728 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :MTESt:LOAD command is obsolete and is provided for backward compatibility to N O T E previous oscilloscopes. Use the :RECall:MASK[:STARt] command (see page 400) instead. See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:AMASk:{SAVE | STORe}" on page 727 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<seconds> ::= from 1 to 86400 in NR3 format <wfm_count> ::= number of waveforms in NR1 format from 1 to 1,000,000,000 See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:RUMode:SOFailure" on page 732 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :MTESt:RUMode:SOFailure? query returns the current state of the Stop on Failure control. Return Format <on_off><NL> <on_off> ::= {1 | 0} See Also • "Introduction to :MTESt Commands" on page 360 • ":MTESt:RUMode" on page 731 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
N O T E backward compatibility to previous oscilloscopes. Use the :RUN command (see page 174) and :STOP command (see page 178) instead. See Also • "Introduction to :MTESt Commands" on page 360 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<n> ::= {1 | 2 | 3 | 4} for the four channel oscilloscope models <n> ::= {1 | 2} for the two channel oscilloscope models See Also • "Introduction to :MTESt Commands" on page 360 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
FACTors Selects outputting of Not used additional settings information for :PRINT NOFactors Deselects outputting Not used of additional settings information for :PRINT Old Print Option: Is Now: HIRes COLor LORes GRAYscale PARallel PRINter0 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 736
"Introduction to Root (:) Commands" on page 141 • "Introduction to :HARDcopy Commands" on page 282 • ":HARDcopy:FORMat" on page 709 • ":HARDcopy:FACTors" on page 285 • ":HARDcopy:GRAYscale" on page 710 • ":DISPlay:DATA" on page 247 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
' 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" Example program from the start: "VISA COM Example in Visual Basic" page 812 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:CAN:ACKNowledge? query returns the current CAN acknowledge setting. Return Format <value><NL> <value> ::= 0 See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:CAN:TRIGger" on page 487 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<value> ::= DIFF See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:CAN:SIGNal:BAUDrate" on page 485 • ":TRIGger:CAN:SOURce" on page 486 • ":TRIGger:CAN:TRIGger" on page 487 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
The :TRIGger:LIN:SIGNal:DEFinition? query returns the current LIN signal type. Return Format <value><NL> <value> ::= LIN See Also • "Introduction to :TRIGger Commands" on page 467 • ":TRIGger:MODE" on page 473 • ":TRIGger:LIN:SIGNal:BAUDrate" on page 561 • ":TRIGger:LIN:SOURce" on page 562 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
<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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
: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} Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 743
Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide 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 -315, Configuration memory lost ...
Page 744
-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 -256, File name not found Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 745
AMS (automotive serial decode) or LSS (low- speed serial decode) options are licensed. -240, Hardware error -231, Data questionable -230, Data corrupt or stale -224, Illegal parameter value Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 746
-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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 747
-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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 748
-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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 749
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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide Status Reporting Status Reporting Data Structures Status Byte Register (STB) Service Request Enable Register (SRE) Trigger Event Register (TER) Output Queue Message Queue (Standard) Event Status Register (ESR) (Standard) Event Status Enable Register (ESE)
Page 752
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 753
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Overload Event Enable (Mask) Register Com- :MTERegister[:EVENt]? Auto Started Fail Mask plete Mask Test Event Event Register :MTEenable :MTEenable? Mask Test Event Enable (MASK) Register To bits in Operation Status Condition Register: OVLR Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 755
The status register bits are described in more detail in the following tables: • Table 44 • Table 42 • Table 52 • Table 53 • Table 55 • Table 47 • Table 48 • Table 50 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 756
*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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 758
Use Serial Polling to Read Status Byte Register. Serial polling is the preferred method to N O T E 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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• 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). Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
This summary bit sets the MAV bit (bit 4) in the Status Byte Register. When using the Agilent VISA COM library, the output queue may be read with the FormattedIO488 object's ReadString, ReadNumber, ReadList, or ReadIEEEBlock methods. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
= 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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
(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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
"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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
OVLR bit bit 11 Is set whenever a 50Ω input overload occurs. HWE bit bit 12 Comes from the Hardware Event Registers. The :OPERegister:CONDition? query returns the value of the Operation Status Condition Register. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
8 Fault has occurred on Channel 3 input. Channel 4 Fault bit 9 Fault has occurred on Channel 4 input. External Trigger bit 10 Fault has occurred on External Trigger input. Fault Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Status Reporting Hardware Event Event Register (:HWERegister[:EVENt]) This register hosts the Bat On bit (bit 0). • The Bat On bit is set whenever the instrument is operating on battery power. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• The PLL LOCKED bit (bit 12) is for internal use and is not intended for general use. • The Bat On bit is set whenever the instrument is operating on battery power. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Is set when mask testing is started. Auto Mask bit 10 Is set when auto mask creation is completed. The :MTERegister[:EVENt]? query returns the value of, and clears, the Mask Test Event Event Register. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
If events are monitored by the Standard Event Status Register, myScope.WriteString "*STB?" also enable ESB with the *SRE varR = myScope.ReadNumber Determine which bits in the command. MsgBox "STB: 0x" + Hex(varR) Status Byte Register are set. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide Synchronizing Acquisitions Synchronization in the Programming Flow Blocking Synchronization Polling Synchronization With Timeout Synchronizing with a Single-Shot Device Under Test (DUT) Synchronization with an Averaging Acquisition 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.
Requires known maximum wait time. Implementation "Blocking Synchronization" "Polling Synchronization With Details page 777. Timeout" on page 778. Retrieve Results Once the acquisition is complete, it is safe to retrieve measurements and statistics. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
' 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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 779
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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
' 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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 781
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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
' 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" Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 783
":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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide More About Oscilloscope Commands Command Classifications Valid Command/Query Strings Query Return Values All Oscilloscope Commands Are Sequential ...
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 788
New Line Terminator Functions. The NL (New Line) terminator has the same function as N O T E 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: Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 789
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> Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 790
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
: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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 807
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
(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 Representation when a measurement cannot be made. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
• Sequential commands finish their task before the execution of the next command starts. • Overlapped commands run concurrently. Commands following an overlapped command may be started before the overlapped command is completed. All of the oscilloscope commands are sequential. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 810
More About Oscilloscope Commands Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide Programming Examples VISA COM Examples VISA Examples SICL Examples Example programs are ASCII text files that can be cut from the help file and pasted into your favorite text editor. ...
' The commands sent to the oscilloscope are written in both long and ' short form. Both forms are acceptable. ' The input signal is the probe compensation signal from the front ' panel of the oscilloscope connected to channel 1. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 813
' cause the program to fail or not perform as expected. ' In this example, we initialize the following: - Oscilloscope - Channel 1 range - Display Grid - Timebase reference, range, and delay - Trigger mode and type Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 814
":TRIGGER:TV:SOURCE CHANNEL1" ' TRIGGER_MODE - Set the trigger mode to EDGE, GLITch, PATTern, CAN, ' DURation, IIC, LIN, SEQuence, SPI, TV, or USB. ' Set the trigger mode to EDGE. myScope.WriteString ":TRIGGER:MODE EDGE" Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 815
' DIGITIZE - Used to acquire the waveform data for transfer over ' the interface. Sending this command causes an acquisition to ' take place with the resulting data being placed in the buffer. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 816
' format is a definite-length binary block, for example, #800002204<setup string><NL> ' where the setup string is 2204 bytes in length. myScope.WriteString ":SYSTEM:SETUP?" varQueryResult = myScope.ReadIEEEBlock(BinaryType_UI1) CheckForInstrumentErrors ' After reading query results. ' Output setup string to a file: Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 820
' 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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
* ------------------------------------------------------------------- * This program illustrates most of the commonly used programming * features of your Agilent oscilloscopes. * ------------------------------------------------------------------- using System; using System.IO; using System.Text; using Ivi.Visa.Interop; using System.Runtime.InteropServices; namespace InfiniiVision class VisaComInstrumentApp Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 823
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.DoCommand("*RST"); // Reset the to the defaults. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 824
* PATTern, CAN, DURation, IIC, LIN, SEQuence, SPI, TV, * UART, or USB. myScope.DoCommand(":TRIGger:MODE EDGE"); /* TRIGGER_EDGE_SLOPE - Set the slope of the edge for the * trigger to either POSITIVE or NEGATIVE. myScope.DoCommand(":TRIGger:EDGE:SLOPe POSitive"); Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 825
/* DIGITIZE - Used to acquire the waveform data for transfer * over the interface. Sending this command causes an * acquisition to take place with the resulting data being * placed in the buffer. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 826
Console.WriteLine("Read oscilloscope setup ({0} bytes).", nBytes); // Write setup string to file. File.WriteAllBytes("c:\\scope\\config\\setup.dat", ResultsArray); Console.WriteLine("Wrote setup string ({0} bytes) to file.", nBytes); /* RESTORE_SYSTEM_SETUP - Uploads a previously saved setup * string to the oscilloscope. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 827
Console.WriteLine("The frequency is: {0:F4} kHz", fResults / 1000); // Query for peak to peak voltage. fResults = myScope.DoQueryValue(":MEASure:VPP?"); Console.WriteLine("The peak to peak voltage is: {0:F2} V", fResults); /* WAVEFORM_DATA - Get waveform data from oscilloscope. To Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 828
: float32 - value of the voltage at center screen. YREFERENCE : int32 - data point where y-origin occurs. Console.WriteLine("Reading preamble."); double[] fResultsArray; fResultsArray = myScope.DoQueryValues(":WAVeform:PREamble?"); double fFormat = fResultsArray[0]; Console.WriteLine("Preamble FORMat: {0:e}", fFormat); double fType = fResultsArray[1]; Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 829
* of bytes from the oscilloscope; then, read the following NL * character to terminate the query. // Read waveform data. ResultsArray = myScope.DoQueryIEEEBlock(":WAVeform:DATA?"); nBytes = ResultsArray.Length; Console.WriteLine("Read waveform data ({0} bytes).", nBytes); // Make some calculations from the preamble data. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 830
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(); Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 831
// Check for instrument errors. CheckForInstrumentErrors(strQuery); // Return result number. return fResult; public double[] DoQueryValues(string strQuery) // Send the query. m_IoObject.WriteString(strQuery, true); // Get the result numbers. double[] fResultsArray; fResultsArray = (double[])m_IoObject.ReadList( IEEEASCIIType.ASCIIType_R8, ",;"); Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 832
// If there is an error, print it. if (strInstrumentError.ToString() != "+0,\"No error\"\n") if (bFirstError) // Print the command that caused the error. Console.WriteLine("ERROR(s) for command '{0}': ", strCommand); bFirstError = false; Console.Write(strInstrumentError); Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
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()) myScope = New _ VisaComInstrument("USB0::2391::5957::MY47250010::0::INSTR") Initialize() ' The extras function contains miscellaneous commands that Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 835
' CHANNEL_PROBE - Sets the probe attenuation factor for the ' selected channel. The probe attenuation factor may be from ' 0.1 to 1000. myScope.DoCommand(":CHANnel1:PROBe 10") ' CHANNEL_RANGE - Sets the full scale vertical range in volts. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 836
' VIEW_BLANK (not executed in this example): - VIEW turns on (starts displaying) an active channel or pixel memory. - BLANK turns off (stops displaying) a specified channel or pixel memory. myScope.DoCommand(":BLANk CHANnel1") myScope.DoCommand(":VIEW CHANnel1") Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 837
- Save the oscilloscope display to a file which can be printed. - Make single channel measurements. Private Shared Sub Analyze() ' Results array. Dim ResultsArray As Byte() ' Number of bytes returned from instrument. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 838
' Get the screen data in PNG format. ResultsArray = _ myScope.DoQueryIEEEBlock(":DISPlay:DATA? PNG, SCReen, COLor") nBytes = ResultsArray.Length Console.WriteLine("Read screen image ({0} bytes).", nBytes) ' Store the screen data in a file. File.WriteAllBytes("c:\scope\data\screen.png", ResultsArray) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 839
: int16 - 0 = BYTE, 1 = WORD, 4 = ASCII. TYPE : int16 - 0 = NORMAL, 1 = PEAK DETECT, 2 = AVERAGE. POINTS : int32 - number of data points transferred. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 840
' 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 block><NL> Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 841
For index As Integer = 0 To nBytes - 1 writer.WriteLine("{0:E}, {1:f6}", _ (CSng(index) - fXreference) * fXincrement + fXorigin, _ (CSng(ResultsArray(index)) - fYreference) * fYincrement _ + fYorigin) Next writer.Close() Console.WriteLine("Waveform data ({0} points) written to " + _ Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 842
Public Function DoQueryValue(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 instrument errors. CheckForInstrumentErrors(strQuery) ' Return result number. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 843
Private Sub CheckForInstrumentErrors(ByVal strCommand As String) Dim strInstrumentError As String Dim bFirstError As Boolean = True ' Repeat until all errors are displayed. ' Send the ":SYSTem:ERRor?" query, and get the result string. m_IoObject.WriteString(":SYSTem:ERRor?", True) strInstrumentError = m_IoObject.ReadString() Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 844
Public Sub SetTimeoutSeconds(ByVal nSeconds As Integer) m_IoObject.IO.Timeout = nSeconds * 1000 End Sub Public Sub Close() m_IoObject.IO.Close() Catch End Try Marshal.ReleaseComObject(m_IoObject) Catch End Try Marshal.ReleaseComObject(m_ResourceManager) Catch End Try End Sub End Class End Namespace Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Show directories for Library files, and add the library files directory (for example, Program Files\VISA\winnt\lib\msc). Click OK to close the Options dialog. Build and run the program. * Agilent VISA Example in C * ------------------------------------------------------------------ Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 846
("Oscilloscope session initialized!\n"); /* Clear the interface. */ viClear(vi); initialize(); /* The extras function contains miscellaneous commands that do not * need to be executed for the proper operation of this example. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 847
/* CHANNEL_RANGE - Sets the full scale vertical range in volts. * The range value is eight times the volts per division. viPrintf(vi, ":CHANNEL1:RANGE 8\n"); /* TIME_RANGE - Sets the full scale horizontal time in seconds. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 848
- BLANK turns off (stops displaying) a specified channel or pixel memory. viPrintf(vi, ":BLANK CHANNEL1\n"); viPrintf(vi, ":VIEW CHANNEL1\n"); /* TIME_MODE (not executed in this example) - Set the time base * mode to MAIN, DELAYED, XY or ROLL. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 849
- Save the oscilloscope display to a file which can be printed. - Make single channel measurements. void analyze (void) double frequency, vpp; /* Measurements. */ double vdiv, off, sdiv, delay; /* Values calculated from preamble data. */ Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 850
(%d bytes).\n", img_size); /* Write image data to file. */ fp = fopen ("c:\\scope\\data\\screen.bmp", "wb"); img_size = fwrite(image_data, sizeof(unsigned char), img_size, fp); fclose (fp); printf("Wrote image data (%d bytes) to file.\n", img_size); viSetAttribute(vi, VI_ATTR_TMO_VALUE, 5000); Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 851
* the computer for storage, plotting, or further analysis. void get_waveform (void) int waveform_size; /* WAVEFORM_DATA - To obtain waveform data, you must specify the * WAVEFORM parameters for the waveform data prior to sending the * ":WAVEFORM:DATA?" query. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 852
XREFERENCE: %e\n", preamble[6]); printf("Preamble YINCREMENT: %e\n", preamble[7]); printf("Preamble YORIGIN: %e\n", preamble[8]); printf("Preamble YREFERENCE: %e\n", preamble[9]); /* QUERY_WAVE_DATA - Outputs waveform records to the controller * over the interface that is stored in a buffer previously Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 853
The data is saved to a file called "wave.dat". void save_waveform(void) FILE *fp; fp = fopen("c:\\scope\\data\\wave.dat", "wb"); /* Write preamble. */ fwrite(preamble, sizeof(preamble[0]), 10, fp); /* Write actually waveform data. */ fwrite(waveform_data, sizeof(waveform_data[0]), (int)preamble[2], fp); fclose(fp); Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
' ------------------------------------------------------------------- Option Explicit Public err As Long ' Error returned by VISA function calls. Public drm As Long ' Session to Default Resource Manager. Public vi As Long ' Session to instrument. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 855
= 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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 856
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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 857
' Write learn 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 data using :DIGitize. ' ----------------------------------------------------------------- DoCommand ":DIGitize" End Sub Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 858
' Download waveform data. ' ----------------------------------------------------------------- ' Set the waveform points mode. DoCommand ":WAVeform:POINts:MODE RAW" Debug.Print "Waveform points mode: " + _ DoQueryString(":WAVeform:POINts:MODE?") ' Set the desired number of waveform points. DoCommand ":WAVeform:POINts 1000" Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 859
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" End If Debug.Print "Waveform points desired: " + _ Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 860
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." End Sub Private Sub DoCommand(command As String) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 861
= 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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 862
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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 863
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 If Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
* This program illustrates most of the commonly used programming * features of your Agilent oscilloscopes. * ------------------------------------------------------------------- using System; using System.IO; using System.Text; namespace InfiniiVision class VisaInstrumentApp private static VisaInstrument oscp; public static void Main(string[] args) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 865
* reinitialize them unless the default setting is not suitable * for your application. oscp.DoCommand("*RST"); // Reset the to the defaults. oscp.DoCommand("*CLS"); // Clear the status data structures. /* IDN - Ask for the device's *IDN string. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 866
/* TRIGGER_EDGE_SLOPE - Set the slope of the edge for the * trigger to either POSITIVE or NEGATIVE. oscp.DoCommand(":TRIGger:EDGE:SLOPe POSitive"); * Extra() * -------------------------------------------------------------- * The commands in this function are not executed and are shown Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 867
* placed in the buffer. /* NOTE! The use of the DIGITIZE command is highly recommended * as it will ensure that sufficient data is available for * measurement. Keep in mind when the oscilloscope is running, Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 868
// Write setup string to file. File.WriteAllBytes("c:\\scope\\config\\setup.dat", ResultsArray); Console.WriteLine("Wrote setup string ({0} bytes) to file.", nLength); /* RESTORE_SYSTEM_SETUP - Uploads a previously saved setup * string to the oscilloscope. byte[] DataArray; int nBytesWritten; Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 869
// Query for peak to peak voltage. fResults = oscp.DoQueryValue(":MEASure:VPP?"); Console.WriteLine("The peak to peak voltage is: {0:F2} V", fResults); /* WAVEFORM_DATA - Get waveform data from oscilloscope. To * obtain waveform data, you must specify the WAVEFORM Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 871
* character to terminate the query. // Read waveform data. nLength = oscp.DoQueryIEEEBlock(":WAVeform:DATA?", out ResultsArray); Console.WriteLine("Read waveform data ({0} bytes).", nLength); // Make some calculations from the preamble data. double fVdiv = 32 * fYincrement; Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 872
// 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); Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 873
// Send the query. VisaSendCommandOrQuery(strQuery); // Get the result string. StringBuilder strResults = new StringBuilder(1000); strResults = VisaGetResultString(); // Check for instrument errors (another command and result). CheckForInstrumentErrors(strQuery); // Return string results. return strResults; Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 874
// Check for instrument errors (another command and result). CheckForInstrumentErrors(strQuery); // Return string results. return length; private void CheckForInstrumentErrors(string strCommand) // Check for instrument errors. StringBuilder strInstrumentError = new StringBuilder(1000); bool bFirstError = true; VisaSendCommandOrQuery(":SYSTem:ERRor?"); Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 875
= visa32.viScanf(m_nSession, "%lf", out fResults); CheckVisaStatus(nViStatus); return fResults; private double[] VisaGetResultValues() double[] fResultsArray; fResultsArray = new double[10]; // Read return value string from the device. int nViStatus; nViStatus = visa32.viScanf(m_nSession, "%,10lf\n", Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 876
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); Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Explorer. It will have a little arrow icon in its lower left corner, indicating that it is a link. Right- click the project again and choose Properties; then, select "InfiniiVision.VisaInstrumentApp" as the Startup object. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 878
MsgBox("*** Error : " & err.Message, vbExclamation, _ "Unexpected Error") Exit Sub Finally oscp.Close() End Try End Sub ' Initialize() ' -------------------------------------------------------------- ' This function initializes both the interface and the ' oscilloscope to a known state. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 879
' PATTern, CAN, DURation, IIC, LIN, SEQuence, SPI, TV, ' UART, or USB. oscp.DoCommand(":TRIGger:MODE EDGE") ' TRIGGER_EDGE_SLOPE - Set the slope of the edge for the ' trigger to either POSITIVE or NEGATIVE. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 880
' over the interface. Sending this command causes an ' acquisition to take place with the resulting data being ' placed in the buffer. ' NOTE! The use of the DIGITIZE command is highly recommended Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 881
' Write setup string to file. File.WriteAllBytes("c:\scope\config\setup.dat", ResultsArray) Console.WriteLine("Wrote setup string ({0} bytes) to file.", _ nLength) ' RESTORE_SYSTEM_SETUP - Uploads a previously saved setup ' string to the oscilloscope. Dim DataArray As Byte() Dim nBytesWritten As Integer Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 882
' Query for peak to peak voltage. fResults = oscp.DoQueryValue(":MEASure:VPP?") Console.WriteLine("The peak to peak voltage is: {0:F2} V", _ fResults) ' WAVEFORM_DATA - Get waveform data from oscilloscope. To ' obtain waveform data, you must specify the WAVEFORM Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 883
= oscp.DoQueryValues(":WAVeform:PREamble?") Dim fFormat As Double = fResultsArray(0) Console.WriteLine("Preamble FORMat: {0:e}", fFormat) Dim fType As Double = fResultsArray(1) Console.WriteLine("Preamble TYPE: {0:e}", fType) Dim fPoints As Double = fResultsArray(2) Console.WriteLine("Preamble POINts: {0:e}", fPoints) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 884
Dim fSdiv As Double = fPoints * fXincrement / 10 Dim fDelay As Double = (fPoints / 2) * fXincrement + fXorigin ' Print them out... Console.WriteLine("Scope Settings for Channel 1:") Console.WriteLine("Volts per Division = {0:f}", fVdiv) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 885
' Open the default VISA resource manager. OpenResourceManager() ' Open a VISA resource session. OpenSession() ' 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) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 886
' Check for instrument errors (another command and result). CheckForInstrumentErrors(strQuery) ' Return string results. Return strResults End Function Public Function DoQueryValue(ByVal strQuery As String) As Double ' Send the query. VisaSendCommandOrQuery(strQuery) ' Get the result string. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 887
Dim bFirstError As Boolean = True VisaSendCommandOrQuery(":SYSTem:ERRor?") strInstrumentError = VisaGetResultString() If strInstrumentError.ToString() <> _ "+0,""No error""" & Chr(10) & "" Then If bFirstError Then Console.WriteLine("ERROR(s) for command '{0}': ", _ strCommand) bFirstError = False End If Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 888
"%,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 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 889
' 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()) End If End Sub Public Sub Close() If m_nSession <> 0 Then visa32.viClose(m_nSession) End If Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 890
Programming Examples If m_nResourceManager <> 0 Then visa32.viClose(m_nResourceManager) End If End Sub End Class End Namespace Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
* Agilent SICL Example in C * ------------------------------------------------------------------ * This program illustrates most of the commonly-used programming * features of your Agilent oscilloscope. * This program is to be built as a WIN32 console application. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 892
/* Open a device session using the DEVICE_ADDRESS */ id = iopen(DEVICE_ADDRESS); if (id == 0) printf ("Oscilloscope iopen failed!\n"); else printf ("Oscilloscope session initialized!\n"); /* Set the I/O timeout value for this session to 5 seconds. */ itimeout(id, TIMEOUT); Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 893
* the response into buf. ipromptf(id, "*IDN?\n", "%t", buf); printf("%s\n", buf); /* AUTOSCALE - This command evaluates all the input signals and * sets the correct conditions to display all of the active signals. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 894
* function from main. void extra (void) /* RUN_STOP (not executed in this example): - RUN starts the acquisition of data for the active waveform display. - STOP stops the data acquisition and turns off AUTOSTORE. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 895
* been enough time for the data acquisition process to collect * data and the results may not be accurate. An error value of * 9.9E+37 may be returned over the bus in this situation. iprintf(id, ":DIGITIZE CHAN1\n"); Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 896
/* IMAGE_TRANSFER - In this example we will query for the image * data with ":DISPLAY:DATA?" to read the data and save the data * to the file "image.dat" which you can then send to a printer. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 897
("Data Point %4d = %6.2f Volts at %10f Seconds\n", i, ((float)waveform_data[i] - preamble[9]) * preamble[7] + preamble[8], ((float)i - preamble[6]) * preamble[4] + preamble[5]); save_waveform(); /* Save waveform data to disk. */ retrieve_waveform(); /* Load waveform data from disk. */ Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 898
YINCREMENT : float32 - voltage difference between data points. YORIGIN : float32 - value of the voltage at center screen. YREFERENCE : int32 - data point where y-origin occurs. printf("Reading preamble\n"); ipromptf(id, ":WAVEFORM:PREAMBLE?\n", "%,10lf\n", preamble); printf("Preamble FORMAT: %e\n", preamble[0]); Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 899
= %d\n", waveform_size); * save_waveform * ------------------------------------------------------------------ * This function saves the waveform data from the get_waveform * function to disk. The data is saved to a file called "wave.dat". void save_waveform(void) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Suite\include directory), select it, and click Open. Choose Insert>Module. Cut- and- paste the code that follows into the editor. Edit the program to use the SICL address of your oscilloscope, and save the changes. Run the program. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 901
' Close the vi session and the resource manager session. Call iclose(id) Exit Sub ErrorHandler: MsgBox "*** Error : " + Error, vbExclamation End Sub ' Initialize the oscilloscope to a known state. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 902
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. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 903
' Length of file. Get hFile, , byteArray ' Read data. Close hFile ' Close file. ' Write learn string back to oscilloscope using ":SYSTem:SETup" ' command: Dim lngRestored As Long lngRestored = DoCommandIEEEBlock(":SYSTem:SETup", lngSetupFileSize) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 904
Open strPath For Binary Access Write Lock Write As hFile Dim lngI As Long For lngI = 10 To lngBlockSize - 1 ' Skip past 10-byte header. Put hFile, , byteArray(lngI) ' Write data. Next lngI Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 905
Dim lngVSteps As Long Dim intBytesPerData As Integer lngVSteps = 256 intBytesPerData = 1 ' Get the waveform data Dim lngNumBytes As Long lngNumBytes = DoQueryIEEEBlock_Bytes(":WAVeform:DATA?") Debug.Print "Waveform data IEEEBlock bytes: " + CStr(lngNumBytes) Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 906
Call ivprintf(id, command + vbLf) CheckForInstrumentErrors command Exit Sub ErrorHandler: MsgBox "*** Error : " + Error, vbExclamation End Sub Private Function DoCommandIEEEBlock(command As String, _ lngBlockSize As Long) On Error GoTo ErrorHandler ' Send command part. Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 907
On Error GoTo ErrorHandler Dim dblResult As Double Call ivprintf(id, query + vbLf) Call ivscanf(id, "%lf" + vbLf, dblResult) CheckForInstrumentErrors query DoQueryNumber = dblResult Exit Function ErrorHandler: MsgBox "*** Error : " + Error, vbExclamation Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 908
If Not strOut = "" Then MsgBox strOut, vbExclamation, "INST Error Messages, " + _ strCmdOrQuery Call iflush(id, I_BUF_DISCARD_READ Or I_BUF_DISCARD_WRITE) End If Exit Sub ErrorHandler: MsgBox "*** Error: " + Error, vbExclamation End Sub Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 909
AVERage commands, BWLimit commands, ALL segments waveform save option, average value measurement, byte format for data transfer, 622, alphabetical list of commands, averaging acquisition type, 182, BYTeorder, AMASk commands, averaging, synchronizing with, amplitude, vertical, Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 910
CHANnel<n> commands, 217, code, VISA COM library example in C#, CSV (Comma Separated Values) hardcopy channels to autoscale, code, VISA COM library example in Visual format, channels, how autoscale affects, Basic, characters to display, Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 914
412, lower threshold channel, M1553 trigger, markers, masks, bind levels, lower threshold voltage for measurement, measurements, time between trigger and master summary status bit, lowercase characters in commands, edge, math function, stop displaying, Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 915
490, 491, 519, new line (NL) terminator, 108, order of output, pattern format, I2S, NL (new line) terminator, 108, oscilloscope connection, opening, pattern format, LIN, noise reject filter, oscilloscope connection, verifying, pattern length, 481, Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 916
342, quoted ASCII string, print mask test failures, reporting status, QYE (Query Error) status bit, 119, print query, reporting the setup, printer, request service, Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 917
SPI trigger frame, saving and recalling data, setting pod display, SPI triggering, SBUS commands, setting pod size, square root math function, scale, 276, 462, setting pod threshold, SCALe commands, Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 918
467, trigger qualifier, UART, time, stop marker, sweep speed set to fast to measure fall trigger reset conditions, time, system, time, TRIGger SEQuence commands, time/div, how autoscale affects, Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 919
USB trigger, trigger, IIC pattern data 2, turn off math function, USB trigger commands, trigger, IIC qualifier, turn off measurements, USB triggering, trigger, IIC signal baudrate, turn off trace memories, user defined channel labels, Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 920
Y-origin, 650, Visual Basic for Applications, 48, waveform, X origin, Y-reference, Visual Basic, SICL library example, waveform, X reference, Visual Basic, VISA COM example, waveform, Y increment, Visual Basic, VISA example, waveform, Y origin, Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 921
Index zero values in waveform data, zoomed time base, zoomed time base mode, how autoscale affects, zoomed window horizontal scale, Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...
Page 922
Index Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide...