Specifications

200 Chapter 17
ESA Programming Examples
Examples Included in this Chapter:
ESA Programming Examples
Examples Included in this Chapter:
This chapter includes C programming examples of how to program the ESA series
using SCPI commands. Twelve examples are written for ESA analyzers with GPIB
interface (Option A4H). Three examples are written for ESA analyzers with an
RS-232 interface (Option 1AX). These examples do not apply to analyzers that
have Option 290 (8590 Series Programming Code Compatibility).
Using C with Marker Peak Search and Peak Excursion Measurement
Routines on page 202
Using C for Marker Delta Mode and Marker Minimum Search Functions on
page 206
Using C to Perform Internal Self-Alignment on page 210
Using C to Read Trace Data in an ASCII Format (over GPIB) on page 214
Using C to Read Trace Data in a 32-Bit Real Format (over GPIB) on page
218
Using C to Read Trace Data in an ASCII Format (over RS-232) on page 223
Using C to Read Trace Data in a 32-bit Real Format (over RS-232) on page
228
Using C to Add Limit Lines on page 233
Using C to Measure Noise on page 239
Using C to Enter Amplitude Correction Data on page 243
Using C to Determine if an Error has Occurred on page 247
Using C to Measure Harmonic Distortion (over GPIB) on page 253
Using C to Measure Harmonic Distortion (over RS-232) on page 261
Using C to Make Faster Power Averaging Measurements on page 269