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
Example TRIGgerSEQuenceVIDeoLEVel
Command Notation Syntax
Command TRIGGSequenceVideoLevel 2.5V is not valid because
Parameters indicates
Special Characters in Commands
Variable Parameters
Parameters in Commands
Example query SENSEFREQuencyCENTer? MAXimum
Block Program Data
Parameters in Commands
Disable auto alignment
Turn off the display updates
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
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
Gpib Instrument Nomenclature
Gpib Command Statements
Overview of Gpib Option A4H
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
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
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
Standard Event Status Register
Service Request Enable Register
Service request enable register presets to zeros
Standard event status register contains the following bits
Standard Event Status Register Diagram
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
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
#include visa.h
Example Program
Including the Visa Declarations File
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
Recall
Operation Complete
Query Instrument Options
Service Request Enable
Reset
Save
Read Status Byte Query
Wait-to-Continue
Trigger
Self Test Query
ABORt
ABORt Subsystem
Abort
NdBpoints
CALCulate Subsystem
NdBresults
CALCulateBWIDthBANDwidthRESult?
Test Current Trace Data Against all Limit Lines
NdBstate
Calculate Correction at Frequency
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
CALCulateEMISLIStSELect FIRStLASTNEXTPREVious integer
Position Cursor to Signal List
Specify Sort Key
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
Example CALCLLIN1DATA 1000000000,-20,0,200000000,-30,1
Control Limit Line Frequency Interpolation
Define Limit Line Values
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 Next Peak Maximum Search
Marker Peak Maximum Search
Marker Peak Maximum Left 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?
Delta Pair Markers Start Frequency X Position
Span Markers Center Frequency X Position
Span Markers Span X Position
Marker X-Axis Readout
Delta Pair Markers Stop Frequency X Position
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
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 Allnone COUPle?
COUPle the Function to Other Settings
COUPle Subsystem
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 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
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
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
Resume the Measurement
Restart the Measurement
INITiateRESTart
INITiateRESume
Input Port Coupling
INPut Subsystem
INPutCOUPling Acdc INPutCOUPling?
Selecting Input Coupling
INPutPROTectionCLEar
Clear the Input Overload
CONFiguremeasurement
MEASure Group of Commands
Configure Commands
Measure Commands
Fetch Commands
FETChmeasurementn?
MEASuremeasurementn?
READmeasurementn?
Read Commands
Measurement Group of Commands
Get Measurement Results
Read Command
Configure for Measuring Frequency
Measure at Marker
Setting Max/Min On or Off
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
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
Mmemstortrac TRACE3,Cmytrace.trc
Store a Trace in a File
MMEMorySTOReTRACe label,filename
OUTPutSTATe OFFON01 OUTPutSTATe?
OUTPut Subsystem
Turn Output On/Off
SENSe Subsystem
Clear the Current Average
SENSeAVERage Subsection
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 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 View
Demodulation Control
Demod Time
SENSeDETectorAUTO OFFON01 SENSeDETectorAUTO?
SENSeDETector Subsection
Automatic Detection Type Selected
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
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
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
Set Frequency Domain Scale Type
SENSeSWEep Subsection
Sweep Points
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 Attenuation
Sets the Output Power Offset Correction
SOURce Subsystem
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 Step Size
Set the Output Power at the Start of the Sweep
Set the Output Power to Step Automatically
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 Positive Transition
Questionable Integrity Uncalibrated Enable
Questionable Integrity Negative 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 Positive Transition
Questionable Power Negative Transition
Questionable Power Positive Transition
Gpib Address
Serial Port DTR Setup
SYSTem Subsystem
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
Preset Type
Preset
Persistent State Reset
Speaker Control
Save User Preset
Set Time
Scpi Version Query
Copy Trace
TRACe Subsystem
Transfer Trace Data
TRACeCOPY sourcetrace,desttrace
DataLF-EOI
Commands Mmemstortrac and Mmemloadtrac are
Tracdata TRACE1,#41604binary trace
Mean Trace Data
Query the Signal Peaks
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
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
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