File info: application/pdf · 62 pages · 388.61KB
Spectrum Analyzer Programming Manual - Conrad
The function measures the bandwidth, at the number of dB down specified in : CALCulate:BWIDth|BANDwidth:NDB, of the maximum signal on the display. Syntax.
SpectrumAnalyzer ProgrammingManual - Conrad Electronic
1 SCPIIntroduction SCPI(StandardCommandsforProgrammableInstrument)isastandardinstructionsetforprogrammable devicesunderIEEE488.2.SCPIcommandsaredividedintotwoparts ...
[PDF] Spectrum Analyzer Programming Manual
The SCPI command is a tree hierarchy that includes multiple subsystems, each consisting of a root key and one or more level keys. The command line usually ...
Full PDF Document
If the inline viewer fails, it will open the original document in compatibility mode automatically. You can also open the file directly.
Extracted Text
Spectrum Analyzer Programming Manual
Contents
Contents
SCPI Introduction...........................................................................................................................1 Command Format..................................................................................................................... 1 Symbol Description...................................................................................................................1 Parameter Type......................................................................................................................... 2 Command abbreviation............................................................................................................3 Third-party programming entrance....................................................................................... 3
SCPI Command Set....................................................................................................................... 4 IEEE 488.2 Common Commands........................................................................................... 4 *IDN?................................................................................................................................... 4 *RST..................................................................................................................................... 4 CALCulate Commands..............................................................................................................5 :CALCulate:BWIDth|BANDwidth:NDB................................................................................ 5 :CALCulate:BWIDth|BANDwidth:RESult?........................................................................... 5 :CALCulate:BWIDth|BANDwidth[:STATe]............................................................................ 5 :CALCulate:MARKer:AOFF................................................................................................... 6 :CALCulate:MARKer<n>:CPEak[:STATe]............................................................................... 6 :CALCulate:MARKer<n>:DELTa[:SET]:CENTer...................................................................... 6 :CALCulate:MARKer<n>:DELTa[:SET]:SPAN......................................................................... 6 :CALCulate:MARKer:FCOunt:RESolution.............................................................................7 :CALCulate:MARKer<n>:FCOunt[:STATe].............................................................................7 :CALCulate:MARKer<n>:FCOunt:X?.................................................................................... 7 :CALCulate:MARKer:FUNCtion:AOFF.................................................................................. 7 :CALCulate:MARKer<n>:MAXimum.................................................................................... 8 :CALCulate:MARKer<n>:MAXimum:LEFT............................................................................8 :CALCulate:MARKer<n>:MAXimum:NEXT.......................................................................... 8 :CALCulate:MARKer<n>:MAXimum:RIGHt......................................................................... 8 :CALCulate:MARKer<n>:MINimum..................................................................................... 8 :CALCulate:MARKer<n>:MODE........................................................................................... 9 :CALCulate:MARKer<n>:PHNoise[:STATe]........................................................................... 9 :CALCulate:MARKer:PHNoise:Y?......................................................................................... 9 :CALCulate:MARKer<n>[:SET]:CENTer.............................................................................. 10 :CALCulate:MARKer<n>[:SET]:RLEVel............................................................................... 10 :CALCulate:MARKer<n>[:SET]:STARt.................................................................................10 :CALCulate:MARKer<n>[:SET]:STEP.................................................................................. 10 :CALCulate:MARKer<n>[:SET]:STOP..................................................................................11 :CALCulate:MARKer<n>:STATe.......................................................................................... 11 :CALCulate:MARKer:TABLe:STATe..................................................................................... 11 :CALCulate:MARKer<n>:TRACe......................................................................................... 12 :CALCulate:MARKer<n>:DELTa:X?..................................................................................... 12 :CALCulate:MARKer<n>:DELTa:Y?..................................................................................... 12 :CALCulate:MARKer<n>:X................................................................................................. 12 :CALCulate:MARKer<n>:Y?................................................................................................13
i
Contents
:CALCulate:NETMeasure:POWer...................................................................................... 13 :CALCulate:NTDate:NORMalize.........................................................................................13 :CALCulate:TUNE:AUTO.................................................................................................... 14 CALibration Commands..........................................................................................................15 :CALibration[:ALL]............................................................................................................. 15 :CALibration:RESTore.........................................................................................................15 CONFigure Commands...........................................................................................................16 :CONFigure:ACPower........................................................................................................ 16 :CONFigure:CHPower........................................................................................................ 16 :CONFigure:OBWidth........................................................................................................ 16 :CONFigure:SANalyzer.......................................................................................................16 :CONFigure:SATime........................................................................................................... 16 DISPlay Commands................................................................................................................ 17 :DISPlay:ANNotation:CLOCk:DATE:FORMat......................................................................17 :DISPlay:ANNotation:CLOCk[:STATe]................................................................................. 17 :DISPlay:FORMat:ZOOM................................................................................................... 17 :DISPlay:MENU:STATe........................................................................................................18 :DISPlay:WINdow:GRID..................................................................................................... 18 :DISPlay:WINdow:LABEl.................................................................................................... 18 :DISPlay:WINdow:TRACe:X[:SCALe]:OFFSet..................................................................... 19 :DISPlay:WINdow:TRACe:Y:DLINe..................................................................................... 19 :DISPlay:WINdow:TRACe:Y:DLINe:STATe...........................................................................19 :DISPlay:WINdow:TRACe:Y[:SCALe]:GAUge......................................................................19 :DISPlay:WINdow:TRACe:Y[:SCALe]:PDIVision................................................................. 20 :DISPlay:WINdow:TRACe:Y[:SCALe]:RLEVel...................................................................... 20 :DISPlay:WINdow:TRACe:Y[:SCALe]:RLEVel:OFFSet......................................................... 20 :DISPlay:WINdow:TRACe:Y[:SCALe]:SPACing....................................................................20 HCOPy Commands..................................................................................................................22 :HCOPy:IMAGe:COLor[:STATe].......................................................................................... 22 :HCOPy:IMAGe:TYPe......................................................................................................... 22 :HCOPy:PAGE:ORIentation................................................................................................ 22 :HCOPy:PAGE:PRINts......................................................................................................... 22 :HCOPy:PAGE:SIZE............................................................................................................. 23 :HCOPy:SCReen................................................................................................................. 23 :HCOPy:TRACe................................................................................................................... 23 INITiate Commands............................................................................................................... 24 :INITiate:CONTinuous........................................................................................................24 MMEMory Commands.............................................................................................................25 :MMEMory:CATalog?........................................................................................................ 25 :MMEMory:COPY:SCReen................................................................................................. 25 :MMEMory:COPY:TRACe...................................................................................................25 :MMEMory:DELete:ALL.....................................................................................................25 :MMEMory:DELete:SCReen.............................................................................................. 25 :MMEMory:DELete:SCReen:ALL....................................................................................... 26
ii
Contents
:MMEMory:DELete:TRACe................................................................................................26 :MMEMory:DELete:TRACe:ALL......................................................................................... 26 :MMEMory:DISK:INFormation..........................................................................................26 :MMEMory:LOAD:SCReen.................................................................................................26 :MMEMory:LOAD:TRACe.................................................................................................. 26 :MMEMory:STORe:QUICK:SAVE....................................................................................... 27 :MMEMory:STORe:SCReen............................................................................................... 27 :MMEMory:STORe:STATe.................................................................................................. 27 :MMEMory:STORe:TRACe.................................................................................................27 OUTPut Commands................................................................................................................ 28 :OUTPut:TRACk[:STATe].....................................................................................................28 SENSe Commands.................................................................................................................. 29 [:SENSe]:ACPower:BANDwidth:ACHannel:COUNt........................................................... 29 [:SENSe]:ACPower:BANDwidth:INTegration..................................................................... 29 [:SENSe]:ACPower:CSPacing............................................................................................. 29 [:SENSe]:AVERage:COUNt................................................................................................. 29 [:SENSe]:AVERage[:STATe].................................................................................................30 [:SENSe]:BANDwidth|BWIDth[:RESolution]..................................................................... 30 [:SENSe]:BANDwidth|BWIDth[:RESolution]:AUTO...........................................................30 [:SENSe]:BANDwidth|BWIDth[:RESolution]:STEP:MODE................................................ 31 [:SENSe]:BANDwidth|BWIDth:VIDeo............................................................................... 31 [:SENSe]:BANDwidth|BWIDth:VIDeo:AUTO..................................................................... 31 [:SENSe]:BANDwidth:EMC................................................................................................ 32 [:SENSe]:BANDwidth:EMC:STATe...................................................................................... 32 [:SENSe]:DEMod:AM[:CARRier]:FREQuency.....................................................................32 [:SENSe]:DEMod:AM:IFBW............................................................................................... 32 [:SENSe]:DEMod:AM:IFBW:AUTO.....................................................................................33 [:SENSe]:DEMod:AM:STATe...............................................................................................33 [:SENSe]:DEMod:FM[:CARRier]:FREQuency..................................................................... 33 [:SENSe]:DEMod:FM:IFBW................................................................................................34 [:SENSe]:DEMod:FM:IFBW:AUTO..................................................................................... 34 [:SENSe]:DEMod:FM:STATe............................................................................................... 34 [:SENSe]:DEMod:FREQuency............................................................................................ 34 [:SENSe]:DEMod:MODE.................................................................................................... 35 [:SENSe]:DEMod:STATe......................................................................................................35 [:SENSe]:DETector[:FUNCtion].......................................................................................... 35 [:SENSe]:FREQuency:CENTer.............................................................................................36 [:SENSe]:FREQuency:CENTer:STEP:AUTO......................................................................... 36 [:SENSe]:FREQuency:CENTer:STEP[:INCRement]............................................................. 36 [:SENSe]:FREQuency:REFerence....................................................................................... 37 [:SENSe]:FREQuency:SPAN................................................................................................37 [:SENSe]:FREQuency:SPAN:FULL....................................................................................... 37 [:SENSe]:FREQuency:SPAN:PREVious............................................................................... 37 [:SENSe]:FREQuency:SPAN:ZERO...................................................................................... 37
iii
Contents
[:SENSe]:FREQuency:STARt............................................................................................... 38 [:SENSe]:FREQuency:STOP................................................................................................ 38 [:SENSe]:OBWidth:PERCent.............................................................................................. 38 [:SENSe]:PASSFAIL:LINELimit:LOWer:CLEar...................................................................... 38 [:SENSe]:PASSFAIL:LINELimit:LOWer:POINt<n>:DELete................................................... 39 [:SENSe]:PASSFAIL:LINELimit:LOWer:POINt<n>:X.............................................................39 [:SENSe]:PASSFAIL:LINELimit:LOWer:POINt<n>:Y.............................................................39 [:SENSe]:PASSFAIL:LINELimit:LOWer:STATe...................................................................... 39 [:SENSe]:PASSFAIL:LINELimit:MARKer<n>:STATe?............................................................ 40 [:SENSe]:PASSFAIL:LINELimit:STATe...................................................................................40 [:SENSe]:PASSFAIL:LINELimit:UPper:CLEar....................................................................... 40 [:SENSe]:PASSFAIL:LINELimit:UPper:POINt<n>:DELete.................................................... 40 [:SENSe]:PASSFAIL:LINELimit:UPper:POINt<n>:X............................................................. 41 [:SENSe]:PASSFAIL:LINELimit:UPper:POINt<n>:Y..............................................................41 [:SENSe]:PASSFAIL:LINELimit:UPPer:STATe....................................................................... 41 [:SENSe]:PASSFAIL:LINELimit:X:OFFSET............................................................................ 41 [:SENSe]:PASSFAIL:LINELimit:Y:OFFSET............................................................................. 42 [:SENSe]:PASSFAIL:WINdow:AMPl:LOWer........................................................................ 42 [:SENSe]:PASSFAIL:WINdow:AMPl:UPper.........................................................................42 [:SENSe]:PASSFAIL:WINdow:AMPt:STATe......................................................................... 42 [:SENSe]:PASSFAIL:WINdow:FREQuency:END.................................................................. 43 [:SENSe]:PASSFAIL:WINdow:FREQuency:STARt................................................................ 43 [:SENSe]:PASSFAIL:WINdow:FREQuency:STATe................................................................ 43 [:SENSe]:PASSFAIL:WINdow:MARKer<n>:STATe?............................................................. 44 [:SENSe]:PASSFAIL:WINdow:STATe....................................................................................44 [:SENSe]:PASSFAIL:WINdow:SWEEP:STATe....................................................................... 44 [:SENSe]:POWer[:RF]:ATTenuation................................................................................... 45 [:SENSe]:POWer[:RF]:ATTenuation:AUTO......................................................................... 45 [:SENSe]:POWer[:RF]:GAIN[:STATe]:AUTO........................................................................ 45 [:SENSe]:SWEep:POINts.................................................................................................... 46 [:SENSe]:SWEep:TIME....................................................................................................... 46 [:SENSe]:SWEep:TIME:AUTO............................................................................................ 46 SOURce Commands................................................................................................................47 :SOURce:POWer:TRACk[:POWer]..................................................................................... 47 SYSTem Commands................................................................................................................48 :SYSTem:COMMunicate:LAN:DHCP.................................................................................. 48 :SYSTem:COMMunicate:LAN:GATE................................................................................... 48 :SYSTem:COMMunicate:LAN:IP:ADDRess......................................................................... 48 :SYSTem:COMMunicate:LAN:MASK.................................................................................. 48 :SYSTem:CONFigure:FIRMwareupdate............................................................................. 49 :SYSTem:CONFigure:information?.................................................................................... 49 :SYSTem:DATE.................................................................................................................... 49 :SYSTem:LANGuage........................................................................................................... 50 :SYSTem:PON:TYPE............................................................................................................50
iv
Contents
:SYSTem:PRESet:TYPE........................................................................................................50 :SYSTem:SPEaker:VOLume................................................................................................ 50 :SYSTem:TIME.................................................................................................................... 51 TRACe Commands.................................................................................................................. 52 :TRACe[:DATA]?................................................................................................................. 52 :TRACe:SOCKdata?............................................................................................................ 52 :TRACe<n>:MODE............................................................................................................. 52 Trigger Commands................................................................................................................. 54 :TRIGger:SEQuence:SOURce............................................................................................. 54 :TRIGger:SEQuence:SOURce:VIDeo:POWer..................................................................... 54 UDISk Commands...................................................................................................................55 :UDISk:STORe:SCReen....................................................................................................... 55 :UDISk:STORe:TRACe.........................................................................................................55 UNIT Commands.....................................................................................................................56 :UNIT:POWer..................................................................................................................... 56
v
SCPI Introduction
SCPI (Standard Commands for Programmable Instrument) is a standard instruction set for programmable devices under IEEE 488.2. SCPI commands are divided into two parts: IEEE 488.2 Common Commands and SCPI Instrument Specific Control Commands.
Common commands are commands that the instrument specified in IEEE 488.2 must support. Its syntax and semantics follow IEEE 488.2. Common commands are independent from the measurement and are used to control reset, self-test and status inspection. For an introduction of SCPI common commands, refer to the relative chapter below.
SCPI instrument-specific control commands are used to measure, read data, and toggle switches, including all measurement functions and specific functions.
Command Format
The SCPI command is a tree hierarchy that includes multiple subsystems, each consisting of a root key and one or more level keys. The command line usually begins with a colon ":"; the keywords are separated by the colon ":" followed by the optional parameter settings; the question mark "?" is added after the command line to query this function; the commands and parameters separate with "space".
E.g :CALCulate:BANDwidth:NDB <rel_ampl> :CALCulate:BANDwidth:NDB? CALCulate is the root keyword of the command, BANDwidth and NDB are the second level, third level keywords. The command line starts with a colon ":" and at the same time separates keywords at all levels, <rel_ampl> indicates configurable parameters; the question mark "?" indicates a query; the command: CALCulate:BANDwidth:NDB and parameter <rel_ampl> "separate.
In some commands with parameters, it is common to use commas "," to separate the parameters, for example: :SYSTem:DATE <year>,<month>,<day>
Symbol Description
The following four symbols are not part of the SCPI command, but are usually used to assist in specifying the parameters in the command.
Brace { } Parameters in brace are optional and can be set one or more times or even don't set them. E.g:
1
The frequency and magnitude of {, <freq>, <rel_ampl>} in the command [:SENSe]:CORRection:CSET <n>:DATA <freq>, <rel ampl> {, <freq>, <rel ampl>} can be omitted, or to set one or more pairs of frequency and amplitude parameters.
Vertical bar | Vertical bars are used to separate multiple parameter options, one of which must be selected when sending commands. E.g, In DISPlay:MENU:STATe OFF | ON | 0 | 1 command, the parameters that can be selected are "OFF", "ON", "0" or "1".
Square bracket [ ] The contents of the square bracket (command key) are optional and are executed regardless of whether they are omitted. E.g [:SENSe]:CORRection:OFFSet[:MAGNitude]? The effect of sending the following three commands is the same: :CORRection:OFFSet? :CORRection:OFFSet:MAGNitude? :SENSe:CORRection:OFFSet?
Triangle bracket < > The parameters in the triangle brackets must be replaced with a valid value. E.g: :DISPlay:BRIGtness <integer> :DISPlay:BRIGtness 10
Parameter Type
The commands contain 8 kinds of parameters, different parameters have different setting methods.
(1) arbitrary block A specified length of arbitrary data, for example, #6377512xxxxx . . . where 6 indicates that the following 6 digits (377512) specify the length of the data in bytes; xxxxx ... indicates the data or #0xxxxx...<LF><&EOI>
(2) boolean Boolean numbers or values, for example, ON or 0 OFF or 0
(3) discrete A list of specific values, for example, MIN, MAX
(4) NR1 numeric
2
Integers, for example, 0, 2, 30, -5
(5) NR2 numeric Decimal numbers, for example, 0.6, 3.1415926, -2.6
(6) NR3 numeric Floating point numbers, for example, 3.1415E-7, -8.2E3
(7) NRf numeric Flexible decimal number that may be type NR1, NR2 or NR3 See NR1, NR2, and NR3 examples
(8) string Alphanumeric characters (must be within quotation marks) "Model, 123456"
Command abbreviation
All commands are not case sensitive, you can use all uppercase or lowercase. However, if you want to abbreviate, you must enter all capital letters in the command format, for example: :CALCulate:BANDwidth:NDB? can be abbreviated into:CALC:BAND:NDB?
Third-party programming entrance
The analyzer and the computer can communicate through the following interfaces: LAN interface and USB interface. please refer to the product's user manual for the use of various communication interface.
When using commands to program, all command words are sent and recognized as ASCII strings for operation and secondary development.
You can implement the following actions by programming: Set the analyzer Implement the measurement Get data from the spectrum analyzer (instrument working status and measurement data results)
3
SCPI Command Set
In this command set, unless otherwise specified, the query function returns "N/A" (without the quotes) when the function is optional and not installed. And when the query function is not turned on or the type does not match, it returns "ERR" (without quotes).
IEEE 488.2 Common Commands
The IEEE standard defines some common commands for querying basic information about the instrument or performing common basic operations. The commands usually start with "*" and the command keyword is three characters in length.
*IDN?
Description
Query Syntax Return parameter
Queries the manufacturer, model number, serial number, and firmware version of the instrument.
*IDN?
<string>
Returns the instrument identification as a string in the following format: <Manufacturer>,<Model Number>,<Serial Number>,<Firmware Version>
*RST
Description Syntax
perform a factory reset. *RST
4
CALCulate Commands
:CALCulate:BWIDth|BANDwidth:NDB
Description
Syntax Query Syntax Parameter Return parameter Example
Sets the power level, below the peak of the signal, at which the signal bandwidth will be measured by the markers. :CALCulate:BWIDth|BANDwidth[:STATe] must be ON. :CALCulate:BWIDth|BANDwidth:NDB <rel_ampl> :CALCulate:BWIDth|BANDwidth:NDB? <rel_ampl> <NR2> 1 dB to 60 dB <NR3> :CALC:BAND:NDB 5
:CALCulate:BWIDth|BANDwidth:RESult?
Description Query Syntax Return parameter Example
Returns the NdB bandwidth measurement.
:CALCulate:BWIDth|BANDwidth:RESult?
<NR1>
NdB bandwidth in Hz.
:CALC:BAND:RES? returns 26000
:CALCulate:BWIDth|BANDwidth[:STATe]
Description
Syntax Query Syntax Parameter
Return parameter Example
Sets or queries the state of the NdB bandwidth measurement function. The function measures the bandwidth, at the number of dB down specified in :CALCulate:BWIDth|BANDwidth:NDB, of the maximum signal on the display.
:CALCulate:BWIDth|BANDwidth[:STATe] {OFF|ON|0|1} :CALCulate:BWIDth|BANDwidth[:STATe]?
0
Turns NdB BW off.
1
Turns NdB BW on.
OFF Turns NdB BW off.
ON Turns NdB BW on.
0
NdB BW is off.
1
NdB BW is on.
:CALC:BAND ON
5
:CALCulate:MARKer:AOFF
Description Syntax Example
Turns all the markers off. :CALCulate:MARKer:AOFF :CALC:MARK:AOFF
:CALCulate:MARKer<n>:CPEak[:STATe]
Description
Syntax Query Syntax Parameter
Return parameter Example
Sets or queries the state of continuous peaking. It continuously puts the selected marker on the highest displayed signal peak. This function is intended to maintain the marker on signals with a frequency that is changing, and an amplitude that is not changing.
:CALCulate:MARKer<n>:CPEak[:STATe] {OFF|ON|0|1} :CALCulate:MARKer<n>:CPEak[:STATe]?
<n> 0 1 OFF ON
<NR1> Marker number 1 to 5 Turns continuous peaking off. Turns continuous peaking on. Turns continuous peaking off. Turns continuous peaking on.
0
Continuous peaking is off.
1
Continuous peaking is on.
:CALC:MARK1:CPE ON
:CALCulate:MARKer<n>:DELTa[:SET]:CENTer
Description
Syntax Parameter Example
Changes the center frequency of the analyzer to the frequency difference between the two markers. This command is not available if the delta marker is off. :CALCulate:MARKer<n>:DELTa[:SET]:CENTer <n> <NR1> Marker number 1 to 5 :CALC:MARK1:DELT:CENT
:CALCulate:MARKer<n>:DELTa[:SET]:SPAN
Description
Syntax Parameter Example
Changes the span of the analyzer to the frequency difference between the two markers. This command is not available if the delta marker is off. :CALCulate:MARKer<n>:DELTa[:SET]:SPAN <n> <NR1> Marker number 1 to 5 :CALC:MARK1:DELT:SPAN
6
SCPI Introduction
:CALCulate:MARKer:FCOunt:RESolution
Description Syntax Query Syntax Parameter
Return parameter Example
Sets or queries the frequency counter resolution in Hz. :CALCulate:MARKer:FCOunt:RESolution <freq> :CALCulate:MARKer:FCOunt:RESolution? <freq> Frequency resolution in Hz
Only 1000, 100, 10, 1 Hz are meaningful. <freq> Frequency resolution in Hz :CALC:MARK:FCO:RES 1
:CALCulate:MARKer<n>:FCOunt[:STATe]
Description Syntax Query Syntax Parameter
Return parameter Example
Sets or queries the state of the marker frequency counter function.
:CALCulate:MARKer<n>:FCOunt[:STATe] {OFF|ON|0|1} :CALCulate:MARKer<n>:FCOunt[:STATe]?
<n> 0 1 OFF ON
<NR1> Marker number 1 to 5. Turns frequency counter off. Turns frequency counter on. Turns frequency counter off. Turns frequency counter on.
0
Frequency counter is off.
1
Frequency counter is on.
:CALC:MARKer1:FCO 1
:CALCulate:MARKer<n>:FCOunt:X?
Description Query Syntax Parameter Return parameter Example
Returns the counter frequency of the selected marker in Hz.
:CALCulate:MARKer<n>:FCOunt:X?
<n>
<NR1> Marker number 1 to 5.
<freq> <NR1> Frequency in Hz.
:CALC:MARK1:FCO:X? returns 230580000
:CALCulate:MARKer:FUNCtion:AOFF
Description
Syntax Example
Turns off the opened noise markers or NdB BW measurements, but not the markers themselves. :CALCulate:MARKer:FUNCtion:AOFF :CALC:MARK:FUNC:AOFF
7
SCPI Introduction
:CALCulate:MARKer<n>:MAXimum
Description Syntax Parameter Example
Performs peak search and places a marker on the highest peak. :CALCulate:MARKer<n>:MAXimum <n> <NR1> Marker number 1 to 5 :CALC:MARK1:MAX
:CALCulate:MARKer<n>:MAXimum:LEFT
Description
Syntax Parameter Example
Places the selected marker on the next highest signal peak to the left of the current marked peak. :CALCulate:MARKer<n>:MAXimum:LEFT <n> <NR1> Marker number 1 to 5 :CALC:MARK1:MAX:LEFT
:CALCulate:MARKer<n>:MAXimum:NEXT
Description
Syntax Parameter Example
Places the selected marker on the next highest signal peak from the current marked peak. :CALCulate:MARKer<n>:MAXimum:NEXT <n> <NR1> Marker number 1 to 5 :CALC:MARK1:MAX:NEXT
:CALCulate:MARKer<n>:MAXimum:RIGHt
Description
Syntax Parameter Example
Places the selected marker on the next highest signal peak to the right of the current marked peak. :CALCulate:MARKer<n>:MAXimum:RIGHt <n> <NR1> Marker number 1 to 5 :CALC:MARK1:MAX:RIGH
:CALCulate:MARKer<n>:MINimum
Description
Syntax Parameter Example
Places the selected marker on the lowest point on the trace that is assigned to that particular marker number. :CALCulate:MARKer<n>:MINimum <n> <NR1> Marker number 1 to 5 :CALC:MARK1:MIN
8
SCPI Introduction
:CALCulate:MARKer<n>:MODE
Description Syntax Query Syntax Parameter/ Return parameter
Example
Sets or queries the marker type.
:CALCulate:MARKer<n>:MODE {NORMal|DELTa} :CALCulate:MARKer<n>:MODE?
<n> <NORMal> <DELTa>
<NR1> Marker number 1 to 5. Normal marker Delta marker
:CALC:MARK1:MODE NORM
:CALCulate:MARKer<n>:PHNoise[:STATe]
Description
Syntax Query Syntax Parameter
Return parameter Example
Sets or queries the state of the Marker Noise function for the specified marker. This function measures the average noise level at the marked point and then normalize this value to 1 Hz bandwidth.
:CALCulate:MARKer<n>:PHNoise[:STATe] {OFF|ON|0|1} :CALCulate:MARKer<n>:PHNoise[:STATe]?
<n> 0 1 OFF ON
<NR1> Marker number 1 to 5. Turns Marker Noise off. Turns Marker Noise on. Turns Marker Noise off. Turns Marker Noise on.
0
Marker Noise is off.
1
Marker Noise is on.
:CALC:MARK1:PHN ON
:CALCulate:MARKer:PHNoise:Y?
Description Query Syntax Return parameter Example
Returns the normalized noise level over a BW of 1Hz from the marker position. :CALCulate:MARKer:PHNoise:Y? <NR2> Normalized noise level in dBm. :CALC:MARK:PHN:Y? returns 127.8
9
SCPI Command Set
:CALCulate:MARKer<n>[:SET]:CENTer
Description
Syntax Parameter Example
Sets the center frequency equal to the specified marker frequency, which moves the marker to the center of the screen. In delta marker mode, the center frequency is set to the delta marker frequency. This command is not available in zero span.
:CALCulate:MARKer<n>[:SET]:CENTer
<n>
<NR1> Marker number 1 to 5
:CALC:MARK1:CENT
:CALCulate:MARKer<n>[:SET]:RLEVel
Description
Syntax Parameter Example
Sets the reference level to the specified marker amplitude. In delta marker mode, the reference level is set to the delta marker amplitude.
:CALCulate:MARKer<n>[:SET]:RLEVel
<n>
<NR1> Marker number 1 to 5
:CALC:MARK1:RLEV
:CALCulate:MARKer<n>[:SET]:STARt
Description
Syntax Parameter Example
Sets the start frequency to the value of the specified marker frequency. In delta marker mode, the start frequency is set to the delta marker frequency. This command is not available in zero span.
:CALCulate:MARKer<n>[:SET]:STARt
<n>
<NR1> Marker number 1 to 5
:CALC:MARK1:STAR
:CALCulate:MARKer<n>[:SET]:STEP
Description
Syntax Parameter Example
Sets the center frequency step size equal to the specified marker frequency. In delta marker mode, the center frequency step size is set to the delta marker frequency. This command is not available in zero span.
:CALCulate:MARKer<n>[:SET]:STEP
<n>
<NR1> Marker number 1 to 5
:CALC:MARK1:STEP
10
SCPI Command Set
:CALCulate:MARKer<n>[:SET]:STOP
Description
Syntax Parameter Example
Sets the stop frequency to the value of the specified marker frequency. In delta marker mode, the stop frequency is set to the delta marker frequency. This command is not available in zero span.
:CALCulate:MARKer<n>[:SET]:STOP
<n>
<NR1> Marker number 1 to 5
:CALC:MARK1:STOP
:CALCulate:MARKer<n>:STATe
Description Syntax Query Syntax Parameter
Return parameter Example
Sets or queries the state of the selected marker.
:CALCulate:MARKer<n>:STATe {OFF|ON|0|1} :CALCulate:MARKer<n>:STATe?
<n> 0 1 OFF ON
<NR1> Marker number 1 to 5. Turns the selected marker off. Turns the selected marker on. Turns the selected marker off. Turns the selected marker on.
0
The selected marker is off.
1
The selected marker is on.
:CALC:MARK1:STAT ON
:CALCulate:MARKer:TABLe:STATe
Description Syntax Query Syntax Parameter
Return parameter Example
Sets or queries the state of the marker table.
:CALCulate:MARKer:TABLe:STATe {OFF|ON|0|1} :CALCulate:MARKer:TABLe:STATe?
0
Turns the table off.
1
Turns the table on.
OFF Turns the table off.
ON Turns the table on.
0
The table is off.
1
The table is on.
:CALC:MARK:TABL:STAT ON
11
SCPI Command Set
:CALCulate:MARKer<n>:TRACe
Description
Syntax Query Syntax Parameter/ Return parameter Example
Sets or queries the state of continuous peaking. It continuously puts the selected marker on the highest displayed signal peak. This function is intended to maintain the marker on signals with a frequency that is changing, and an amplitude that is not changing.
:CALCulate:MARKer<n>:TRACe <integer> :CALCulate:MARKer<n>:TRACe?
<n>
<NR1> Marker number 1 to 5
<integer> The number of the trace: (1, 2, 3, 4, 5)
:CALC:MARK1:TRAC 2
:CALCulate:MARKer<n>:DELTa:X?
Description Query Syntax Parameter Return parameter Example
Returns the reference marker position of delta marker.
:CALCulate:MARKer<n>:DELTa:X?
<n>
<NR1> Marker number 1 to 5
<freq> Frequency in Hz.
:CALC:MARK3:DELT:X? returns 300000000Hz
:CALCulate:MARKer<n>:DELTa:Y?
Description Query Syntax Parameter Return parameter
Example
Returns the reference marker's vertical position of delta marker.
:CALCulate:MARKer<n>:DELTa:Y?
<n>
<NR1> Marker number 1 to 5
<ampl> Power or voltage. If the specified marker is not active, returns ERR.
:CALC:MARK3:DELT:Y? returns 9.8dBm
:CALCulate:MARKer<n>:X
Description
Syntax Query Syntax
Sets or returns the marker position. In delta marker mode, this command returns the frequency difference between the markers.
:CALCulate:MARKer<n>:X <freq> :CALCulate:MARKer<n>:X?
12
SCPI Command Set
Parameter Return parameter Example
<n>
<NR1> Marker number 1 to 5
<freq> Frequency in GHz, MHz, kHz, Hz. The default unit is Hz.
<freq> Frequency in Hz. If the specified marker is not active, returns ERR.
:CALC:MARK2:X 300MHz query :CALC:MARK2:X? returns 300000000Hz
:CALCulate:MARKer<n>:Y?
Description
Query Syntax Parameter Return parameter
Example
Returns the marker's vertical position. In delta marker mode, this command returns the amplitude difference between the markers.
:CALCulate:MARKer<n>:Y?
<n>
<NR1> Marker number 1 to 5
<ampl> Power or voltage. If the specified marker is not active, returns ERR.
:CALC:MARK3:Y? returns 9.8dBm
:CALCulate:NETMeasure:POWer
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the network measurement output power level. :CALCulate:NETMeasure:POWer <ampl> :CALCulate:NETMeasure:POWer? <ampl> <NRf> Power or voltage, -30dBm to 0dbm <NR2> :CALC:NETM:POW -10
:CALCulate:NTDate:NORMalize
Description Syntax Query Syntax
Turns the tracking generator normalization on/off or queries its state. :CALCulate:NTDate:NORMalize {OFF|ON|0|1} :CALCulate:NTDate:NORMalize?
13
SCPI Command Set
Parameter
Return parameter Example
0
Turns the normalization off.
1
Turns the normalization on.
OFF Turns the normalization off.
ON Turns the normalization on.
0
The normalization is off.
1
The normalization is on.
:CALC:NTD:NORM ON
:CALCulate:TUNE:AUTO
Description Syntax Example
Runs the auto tune function. :CALCulate:TUNE:AUTO :CALC:TUNE:AUTO
14
SCPI Command Set
CALibration Commands
:CALibration[:ALL]
Description
Syntax Query Syntax Return parameter Example
After connecting the calibration signal to front panel RF Input connector, execute :CAL to perform the calibration.
:CALibration[:ALL] :CALibration[:ALL]?
1
The calibration is successful.
:CAL
:CALibration:RESTore
Description Syntax Example
Restores the calibration settings originally set at the factory. :CALibration:RESTore :CAL:REST
15
SCPI Command Set
CONFigure Commands
:CONFigure:ACPower
Description
Syntax Example
This command places the analyzer in Adjacent Channel Power measurement state. :CONFigure:ACPower :CONF:ACP
:CONFigure:CHPower
Description Syntax Example
This command places the analyzer in Channel Power measurement state. :CONFigure:CHPower :CONF:CHP
:CONFigure:OBWidth
Description Syntax Example
This command places the analyzer in Occupied Bandwidth measurement state. :CONFigure:OBWidth :CONF:OBW
:CONFigure:SANalyzer
Description Syntax Example
Directly exit the currently running measurement function. :CONFigure:SANalyzer :CONF:SAN
:CONFigure:SATime
Description Syntax Example
Turns on or off time spectrum measure mode. :CONFigure:SATime :CONF:SAT
16
DISPlay Commands
SCPI Command Set
:DISPlay:ANNotation:CLOCk:DATE:FORMat
Description Syntax Query Syntax Parameter/ Return parameter Example
Sets or queries the display format of date&time. :DISPlay:ANNotation:CLOCk:DATE:FORMat {YMDhms|HMSymd} :DISPlay:ANNotation:CLOCk:DATE:FORMat? YMDhms Set the display format of date&time to YYYY-MM-DD HH:MM:SS. HMSymd Set the display format of date&time to HH:MM:SS YYYY-MM-DD. :DISP:ANN:CLOC:DATE:FORM YMDhms
:DISPlay:ANNotation:CLOCk[:STATe]
Description Syntax Query Syntax Parameter
Return parameter Example
Turns the on-screen date&time display on/off or queries its state.
:DISPlay:ANNotation:CLOCk[:STATe] {OFF|ON|0|1} :DISPlay:ANNotation:CLOCk[:STATe]?
0
Turns the date&time display off.
1
Turns the date&time display on.
OFF Turns the date&time display off.
ON Turns the date&time display on.
0
The date&time display is off.
1
The date&time display is on.
:DISP:ANN:CLOC ON
:DISPlay:FORMat:ZOOM
Description Syntax Query Syntax Parameter
Return parameter Example
Turns the zoom-in window on/off or queries its state. The zoomed window centers on the center frequency, and its span is 1/10 of the previous span.
:DISPlay:FORMat:ZOOM {OFF|ON|0|1} :DISPlay:FORMat:ZOOM?
0
Turns the zoom-in window off.
1
Turns the zoom-in window on.
OFF Turns the zoom-in window off.
ON Turns the zoom-in window on.
0
The zoom-in window is off.
1
The zoom-in window is on.
:DISP:FORM:ZOOM ON
17
SCPI Command Set
:DISPlay:MENU:STATe
Description Syntax Query Syntax Parameter
Return parameter Example
Turns the full screen display mode on/off or queries its state.
:DISPlay:MENU:STATe {OFF|ON|0|1} :DISPlay:MENU:STATe?
0
Turns the full screen display mode off.
1
Turns the full screen display mode on.
OFF Turns the full screen display mode off.
ON Turns the full screen display mode on.
0
The full screen display mode is off.
1
The full screen display mode is on.
:DISP:MENU:STAT ON
:DISPlay:WINdow:GRID
Description Syntax Query Syntax Parameter
Return parameter Example
Turns the on-screen grid on/off or queries its state.
:DISPlay:WINdow:GRID {OFF|ON|0|1} :DISPlay:WINdow:GRID?
0
Turns the grid off.
1
Turns the grid on.
OFF Turns the grid off.
ON Turns the grid on.
0
The grid is off.
1
The grid is on.
:DISP:WIN:GRID ON
:DISPlay:WINdow:LABEl
Description Syntax Query Syntax Parameter
Return parameter Example
Turns the on-screen label on/off or queries its state.
:DISPlay:WINdow:LABEl {OFF|ON|0|1} :DISPlay:WINdow:LABEl?
0
Turns the label off.
1
Turns the label on.
OFF Turns the label off.
ON Turns the label on.
0
The label is off.
1
The label is on.
:DISP:WIN:LABEl ON
18
SCPI Command Set
:DISPlay:WINdow:TRACe:X[:SCALe]:OFFSet
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the X-axis frequency offset. :DISPlay:WINdow:TRACe:X[:SCALe]:OFFSet <freq> :DISPlay:WINdow:TRACe:X[:SCALe]:OFFSet? <freq> <NRf> <NR1> Frequency in Hz. :DISP:WIN:TRAC:X:OFFS 1000
:DISPlay:WINdow:TRACe:Y:DLINe
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the display line amplitude level. :DISPlay:WINdow:TRACe:Y:DLINe <ampl> :DISPlay:WINdow:TRACe:Y:DLINe? <ampl> <NRf> power or voltage in the current Y-axis unit. <NR3> :DISP:WIN:TRAC:Y:DLIN -5.0e+1
:DISPlay:WINdow:TRACe:Y:DLINe:STATe
Description Syntax Query Syntax Parameter
Return parameter Example
Turns the display line on/off or queries its state.
:DISPlay:WINdow:TRACe:Y:DLINe:STATe {OFF|ON|0|1} :DISPlay:WINdow:TRACe:Y:DLINe:STATe?
0
Turns the display line off.
1
Turns the display line on.
OFF Turns the display line off.
ON Turns the display line on.
0
The display line is off.
1
The display line is on.
:DISP:WIN:TRAC:Y:DLIN:STAT ON
:DISPlay:WINdow:TRACe:Y[:SCALe]:GAUge
Description Syntax Query Syntax Parameter
Turns the on-screen scale on/off or queries its state.
:DISPlay:WINdow:TRACe:Y[:SCALe]:GAUge {OFF|ON|0|1} :DISPlay:WINdow:TRACe:Y[:SCALe]:GAUge?
0
Turns the scale off.
1
Turns the scale on.
19
SCPI Command Set
Return parameter Example
OFF Turns the scale off. ON Turns the scale on.
0
The scale is off.
1
The scale is on.
:DISP:WIN:TRAC:Y:GAU ON
:DISPlay:WINdow:TRACe:Y[:SCALe]:PDIVision
Description Syntax Query Syntax Parameter/ Return parameter Example
Sets or queries the Y-axis scale/div when the amplitude scale is logarithmic. :DISPlay:WINdow:TRACe:Y[:SCALe]:PDIVision <rel_ampl> :DISPlay:WINdow:TRACe:Y[:SCALe]:PDIVision? <rel_ampl> <NR1> 1 dB to 255 dB
:DISP:WIN:TRAC:Y:PDIV 10
:DISPlay:WINdow:TRACe:Y[:SCALe]:RLEVel
Description
Syntax Query Syntax Parameter/ Return parameter Example
Sets or queries the Y-axis reference level. The units depend on the scale type (logarithmic/linear).
:DISPlay:WINdow:TRACe:Y[:SCALe]:RLEVel <ampl> :DISPlay:WINdow:TRACe:Y[:SCALe]:RLEVel?
<ampl>
<NRf> in current active unit
<NR3>
Current active unit
:DISP:WIN:TRAC:Y:RLEV -10
:DISPlay:WINdow:TRACe:Y[:SCALe]:RLEVel:OFFSet
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the Y-axis reference level offset. :DISPlay:WINdow:TRACe:Y[:SCALe]:RLEVel:OFFSet <rel_ampl> :DISPlay:WINdow:TRACe:Y[:SCALe]:RLEVel:OFFSet? <rel_ampl> <NRf> dB <NR3> :DISP:WIN:TRAC:Y:RLEV:OFFS -5.0e+1 dB
:DISPlay:WINdow:TRACe:Y[:SCALe]:SPACing
Description Syntax
Sets or queries the type of scale: logarithmic or linear. :DISPlay:WINdow:TRACe:Y[:SCALe]:SPACing {LINear|LOGarithmic}
20
SCPI Command Set
Query Syntax Parameter/ Return parameter Example
:DISPlay:WINdow:TRACe:Y[:SCALe]:SPACing?
LINear
Linear scale
LOGarithmic Logarithmic scale
:DISP:WIN:TRAC:Y:SPAC LOG
21
HCOPy Commands
SCPI Command Set
:HCOPy:IMAGe:COLor[:STATe]
Description Syntax Query Syntax Parameter
Return parameter Example
Turns the color printing on/off or queries its state.
:HCOPy:IMAGe:COLor[:STATe] {OFF|ON|0|1} :HCOPy:IMAGe:COLor[:STATe]?
0
Turns the color printing off.
1
Turns the color printing on.
OFF Turns the color printing off.
ON Turns the color printing on.
0
The color printing is off.
1
The color printing is on.
:HCOP:IMAG:COL 1
:HCOPy:IMAGe:TYPe
Description Syntax Query Syntax Parameter/ Return parameter Example
Sets or queries the language for printing. The default is PCL.
:HCOPy:IMAGe:TYPe {PCL|ESC} :HCOPy:IMAGe:TYPe?
PCL
Set the language to PCL.
ESC
Set the language to ESC.
:HCOPy:IMAG:TYP PCL
:HCOPy:PAGE:ORIentation
Description Syntax Query Syntax Parameter/ Return parameter Example
Sets or queries the page orientation for printing. :HCOPy:PAGE:ORIentation {LANDscape|PORTrait} :HCOPy:PAGE:ORIentation? LANDscape Set the page orientation to landscape. PORTrait Set the page orientation to portrait. :HCOP:PAGE:ORI LAND
:HCOPy:PAGE:PRINts
Description Syntax
Sets or queries the number of print copies. :HCOPy:PAGE:PRINts <number>
22
SCPI Command Set
Query Syntax Parameter Return parameter Example
:HCOPy:PAGE:PRINts? <number> <NR1> <NR1> :HCOP:PAGE:PRIN 1
:HCOPy:PAGE:SIZE
Description Syntax Query Syntax Parameter/ Return parameter
Example
Sets or queries the page size for printing. The default is A4.
:HCOPy:PAGE:SIZE {DEFault|A4|A3|B5|C5|LETTer} :HCOPy:PAGE:SIZE?
DEFault|A4 A3 B5 C5 LETTer
Set the page size to A4. Set the page size to A3. Set the page size to B5. Set the page size to C5. Set the page size to LETTer.
:HCOPy:PAGE:SIZE A4
:HCOPy:SCReen
Description Syntax Example
Print the screen. :HCOPy:SCReen :HCOP:SCR
:HCOPy:TRACe
Description Syntax Example
Print the trace. :HCOPy:TRACe :HCOP:TRAC
23
SCPI Command Set
INITiate Commands
:INITiate:CONTinuous
Description Syntax Query Syntax Parameter
Return parameter
Example
Sets the sweep mode to continuous or single mode or queries its state.
:INITiate:CONTinuous {OFF|ON|0|1} :INITiate:CONTinuous?
0
Sets the sweep mode to single.
1
Sets the sweep mode to continuous.
OFF
Sets the sweep mode to single.
ON
Sets the sweep mode to continuous.
0
The sweep mode is single.
1
The sweep mode is continuous.
:INIT:CONT ON
24
SCPI Command Set
MMEMory Commands
:MMEMory:CATalog?
Description Query Syntax Example
Returns a list of all the files that have been saved to the local memory. :MMEMory:CATalog? :MMEM:CAT? returns 20171010_155852.csv,20171107_145956.png,20171107_150136.png,.........
:MMEMory:COPY:SCReen
Description Syntax Parameter Example
Exports the screen file to PC software. :MMEMory:COPY:SCReen <file_name> <file_name> XXX.png :MMEM:COPY:SCR 20171107_145956.png
:MMEMory:COPY:TRACe
Description Syntax Parameter Example
Exports the trace file to PC software. :MMEMory:COPY:TRACe <file_name> <file_name> XXX.csv :MMEM:COPY:TRAC 20171010_155852.csv
:MMEMory:DELete:ALL
Description Syntax Example
Deletes all files. :MMEMory:DELete:ALL :MMEM:DEL:ALL
:MMEMory:DELete:SCReen
Description Syntax Parameter Example
Deletes the selected screen file from the current directory. :MMEMory:DELete:SCReen <file_name> <file_name> XXX.png :MMEM:DEL:SCR 20171107_145956.png
25
SCPI Command Set
:MMEMory:DELete:SCReen:ALL
Description Syntax Example
Deletes all screen files. :MMEMory:DELete:SCReen:ALL :MMEM:DEL:SCR:ALL
:MMEMory:DELete:TRACe
Description Syntax Parameter Example
Deletes the selected trace file from the current directory. :MMEMory:DELete:TRACe <file_name> <file_name> XXX.csv :MMEM:DEL:TRAC 20171010_155852.csv
:MMEMory:DELete:TRACe:ALL
Description Syntax Example
Deletes all trace files. :MMEMory:DELete:TRACe:ALL :MMEM:DEL:TRAC:ALL
:MMEMory:DISK:INFormation
Description Query Syntax Example
Returns the information of USB storage device. :MMEMory:DISK:INFormation? :MMEM:DISK:INF?
:MMEMory:LOAD:SCReen
Description Syntax Parameter Example
Loads screen data from a file to the internal memory. :MMEMory:LOAD:SCReen <file_name> <file_name> XXX.png :MMEM:LOAD:SCR 20171107_145956.png
:MMEMory:LOAD:TRACe
Description Syntax Parameter
Loads trace data from a file to TRACE1. :MMEMory:LOAD:TRACe <file_name> <file_name> XXX.csv
26
Example
SCPI Command Set
:MMEM:LOAD:TRAC 20171010_155852.csv
:MMEMory:STORe:QUICK:SAVE
Description
Syntax Example
Quick save the screenshot. When a USB flash drive is inserted, the image is saved into the USB flash drive, otherwise saved into the internal memory. :MMEMory:STORe:QUICK:SAVE :MMEM:STOR:QUICK:SAVE
:MMEMory:STORe:SCReen
Description
Syntax Parameter Example
Saves the current screen-shot to the internal memory. The file is named based on date/time, the format is png. :MMEMory:STORe:SCReen <file_name> <file_name> XXX.png :MMEM:STOR:SCR 20171107_145956.png
:MMEMory:STORe:STATe
Description
Syntax Example
Saves the instrument state as a user self-defined configuration, which is used to set the analyzer power on parameters or preset parameters. :MMEMory:STORe:STATe :MMEM:STOR:STAT
:MMEMory:STORe:TRACe
Description
Syntax Parameter Example
Saves the trace data to a file from the internal memory. The file is named based on date/time, the format is cvs. :MMEMory:STORe:TRACe <file_name> <file_name> XXX.csv :MMEM:STOR:TRAC 20171010_155852.csv
27
OUTPut Commands
SCPI Command Set
:OUTPut:TRACk[:STATe]
Description Syntax Query Syntax Parameter
Return parameter Example
Turns the tracking generator output on/off or queries its state.
:OUTPut:TRACk[:STATe] {OFF|ON|0|1} :OUTPut:TRACk[:STATe]?
0
Turns TG output off.
1
Turns TG output on.
OFF Turns TG output off.
ON Turns TG output on.
0
TG output is off.
1
TG output is on.
:OUTP:TRAC ON
28
SENSe Commands
SCPI Command Set
[:SENSe]:ACPower:BANDwidth:ACHannel:COUNt
Description
Syntax Query Syntax Parameter/ Return parameter Example
Sets or queries the number of upper and lower adjacent channels measured by adjacent channel power. [:SENSe]:ACPower:BANDwidth:ACHannel:COUNt <integer> [:SENSe]:ACPower:BANDwidth:ACHannel:COUNt? <integer> <NR1> Adjacent channels number
:ACP:BAND:ACH:COUN 1
[:SENSe]:ACPower:BANDwidth:INTegration
Description
Syntax Query Syntax Parameter Return parameter Example
Sets or queries the range of integration used in calculating the power in the main channel. [:SENSe]:ACPower:BANDwidth:INTegration <freq> [:SENSe]:ACPower:BANDwidth:INTegration? <freq> <NRf> <NR3> Hz :ACP:BAND:INT 2.0e+7
[:SENSe]:ACPower:CSPacing
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the channel spacing between the main channels. [:SENSe]:ACPower:CSPacing <freq> [:SENSe]:ACPower:CSPacing? <freq> <NRf> <NR3> Hz :ACP:CSP 1.0e+8
[:SENSe]:AVERage:COUNt
Description Syntax Query Syntax
Sets or queries the number of traces that are used with the average function. [:SENSe]:AVERage:COUNt <integer> [:SENSe]:AVERage:COUNt?
29
SCPI Command Set
Parameter/ Return parameter
Example
<integer> <NR1> :AVER:COUN 20
[:SENSe]:AVERage[:STATe]
Description Syntax Query Syntax Parameter
Return parameter Example
Turns the Average function on/off or queries its state.
[:SENSe]:AVERage[:STATe] {OFF|ON|0|1} [:SENSe]:AVERage[:STATe]?
0
Turns the Average function off.
1
Turns the Average function on.
OFF
Turns the Average function off.
ON
Turns the Average function on.
0
The Average function is off.
1
The Average function is on.
:AVER ON
[:SENSe]:BANDwidth|BWIDth[:RESolution]
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the resolution bandwidth (RBW). [:SENSe]:BANDwidth|BWIDth[:RESolution] <freq> [:SENSe]:BANDwidth|BWIDth[:RESolution]? <freq> <NRf> <NR3> Hz :BAND 1.0e+6
[:SENSe]:BANDwidth|BWIDth[:RESolution]:AUTO
Description Syntax Query Syntax Parameter
Return parameter Example
Sets the RBW to auto (on) or manual (off) or queries its state.
[:SENSe]:BANDwidth|BWIDth[:RESolution]:AUTO {OFF|ON|0|1} [:SENSe]:BANDwidth|BWIDth[:RESolution]:AUTO?
0
Sets RBW to manual (off).
1
Sets RBW to automatic (on).
OFF
Sets RBW to manual (off).
ON
Sets RBW to automatic (on).
0
RBW is set to manual (off).
1
RBW is set to automatic (on).
:BAND:AUTO ON
30
SCPI Command Set
[:SENSe]:BANDwidth|BWIDth[:RESolution]:STEP:MODE
Description Syntax
Query Syntax
Sets or queries the resolution bandwidth step mode (default or continuous). [:SENSe]:BANDwidth|BWIDth[:RESolution]:STEP:MODE {DEFault|CONTinuous|0|1} [:SENSe]:BANDwidth|BWIDth[:RESolution]:STEP:MODE?
Parameter
0 1 DEFault CONTinuous
Sets the resolution bandwidth step to default mode (step at 1,3,5). Sets the resolution bandwidth step to continuous mode. Sets the resolution bandwidth step to default mode (step at 1,3,5). Sets the resolution bandwidth step to continuous mode.
Return parameter 0 1
The resolution bandwidth step mode is default. The resolution bandwidth step mode is continuous.
Example
:BAND:STEP:MODE 0
[:SENSe]:BANDwidth|BWIDth:VIDeo
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the video bandwidth (VBW). [:SENSe]:BANDwidth|BWIDth:VIDeo <freq> [:SENSe]:BANDwidth|BWIDth:VIDeo? <freq> <NRf> <NR3> Hz :BAND:VID 1.0e+6
[:SENSe]:BANDwidth|BWIDth:VIDeo:AUTO
Description Syntax Query Syntax Parameter
Return parameter Example
Sets the VBW to auto (on) or manual (off) or queries its state.
[:SENSe]:BANDwidth|BWIDth:VIDeo:AUTO {OFF|ON|0|1} [:SENSe]:BANDwidth|BWIDth:VIDeo:AUTO?
0
Sets VBW to manual (off).
1
Sets VBW to automatic (on).
OFF
Sets VBW to manual (off).
ON
Sets VBW to automatic (on).
0
VBW is set to manual (off).
1
VBW is set to automatic (on).
:BAND:VID:AUTO OFF
31
SCPI Command Set
[:SENSe]:BANDwidth:EMC
Description Syntax Query Syntax Parameter
Return parameter Example
Sets the EMI filter bandwidth (must be set to the exact bandwidth). [:SENSe]:BANDwidth:EMC <freq> [:SENSe]:BANDwidth:EMC? <freq> <NRf>
(Only 200Hz, 9kHz, 120kHz, 1MHz are valid settings) <NR3> BAND:EMC 200
[:SENSe]:BANDwidth:EMC:STATe
Description Syntax Query Syntax Parameter
Return parameter Example
Turns the EMI filter on/off or queries its state.
[:SENSe]:BANDwidth:EMC:STATe {OFF|ON|0|1} [:SENSe]:BANDwidth:EMC:STATe?
0
Turns the EMI filter off.
1
Turns the EMI filter on.
OFF Turns the EMI filter off.
ON Turns the EMI filter on.
0
The EMI filter is off.
1
The EMI filter is on.
BAND:EMC:STAT 0
[:SENSe]:DEMod:AM[:CARRier]:FREQuency
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the carrier frequency for AM demodulation. [:SENSe]:DEMod:AM[:CARRier]:FREQuency <freq> [:SENSe]:DEMod:AM[:CARRier]:FREQuency? <freq> <NRf> <NR3> Hz :DEM:AM:FREQ 10 mhz
[:SENSe]:DEMod:AM:IFBW
Description Syntax Query Syntax Parameter
Sets or queries the IF bandwidth for AM demodulation. [:SENSe]:DEMod:AM:IFBW <freq> [:SENSe]:DEMod:AM:IFBW? <freq> <NRf>
32
SCPI Command Set
Return parameter <NR3> Hz
Example
:DEM:AM:IFBW 3.0e+5
[:SENSe]:DEMod:AM:IFBW:AUTO
Description Syntax Query Syntax Parameter
Return parameter Example
Sets or queries the state of auto IF bandwidth for AM demodulation.
[:SENSe]:DEMod:AM:IFBW:AUTO {OFF|ON|0|1} [:SENSe]:DEMod:AM:IFBW:AUTO?
0
Set IF bandwidth for AM demodulation to Manual.
1
Set IF bandwidth for AM demodulation to Auto.
OFF Set IF bandwidth for AM demodulation to Manual.
ON Set IF bandwidth for AM demodulation to Auto.
0
IF bandwidth for AM demodulation is Manual.
1
IF bandwidth for AM demodulation is Auto.
:DEM:AM:IFBW:AUTO 1
[:SENSe]:DEMod:AM:STATe
Description Syntax Query Syntax Parameter
Return parameter Example
Sets or queries the state of AM demodulation.
[:SENSe]:DEMod:AM:STATe {OFF|ON|0|1} [:SENSe]:DEMod:AM:STATe?
0
Turns AM demodulation off.
1
Turns AM demodulation on.
OFF Turns AM demodulation off.
ON Turns AM demodulation on.
0
AM demodulation is off.
1
AM demodulation is on.
:DEM:AM:STAT 1
[:SENSe]:DEMod:FM[:CARRier]:FREQuency
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the carrier frequency for FM demodulation. [:SENSe]:DEMod:FM[:CARRier]:FREQuency <freq> [:SENSe]:DEMod:FM[:CARRier]:FREQuency? <freq> <NRf> <NR3> Hz :DEM:FM:FREQ 10 mhz
33
SCPI Command Set
[:SENSe]:DEMod:FM:IFBW
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the IF bandwidth for FM demodulation. [:SENSe]:DEMod:FM:IFBW <freq> [:SENSe]:DEMod:FM:IFBW? <freq> <NRf> <NR3> Hz :DEM:FM:IFBW 3.0e+5
[:SENSe]:DEMod:FM:IFBW:AUTO
Description Syntax Query Syntax Parameter
Return parameter Example
Sets or queries the state of auto IF bandwidth for FM demodulation.
[:SENSe]:DEMod:FM:IFBW:AUTO {OFF|ON|0|1} [:SENSe]:DEMod:FM:IFBW:AUTO?
0
Set IF bandwidth for FM demodulation to Manual.
1
Set IF bandwidth for FM demodulation to Auto.
OFF Set IF bandwidth for FM demodulation to Manual.
ON Set IF bandwidth for FM demodulation to Auto.
0
IF bandwidth for FM demodulation is Manual.
1
IF bandwidth for FM demodulation is Auto.
:DEM:FM:IFBW:AUTO 1
[:SENSe]:DEMod:FM:STATe
Description Syntax Query Syntax Parameter
Return parameter Example
Sets or queries the state of FM demodulation.
[:SENSe]:DEMod:FM:STATe {OFF|ON|0|1} [:SENSe]:DEMod:FM:STATe?
0
Turns FM demodulation off.
1
Turns FM demodulation on.
OFF Turns FM demodulation off.
ON Turns FM demodulation on.
0
FM demodulation is off.
1
FM demodulation is on.
:DEM:FM:STAT 1
[:SENSe]:DEMod:FREQuency
Description Syntax
Sets or queries the radio frequency for the audio demodulation function. [:SENSe]:DEMod:FREQuency RADIO<n>,<freq>
34
SCPI Command Set
Query Syntax Parameter
Return parameter Example
[:SENSe]:DEMod:FREQuency? RADIO<n>
<n> <freq>
<NR1> Radio sequence number 1 to 6 <NRf>
<NR3>
Hz
:DEM:FREQ RADIO1,87.6 mhz
[:SENSe]:DEMod:MODE
Description Syntax Query Syntax Parameter/ Return parameter
Example
Sets or queries the demodulation type for the audio demodulation function.
[:SENSe]:DEMod:MODE {FMW|FM|AM|USB|LSB} [:SENSe]:DEMod:MODE?
FMW FM AM USB LSB
FMWdemodulation FM demodulation AM demodulation USBdemodulation LSB demodulation
:DEM:MODE AM
[:SENSe]:DEMod:STATe
Description Syntax Query Syntax Parameter
Return parameter Example
Turns the audio demodulation on/off or queries its state.
[:SENSe]:DEMod:STATe {OFF|ON|0|1} [:SENSe]:DEMod:STATe?
0
Turns the audio demodulation off.
1
Turns the audio demodulation on.
OFF Turns the audio demodulation off.
ON Turns the audio demodulation on.
0
The audio demodulation is off.
1
The audio demodulation is on.
:DEM:STAT ON
[:SENSe]:DETector[:FUNCtion]
Description Syntax Query Syntax
Sets or queries the trace detection mode. [:SENSe]:DETector[:FUNCtion] {AUTO|NORMal|POSitive|NEGative|SAMPle} [:SENSe]:DETector[:FUNCtion]?
35
SCPI Command Set
Parameter/ Return parameter
Example
AUTO NORMal POSitive NEGative SAMPle
Sets the detector mode to Auto. Sets the detector mode to Normal. Sets the detector mode to Peak+. Sets the detector mode to Peak-. Sets the detector mode to Sample.
:DET NORM
[:SENSe]:FREQuency:CENTer
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the center frequency. [:SENSe]:FREQuency:CENTer <freq> [:SENSe]:FREQuency:CENTer? <freq> <NRf> <NR3> Hz :FREQ:CENT 1.0e+9
[:SENSe]:FREQuency:CENTer:STEP:AUTO
Description Syntax Query Syntax Parameter
Return parameter Example
Sets the center frequency step size to auto (on) or manual (off) or queries its state.
[:SENSe]:FREQuency:CENTer:STEP:AUTO {OFF|ON|0|1} [:SENSe]:FREQuency:CENTer:STEP:AUTO?
0
Turn center frequency step to manual (off).
1
Turn center frequency step to auto (on).
OFF
Turn center frequency step to manual (off).
ON
Turn center frequency step to auto (on).
0
Center frequency step is set to manual.
1
Center frequency step is set to automatic.
:FREQ:CENT:STEP:AUTO OFF
[:SENSe]:FREQuency:CENTer:STEP[:INCRement]
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the center frequency step frequency. [:SENSe]:FREQuency:CENTer:STEP[:INCRement] <freq> [:SENSe]:FREQuency:CENTer:STEP[:INCRement]? <freq> <NRf> <NR3> Hz FREQ:CENT:STEP 1000
36
SCPI Command Set
[:SENSe]:FREQuency:REFerence
Description Syntax Query Syntax Parameter/ Return parameter
Example
Sets or queries the frequency reference to internal or external. [:SENSe]:FREQuency:REFerence {INTernal|EXTernal} [:SENSe]:FREQuency:REFerence? INTernal Internal reference EXTernal External reference
:FREQ:REF INT
[:SENSe]:FREQuency:SPAN
Description
Syntax Query Syntax Parameter Return parameter Example
Sets or queries the frequency span. Setting the span to 0 Hz puts the analyzer into zero span. [:SENSe]:FREQuency:SPAN <freq> [:SENSe]:FREQuency:SPAN? <freq> <NRf> <NR3> Hz :FREQ:SPAN 1.0e+9
[:SENSe]:FREQuency:SPAN:FULL
Description Syntax Example
Sets the frequency span to full scale. [:SENSe]:FREQuency:SPAN:FULL :FREQ:SPAN:FULL
[:SENSe]:FREQuency:SPAN:PREVious
Description Syntax Example
Sets the frequency span to the previous span setting. [:SENSe]:FREQuency:SPAN:PREVious :FREQ:SPAN:PREV
[:SENSe]:FREQuency:SPAN:ZERO
Description Syntax Example
Sets the frequency span to zero span. [:SENSe]:FREQuency:SPAN:ZERO :FREQ:SPAN:ZERO
37
SCPI Command Set
[:SENSe]:FREQuency:STARt
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the start frequency. [:SENSe]:FREQuency:STARt <freq> [:SENSe]:FREQuency:STARt? <freq> <NRf> <NR3> Hz :FREQ:STAR 0
[:SENSe]:FREQuency:STOP
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the stop frequency. [:SENSe]:FREQuency:STOP <freq> [:SENSe]:FREQuency:STOP? <freq> <NRf> <NR3> Hz :FREQ:STOP 1.0e+6
[:SENSe]:OBWidth:PERCent
Description
Syntax Query Syntax Parameter Return parameter Example
Sets or queries the percentage of signal power used when determining the occupied bandwidth (OBW). [:SENSe]:OBWidth:PERCent <percent> [:SENSe]:OBWidth:PERCent? <percent> <NRf> <NR3> :OBW:PERC 33
[:SENSe]:PASSFAIL:LINELimit:LOWer:CLEar
Description Syntax Example
Clears all points of the lower limit line. [:SENSe]:PASSFAIL:LINELimit:LOWer:CLEar :PASSFAIL:LINEL:LOW:CLE
38
SCPI Command Set
[:SENSe]:PASSFAIL:LINELimit:LOWer:POINt<n>:DELete
Description Syntax Parameter Example
Deletes the specified point in the lower limit line.
[:SENSe]:PASSFAIL:LINELimit:LOWer:POINt<n>:DELete
<n>
<NR1> Point number
:PASSFAIL:LINEL:LOW:POIN1:DEL
[:SENSe]:PASSFAIL:LINELimit:LOWer:POINt<n>:X
Description Syntax Query Syntax Parameter
Return parameter Example
Sets or queries the frequency limit of the specified point in the lower limit line.
[:SENSe]:PASSFAIL:LINELimit:LOWer:POINt<n>:X <freq> [:SENSe]:PASSFAIL:LINELimit:LOWer:POINt<n>:X?
<n>
<NR1> Point number
<freq> <NRf> Frequency in Hz.
<NR3> Hz
:PASSFAIL:LINEL:LOW:POIN1:X 2e+8
[:SENSe]:PASSFAIL:LINELimit:LOWer:POINt<n>:Y
Description Syntax Query Syntax Parameter
Return parameter Example
Sets or queries the amplitude limit of the specified point in the lower limit line.
[:SENSe]:PASSFAIL:LINELimit:LOWer:POINt<n>:Y <ampl> [:SENSe]:PASSFAIL:LINELimit:LOWer:POINt<n>:Y?
<n>
<NR1> Point number
<ampl> Amplitude in dBm
<NR3> dBm
:PASSFAIL:LINEL:LOW:POIN1:Y -20
[:SENSe]:PASSFAIL:LINELimit:LOWer:STATe
Description Syntax Query Syntax Parameter
Return parameter
Turns the lower limit line on/off or queries its state.
[:SENSe]:PASSFAIL:LINELimit:LOWer:STATe {OFF|ON|0|1} [:SENSe]:PASSFAIL:LINELimit:LOWer:STATe?
0
Turns the lower limit line off.
1
Turns the lower limit line on.
OFF Turns the lower limit line off.
ON Turns the lower limit line on.
0
The lower limit line is off.
1
The lower limit line is on.
39
Example
SCPI Command Set
:PASSFAIL:LINEL:LOW:STAT 1
[:SENSe]:PASSFAIL:LINELimit:MARKer<n>:STATe?
Description Query Syntax Parameter Return parameter
Example
Returns the Pass/Fail judgment of limit line testing.
[:SENSe]:PASSFAIL:LINELimit:MARKer<n>:STATe?
<n> <NR1> Marker number
0
Fail
1
Pass
:PASSFAIL:LINEL:MARK1:STAT? returns 1
[:SENSe]:PASSFAIL:LINELimit:STATe
Description Syntax Query Syntax Parameter
Return parameter Example
Turns limit line testing of pass/fail measurement function on/off.
[:SENSe]:PASSFAIL:LINELimit:STATe {OFF|ON|0|1} [:SENSe]:PASSFAIL:LINELimitSTATe?
0
Turns limit line testing off.
1
Turns limit line testing on.
OFF Turns limit line testing off.
ON Turns limit line testing on.
0
Limit line testing is off.
1
Limit line testing is on.
:PASSFAIL:LINEL:STAT 1
[:SENSe]:PASSFAIL:LINELimit:UPper:CLEar
Description Syntax Example
Clears all points of the upper limit line. [:SENSe]:PASSFAIL:LINELimit:UPper:CLEar :PASSFAIL:LINEL:UP:CLE
[:SENSe]:PASSFAIL:LINELimit:UPper:POINt<n>:DELete
Description Syntax Parameter
Deletes the specified point in the upper limit line.
[:SENSe]:PASSFAIL:LINELimit:UPper:POINt<n>:DELete
<n>
<NR1> Point number
40
Example
SCPI Command Set
:PASSFAIL:LINEL:UP:POIN1:DEL
[:SENSe]:PASSFAIL:LINELimit:UPper:POINt<n>:X
Description Syntax Query Syntax Parameter
Return parameter Example
Sets or queries the frequency limit of the specified point in the upper limit line.
[:SENSe]:PASSFAIL:LINELimit:UPper:POINt<n>:X <freq> [:SENSe]:PASSFAIL:LINELimit:UPper:POINt<n>:X?
<n>
<NR1> Point number
<freq> <NRf> Frequency in Hz.
<NR3> Hz
:PASSFAIL:LINEL:UP:POIN1:X 9e+8
[:SENSe]:PASSFAIL:LINELimit:UPper:POINt<n>:Y
Description Syntax Query Syntax Parameter
Return parameter Example
Sets or queries the amplitude limit of the specified point in the upper limit line.
[:SENSe]:PASSFAIL:LINELimit:UPper:POINt<n>:Y <ampl> [:SENSe]:PASSFAIL:LINELimit:UPper:POINt<n>:Y?
<n>
<NR1> Point number
<ampl> Amplitude in dBm
<NR3> dBm
:PASSFAIL:LINEL:UP:POIN1:Y -10
[:SENSe]:PASSFAIL:LINELimit:UPPer:STATe
Description Syntax Query Syntax Parameter
Return parameter Example
Turns the upper limit line on/off or queries its state.
[:SENSe]:PASSFAIL:LINELimit:UPPer:STATe {OFF|ON|0|1} [:SENSe]:PASSFAIL:LINELimit:UPPer:STATe?
0
Turns the upper limit line off.
1
Turns the upper limit line on.
OFF Turns the upper limit line off.
ON Turns the upper limit line on.
0
The upper limit line is off.
1
The upper limit line is on.
:PASSFAIL:LINEL:UPP:STAT 1
[:SENSe]:PASSFAIL:LINELimit:X:OFFSET
Description
Sets or queries the frequency offset (Shift X) of the upper and lower limit line.
41
SCPI Command Set
Syntax Query Syntax Parameter Return parameter Example
[:SENSe]:PASSFAIL:LINELimit:X:OFFSET <freq> [:SENSe]:PASSFAIL:LINELimit:X:OFFSET? <freq> <NRf> Frequency in Hz <NR3> Hz :PASSFAIL:LINEL:X:OFFSET 1.0e+6
[:SENSe]:PASSFAIL:LINELimit:Y:OFFSET
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the amplitude offset (Shift Y) of the upper and lower limit line. [:SENSe]:PASSFAIL:LINELimit:Y:OFFSET <ampl> [:SENSe]:PASSFAIL:LINELimit:Y:OFFSET? <ampl> <NRf> Amplitude in dBm <NR3> dBm :PASSFAIL:LINEL:Y:OFFSET -15
[:SENSe]:PASSFAIL:WINdow:AMPl:LOWer
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the lower amplitude of amplitude line in window testing. [:SENSe]:PASSFAIL:WINdow:AMPl:LOWer <ampl> [:SENSe]:PASSFAIL:WINdow:AMPl:LOWer? <ampl> Amplitude in dBm <NR3> dBm :PASSFAIL:WIN:AMPl:LOW -20
[:SENSe]:PASSFAIL:WINdow:AMPl:UPper
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the upper amplitude of amplitude line in window testing. [:SENSe]:PASSFAIL:WINdow:AMPl:UPper <ampl> [:SENSe]:PASSFAIL:WINdow:AMPl:UPper? <ampl> Amplitude in dBm <NR3> dBm :PASSFAIL:WIN:AMPl:UP -10
[:SENSe]:PASSFAIL:WINdow:AMPt:STATe
Description Syntax
Turns the amplitude line of window testing on/off or queries its state. [:SENSe]:PASSFAIL:WINdow:AMPt:STATe {OFF|ON|0|1}
42
SCPI Command Set
Query Syntax Parameter
Return parameter Example
[:SENSe]:PASSFAIL:WINdow:AMPt:STATe?
0
Turns the amplitude line off.
1
Turns the amplitude line on.
OFF Turns the amplitude line off.
ON Turns the amplitude line on.
0
The amplitude line is off.
1
The amplitude line is on.
:PASSFAIL:WIN:AMP:STAT 1
[:SENSe]:PASSFAIL:WINdow:FREQuency:END
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the stop frequency of frequency line in window testing. [:SENSe]:PASSFAIL:WINdow:FREQuency:END<freq> [:SENSe]:PASSFAIL:WINdow:FREQuency:END? <freq> <NRf> Frequency in Hz. <NR3> Hz :PASSFAIL:WIN:FREQ:END 8e+8
[:SENSe]:PASSFAIL:WINdow:FREQuency:STARt
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the start frequency of frequency line in window testing. [:SENSe]:PASSFAIL:WINdow:FREQuency:STARt <freq> [:SENSe]:PASSFAIL:WINdow:FREQuency:STARt? <freq> <NRf> Frequency in Hz. <NR3> Hz :PASSFAIL:WIN:FREQ:STAR 6e+8
[:SENSe]:PASSFAIL:WINdow:FREQuency:STATe
Description Syntax Query Syntax Parameter
Return parameter
Turns the frequency line of window testing on/off or queries its state.
[:SENSe]:PASSFAIL:WINdow:FREQuency:STATe {OFF|ON|0|1} [:SENSe]:PASSFAIL:WINdow:FREQuency:STATe?
0
Turns the frequency line off.
1
Turns the frequency line on.
OFF Turns the frequency line off.
ON Turns the frequency line on.
0
The frequency line is off.
1
The frequency line is on.
43
Example
SCPI Command Set
:PASSFAIL:WIN:FREQ:STAT 1
[:SENSe]:PASSFAIL:WINdow:MARKer<n>:STATe?
Description Query Syntax Parameter Return parameter
Example
Returns the Pass/Fail judgment of window testing.
[:SENSe]:PASSFAIL:WINdow:MARKer<n>:STATe?
<n> <NR1> Marker number
0
Fail
1
Pass
:PASSFAIL:WIN:MARK1:STAT? returns 1
[:SENSe]:PASSFAIL:WINdow:STATe
Description Syntax Query Syntax Parameter
Return parameter Example
Turns window testing of pass/fail measurement function on/off.
[:SENSe]:PASSFAIL:WINdow:STATe {OFF|ON|0|1} [:SENSe]:PASSFAIL:WINdow:STATe?
0
Turns window testing off.
1
Turns window testing on.
OFF Turns window testing off.
ON Turns window testing on.
0
Window testing is off.
1
Window testing is on.
:PASSFAIL:WIN:STAT 1
[:SENSe]:PASSFAIL:WINdow:SWEEP:STATe
Description
Syntax Query Syntax Parameter
Return parameter
Turns window sweep on/off or queries its state. When the window sweep is on, only the window formed by the intersection of the amplitude line and the frequency line is swept, the peripheral stops sweeping; the full frequency is swept when it is off.
[:SENSe]:PASSFAIL:WINdow:SWEEP:STATe {OFF|ON|0|1} [:SENSe]:PASSFAIL:WINdow:SWEEP:STATe?
0
Turns window sweep off.
1
Turns window sweep on.
OFF Turns window sweep off.
ON Turns window sweep on.
0
Window sweep is off.
44
Example
SCPI Command Set
1
Window sweep is on.
:PASSFAIL:WIN:SWEEP:STAT 1
[:SENSe]:POWer[:RF]:ATTenuation
Description Syntax Query Syntax Parameter/ Return parameter
Example
Sets or queries the input attenuation. [:SENSe]:POWer[:RF]:ATTenuation <rel_ampl> [:SENSe]:POWer[:RF]:ATTenuation? <rel_ampl> <NR1> 0 dB to 40 dB
:POW:ATT 10 dB
[:SENSe]:POWer[:RF]:ATTenuation:AUTO
Description Syntax Query Syntax Parameter
Return parameter Example
Sets or queries whether the automatic input attenuation is on/off.
[:SENSe]:POWer[:RF]:ATTenuation:AUTO {OFF|ON|0|1} [:SENSe]:POWer[:RF]:ATTenuation:AUTO?
0
Turns automatic input attenuation off.
1
Turns automatic input attenuation on.
OFF
Turns automatic input attenuation off.
ON
Turns automatic input attenuation on.
0
Automatic input attenuation is off.
1
Automatic input attenuation is on.
:POW:ATT:AUTO ON
[:SENSe]:POWer[:RF]:GAIN[:STATe]:AUTO
Description Syntax Query Syntax Parameter
Return parameter Example
Turns the preamplifier on/off or queries its state.
[:SENSe]:POWer[:RF]:GAIN[:STATe]:AUTO {OFF|ON|0|1} [:SENSe]:POWer[:RF]:GAIN[:STATe]:AUTO?
0
Turns the preamplifier off.
1
Turns the preamplifier on.
OFF Turns the preamplifier off.
ON Turns the preamplifier on.
0
The preamplifier is off.
1
The preamplifier is on.
:POW:GAIN:AUTO ON
45
SCPI Command Set
[:SENSe]:SWEep:POINts
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the sweep points. [:SENSe]:SWEep:POINts <number> [:SENSe]:SWEep:POINts? <number> <NR1> <NR1> :SWEep:POIN 100
[:SENSe]:SWEep:TIME
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the sweep time. [:SENSe]:SWEep:TIME <time> [:SENSe]:SWEep:TIME? <time> Sweep time in s, ms, us, ns. The default unit is ns. <time> Sweep time in millisecond. :SWE:TIME 60 ms
[:SENSe]:SWEep:TIME:AUTO
Description Syntax Query Syntax Parameter
Return parameter Example
Sets the Sweep time setting to auto (on) or manual (off).
[:SENSe]:SWEep:TIME:AUTO {OFF|ON|0|1} [:SENSe]:SWEep:TIME:AUTO?
0
Sets sweep time to manual (off).
1
Sets sweep time to auto (on).
OFF
Sets sweep time to manual (off).
ON
Sets sweep time to auto (on).
0
Sweep time is set to manual.
1
Sweep time is set to automatic.
:SWE:TIME:AUTO 0
46
SOURce Commands
SCPI Command Set
:SOURce:POWer:TRACk[:POWer]
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the tracking generator output power level. :SOURce:POWer:TRACk[:POWer] <ampl> :SOURce:POWer:TRACk[:POWer]? <ampl> <NRf> Power or voltage, -30 dBm to 0 dBm <NR3> :SOUR:POW:TRAC -5
47
SYSTem Commands
SCPI Command Set
:SYSTem:COMMunicate:LAN:DHCP
Description Syntax Query Syntax Parameter
Return parameter Example
Turns the DHCP on/off or queries its state.
:SYSTem:COMMunicate:LAN:DHCP {OFF|ON|0|1} :SYSTem:COMMunicate:LAN:DHCP?
0
Turns the DHCP off.
1
Turns the DHCP on.
OFF Turns the DHCP off.
ON Turns the DHCP on.
0
The DHCP is off.
1
The DHCP is on.
:SYST:COMM:LAN:DHCP 0
:SYSTem:COMMunicate:LAN:GATE
Description
Syntax Query Syntax Parameter Return parameter Example
Sets or queries the gateway address. Gate (gateway address) should match with IP address.
:SYSTem:COMMunicate:LAN:GATE <gate> :SYSTem:COMMunicate:LAN:GATE?
<gate>
<String>
<String>
:SYST:COMM:LAN:GATE 192.168.1.1
:SYSTem:COMMunicate:LAN:IP:ADDRess
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the device IP address. :SYSTem:COMMunicate:LAN:IP:ADDRess <ip address> :SYSTem:COMMunicate:LAN:IP:ADDRess? <ip address> <String> <String> :SYST:COMM:LAN:IP:ADDR 192.168.1.72
:SYSTem:COMMunicate:LAN:MASK
Description
Sets or queries the device subnet mask address. Mask (subnet mask address)
48
SCPI Command Set
Syntax Query Syntax Parameter Return parameter Example
should match with IP address.
:SYSTem:COMMunicate:LAN:MASK <mask> :SYSTem:COMMunicate:LAN:MASK?
<mask>
<String>
<String>
:SYST:COMM:LAN:MASK 255.255.255.0
:SYSTem:CONFigure:FIRMwareupdate
Description
Syntax Example
Updates the system with new firmware from files located on an external USB drive. :SYSTem:CONFigure:FIRMwareupdate :SYST:CONF:FIRM
:SYSTem:CONFigure:information?
Description Query Syntax Return parameter
Example
Queries the system information, such as the serial number, hardware version, and temperature of the instrument.
:SYSTem:CONFigure:INFomation?
<String>
Returns the system information as a string in the following format: Serial Number = GSP XXXXXX, Hardware Version = X.X.X.X, temperature = X
:SYSTem:CONFigure:INFomation? returns Serial Number = GSP183201, Hardware Version = 3.0.0.0, temperature = 52.50
:SYSTem:DATE
Description Syntax Query Syntax Parameter Return parameter
Example
Sets or queries the system date.
:SYSTem:DATE <year>,<month>,<day> :SYSTem:DATE?
<year> <month> <day>
<NR1> Year, a 4-digit integer 2000 to 2100. <NR1> Month, a 2-digit integer 01 to 12. <NR1> Day, a 2-digit integer 01 to 31.
:SYST:DATE 2011,07,01
49
SCPI Command Set
:SYSTem:LANGuage
Description Syntax Query Syntax Parameter/ Return parameter Example
Sets or queries the language that the instrument uses to display on the screen. :SYSTem:LANGuage {ENGLish|CHINese} :SYSTem:LANGuage? ENGLish The instrument displays in English. CHINese The instrument displays in Chinese. :SYST:LANG ENGL
:SYSTem:PON:TYPE
Description Syntax Query Syntax Parameter/ Return parameter Example
Sets the power-on type between user-defined and factory default.
:SYSTem:PON:TYPE {FACTory|USER} :SYSTem:PON:TYPE?
FACTory Factory default
USER
User defined preset
:SYST:PON:TYPE USER
:SYSTem:PRESet:TYPE
Description Syntax Query Syntax Parameter/ Return parameter Example
Sets the preset type between user-defined and factory default.
:SYSTem:PRESet:TYPE {FACTory|USER} :SYSTem:PRESet:TYPE?
FACTory Factory default
USER
User defined preset
:SYST:PRES:TYPE USER
:SYSTem:SPEaker:VOLume
Description Syntax Query Syntax Parameter/ Return parameter Example
Sets or queries the volume setting for the demodulation function. :SYSTem:SPEaker:VOLume <integer> :SYSTem:SPEaker:VOLume? <integer> <NR1> 0 to 100
:SYST:SPE:VOL 50
50
SCPI Command Set
:SYSTem:TIME
Description Syntax Query Syntax Parameter Return parameter
Example
Sets or queries the system time.
:SYSTem:TIME <hour>,<minute>,<second> :SYSTem:TIME?
<hour> <minute> <second>
<NR1> Hour, a 2-digit integer 00 to 23. <NR1> Minute, a 2-digit integer 00 to 59. <NR1> Second, a 2-digit integer 00 to 59.
:SYST:TIME 19,05,30
51
TRACe Commands
SCPI Command Set
:TRACe[:DATA]?
Description Query Syntax Parameter
Return parameter Example
Returns the trace data for the selected trace.
:TRACe[:DATA]? TRACE1|TRACE2|TRACE3|TRACE4|TRACE5
TRACE1 TRACE2 TRACE3 TRACE4 TRACE5
The selected trace.
<data>
Start with #9, the following 9 digits specify the length of the data. Trace data is separated by a comma "," and each data length is fixed at 7 bits.
:TRAC? TRACE1 returns
#9000004807,64.7301,-68.163, ..., -36.195,-57.951
:TRACe:SOCKdata?
Description Query Syntax Parameter
Return parameter Example
Returns the trace data for the selected trace as a stream of bytes.
:TRACe[:DATA]? TRACE1|TRACE2|TRACE3|TRACE4|TRACE5
TRACE1 TRACE2 TRACE3 TRACE4 TRACE5
The selected trace.
<data>
Byte stream of trace data, start with #9, the following 9 digits specify the length of the data in bytes; and each data length is fixed at 4 bytes.
:TRAC:SOCK? TRACE1 returns
#9000002406\C1\13\F5z\C1\13\EF\F0\C1\14\18\B5\C1\13\FD\9E\C1\13\F 7(\C1\14\04L\C1\13\F1\AD\C1\14\15\81\C1\13\FA\17\C1\13\F9\D1\C1\1 3\FA\F5\C1\13\F5\BF\...
:TRACe<n>:MODE
Description
Sets or queries the operation mode of the selected trace.
52
SCPI Command Set
Syntax Query Syntax Parameter/ Return parameter
Example
:TRACe<n>:MODE {WRITe|MAXHold|MINHold|BLANk|VIEW} :TRACe<n>:MODE?
<n> WRITe MAXHold MINHold BLANk VIEW
<NR1> Trace number 1 to 5. Clear and Write Hold the maximum points from each sweep Hold the minimum points from each sweep Clear the trace Hold the last trace
:TRAC1:MODE VIEW
53
Trigger Commands
SCPI Command Set
:TRIGger:SEQuence:SOURce
Description Syntax Query Syntax Parameter/ Return parameter
Example
Sets or queries the triggering source.
:TRIGger:SEQuence:SOURce {RUN|VIDeo|POSitive|NEGative} :TRIGger:SEQuence:SOURce?
RUN VIDeo POSitive NEGative
Run trigger Video trigger Positive trigger Negative trigger
:TRIG:SEQ:SOUR RUN
:TRIGger:SEQuence:SOURce:VIDeo:POWer
Description Syntax Query Syntax Parameter Return parameter Example
Sets or queries the video trigger power. :TRIGger:SEQuence:SOURce:VIDeo:POWer <ampl> :TRIGger:SEQuence:SOURce:VIDeo:POWer? <ampl> <NRf> power <NR3> :TRIG:SEQ:SOUR:VID:POW 10
54
UDISk Commands
SCPI Command Set
:UDISk:STORe:SCReen
Description
Syntax Example
Saves the current screen-shot to a folder named "spectrum" (created automatically) in USB storage device, the file is named based on date/time, the format is png. :UDISk:STORe:SCReen :UDIS:STOR:SCR
:UDISk:STORe:TRACe
Description
Syntax Example
Saves the trace data to a folder named "spectrum" (created automatically) in USB storage device, the file is named based on date/time, the format is cvs. :UDISk:STORe:TRACe :UDIS:STOR:TRAC
55
UNIT Commands
SCPI Command Set
:UNIT:POWer
Description Syntax Query Syntax Parameter/ Return parameter
Example
Sets the amplitude unit.
:UNIT:POWer {DBM|DBUW|DBPW|DBMV|DBUV|W|V} :UNIT:POWer?
DBM DBUW DBPW DBMV DBUV W V
Decibels Decibels relative to one microwatt Decibels relative to one picowatt Decibels relative to one millivolt Decibels relative to one microvolt Watt Volt
:UNIT:POW DBM
*Specifications subject to change without notice.
56
