Specifications

Contents
7
Table of Contents
AM and FM Demodulation Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Stimulus Response Measurement Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
16.ESA/PSA Programming Examples
Examples Included in this Chapter: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Finding Additional Examples and More Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
Programming Examples Information and Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . 166
Programming in C Using the VTL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Using C to Make a Power Suite ACPR Measurement on a cdmaOne Signal . . . . . . . . . . 176
Using C to Serial Poll the Analyzer to Determine when an Auto-alignment is Complete . 179
Using C and Service Request (SRQ) to Determine When a Measurement is Complete . . 182
Using Visual Basic® 6 to Capture a Screen Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
Using Visual Basic® 6 to Transfer Binary Trace Data . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Using Agilent VEE to Transfer Trace Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
17.ESA Programming Examples
Examples Included in this Chapter: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
Programming Examples System Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
Using C with Marker Peak Search and Peak Excursion Measurement Routines . . . . . . . 202
Using C for Marker Delta Mode and Marker Minimum Search Functions . . . . . . . . . . . . 206
Using C to Perform Internal Self-Alignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
Using C to Read Trace Data in an ASCII Format (over GPIB) . . . . . . . . . . . . . . . . . . . . . 214
Using C to Read Trace Data in a 32-Bit Real Format (over GPIB) . . . . . . . . . . . . . . . . . . 218
Using C to Read Trace Data in an ASCII Format (over RS-232) . . . . . . . . . . . . . . . . . . . 223
Using C to Read Trace Data in a 32-bit Real Format (over RS-232) . . . . . . . . . . . . . . . . . 228
Using C to Add Limit Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
Using C to Measure Noise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
Using C to Enter Amplitude Correction Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
Using C to Determine if an Error has Occurred . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
Using C to Measure Harmonic Distortion (over GPIB) . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
Using C to Measure Harmonic Distortion (over RS-232) . . . . . . . . . . . . . . . . . . . . . . . . . 261
Using C to Make Faster Power Averaging Measurements . . . . . . . . . . . . . . . . . . . . . . . . . 269
18.PSA Programming Examples
Examples Included in this Chapter: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
Programming Examples Information and Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . 279
Using C with Marker Peak Search and Peak Excursion Measurement Routines . . . . . . . . 280
Using C for Saving and Recalling Instrument State Data . . . . . . . . . . . . . . . . . . . . . . . . . 283
Using C to Save Binary Trace Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
Using C to Make a Power Calibration Measurement for a GSM Mobile Handset . . . . . . 291
Using C with the CALCulate:DATA:COMPress? RMS Command . . . . . . . . . . . . . . . . . 297
Using C Over Socket LAN (UNIX) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303