Agilent N9342C/43C/44CHandheld Spectrum AnalyzerProgrammer’s Guide
2 Programmer’s Guide1 Getting StartedRemotely Operating the AnalyzerThe analyzer provides both the USB and LAN connection which allows you to set up a
92 Programmer’s Guide5 Command ReferenceLimit Line Y-axis Value:CALCulate:LLINe[1]:Y <value>:CALCulate:LLINe[1]:Y?Sets the Y-axis value of a lim
Command Reference 5Programmer’s Guide 93Limit Beep State:CALCulate:LLINe:CONTrol:BEEP OFF|ON|0|1:CALCulate:LLINe:CONTrol:BEEP?Use this command to turn
94 Programmer’s Guide5 Command ReferenceSet the limits Margin Value:CALCulate:LLINe[1]|2:MARGin <value>:CALCulate:LLINe[1]|2:MARGin?Use this com
Command Reference 5Programmer’s Guide 95Marker SubsectionMarkers All Off on All Traces:CALCulate:MARKer:AOFFTurns off all markers on all the traces.Ke
96 Programmer’s Guide5 Command ReferenceMarker Function:CALCulate:MARKer[1]|2|3|4|5|6:FUNCtion FCOunt|NOISe|OFF:CALCulate:MARKer[1]|2|3|4|5|6:FUNCtion
Command Reference 5Programmer’s Guide 97Marker Peak Left/Right Search:CALCulate:MARKer[1]|2|3|4|5|6:MAXimum:LEFT:CALCulate:MARKer[1]|2|3|4|5|6:MAXimum
98 Programmer’s Guide5 Command ReferencePeak Search Type:CALCulate:MARKer:PEAK:SEARch:MODE MAXimum|MINi-mum:CALCulate:MARKer:PEAK:SEARch:MODE?Specifie
Command Reference 5Programmer’s Guide 99Marker to Center:CALCulate:MARKer[1]|2|3|4|5|6[:SET]:CENTerThis command sets the center frequency equal to the
100 Programmer’s Guide5 Command ReferenceMarker On/Off:CALCulate:MARKer[1]|2|3|4|5|6:STATe OFF|ON|0|1:CALCulate:MARKer[1]|2|3|4|5|6:STATe?This command
Command Reference 5Programmer’s Guide 101Query Marker Readout: Y Value:CALCulate:MARKer[1]|2|3|4|5|6:Y?This command reads the current Y value for the
Getting Started 1Programmer’s Guide 3Connecting the Analyzer via the USB PortNo extra driver is required to connect the analyzer via the USB port to a
102 Programmer’s Guide5 Command ReferenceInitiate SubsystemThe INITiate subsystem is used to control the initiation of the spectrum analyzer sweep ope
Command Reference 5Programmer’s Guide 103*RST: ContinuousKey access: Sweep > Sweep Single/ContInitiate a Single Sweep:INITiate[:IMMediate]This comm
104 Programmer’s Guide5 Command ReferenceTrigger SubsystemThe TRIGger subsystem is used to set the controls and parameters associated with triggering
Command Reference 5Programmer’s Guide 105Video Trigger Level Amplitude:TRIGger[:SEQuence]:VIDeo:LEVel <value>:TRIGger[:SEQuence]:VIDeo:LEVel?Spe
106 Programmer’s Guide5 Command ReferenceRF Burst Trigger Slope:TRIGger[:SEQuence]:RFBurst:SLOPe POSitive|NEGative:TRIGger[:SEQuence]:RFBurst:SLOPe?Th
Command Reference 5Programmer’s Guide 107Synchronization Source:TRIGger[:SEQuence]:FRAMe:SYNC OFF|EXTernal |RFBurst:TRIGger[:SEQuence]:FRAMe:SYNC?Spec
108 Programmer’s Guide5 Command ReferencePower Measurement SubsystemThe Power Measurement Subsystem provides you the SCPI commands reference for the H
Command Reference 5Programmer’s Guide 109Adjacent Channel State[:SENSe]:ACPRatio:OFFSet:LIST:STATe OFF|ON|0|1,OFF|ON|0|1,OFF|ON|0|1,OFF|ON|0|1,OFF|ON|
110 Programmer’s Guide5 Command ReferenceChannel Space[:SENSe]:ACPRatio:OFFSet:LIST[FREQuency] <freq>,<freq>,<freq>,<freq>,<
Command Reference 5Programmer’s Guide 111Query Upper Adjacent Channel Power Ratio:MEASure:ACPRatio:UPPer?Return the upper adjacent channel power to ma
4 Programmer’s Guide1 Getting Started4 After a while, the PC finds your analyzer as a new hardware and prompts a message saying “Found new hardware...
112 Programmer’s Guide5 Command ReferenceIntegration BW[:SENSe]:CHPower:BWIDth|BANDwidth:INTegration <freq>[:SENSe]:CHPower:BWIDth|BANDwidth:INT
Command Reference 5Programmer’s Guide 113Channel Power Auto Range[:SENSe]:CHPower:METer:RANGe:AUTO OFF|ON|0|1[:SENSe]:CHPower:METer:RANGe:AUTO? Toggle
114 Programmer’s Guide5 Command ReferenceQuery Channel Power and Density Result:MEASure:CHPower?This command returns scalar results of main channel po
Command Reference 5Programmer’s Guide 115Channel Power RRC Filter Bandwidth[:SENSe]:CHPower:RRC:BW <value>[:SENSe]:CHPower:RRC:BW?Use this comma
116 Programmer’s Guide5 Command ReferenceSet dBc method of OBW[:SENSe]:OBWidth:XDB <value>[:SENSe]:OBWidth:XDB?specify the power level used to d
Command Reference 5Programmer’s Guide 117Query OBW Result:MEASure:OBW:OBW?:FETCh:OBW:OBW?Use this command to query the occupied bandwidth according to
118 Programmer’s Guide5 Command ReferenceSEM Channel Integrate Bandwidth[:SENSe]:SEMask:BANDwidth|BWIDth:INTegration <freq>[:SENSe]:SEMask:BANDw
Command Reference 5Programmer’s Guide 119SEM Channel Span[:SENSe]:SEMask:FREQuency:SPAN <freq>[:SENSe]:SEMask:FREQuency:SPAN?Use this command to
120 Programmer’s Guide5 Command ReferenceQuery SEM Marker Y Value[:SENSe]:SEMask:MARKer[1]|2|3|4|5|6:Y?Use this command to query the marker readout of
Command Reference 5Programmer’s Guide 121SEM Offset Measurement Bandwidth[:SENSe]:SEMask:OFFSet:LIST:BAND-width|BWIDth:MEASure <Integer>, <In
Getting Started 1Programmer’s Guide 57 PC will detect the instrument automatically. The item “USB Test and Measurement Device” displays in the pop-up
122 Programmer’s Guide5 Command ReferenceSEM Offset Sweep Time[:SENSe]:SEMask:OFFSet:LIST:SWEeptime <time>,<time>,<time>,<time>
Command Reference 5Programmer’s Guide 123SEM Offset Rel StartAmpt[:SENSe]:SEMask:OFFSet:LIST:STARt:RCARrier <ampl>,<ampl>,<ampl>,<
124 Programmer’s Guide5 Command ReferenceSEM Offset Fail Mask[:SENSe]:SEMask:OFFSet:LIST:TEST ABSolute|RELa-tive|AND|OR,ABSolute|RELative|AND|OR,ABSo-
Command Reference 5Programmer’s Guide 125Query SEM Lower Offset Peak Frequency[:SENSe]:SEMask:OFFSet:LIST:LOWer:PEAK:FRE-Quency?Use this command to qu
126 Programmer’s Guide5 Command ReferenceSEM Fail Setting Hold[:SENSe]:SEMask:FAIL:LOG OFF|ON|0|1[:SENSe]:SEMask:FAIL:LOG?Use this command to switch t
Command Reference 5Programmer’s Guide 127Spectrum Monitor Option SubsystemThe spectrum monitor subsystem provides you the SCPI commands reference for
128 Programmer’s Guide5 Command ReferenceSpectrogram Palette[:SENSe]:SPECtrogram:PALette FCOLor|GRAY[:SENSe]:SPECtrogram:PALette?This command switches
Command Reference 5Programmer’s Guide 129Spectrogram Marker Time[:SENSe]:SPECtrogram:MARKer[1]|2:TIME <value>[:SENSe]:SPECtrogram:MARKer[1]|2:TI
130 Programmer’s Guide5 Command ReferenceSpectrogram Marker Band Power State[:SENSe]:SPECtrogram:MARKer:BPOWer:STATe OFF|ON|0|1[:SENSe]:SPECtrogram:MA
Command Reference 5Programmer’s Guide 131Spectrogram Marker Audio Alert Limit[:SENSe]:SPECtrogram:MARKer:ALERt:LIMit <value>[:SENSe]:SPECtrogram
6 Programmer’s Guide1 Getting StartedConnecting the Analyzer via the LAN PortNo extra driver is required to connect the analyzer via the LAN port to a
132 Programmer’s Guide5 Command ReferenceSpectrogram Save Start Date[:SENSe]:SPECtrogram:SAVE:TIMed:STARt:DATE <“str”>[:SENSe]:SPECtrogram:SAVE:
Command Reference 5Programmer’s Guide 133Spectrogram Save File Type[:SENSe]:SPECtrogram:SAVE:FTYPe TRC|CSV[:SENSe]:SPECtrogram:SAVE:FTYPe?Use this com
134 Programmer’s Guide5 Command ReferenceCable and Antenna Test Option SubsystemThe Cable and Antenna Test Option Subsystem provides you the SCPI comm
Command Reference 5Programmer’s Guide 135CAT IIM State[:SENSe]:CAT:IIM[:STATe] OFF|ON|0|1[:SENSe]:CAT:IIM[:STATe]?Use this command to turn on/off IIM
136 Programmer’s Guide5 Command ReferenceCAT Select A Cable[:SENSe]:CAT:CABLe:LOAD <string>Use this command to select a cable from built-in cabl
Command Reference 5Programmer’s Guide 137CAT Windows Select[:SENSe]:CAT:WINDow NONE|RECTangular|HAMMing|S3BLackman|S4BLackman[:SENSe]:CAT:WINDow?This
138 Programmer’s Guide5 Command ReferenceCAT Center Frequency[:SENSe]:CAT:FREQuency:CENTer <freq>[:SENSe]:CAT:FREQuency:CENTer?This command defi
Command Reference 5Programmer’s Guide 139CAT Distance Unit[:SENSe]:CAT:DISTance:UNIT METers|FEET[:SENSe]:CAT:DISTance:UNIT?Use this command to toggle
140 Programmer’s Guide5 Command ReferenceCAT Amplitude Scale Per Division[:SENSe]:CAT:SCALe:DIV <value>[:SENSe]:CAT:SCALe:DIV?This command defin
Command Reference 5Programmer’s Guide 141CAT Trace Math Type[:SENSe]:CAT:TRACe:MATH OFF|ADD|SUB|DIV[:SENSe]:CAT:TRACe:MATH?This command toggles the tr
Getting Started 1Programmer’s Guide 76 Press “Test Connection” to check the LAN connection. The figure below indicates that the connection is ready.7
142 Programmer’s Guide5 Command ReferenceCAT Trace Data Query:TRACe[:DATA]? DATA|MEMUse this command to query the current trace data.Example: :TRACe?
Command Reference 5Programmer’s Guide 143CAT Marker Continuous Peak State:CALCulate:MARKer[1]|2|3|4|5|6:CPEak OFF|ON|0|1:CALCulate:MARKer[1]|2|3|4|5|6
144 Programmer’s Guide5 Command ReferenceCAT Query Reference Marker X axis Value:CALCulate:MARKer[1]|2|3|4|5|6:RX?This command query current reference
Command Reference 5Programmer’s Guide 145CAT Limit Type:CALCulate:LLINe[1]|2:TYPE UPPer|LOWer:CALCulate:LLINe[1]|2:TYPE?This command toggles the limit
146 Programmer’s Guide5 Command ReferenceCAT Get Limits Result:CALCulate:LLINe[1]|2:FAIL?This command query the result of limit line or limit in cable
Command Reference 5Programmer’s Guide 147CAT Define Limit Value:CALCulate:LLINe[1]|2:DATA <x-axis>,<ampl>,<connected>{,<x-axis>
148 Programmer’s Guide5 Command ReferenceChannel Scanner Option SubsystemThe Channel Scanner Option Subsystem provides you the SCPI command reference
Command Reference 5Programmer’s Guide 149Bottom N Number:CHSCanner:SWEep:BOTTom <value>:CHSCanner:SWEep:BOTTom?This command specify the scanner
150 Programmer’s Guide5 Command ReferenceMin Hold Dwell Time:CHSCanner:SWEep:MINHold:DWELltime <value>:CHSCanner:SWEep:MINHold:DWELltime?Use thi
Command Reference 5Programmer’s Guide 151Measurement Interval State:CHSCanner:SWEep:INTerval[:STATe] OFF|ON|0|1:CHSCanner:SWEep:INTerval [:STATe]?Use
8 Programmer’s Guide1 Getting Started
152 Programmer’s Guide5 Command ReferenceTop N/Bottom N Measurement Rule:CHSCanner:SWEep:TOPBottom:RULE:MEASure SPEed|ACCUracy:CHSCanner:SWEep:TOPBott
Command Reference 5Programmer’s Guide 153Bottom Cycle:CHSCanner:SWEep:BOTTom:CYCLe[:STATe] OFF|ON|0|1:CHSCanner:SWEep:BOTTom:CYCLe[:STATe]?Use this co
154 Programmer’s Guide5 Command ReferenceChannel Scanner Edit SubsectionSet Channel Edit Method for List Sweep:CHSCanner:EDIT:LIST:METHod <index>
Command Reference 5Programmer’s Guide 155Modify Channel By Custom For List Sweep:CHSCanner:EDIT:LIST:MODify:CUSTom <index>,<freq>,<band
156 Programmer’s Guide5 Command ReferenceQuery Channel Information For List Sweep:CHSCanner:EDIT:LIST?This command query the scan channel information
Command Reference 5Programmer’s Guide 157Set Scan Channel Range For Top N Sweep By Signal Standard:CHSCanner:EDIT:TOP:STD:RANGe <value>,<valu
158 Programmer’s Guide5 Command ReferenceSet Frequency Step for Customer Scan Channel For Top N Sweep:CHSCanner:EDIT:TOP:CUSTom:STEP <value>:CHS
Command Reference 5Programmer’s Guide 159Set Scan Channel For Bottom N Sweep By Signal Standard:CHSCanner:EDIT:BOTTom:STD <value>:CHSCanner:EDIT
160 Programmer’s Guide5 Command ReferenceSet Start Frequency For Custom Scan Channel For Bottom N Sweep:CHSCanner:EDIT:BOTTom:CUSTom:STARt <value&g
Command Reference 5Programmer’s Guide 161Set Custom Scan Channel Quantity For Bottom N Sweep:CHSCanner:EDIT:BOTTom:CUSTom:CHNumber <value>:CHSCa
Agilent N9342C/43C/44C Handheld Spectrum AnalyzerProgrammer’s Guide92Programming FundamentalsOverview 10Command Categories 12Command Syntax 13Creati
162 Programmer’s Guide5 Command ReferenceDisplay Threshold State:CHSCanner:DISPlay:THReshold [:STATe] OFF|ON|0|1:CHSCanner:DISPlay:THReshold [:STATe]?
Command Reference 5Programmer’s Guide 163Limit Type:CHSCanner:DISPlay:LIMit:TYPE UPPer|LOWer:CHSCanner:DISPlay:LIMit:TYPE?This command toggles limit t
164 Programmer’s Guide5 Command ReferenceLogging File Type:CHSCanner:LOG:TYPE CSV|KML:CHSCanner:LOG:TYPE?This command switch the logging file type bet
Command Reference 5Programmer’s Guide 165Demodulation Option SubsystemThe Demodulation Option Subsystem provides you the SCPI command reference for th
166 Programmer’s Guide5 Command ReferenceCarrier Frequency Step[:SENSe]:FREQuency:CARRier:STEP <freq>[:SENSe]:FREQuency:CARRier:STEP?This comman
Command Reference 5Programmer’s Guide 167Preamp[:SENSe]:POWer[:RF]:GAIN[:STATe] OFF|ON|0|1[:SENSe]:POWer[:RF]:GAIN[:STATe]?Use this command to turn on
168 Programmer’s Guide5 Command ReferenceRestart Meas[:SENSe]:MEASure:RESTartUse this command to restart measurement of current demodulation analysis.
Command Reference 5Programmer’s Guide 169Read Current AM Modulation Rate:CALCulate:AMA:MRATe?Use this command to query the AM Modulation rate result.E
170 Programmer’s Guide5 Command ReferenceAM Detector PeakHold[:SENSe]:AMA:DEMod:DETector[:FUNCtion]:PEAKhold OFF|ON|0|1[:SENSe]:AMA:DEMod:DETector[:FU
Command Reference 5Programmer’s Guide 171AM Equal Low Pass Filter[:SENSe]:AMA:EQLPfilter AUTO|OFF|IFBW6|IFBW20|IFBW60|IFBW200|IFBW600|IFBW2000[:SENSe]
10 Programmer’s Guide2 Programming FundamentalsOverviewThis section is not intended to teach you everything about the SCPI (Standard Commands for Prog
172 Programmer’s Guide5 Command ReferenceAM Depth Upper Limit:CALCulate:AM:LIMit:MDEPth:UPPer <value>:CALCulate:AM:LIMit:MDEPth:UPPer?Use this c
Command Reference 5Programmer’s Guide 173AM X Scale/DIV:DISPlay:AMA:VIEW:WINDow:TRACe:X[:SCALe]:PDIVi-sion < value >:DISPlay:AMA:VIEW:WINDow:TRA
174 Programmer’s Guide5 Command ReferenceAM X Scale Coupling State:DISPlay:AMA:VIEW:WINDow:TRACe:X[:SCALe]:COUPle 0|1|OFF|ON:DISPlay:AMA:VIEW:WINDow:T
Command Reference 5Programmer’s Guide 175AM Y Ref Position:DISPlay:AMA:VIEW:WINDow:TRACe:Y[:SCALe]:RPOSi-tion TOP|CENTer|BOTTom:DISPlay:AMA:VIEW:WINDo
176 Programmer’s Guide5 Command ReferenceQuery FM Modulation Rate:CALCulate:AMA:MRATe?Use this command to query FM modulation rate measurement result
Command Reference 5Programmer’s Guide 177FM Detector[:SENSe]:AMA:DEMod:DETector[:FUNCtion] PPK|NPK|PNPK|RMS[:SENSe]:AMA:DEMod:DETector[:FUNCtion]?Use
178 Programmer’s Guide5 Command ReferenceFM Equal Low Pass Filter[:SENSe]:AMA:EQLPfilter AUTO|OFF|IFBW6|IFBW20|IFBW60|IFBW200|IFBW600|IFBW2000[:SENSe]
Command Reference 5Programmer’s Guide 179FM Frequency Deviation Upper Limit:CALCulate:FM:LIMit:FDUL:UPPer <freq>:CALCulate:FM:LIMit:FDUL:UPPer?U
180 Programmer’s Guide5 Command ReferenceFM X Scale/DIV:DISPlay:AMA:VIEW:WINDow:TRACe:X[:SCALe]:PDIVi-sion <real_time>:DISPlay:AMA:VIEW:WINDow:T
Command Reference 5Programmer’s Guide 181FM X Scale Coupling State:DISPlay:AMA:VIEW:WINDow:TRACe:X[:SCALe]:COUPle 0|1|OFF|ON:DISPlay:AMA:VIEW:WINDow:T
Programming Fundamentals 2Programmer’s Guide 11Common Terms used in this BookThe SCPI Consortium or IEEE can provide detailed information on the subje
182 Programmer’s Guide5 Command ReferenceFM Y Reference Position:DISPlay:AMA:VIEW:WINDow:TRACe:Y[:SCALe]:RPOSi-tion TOP|CENTer|BOTTom:DISPlay:AMA:VIEW
Command Reference 5Programmer’s Guide 183ASK Average Count[:SENSe]:DMA:AVERage:COUNt <value>[:SENSe]:DMA:AVERage:COUNt?Use this command to speci
184 Programmer’s Guide5 Command ReferenceASK Reference Filter[:SENSe]:DMA:RADio:STANdard:FILTer:REFerence RNYQuist|NYQuist|GAUSsian|NONE[:SENSe]:DMA:R
Command Reference 5Programmer’s Guide 185ASK Measurement Length[:SENSe]:DMA:MEASurement:LENGth <value>[:SENSe]:DMA:MEASurement:LENGth?Use this c
186 Programmer’s Guide5 Command ReferenceASK External Trigger Type:TRIGger:DMA[:SEQuence]:EXTernal:SLOPe POSi-tive|NEGative:TRIGger:DMA[:SEQuence]:EXT
Command Reference 5Programmer’s Guide 187ASK Carrier Power Upper Limit:CALCulate:DMA:LIMit:POWer:UPPer <value>:CALCulate:DMA:LIMit:POWer:UPPer?U
188 Programmer’s Guide5 Command ReferenceASK Carrier Frequency Offset Upper Limit:CALCulate:DMA:LIMit:FOFFset:UPPer <frequency>:CALCulate:DMA:LI
Command Reference 5Programmer’s Guide 189ASK X Reference ValueDISPlay:DMA:VIEW:WINDow:TRACe:X[:SCALe]:RVALue <integer>:DISPlay:DMA:VIEW:WINDow:T
190 Programmer’s Guide5 Command ReferenceASK Y Reference Value:DISPlay:ASK:VIEW:WINDow:TRACe:Y[:SCALe]:RVALue <real>:DISPlay:ASK:VIEW:WINDow:TRA
Command Reference 5Programmer’s Guide 191ASK Y Scale Coupling State:TRACe[:DATA]?Use this command to query measurement trace data.Example: :DISPlay:DM
Notices© Agilent Technologies, Inc. 2012No part of this manual may be reproduced in any form or by any means (including electronic storage and retriev
12 Programmer’s Guide2 Programming FundamentalsCommand CategoriesThe SCPI command falls into two categories: • Subsystem commands that simulate front
192 Programmer’s Guide5 Command ReferenceFSK Symbol Rate[:SENSe]:DMA:RADio:STANdard:SRATe <sps>[:SENSe]:DMA:RADio:STANdard:SRATe?Use this comman
Command Reference 5Programmer’s Guide 193FSK Filter Symbols[:SENSe]:DMA:RADio:STANdard:FILTer:SYMBol < integer >[:SENSe]:DMA:RADio:STANdard:FILT
194 Programmer’s Guide5 Command ReferenceFSK Trigger Type:TRIGger:DMA[:SEQuence]:SOURce IMMediate|EXTer-nal|RFTRigger:TRIGger:DMA[:SEQuence]:SOURce?Us
Command Reference 5Programmer’s Guide 195FSK Trigger Delay Time:TRIGger:DMA[:SEQuence]:DELay <time>:TRIGger:DMA[:SEQuence]:DELay?Use this comman
196 Programmer’s Guide5 Command ReferenceFSK Frequency Deviation Upper Limit:CALCulate:FSK:LIMit:FDEViation:UPPer <fre-quency>:CALCulate:FSK:LIM
Command Reference 5Programmer’s Guide 197FSK View Type:DISPlay:DMA:VIEW WAVeform|SYMBol|EYE|ERRor:DISPlay:DMA:VIEW?Use this command to toggle the diff
198 Programmer’s Guide5 Command ReferenceFSK X Reference Position:DISPlay:DMA:VIEW:WINDow:TRACe:X[:SCALe]:RPOSi-tion LEFT|CENTer|RIGHt:DISPlay:DMA:VIE
Command Reference 5Programmer’s Guide 199FSK Y Scale/DIVDISPlay:FSK:VIEW:WINDow:TRACe:Y[:SCALe]:PDIVi-sion <real>DISPlay:FSK:VIEW:WINDow:TRACe:Y
200 Programmer’s Guide5 Command ReferenceRead FSK Trace Data:TRACe[:DATA]?Use this command to query FSK measurement trace data.Example: :TRACe?
Command Reference 5Programmer’s Guide 201Power Meter Option SubsystemThe Power Meter Option Subsystem provides you the SCPI command reference for the
Programming Fundamentals 2Programmer’s Guide 13Command SyntaxA command consists of mnemonics (keywords), parameters and punctuation. Before you start
202 Programmer’s Guide5 Command ReferenceSwitch Power Range [:SENSe]:POWer:AC:RANGe UPPer|LOWer[:SENSe]:POWer:AC:RANGe?This command toggles the measur
Command Reference 5Programmer’s Guide 203Set Power Meter Reference Power Value[:SENSe]:CORRection:CSET1[:INPut][:MAGNitude] <value>[:SENSe]:CORR
204 Programmer’s Guide5 Command ReferenceSet Power Meter Average Count Number[:SENSe]:AVERage:COUNt <value>[:SENSe]:AVERage:COUNt?This command d
Command Reference 5Programmer’s Guide 205Set Power Meter Video Bandwidth Type[:SENSe]:BANDwidth|BWIDth HIGH|MEDium|LOW|OFF[:SENSe]:BANDwidth|BWIDth?Us
206 Programmer’s Guide5 Command ReferenceSet Trace X Scale Time:SENSe:TRACe:TIME <value>:SENSe:TRACe:TIME?This command defines the trace X scale
Command Reference 5Programmer’s Guide 207Set Gate Length Time[:SENSe]:SWEep[1]:TIME <value>[:SENSe]:SWEep[1]:TIME?This command defines the gate
208 Programmer’s Guide5 Command ReferenceSet Bottom Value of Display Range:DISPlay[:WINDow]:DISPrange:BOTTom <value>:DISPlay[:WINDow]:DISPrange:
Command Reference 5Programmer’s Guide 209Set Chart View to Previous:DISPlay[:WINDow]:CHARt:PREViousThis command set the chart view page to previous pa
210 Programmer’s Guide5 Command ReferenceSet Limit Lower Value:CALCulate1:LIMit:LOWer[:DATA] <value>:CALCulate1:LIMit:LOWer[:DATA]?This command
Command Reference 5Programmer’s Guide 211Set Gate Measurement Type:CALCulate1:FEED1 PEAK|PTAV|AVER|MIN:CALCulate1:FEED1?This command to toggle gate me
14 Programmer’s Guide2 Programming FundamentalsCommand Statement Rules OverviewBesides the standard notation of SCPI described above, please remember
212 Programmer’s Guide5 Command ReferenceSet Trigger Level:TRIGger[:SEQuence]:LEVel <value>:TRIGger[:SEQuence]:LEVel?This command defines the tr
Command Reference 5Programmer’s Guide 213Power Meter Trigger Holdoff TimeTRIGger[:SEQuence]:HOLDoff <value>TRIGger[:SEQuence]:HOLDoff?This comma
214 Programmer’s Guide5 Command ReferenceTracking Generator Option SubsystemThe Tracking Generator Option Subsystem provides you the SCPI command refe
Command Reference 5Programmer’s Guide 215Tracking Generator Amplitude Step:SOURce:POWer:STEP[:INCRement] <value> :SOURce:POWer:STEP[:INCRement]?
216 Programmer’s Guide5 Command ReferenceNormalization Reference Position:DISPlay:WINDow:TRACe:Y[:SCALe]:NRPosition <integer>:DISPlay:WINDow:TRA
Programming Fundamentals 2Programmer’s Guide 15Creating Valid CommandsCommands are not case sensitive and there are often many different ways of writi
16 Programmer’s Guide2 Programming FundamentalsProgram and Response MessagesTo understand how your instrument and controller communicate using SCPI, y
Programming Fundamentals 2Programmer’s Guide 17Parameters in CommandsThere are four basic types of parameters: boolean, key words, variables and arbit
18 Programmer’s Guide2 Programming FundamentalsVariable Parameters<ampl>,<rel_ampl>The <ampl> (amplitude) parameter and the <rel_
Agilent N9342C/43C/44C Handheld Spectrum AnalyzerProgrammer’s Guide193Status RegistersOverview 20How to use the Status Registers 23Status Register S
20 Programmer’s Guide3 Status RegistersOverviewWhen you are programming the instrument you may need to monitor instrument status to check for error co
Status Registers 3Programmer’s Guide 21Event Register It latches any signal state changes, in the way specified by the filter registers. Bits in the e
Programmer’s Guide In This Guide…This guide contains programming information for the N9342C/43C/44C Handheld Spectrum Analyzer.1 Getting StartedPrepar
22 Programmer’s Guide3 Status RegistersWhat are Status Register SCPI CommandsMost monitoring of the instrument conditions is done at the highest level
Status Registers 3Programmer’s Guide 23How to use the Status RegistersA program often needs to detect and manage error conditions or changes in instru
24 Programmer’s Guide3 Status Registers— The transition registers are preset to register if the condition goes from 0 to 1 (false to true, or a positi
Status Registers 3Programmer’s Guide 25Status Register SystemThe hardware status registers are combined to form the instrument status system. Specific
26 Programmer’s Guide3 Status RegistersThe Status Byte RegisterThe RQS bit is read and reset by a serial poll. The same bit position (MSS) is read, no
Status Registers 3Programmer’s Guide 27The status byte register contains the following bits:To query the status byte register, send the *STB command.
28 Programmer’s Guide3 Status RegistersStandard Event Status RegisterThe standard event status register is used to determine the specific event that s
Status Registers 3Programmer’s Guide 29The standard event status register contains following bits:The standard event status register is used to determ
30 Programmer’s Guide3 Status Registerscommand *ESE 192 (128 + 64). The command *ESE? returns the decimal value of the sum of the bits previously enab
Agilent N9342C/43C/44C Handheld Spectrum AnalyzerProgrammer’s Guide314b Programming ExampleOverview 32Programming in C using the VTL 33Checking USB
Programmer’s Guide
32 Programmer’s Guide4 Programming ExampleOverviewThe programming examples in this section keep to the following 3 conventions:• The programming examp
Programming Example 4Programmer’s Guide 33Programming in C using the VTLThis section includes some basic information about programming in the C langua
34 Programmer’s Guide4 Programming ExampleExample ProgramThis example program queries a USB device for an identification string and prints the results
Programming Example 4Programmer’s Guide 35viScanf(viN9342C, "%t", &buf);/*Print results */printf("Instrument identification string:
36 Programmer’s Guide4 Programming Example• A device session is used to communicate with a device on an interface. A device session must be opened for
Programming Example 4Programmer’s Guide 37Your program may have several sessions open at the same time by creating multiple session identifiers by cal
38 Programmer’s Guide4 Programming ExampleAddressing a SessionAs seen in the previous section, the rsrcName parameter in the viOpen function is used t
Programming Example 4Programmer’s Guide 39Checking the USB ConnectionUsually, using “*IDN?” verifies the data transferring between the controller PC a
40 Programmer’s Guide4 Programming ExampleUsing C with Marker Peak Search and Peak Excursion/*********************************************************
Programming Example 4Programmer’s Guide 41#include <stdio.h>#include <stdlib.h>#include <math.h>#include <ctype.h>#include <
Programmer’s GuideContents1 Getting Started 1Remotely Operating the Analyzer 2Computer Requirement for Remote Operation 2Connecting the Analyzer via t
42 Programmer’s Guide4 Programming Example/*Open a USB session.*/viStatus=viOpenDefaultRM(&defaultRM);viStatus=viOpen(defaultRM,"USB0::2391::
Programming Example 4Programmer’s Guide 43/*Set the peak excursion*/viPrintf(viN9342C,"CALC:MARK:PEAK:EXC %1fDB \n",fPeakExcursion);/*Set th
44 Programmer’s Guide4 Programming ExampleUsing Marker Delta Mode and Marker Minimum Search/**********************************************************
Programming Example 4Programmer’s Guide 45#include <stdio.h>#include <stdlib.h>#include <math.h>#include <ctype.h>#include <
46 Programmer’s Guide4 Programming Example{/* Open an USB session*/ viStatus=viOpenDefaultRM(&defaultRM);viStatus=viO-pen(defaultRM,&qu
Programming Example 4Programmer’s Guide 47/*Set the analyzer to the values given by the user*///viPrintf(viN9342C,"SENS:FREQ:STAR %lf //MHZ;:SENS
48 Programmer’s Guide4 Programming Example
Agilent N9342C/43C/44C Handheld Spectrum AnalyzerProgrammer’s Guide495Command ReferenceIEEE Common Commands 50System Subsystem 54Memory Subsystem 66
50 Programmer’s Guide5 Command ReferenceIEEE Common CommandsThe first few pages of this chapter contain common commands specified in IEEE Standard 488
Command Reference 5Programmer’s Guide 51Standard Event Status Register Query*ESR?Queries and clears the standard event status event register. (This is
Programmer’s GuideContents5 Command Reference 49IEEE Common Commands 50System Subsystem 54Memory Subsystem 66Instrument Subsystem 70Sense Subsystem 72
52 Programmer’s Guide5 Command ReferenceReset*RSTThis command presets the instrument to a factory defined condition that is appropriate for remote pro
Command Reference 5Programmer’s Guide 53Self Test Query*TST?This query is used by some instruments for a self test.Range: Integer, 0 to 255Wait-to-Con
54 Programmer’s Guide5 Command ReferenceSystem SubsystemThis subsystem is used to set the controls and parameters associated with the overall system c
Command Reference 5Programmer’s Guide 55Set System Date:SYSTem:DATE <“yyyymmdd”>:SYSTem:DATE?Sets the system date of the real-time clock of the
56 Programmer’s Guide5 Command ReferenceEnable Option:SYSTem:LKEY <"option">,<"license key">Use this command to enable
Command Reference 5Programmer’s Guide 57Calibrate Time Base by GPS:SYSTem:CALibration:TBASe:GPSUse this command to calibrate the time base by GPS sign
58 Programmer’s Guide5 Command ReferenceProbe Power:SYSTem:PORT:PROBe OFF|ON|0|1:SYSTem:PORT:PROBe?This command turns on/off the probe power port on t
Command Reference 5Programmer’s Guide 59Gateway Setting:SYSTem:PORT:IP:GWAY <“xxx.xxx.xxx.xxx”>:SYSTem:PORT:IP:GWAY?Sets the gateway for the ana
60 Programmer’s Guide5 Command ReferenceSystem Preset:SYSTem:PRESetUse this command to preset the instrument. The preset type is based on the setting
Command Reference 5Programmer’s Guide 61GPS Information:SYSTem:GPSinfo?This query returns the GPS information. This command is only available with the
ContentsProgrammer’s GuideAM Demodulation Subsection 168FM Demodulation Subsection 175ASK Demodulation Subsection 182FSK Demodulation Subsection 191Po
62 Programmer’s Guide5 Command ReferenceTime Power On Date:SYSTem:TIMed:PON:DATE <“YYYMMDD”>:SYSTem:TIMed:PON:DATE?Sets the power on date. This
Command Reference 5Programmer’s Guide 63Time Power Off Date:SYSTem:TIMed:POFF:DATE <“YYYMMDD”>:SYSTem:TIMed:POFF:DATE?Sets the power off date. I
64 Programmer’s Guide5 Command ReferenceDC Power In Type:SYSTem:CONFigure:DCPI STANDBY|PWRON:SYSTem:CONFigure:DCPI?This command toggles the DC power i
Command Reference 5Programmer’s Guide 65Speaker Volume Flag:SYSTem:SPEaker:STATe OFF|ON|0|1:SYSTem:SPEaker:STATe?Use this command to turn on the speak
66 Programmer’s Guide5 Command ReferenceMemory SubsystemThe Memory subsystem provides access to mass storage devices such as internal or external disk
Command Reference 5Programmer’s Guide 67Move Data to File:MMEMory:DATA <file_name>,<definite_length_block>:MMEMory:DATA? <file_name>
68 Programmer’s Guide5 Command ReferenceStore Peak Table to CSV File:MMEMory:STORe:PEAK <CSV file_name>To store the current peak table as a CSV
Command Reference 5Programmer’s Guide 69Load Correction File:MMEMory:LOAD:CORRection ANTenna|CABLe|OTHer|USER, "oldname.cor"This command loa
70 Programmer’s Guide5 Command ReferenceInstrument SubsystemThe instrument subsystem includes commands selecting the instrument modes or power measure
Command Reference 5Programmer’s Guide 71SEM - Spectrum Emission MaskCHScanner - Channel ScannerExample: :INSTrument:MEASure CHPowerKey access: MEAS
Programmer’s GuideContents
72 Programmer’s Guide5 Command ReferenceSense SubsystemThe Sense Subsystem provides you the SCPI command reference for normal spectrum analyzer functi
Command Reference 5Programmer’s Guide 73Stop Frequency[:SENSe]:FREQuency:STOP <freq>[:SENSe]:FREQuency:STOP?Set the stop frequency of the spectr
74 Programmer’s Guide5 Command ReferenceFrequency Offset[:SENSe]:FREQuency:OFFSet <freq>[:SENSe]:FREQuency:OFFSet?Sets the frequency offset.*RST
Command Reference 5Programmer’s Guide 75Full Frequency Span[:SENSe]:FREQuency:SPAN:FULLSet the frequency span to full scale.*RST: 3.0 GHzExample: :FRE
76 Programmer’s Guide5 Command ReferenceAmplitude SubsectionReference level:DISPlay:WINDow:TRACe:Y[:SCALe]:RLEVel: <value>:DISPlay:WINDow:TRACe:
Command Reference 5Programmer’s Guide 77Input Port Preamplifer[:SENSe]:POWer[:RF]:GAIN[:STATe] OFF|ON|0|1[:SENSe]:POWer[:RF]:GAIN[:STATe]?Turns the in
78 Programmer’s Guide5 Command ReferencePower Units of Measure ( Y Axis Unit ):UNIT:POWer DBM|DBMV|DBMVEMF|DBUV|DBU-VEMF|V|W|VEMF:UNIT:POWer?Specifies
Command Reference 5Programmer’s Guide 79Correction Apply State[:SENSe]:CORRection:CSET:ALL[:STATe] OFF|ON|0|1[:SENSe]:CORRection:CSET:ALL[:STATe]?Turn
80 Programmer’s Guide5 Command ReferenceCurrent Correction Select[:SENSe]:CORRection:SELect COR1|COR2|COR3|COR4[:SENSe]:CORRection:SELect?Set current
Command Reference 5Programmer’s Guide 81Bandwidth SubsectionResolution Bandwidth[:SENSe]:BANDwidth|BWIDth[:RESolution] <freq>[:SENSe]:BANDwidth|
Agilent N9342C/43C/44C Handheld Spectrum AnalyzerProgrammer’s Guide11Getting StartedThe purpose of this chapter is to serve as a reminder of SCPI (S
82 Programmer’s Guide5 Command ReferenceAuto Video Bandwidth State[:SENSe]:BANDwidth|BWIDth:VIDeo:AUTO OFF|ON|0|1[:SENSe]:BANDwidth|BWIDth:VIDeo:AUTO?
Command Reference 5Programmer’s Guide 83Trace SubsectionSelect Trace Display Mode:TRACe1|2|3|4:MODE WRITe|MAXHold|MIN-Hold|VIEW|BLANk:TRACe1|2|3|4:MOD
84 Programmer’s Guide5 Command ReferenceSubtract Trace:TRACe:MATH:SUBTract <destination_trace>,<source_trace1>,<source_trace2>This c
Command Reference 5Programmer’s Guide 85Detector SubsectionType of De te ction[:SENSe]:DETector:TRACe[1]|2|3|4[:FUNCtion]NEGa-tive|POSitive|SAMPle|A
86 Programmer’s Guide5 Command ReferenceAverage SubsectionAverage Type[:SENSe]:AVERage:TYPE LOGPower|POWer|VOLTage[:SENSe]:AVERage:TYPE?Toggle the ave
Command Reference 5Programmer’s Guide 87Average Restart[:SENSe]:AVERage:TRACe[1]|2|3|4:CLEarRestarts the trace average. This command is only available
88 Programmer’s Guide5 Command ReferenceSweep Mode[:SENSe]:SWEep:MODE AUTO|FFT|SWEep[:SENSe]:SWEep:MODE?Sets the sweep mode manually.*RST: AUTOKey acc
Command Reference 5Programmer’s Guide 89Gate Delay[:SENSe]:SWEep:EGATe:DELay <time> [:SENSe]:SWEep:EGATe:DELay?Set the gate delay time.Example:
90 Programmer’s Guide5 Command ReferenceDisplay SubsectionGraticule State:DISPlay:WINDow:TRACe:GRATicule:GRID[:STATe] OFF|ON|0|1:DISPlay:WINDow:TRACe:
Command Reference 5Programmer’s Guide 91Calculate SubsystemThis subsystem is used to perform post-acquisition data processing. In effect, the collecti
Comments to this Manuals