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
Command Syntax Sample Valid Commands
Creating Valid Commands
Command TRIGGSequenceVideoLevel 2.5V is not valid because
Command Notation Syntax
Example TRIGgerSEQuenceVIDeoLEVel
Parameters indicates
Special Characters in Commands
Example query SENSEFREQuencyCENTer? MAXimum
Parameters in Commands
Variable Parameters
Block Program Data
Parameters in Commands
Disable auto alignment
Turn off the display updates
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
Avoid unnecessary use of *RST
Minimize DUT/instrument setup changes
Scpi Termination and Separator Syntax
Putting Multiple Commands on the Same Line
Bad Command Good Command
Overview of Gpib Option A4H
Gpib Command Statements
Gpib Instrument Nomenclature
Overview of Gpib Option A4H
Overview of RS-232 Option 1AX
Settings for the Serial Interface
Handshake and Baud Rate
Character Format Parameters
Modem Line Handshaking
Data Transfer Errors
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
Common Command Access and Control
How Do You Access the Status Registers?
Polling Method
Status Subsystem Commands
Generating a Service Request
Using the Service Request SRQ Method
Set INITiateCONTinuous off
Example of Monitoring Conditions Using the STATus Command
Details of Bits in All Registers
Setting and Querying the Status Register
Status Byte Register
Status Byte Register Diagram
Standard Event Status Summary Bit a 1 in this bit
Service Request Enable Register
Service request enable register presets to zeros
Service Request Enable Register
Standard Event Status Register
Standard event status register contains the following bits
Standard Event Status Register Diagram
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?
INTregrity Sum Reserved Always Zero
Status Questionable Register Diagram
Questionable Status Power Register Diagram
STATusQUEStionablePOWer Register
Questionable Status Event Enable Register
Questionable Status Event Enable Register
STATusQUEStionablePOWerEVENt?
Questionable Status Power Condition and Event Registers
STATusQUEStionableFREQuency Register
Questionable Status Frequency Register Diagram
That the synthesizer in the source tracking generator is
STATusQUEStionableFREQuency EVENt?
STATusQUEStionableCALibration Register
Questionable Status Calibration Register Diagram
Bit Decimal Description
Bit Decimal Description Value
STATusQUEStionableINTegrityUNCalibrated Register
Questionable Status Integrity Uncalibrated Register Diagram
Oversweep Meas Uncal a 1 in this position indicates
STATusQUEStionableINTegrityUNCalibratedCONDition?
STATusQUEStionableCALibration EVENt?
STATusQUEStionableINTegrityUNCalibratedNTRansition
STATusQUEStionableINTegrityUNCalibratedPTRansition
STATusQUEStionableINTegrity Register
Questionable Status Integrity Register Diagram
Data Uncalibrated Summary This is the summary
STATusQUEStionableINTegrityEVENt?
Chapter
Programming Examples
List of Programming Examples
Programming Examples System Requirements
Typical Example Program Contents
Programming Examples using VTL
Compiling and Linking a VTL Program
Linking to VTL Libraries
ViPrintf
Bit Applications assumes Windows 95 operating system
Bit Applications
Including the Visa Declarations File
Example Program
#include visa.h
Device Sessions
Opening a Session
Chapter 101
Interface Syntax
Addressing a Session
GPIB-VXI024
Closing a Session
Example
Using Marker Peak Search and Peak Excursion
Chapter 105
106
Chapter 107
Using Marker Delta Mode and Marker Minimum Search
Chapter 109
110
Chapter 111
E740xA EMC Analyzers
Performing Internal Self-alignment
Chapter 113
114
Chapter 115
Calsour Stat on
Reading Trace Data using Ascii Format Gpib
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
Calculate the number of bytes in the trace record
Reading Trace Data Using 32-bit Real Format RS-232
Chapter 131
132
Chapter 133
134
CALCLLINE1CONTDOM Freq CALCLLINE1TYPE UPP CALCLLINE1DISP on
Using Limit Lines
136
Chapter 137
138
Chapter 139
140
Measuring Noise
142
Chapter 143
144
Enter amplitude correction frequency/amplitude pairs
Entering Amplitude Correction Data
146
Chapter 147
148
Initimm OPC?
Status Register-Determine When a Measurement is Done
150
Chapter 151
152
Chapter 153
154
Sensfreqcent 500 MHZ Sensfreqspan 100 MHZ
Determine if an Error has Occurred
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
IDN?
Making Faster Measurements multiple measurements
178
Chapter 179
180
Chapter 181
182
Chapter 183
184
Programming Command
Bandwidth
Functional Index to Scpi Subsection
Programming Command Cross-References
188
Language Reference
Commands for Use with ANSI/IEEE Std 488.1-1987. New York, NY
Scpi Subsystem/Subsection
Scpi Sections and Subsections
192
Standard Event Status Enable
Ieee Common Commands
Calibration Query
Clear Status
Identification Query
Standard Event Status Register Query
Instrument State Query
#PQQQSYSTSET #NMMMstatedata
Query Instrument Options
Operation Complete
Recall
Service Request Enable
Reset
Save
Read Status Byte Query
Self Test Query
Trigger
Wait-to-Continue
Abort
ABORt Subsystem
ABORt
NdBpoints
CALCulate Subsystem
NdBresults
CALCulateBWIDthBANDwidthRESult?
Calculate Correction at Frequency
NdBstate
Test Current Trace Data Against all Limit Lines
CALCulateEMISLISt Subsection
Append Signal Data to List
Add Measure to List
Add Marker to List
CALCulateEMISLIStADD 1e6 or
Field Description Table
Detailed Field Descriptions
CALCulateEMISLIStCLEar ALLCURRentinteger
Clear Marks
Set Comment for Current Signal
Set Comment for Signals
Set Comment for Marked Signals
Delete Signal
Retrieve Signal as a String
Turn Signal List On or Off
Retrieve Signals in List
Mark Selected Signals
Specify Sort Key
Position Cursor to Signal List
CALCulateEMISLIStSELect FIRStLASTNEXTPREVious integer
Specify Signal List Display Parameters
Delete All Correction Sets in Memory
CALCulateLLINe Subsection
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
Connected 0 or
Fi + yi
Delete Limit Line
Merge Additional Values into the Existing Limit Line
Display the Limit Line
CALCulateLLINe12DELete
Set the Margin Size
Test the Data Against the Limit Line
Display the Limit Margin
CALCulateLLINe12FAIL?
Select the Type of Limit Line
Control Limit Line Testing
CALCulateLLINe12STATe OFFON01 CALCulateLLINe12STATe?
CALCulateLLINe12TYPE UPPerLOWer CALCulateLLINe12TYPE?
CALCulateMARKer Subsection
Frequency Counter Marker Resolution
Markers All Off on All Traces
Continuous Peaking Marker Function
Frequency Counter Marker
Frequency Counter Marker Automatic Resolution
Frequency Counter Marker Query
Marker Function
Marker Peak Maximum Left Search
Marker Peak Maximum Search
Marker Next Peak Maximum Search
Marker Peak Maximum Right Search
Marker Mode
Marker Peak Minimum Search
CALCulateMARKer1234MAXimumRIGHt
Define Peak Search
Define Peak Excursion
Peak to Peak Delta Markers
Define Peak Threshold
Set Center Frequency to the Marker Value
Set Reference Level to the Marker Value
Set Start Frequency to the Marker Value
Set Span to the Marker Value
Set Center Frequency Step Size to the Marker Value
Set Stop Frequency to the Marker Value
Marker Table On/Off
Continuous Signal Tracking Function
Marker to Trace
Marker to Trace Auto
Span Markers Center Frequency X Value
Marker 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
Marker X-Axis Readout
Delta Pair Markers Stop Frequency X Position
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?
CALibration Subsystem
Set Auto Align Mode All or Not RF
Align All Instrument Assemblies
CALibrationALL CALibrationALL?
Automatic Alignment
Return to the Default Alignment Data
Align FM Demodulation
Query the Internal or External Frequency Reference
Fine Adjust the Frequency Reference
Coarse Adjust the Frequency Reference
Select the Frequency Corrections
Align the RF Circuitry
Calibrate the Tracking Generator
Select the Source State for Calibration
CALibrationSOURceSTATe OFFON01 CALibrationSOURceSTATe?
CALibrationTG CALibrationTG?
COUPle Subsystem
COUPle the Function to Other Settings
COUPle Allnone COUPle?
Sweep points
Display Viewing Angle
DISPlay Subsystem
Date and Time Display Format
Date and Time Display
Display Annotation Title Data
DISPlayENABle OFFON01
Turn the Entire Display On/Off
Turn the Full Screen Display On/Off
Trace Graticule Display
Window Annotation
Trace X-Axis Scale Offset
Log SENSeSWEepSPACing LINearLOGarithmic
Display Line On/Off
Display Line Amplitude
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
Byte Order
FORMat Subsystem
Numeric Data format
FORMatBORDer NORMalSWAPped FORMatBORDer?
Ascii
HCOPy Subsystem
Select Report Content
Abort the Print
Printer Type
Select a Signal List to Include in a Report Delta
Select a Signal List to Include in a Report
Color Hard Copy
HCOPyIMAGeCOLorSTATe OFFON01 HCOPyIMAGeCOLorSTATe?
Form Feed the Print Item
Print a Hard Copy
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
Resume the Measurement
Restart the Measurement
INITiateRESTart
INITiateRESume
Input Port Coupling
INPut Subsystem
INPutCOUPling Acdc INPutCOUPling?
Selecting Input Coupling
INPutPROTectionCLEar
Clear the Input Overload
Configure Commands
MEASure Group of Commands
CONFiguremeasurement
Measure Commands
Fetch Commands
FETChmeasurementn?
MEASuremeasurementn?
Measurement Group of Commands
Read Commands
READmeasurementn?
Configure for Measuring Frequency
Read Command
Get Measurement Results
Measure at Marker
Setting Max/Min On or Off
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
Delete a File
Move Data to File
Load a Corrections Table from a File
Load a Limit Line from Memory to the Instrument
Load a Trace From a File to the Instrument
Load an Instrument State from a File
Make a Directory
Store Load/Save a Signal List
Store a Corrections Table to a File
Delete a Directory
MMEMoryRDIRectory dirname
MMEMorySTOReCORRection ANTennaCABLeOTHerUSER,filename
Store Measurement Results in a File
Store a Limit Line 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
Clear the Current Average
SENSeAVERage Subsection
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 Automatic
Resolution Bandwidth
Resolution Bandwidth Mode
SENSeBANDwidth Subsection
Video to Resolution Bandwidth Ratio Mode Select
Video to Resolution Bandwidth Ratio
Video Bandwidth
Video Bandwidth Automatic
VBW and RBW Ratio Auto Rules
SENSeBANDwidthTYPE IMPulseDB6DB3 SENSeBANDwidthTYPE?
Resolution Bandwidth Type
Delete All Corrections
SENSeCORRection Subsection
Perform Amplitude Correction
Set Amplitude Correction Data
SENSeCORRectionCSET1234DATAMERGe freq,relampl,freq,relampl
Delete Amplitude Correction
SENSeCORRectionCSETALLSTATe must be on for this command to
Set Amplitude Correction Frequency Interpolation
SENSeCORRectionCSET1234DELete
External Amplifier Correction
Input Impedance Correction
Type of Demodulation
SENSeDEMod Subsection
FM Deviation
Squelch
Demod Time
Demodulation Control
Demod View
Automatic Detection Type Selected
SENSeDETector Subsection
SENSeDETectorAUTO OFFON01 SENSeDETectorAUTO?
Auto Rules of Detector Selection
SENSeDETectorFUNCtion
Type of Detection
NEGativePOSitiveSAMPleAVERageRMS
SENSeDETectorFUNCtion?
Type of EMI Detector
Range Immediate
EMI View
Unrange
SENSeDETectorRANGeIMMediate
Auto Measure Average On or Off
SENSeEMI Subsection
Auto Measure Peak On or Off
Auto Measure Quasi Peak On or Off
Setting the Dwell Time for Quasi Peak
Setting the Dwell Time for 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
Stop Frequency
Frequency Synthesis Mode
SENSeFREQuencySTOP freq SENSeFREQuencySTOP?
SENSeFREQuencySYNThesis SENSeFREQuencySYNThesis?
Frequency Synthesis State
Enable/Disable QPD X10 Gain
SENSePOWer Subsection
Input Attenuation
Input Port Attenuator Auto
Input Port Maximum Mixer Power
Input Port Power Gain
SENSePOWerRFGAINSTATe OFFON01 SENSePOWerRFGAINSTATe?
SENSePOWerRFPADJust freq SENSePOWerRFPADJust?
Preselector Center
SENSePOWerRFPCENter
Sweep Points
SENSeSWEep Subsection
Set Frequency Domain Scale Type
Automatic Sweep Time
Sweep Time
SENSeSWEepTIME time SENSeSWEepTIME?
SENSeSWEepTIMEAUTO OFFON01 SENSeSWEepTIMEAUTO?
Time Gating Delay Option 1D6 Only
Sweep Time Mode
SENSeSWEepTIMEGATEDELay time SENSeSWEepTIMEGATEDELay?
Time Gate Length Option 1D6 Only
Time Gate Level Option 1D6 Only
Preset Time Gate Option 1D6 Only
Time Gate Polarity Option 1D6 Only
Control Time Gate Option 1D6 Only
SENSeSWEepTIMEGATETYPE LEVelEDGE SENSeSWEepTIMEGATETYPE?
Time Gate Trigger Type Option 1D6 Only
SOURce Subsystem
Sets the Output Power Offset Correction
Source Attenuation
SOURcePOWerATTenuationAUTO OFFON01
Sets the Output Power
SOURcePOWerATTenuationAUTO?
Automatic Source Attenuation
Set the Source Sweep Power Range
Sets the Source Output Power Mode
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 Peak
Output Power Tracking
SOURcePOWerSWEep relampl SOURcePOWerSWEep?
SOURcePOWerTRCKing integer SOURcePOWerTRCKing?
STATus Subsystem
Operation Enable
Operation Condition Query
Operation Event Query
STATusPRESet
Preset the Status Byte
Operation Negative Transition
Operation Positive Transition
STATusQUEStionable Subsection
Questionable Calibration Enable
Questionable Calibration Condition
Questionable Calibration Event Query
Questionable Calibration Positive Transition
Questionable Calibration Negative Transition
Questionable Condition
STATusQUEStionableCONDition?
STATusQUEStionableENABle integer STATusQUEStionableENABle?
Questionable Enable
Questionable Event Query
Questionable Frequency Condition
Questionable Frequency Event Query
Questionable Frequency Enable
Questionable Frequency Negative Transition
STATusQUEStionableFREQuencyEVENt?
Questionable Frequency Positive Transition
Questionable Integrity Enable
Questionable Integrity Condition
Questionable Integrity Event Query
Questionable Integrity Negative Transition
Questionable Integrity Uncalibrated Enable
Questionable Integrity Positive Transition
Questionable Integrity Uncalibrated Negative Transition
Questionable Integrity Uncalibrated Event Query
Questionable Integrity Uncalibrated Positive Transition
Integer STATusQUEStionableINTegrityUNCalibratedNTRansition?
Questionable Power Enable
Questionable Power Condition
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 Baud Rate Setup
Serial Port RTS Setup
Serial Port Transmit Pace Setup
Serial Port Receive Pace Setup
Hardware Configuration Query
Display the Hardware Configuration
Display System Configuration
System Configuration Query
Error Information Query
Set Date
SYSTemERRorVERBose OFFON01 SYSTemERRorVERBose?
Locate Scpi Command Errors
Host Identification Query
First set SYSTERRVERBose on
Delete a License Key
License Key Install Application/Option
Power On Time
Power On Elapsed Time
Power On Type
Enable IF/Video/Sweep Output Ports
Persistent State Reset
Preset
Preset Type
Speaker Control
Save User Preset
Set Time
Scpi Version Query
Copy Trace
TRACe Subsystem
Transfer Trace Data
TRACeCOPY sourcetrace,desttrace
Tracdata TRACE1,#41604binary trace
Commands Mmemstortrac and Mmemloadtrac are
DataLF-EOI
Mean Trace Data
Query the Signal Peaks
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?
Trace Math Subtract From Display Line
Select Trace Display Mode
TRACeMATHSUBTractDLINe trace
Example Tracmathsubtdlin TRACE1
External Trigger, Line Trigger Delay Enable
External Trigger, Line Trigger Delay Value
TRIGgerSEQuenceDELay delay TRIGgerSEQuenceDELay?
TRIGger Subsystem
Trigseqoffs 1.0s
Trigger Offset
Video Trigger Level Amplitude
Trigger Source
TRIGgerSEQuenceVIDeoLEVelFREQuency freq
Video Trigger Level Frequency
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