Programmer’s Guide
Safety Information
Warranty
Limitation of Warranty
Contents
Programming Examples
Programming Command Cross-References
Contents
Contents
Contents
Contents
Contents
Contents
Contents
Contents
Agilent 8590/EMC Analyzers Programming Conversion Guide
Commands
Commands
Commands
Commands
Commands
Commands
Commands
Commands
Commands
Commands
Commands
Commands
Commands
Commands
Commands
Commands
Commands
Commands
Commands
Commands
Programming Fundamentals
Programming Fundamentals
Creating Valid Commands
Command Syntax Sample Valid Commands
Command TRIGGSequenceVideoLevel 2.5V is not valid because
Command Notation Syntax
Example TRIGgerSEQuenceVIDeoLEVel
Special Characters in Commands
Parameters indicates
Example query SENSEFREQuencyCENTer? MAXimum
Parameters in Commands
Variable Parameters
Block Program Data
Parameters in Commands
Turn off the display updates
Disable auto alignment
Disable the IF/Video/Sweep output ports
Improving Measurement Speed
Use binary data format instead of Ascii
Select phase noise performance
Minimize the number of Gpib transactions
Minimize DUT/instrument setup changes
Avoid unnecessary use of *RST
Putting Multiple Commands on the Same Line
Scpi Termination and Separator Syntax
Bad Command Good Command
Overview of Gpib Option A4H
Gpib Command Statements
Gpib Instrument Nomenclature
Overview of Gpib Option A4H
Settings for the Serial Interface
Overview of RS-232 Option 1AX
Handshake and Baud Rate
Character Format Parameters
Data Transfer Errors
Modem Line Handshaking
Interconnection and Setup
Printer Setup and Operation
Equipment
Unsupported printer, Printer Type set to None
Testing Printer Operation
Status Registers
Status Register System Simplified Block Diagram
What are the Status Registers?
Overall Status Register System Diagram
How Do You Access the Status Registers?
Common Command Access and Control
Status Subsystem Commands
Polling Method
Using the Service Request SRQ Method
Generating a Service Request
Example of Monitoring Conditions Using the STATus Command
Set INITiateCONTinuous off
Setting and Querying the Status Register
Details of Bits in All Registers
Status Byte Register Diagram
Status Byte Register
Service Request Enable Register
Standard Event Status Summary Bit a 1 in this bit
Service request enable register presets to zeros
Service Request Enable Register
Standard Event Status Register
Standard Event Status Register Diagram
Standard event status register contains the following bits
Standard Event Status Event Enable Register
Standard Event Status Event Enable Register
STATusOPERation Register
Status Operation Register Diagram
Always Zero
STATusOPERationEVENt? command
STATusOPERation Condition and Event Enable Registers
STATusQUEStionable Registers
STATusQUEStionablePTRansition num positive transition where
STATusQUEStionableNTRansition num negative transition or
STATusQUEStionableEVENt?
Status Questionable Register Diagram
INTregrity Sum Reserved Always Zero
STATusQUEStionablePOWer Register
Questionable Status Power Register Diagram
Questionable Status Event Enable Register
Questionable Status Event Enable Register
Questionable Status Power Condition and Event Registers
STATusQUEStionablePOWerEVENt?
Questionable Status Frequency Register Diagram
STATusQUEStionableFREQuency Register
That the synthesizer in the source tracking generator is
STATusQUEStionableFREQuency EVENt?
Questionable Status Calibration Register Diagram
STATusQUEStionableCALibration Register
Bit Decimal Description
Bit Decimal Description Value
Questionable Status Integrity Uncalibrated Register Diagram
STATusQUEStionableINTegrityUNCalibrated Register
Oversweep Meas Uncal a 1 in this position indicates
STATusQUEStionableCALibration EVENt?
STATusQUEStionableINTegrityUNCalibratedCONDition?
STATusQUEStionableINTegrityUNCalibratedNTRansition
STATusQUEStionableINTegrityUNCalibratedPTRansition
Questionable Status Integrity Register Diagram
STATusQUEStionableINTegrity Register
Data Uncalibrated Summary This is the summary
STATusQUEStionableINTegrityEVENt?
Chapter
Programming Examples
List of Programming Examples
Programming Examples System Requirements
Programming Examples using VTL
Typical Example Program Contents
Linking to VTL Libraries
Compiling and Linking a VTL Program
ViPrintf
Bit Applications assumes Windows 95 operating system
Bit Applications
Including the Visa Declarations File
Example Program
#include visa.h
Opening a Session
Device Sessions
Chapter 101
Addressing a Session
Interface Syntax
Closing a Session
GPIB-VXI024
Using Marker Peak Search and Peak Excursion
Example
Chapter 105
106
Chapter 107
Using Marker Delta Mode and Marker Minimum Search
Chapter 109
110
Chapter 111
Performing Internal Self-alignment
E740xA EMC Analyzers
Chapter 113
114
Chapter 115
Reading Trace Data using Ascii Format Gpib
Calsour Stat on
Chapter 117
118
Chapter 119
Reading Trace Data Using 32-bit Real Format Gpib
Chapter 121
122
Chapter 123
124
Reading Trace Data Using Ascii Format RS-232
126
Chapter 127
128
Chapter 129
Reading Trace Data Using 32-bit Real Format RS-232
Calculate the number of bytes in the trace record
Chapter 131
132
Chapter 133
134
Using Limit Lines
CALCLLINE1CONTDOM Freq CALCLLINE1TYPE UPP CALCLLINE1DISP on
136
Chapter 137
138
Chapter 139
140
Measuring Noise
142
Chapter 143
144
Entering Amplitude Correction Data
Enter amplitude correction frequency/amplitude pairs
146
Chapter 147
148
Status Register-Determine When a Measurement is Done
Initimm OPC?
150
Chapter 151
152
Chapter 153
154
Determine if an Error has Occurred
Sensfreqcent 500 MHZ Sensfreqspan 100 MHZ
156
Chapter 157
158
Chapter 159
160
Measuring Harmonic Distortion Gpib
162
Chapter 163
164
Chapter 165
166
Chapter 167
168
Measuring Harmonic Distortion RS-232
170
Chapter 171
172
Chapter 173
174
Chapter 175
176
Making Faster Measurements multiple measurements
IDN?
178
Chapter 179
180
Chapter 181
182
Chapter 183
184
Programming Command
Functional Index to Scpi Subsection
Bandwidth
Programming Command Cross-References
188
Language Reference
Commands for Use with ANSI/IEEE Std 488.1-1987. New York, NY
Scpi Sections and Subsections
Scpi Subsystem/Subsection
192
Ieee Common Commands
Standard Event Status Enable
Calibration Query
Clear Status
Standard Event Status Register Query
Identification Query
Instrument State Query
#PQQQSYSTSET #NMMMstatedata
Query Instrument Options
Operation Complete
Recall
Reset
Service Request Enable
Save
Read Status Byte Query
Self Test Query
Trigger
Wait-to-Continue
Abort
ABORt Subsystem
ABORt
CALCulate Subsystem
NdBpoints
NdBresults
CALCulateBWIDthBANDwidthRESult?
Calculate Correction at Frequency
NdBstate
Test Current Trace Data Against all Limit Lines
Append Signal Data to List
CALCulateEMISLISt Subsection
Add Measure to List
Add Marker to List
Field Description Table
CALCulateEMISLIStADD 1e6 or
Detailed Field Descriptions
Clear Marks
CALCulateEMISLIStCLEar ALLCURRentinteger
Set Comment for Signals
Set Comment for Current Signal
Set Comment for Marked Signals
Delete Signal
Turn Signal List On or Off
Retrieve Signal as a String
Retrieve Signals in List
Mark Selected Signals
Specify Sort Key
Position Cursor to Signal List
CALCulateEMISLIStSELect FIRStLASTNEXTPREVious integer
Specify Signal List Display Parameters
CALCulateLLINe Subsection
Delete All Correction Sets in Memory
Control Limit Line Amplitude Interpolation
Set Fixed or Relative Limit Lines
Set Limit Line X-axis Units
Define Limit Line Values
Control Limit Line Frequency Interpolation
Example CALCLLIN1DATA 1000000000,-20,0,200000000,-30,1
Fi + yi
Connected 0 or
Merge Additional Values into the Existing Limit Line
Delete Limit Line
Display the Limit Line
CALCulateLLINe12DELete
Test the Data Against the Limit Line
Set the Margin Size
Display the Limit Margin
CALCulateLLINe12FAIL?
Control Limit Line Testing
Select the Type of Limit Line
CALCulateLLINe12STATe OFFON01 CALCulateLLINe12STATe?
CALCulateLLINe12TYPE UPPerLOWer CALCulateLLINe12TYPE?
Frequency Counter Marker Resolution
CALCulateMARKer Subsection
Markers All Off on All Traces
Continuous Peaking Marker Function
Frequency Counter Marker Automatic Resolution
Frequency Counter Marker
Frequency Counter Marker Query
Marker Function
Marker Peak Maximum Left Search
Marker Peak Maximum Search
Marker Next Peak Maximum Search
Marker Mode
Marker Peak Maximum Right Search
Marker Peak Minimum Search
CALCulateMARKer1234MAXimumRIGHt
Define Peak Excursion
Define Peak Search
Define Peak Threshold
Peak to Peak Delta Markers
Set Center Frequency to the Marker Value
Set Reference Level to the Marker Value
Set Span to the Marker Value
Set Start Frequency to the Marker Value
Set Center Frequency Step Size to the Marker Value
Set Stop Frequency to the Marker Value
Continuous Signal Tracking Function
Marker Table On/Off
Marker to Trace
Marker to Trace Auto
Marker X Value
Span Markers Center Frequency X Value
Marker X Position
CALCulateMARKer1234X param CALCulateMARKer1234X?
Span Markers Span X Position
Span Markers Center Frequency X Position
Delta Pair Markers Start Frequency X Position
Delta Pair Markers Stop Frequency X Position
Marker X-Axis Readout
Span Markers Span X Value
CALCulateMARKer1234XSPAN param CALCulateMARKer1234XSPAN?
Delta Pair Markers Stop Frequency X Value
Delta Pair Markers Start Frequency X Value
Marker Read Y Value
Normalize the Trace Data
CALCulateNTData Subsection
CALCulateNTDataSTATe OFFON01 CALCulateNTDataSTATe?
Set Auto Align Mode All or Not RF
CALibration Subsystem
Align All Instrument Assemblies
CALibrationALL CALibrationALL?
Return to the Default Alignment Data
Automatic Alignment
Align FM Demodulation
Query the Internal or External Frequency Reference
Coarse Adjust the Frequency Reference
Fine Adjust the Frequency Reference
Select the Frequency Corrections
Align the RF Circuitry
Select the Source State for Calibration
Calibrate the Tracking Generator
CALibrationSOURceSTATe OFFON01 CALibrationSOURceSTATe?
CALibrationTG CALibrationTG?
COUPle Subsystem
COUPle the Function to Other Settings
COUPle Allnone COUPle?
Sweep points
DISPlay Subsystem
Display Viewing Angle
Date and Time Display Format
Date and Time Display
DISPlayENABle OFFON01
Display Annotation Title Data
Turn the Entire Display On/Off
Turn the Full Screen Display On/Off
Window Annotation
Trace Graticule Display
Trace X-Axis Scale Offset
Log SENSeSWEepSPACing LINearLOGarithmic
Display Line Amplitude
Display Line On/Off
If Gain Auto/Reference Level Auto Ranging
DISPlayWINDowTRACeYDLINe ampl DISPlayWINDowTRACeYDLINe?
Normalized Reference Level
See command CALCulateNTDataSTATe OFFON01
Normalized Reference Level Position
Trace Y-Axis Frequency Scaling
Trace Y-Axis Amplitude Scaling
Trace Y-Axis Reference Level
DISPlayWINDowTRACeYSCALeRLEVelOFFSet
Trace Y-Axis Reference Level Offset
Relampl
Vertical Axis Scaling
FORMat Subsystem
Byte Order
Numeric Data format
FORMatBORDer NORMalSWAPped FORMatBORDer?
Ascii
Select Report Content
HCOPy Subsystem
Abort the Print
Printer Type
Select a Signal List to Include in a Report
Select a Signal List to Include in a Report Delta
Color Hard Copy
HCOPyIMAGeCOLorSTATe OFFON01 HCOPyIMAGeCOLorSTATe?
Print a Hard Copy
Form Feed the Print Item
Orientation
Number of Items Printed on a
Select Report Type
Printed Page Size
HCOPyREPOrtTYPE SCREenREPort
Continuous or Single Measurements
INITiate Subsystem
INITiateCONTinuous OFFON01 INITiateCONTinuous?
Abort Measurement
Take New Data Acquisitions
Pause the Measurement
Restart the Measurement
Resume the Measurement
INITiateRESTart
INITiateRESume
INPut Subsystem
Input Port Coupling
INPutCOUPling Acdc INPutCOUPling?
Selecting Input Coupling
Clear the Input Overload
INPutPROTectionCLEar
Configure Commands
MEASure Group of Commands
CONFiguremeasurement
Fetch Commands
Measure Commands
FETChmeasurementn?
MEASuremeasurementn?
Measurement Group of Commands
Read Commands
READmeasurementn?
Configure for Measuring Frequency
Read Command
Get Measurement Results
Setting Max/Min On or Off
Measure at Marker
Measure at Marker and Add to List
Max/Min View -Max
CONFigureEMIPEAKs MEASureEMIPEAKs?
Remeasure Current Signal
Measure Peaks
Catalog the Selected Memory Location
MMEMory Subsystem
Copy a File
Move Data to File
Delete a File
Load a Corrections Table from a File
Load a Limit Line from Memory to the Instrument
Load an Instrument State from a File
Load a Trace From a File to the Instrument
Store Load/Save a Signal List
Make a Directory
Delete a Directory
Store a Corrections Table to a File
MMEMoryRDIRectory dirname
MMEMorySTOReCORRection ANTennaCABLeOTHerUSER,filename
Store a Limit Line in a File
Store Measurement Results in a File
Store a Screen Image in a Graphic File
Store an Instrument State in a File
MMEMorySTOReTRACe label,filename
Store a Trace in a File
Mmemstortrac TRACE3,Cmytrace.trc
Turn Output On/Off
OUTPut Subsystem
OUTPutSTATe OFFON01 OUTPutSTATe?
SENSe Subsystem
SENSeAVERage Subsection
Clear the Current Average
Set the Average Count
Turn Averaging On/Off
SENSeAVERageTYPEAUTO OFFON01 SENSeAVERageTYPEAUTO?
Turn Automatic Averaging On/Off
Auto Rules for Average Type
SENSeAVERageTYPE VIDeoRMS
Type of Averaging for Measurements
SENSeAVERageTYPE?
Resolution Bandwidth
Resolution Bandwidth Automatic
Resolution Bandwidth Mode
SENSeBANDwidth Subsection
Video to Resolution Bandwidth Ratio
Video to Resolution Bandwidth Ratio Mode Select
Video Bandwidth
Video Bandwidth Automatic
VBW and RBW Ratio Auto Rules
Resolution Bandwidth Type
SENSeBANDwidthTYPE IMPulseDB6DB3 SENSeBANDwidthTYPE?
SENSeCORRection Subsection
Delete All Corrections
Perform Amplitude Correction
Set Amplitude Correction Data
SENSeCORRectionCSET1234DATAMERGe freq,relampl,freq,relampl
SENSeCORRectionCSETALLSTATe must be on for this command to
Delete Amplitude Correction
Set Amplitude Correction Frequency Interpolation
SENSeCORRectionCSET1234DELete
Input Impedance Correction
External Amplifier Correction
SENSeDEMod Subsection
Type of Demodulation
FM Deviation
Squelch
Demod Time
Demodulation Control
Demod View
Automatic Detection Type Selected
SENSeDETector Subsection
SENSeDETectorAUTO OFFON01 SENSeDETectorAUTO?
Auto Rules of Detector Selection
Type of Detection
SENSeDETectorFUNCtion
NEGativePOSitiveSAMPleAVERageRMS
SENSeDETectorFUNCtion?
Type of EMI Detector
EMI View
Range Immediate
Unrange
SENSeDETectorRANGeIMMediate
SENSeEMI Subsection
Auto Measure Average On or Off
Auto Measure Peak On or Off
Auto Measure Quasi Peak On or Off
Setting the Dwell Time for Peak
Setting the Dwell Time for Quasi Peak
Setting the Dwell Time for Average Peak
Preselector Centering On or Off E7403A, E7404A, E7405A only
Auto Measure Margin On or Off
Setting the Dwell Time for Range
SENSeEMIMEASureRANGeDWELltime SENSeEMIMEASureRANGeDWELl?
Center Frequency
SENSeFREQuency Subsection
Center Frequency Step Size Automatic
Frequency Span
Center Frequency Step Size
SENSeFREQuencySPAN freq SENSeFREQuencySPAN?
Last Frequency Span
Full Frequency Span
Start Frequency
Frequency Synthesis Mode
Stop Frequency
SENSeFREQuencySTOP freq SENSeFREQuencySTOP?
SENSeFREQuencySYNThesis SENSeFREQuencySYNThesis?
Frequency Synthesis State
SENSePOWer Subsection
Enable/Disable QPD X10 Gain
Input Attenuation
Input Port Attenuator Auto
Input Port Power Gain
Input Port Maximum Mixer Power
SENSePOWerRFGAINSTATe OFFON01 SENSePOWerRFGAINSTATe?
SENSePOWerRFPADJust freq SENSePOWerRFPADJust?
SENSePOWerRFPCENter
Preselector Center
Sweep Points
SENSeSWEep Subsection
Set Frequency Domain Scale Type
Sweep Time
Automatic Sweep Time
SENSeSWEepTIME time SENSeSWEepTIME?
SENSeSWEepTIMEAUTO OFFON01 SENSeSWEepTIMEAUTO?
Sweep Time Mode
Time Gating Delay Option 1D6 Only
SENSeSWEepTIMEGATEDELay time SENSeSWEepTIMEGATEDELay?
Time Gate Length Option 1D6 Only
Preset Time Gate Option 1D6 Only
Time Gate Level Option 1D6 Only
Time Gate Polarity Option 1D6 Only
Control Time Gate Option 1D6 Only
Time Gate Trigger Type Option 1D6 Only
SENSeSWEepTIMEGATETYPE LEVelEDGE SENSeSWEepTIMEGATETYPE?
SOURce Subsystem
Sets the Output Power Offset Correction
Source Attenuation
Sets the Output Power
SOURcePOWerATTenuationAUTO OFFON01
SOURcePOWerATTenuationAUTO?
Automatic Source Attenuation
Sets the Source Output Power Mode
Set the Source Sweep Power Range
SOURcePOWerMODE FIXedSWEep SOURcePOWerMODE?
SOURcePOWerSPAN relampl SOURcePOWerSPAN?
Set the Output Power to Step Automatically
Set the Output Power at the Start of the Sweep
Set the Output Power Step Size
Output Power Tracking
Output Power Tracking Peak
SOURcePOWerSWEep relampl SOURcePOWerSWEep?
SOURcePOWerTRCKing integer SOURcePOWerTRCKing?
Operation Enable
STATus Subsystem
Operation Condition Query
Operation Event Query
Preset the Status Byte
STATusPRESet
Operation Negative Transition
Operation Positive Transition
Questionable Calibration Enable
STATusQUEStionable Subsection
Questionable Calibration Condition
Questionable Calibration Event Query
Questionable Calibration Negative Transition
Questionable Calibration Positive Transition
Questionable Condition
STATusQUEStionableCONDition?
Questionable Enable
STATusQUEStionableENABle integer STATusQUEStionableENABle?
Questionable Event Query
Questionable Frequency Condition
Questionable Frequency Enable
Questionable Frequency Event Query
Questionable Frequency Negative Transition
STATusQUEStionableFREQuencyEVENt?
Questionable Integrity Enable
Questionable Frequency Positive Transition
Questionable Integrity Condition
Questionable Integrity Event Query
Questionable Integrity Negative Transition
Questionable Integrity Uncalibrated Enable
Questionable Integrity Positive Transition
Questionable Integrity Uncalibrated Event Query
Questionable Integrity Uncalibrated Negative Transition
Questionable Integrity Uncalibrated Positive Transition
Integer STATusQUEStionableINTegrityUNCalibratedNTRansition?
Questionable Power Condition
Questionable Power Enable
Questionable Power Event Query
STATusQUEStionablePOWerCONDition?
Questionable Power Positive Transition
Questionable Power Negative Transition
Questionable Positive Transition
SYSTem Subsystem
Serial Port DTR Setup
Gpib Address
Serial Port RTS Setup
Serial Port Baud Rate Setup
Serial Port Receive Pace Setup
Serial Port Transmit Pace Setup
Hardware Configuration Query
Display the Hardware Configuration
System Configuration Query
Display System Configuration
Error Information Query
Set Date
Locate Scpi Command Errors
SYSTemERRorVERBose OFFON01 SYSTemERRorVERBose?
Host Identification Query
First set SYSTERRVERBose on
License Key Install Application/Option
Delete a License Key
Power On Elapsed Time
Power On Time
Power On Type
Enable IF/Video/Sweep Output Ports
Persistent State Reset
Preset
Preset Type
Save User Preset
Speaker Control
Set Time
Scpi Version Query
TRACe Subsystem
Copy Trace
Transfer Trace Data
TRACeCOPY sourcetrace,desttrace
Tracdata TRACE1,#41604binary trace
Commands Mmemstortrac and Mmemloadtrac are
DataLF-EOI
Query the Signal Peaks
Mean Trace Data
Query Number of Peaks Found
Peak Sorting
Smoothing With 401 Trace Points and 31 Smoothing Points
Trace Math Subtract
Number of Points for Smoothing
TRACeMATHSMOothPOINts integer TRACeMATHSMOothPOINts?
Select Trace Display Mode
Trace Math Subtract From Display Line
TRACeMATHSUBTractDLINe trace
Example Tracmathsubtdlin TRACE1
External Trigger, Line Trigger Delay Value
External Trigger, Line Trigger Delay Enable
TRIGgerSEQuenceDELay delay TRIGgerSEQuenceDELay?
TRIGger Subsystem
Trigger Offset
Trigseqoffs 1.0s
Trigger Source
Video Trigger Level Amplitude
Video Trigger Level Frequency
TRIGgerSEQuenceVIDeoLEVelFREQuency freq
TRIGgerSEQuenceVIDeoLEVelFREQuency?
TRIGgerSEQuenceVIDeoLEVel ampl
UNITPOWer Dbmdbmvdbuvdbuavwa UNITPOWer?
Select Power Units of Measure
Unit Subsystem
Agilent 8590/EMC Analyzers
Guide here, Agilent Part Number E7401-90035
Index
342
Index 343
344
Index 345
346
Index 347
348
Index 349