Example; Measuring Noise - HP ESA-E Series Programmer's Manual

Esa spectrum analyzers
Table of Contents

Advertisement

Programming Examples

Measuring Noise

Measuring Noise
This C programming example does the following:
• Open an HP-IB session at address 18.
• Clear the analyzer.
• Reset the analyzer.
• Set the analyzer center frequency to 50 MHz.
• Set the analyzer span to 10 MHz.
• Set the input port to the 50 MHz amplitude reference.
• Set the analyzer to single sweep mode.
• Trigger a sweep.
• Check for operation complete.
• Set the marker to the maximum peak.
• Check for operation complete.
• Set the analyzer to activate delta marker mode.
• Set the marker delta frequency to 2 MHz. This places the active
marker two divisions to the right of the input signal.
• Activate the noise marker function.
• Trigger a sweep.
• Check for operation complete.
• Report the marker delta amplitude as the carrier-to-noise ratio in
dBc/Hz.
• Query and read the marker delta amplitude from the analyzer.
• Close the session.

Example:

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <conio.h>
#include <ctype.h>
#include <string.h>
#include "visa.h"
#define hpESA_IDN_E4401B
#define hpESA_IDN_E4411B
3-46
"Hewlett-Packard, E4401B"
"Hewlett-Packard, E4411B"
Chapter 3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents