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
Example TRIGgerSEQuenceVIDeoLEVel
Command Notation Syntax
Command TRIGGSequenceVideoLevel 2.5V is not valid because
Special Characters in Commands
Parameters indicates
Variable Parameters
Parameters in Commands
Example query SENSEFREQuencyCENTer? MAXimum
Block Program Data
Parameters in Commands
Turn off the display updates
Disable auto alignment
Disable the IF/Video/Sweep output ports
Improving Measurement Speed
Minimize the number of Gpib transactions
Select phase noise performance
Use binary data format instead of Ascii
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
Gpib Instrument Nomenclature
Gpib Command Statements
Overview of Gpib Option A4H
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
Equipment
Printer Setup and Operation
Interconnection and Setup
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
Standard Event Status Register
Service Request Enable Register
Service request enable register presets to zeros
Standard Event Status Register Diagram
Standard event status register contains the following bits
STATusOPERation Register
Standard Event Status Event Enable Register
Standard Event Status Event Enable Register
Status Operation Register Diagram
Always Zero
STATusQUEStionable Registers
STATusOPERation Condition and Event Enable Registers
STATusOPERationEVENt? command
STATusQUEStionableEVENt?
STATusQUEStionableNTRansition num negative transition or
STATusQUEStionablePTRansition num positive transition where
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
#include visa.h
Example Program
Including the Visa Declarations File
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
Recall
Operation Complete
Query Instrument Options
Reset
Service Request Enable
Save
Read Status Byte Query
Wait-to-Continue
Trigger
Self Test Query
ABORt
ABORt Subsystem
Abort
CALCulate Subsystem
NdBpoints
NdBresults
CALCulateBWIDthBANDwidthRESult?
Test Current Trace Data Against all Limit Lines
NdBstate
Calculate Correction at Frequency
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
CALCulateEMISLIStSELect FIRStLASTNEXTPREVious integer
Position Cursor to Signal List
Specify Sort Key
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
Example CALCLLIN1DATA 1000000000,-20,0,200000000,-30,1
Control Limit Line Frequency Interpolation
Define Limit Line Values
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 Next Peak Maximum Search
Marker Peak Maximum Search
Marker Peak Maximum Left 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?
Delta Pair Markers Start Frequency X Position
Span Markers Center Frequency X Position
Span Markers Span X Position
Delta Pair Markers Stop Frequency X Position
Marker X-Axis Readout
Span Markers Span X Value
CALCulateMARKer1234XSPAN param CALCulateMARKer1234XSPAN?
Marker Read Y Value
Delta Pair Markers Start Frequency X Value
Delta Pair Markers Stop Frequency X Value
CALCulateNTDataSTATe OFFON01 CALCulateNTDataSTATe?
CALCulateNTData Subsection
Normalize the Trace Data
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 Allnone COUPle?
COUPle the Function to Other Settings
COUPle Subsystem
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 Position
See command CALCulateNTDataSTATe OFFON01
Normalized Reference Level
Trace Y-Axis Reference Level
Trace Y-Axis Amplitude Scaling
Trace Y-Axis Frequency Scaling
Relampl
Trace Y-Axis Reference Level Offset
DISPlayWINDowTRACeYSCALeRLEVelOFFSet
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
HCOPyREPOrtTYPE SCREenREPort
Printed Page Size
Select Report Type
INITiateCONTinuous OFFON01 INITiateCONTinuous?
INITiate Subsystem
Continuous or Single Measurements
Pause the Measurement
Take New Data Acquisitions
Abort 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
CONFiguremeasurement
MEASure Group of Commands
Configure Commands
Fetch Commands
Measure Commands
FETChmeasurementn?
MEASuremeasurementn?
READmeasurementn?
Read Commands
Measurement Group of Commands
Get Measurement Results
Read Command
Configure for Measuring Frequency
Setting Max/Min On or Off
Measure at Marker
Measure at Marker and Add to List
Max/Min View -Max
Measure Peaks
Remeasure Current Signal
CONFigureEMIPEAKs MEASureEMIPEAKs?
Copy a File
MMEMory Subsystem
Catalog the Selected Memory Location
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
Mmemstortrac TRACE3,Cmytrace.trc
Store a Trace in a File
MMEMorySTOReTRACe label,filename
OUTPutSTATe OFFON01 OUTPutSTATe?
OUTPut Subsystem
Turn Output On/Off
SENSe Subsystem
SENSeAVERage Subsection
Clear the Current Average
Set the Average Count
Turn Averaging On/Off
Auto Rules for Average Type
Turn Automatic Averaging On/Off
SENSeAVERageTYPEAUTO OFFON01 SENSeAVERageTYPEAUTO?
SENSeAVERageTYPE?
Type of Averaging for Measurements
SENSeAVERageTYPE VIDeoRMS
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 View
Demodulation Control
Demod Time
SENSeDETectorAUTO OFFON01 SENSeDETectorAUTO?
SENSeDETector Subsection
Automatic Detection Type Selected
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
SENSeEMIMEASureRANGeDWELltime SENSeEMIMEASureRANGeDWELl?
Setting the Dwell Time for Range
Auto Measure Margin On or Off
Center Frequency Step Size Automatic
SENSeFREQuency Subsection
Center Frequency
SENSeFREQuencySPAN freq SENSeFREQuencySPAN?
Center Frequency Step Size
Frequency Span
Start Frequency
Full Frequency Span
Last Frequency Span
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
Set Frequency Domain Scale Type
SENSeSWEep Subsection
Sweep Points
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 Attenuation
Sets the Output Power Offset Correction
SOURce Subsystem
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 Step Size
Set the Output Power at the Start of the Sweep
Set the Output Power to Step Automatically
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 Positive Transition
Questionable Integrity Uncalibrated Enable
Questionable Integrity Negative 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 Positive Transition
Questionable Power Negative Transition
Questionable Power Positive Transition
Gpib Address
Serial Port DTR Setup
SYSTem Subsystem
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
Preset Type
Preset
Persistent State Reset
Save User Preset
Speaker Control
Set Time
Scpi Version Query
TRACe Subsystem
Copy Trace
Transfer Trace Data
TRACeCOPY sourcetrace,desttrace
DataLF-EOI
Commands Mmemstortrac and Mmemloadtrac are
Tracdata TRACE1,#41604binary trace
Query the Signal Peaks
Mean Trace Data
Query Number of Peaks Found
Peak Sorting
Smoothing With 401 Trace Points and 31 Smoothing Points
TRACeMATHSMOothPOINts integer TRACeMATHSMOothPOINts?
Number of Points for Smoothing
Trace Math Subtract
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
Unit Subsystem
Select Power Units of Measure
UNITPOWer Dbmdbmvdbuvdbuavwa UNITPOWer?
Agilent 8590/EMC Analyzers
Guide here, Agilent Part Number E7401-90035
Index
342
Index 343
344
Index 345
346
Index 347
348
Index 349