Programming Examples
Types of Examples
Types of Examples
This section includes examples of how to program the analyzer using
the analyzer SCPI programming commands. The examples are written
for use on a PC computer having HP-IB and RS-232 I/O. They are
written in the C programming language. The VISA transition library
should be installed and the card configured.
The programming examples included in this chapter are:
•
"Using Marker Peak Search and Peak Excursion"
•
"Using Marker Delta Mode and Marker Minimum Search"
•
"Performing Internal Self-alignment"
•
"Reading Trace Data using ASCII Format (HP-IB)"
•
"Reading Trace Data Using 32-bit Real Format (HP-IB)"
•
"Reading Trace Data Using ASCII Format (RS-232)"
•
"Reading Trace Data Using 32-bit Real Format (RS-232)"
•
"Creating a Limit Line"
•
"Measuring Noise"
•
"Entering Amplitude Correction Data"
•
"Status Register–Determine When a Measurement is Done"
•
"Determine if an Error has Occurred"
•
"Measuring Harmonic Distortion (HP-IB)"
•
"Measuring Harmonic Distortion (RS-232)"
3-2
Chapter 3