EasyManua.ls Logo

HP ESA-E Series - Example; Measuring Noise

HP ESA-E Series
398 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
3-46 Chapter3
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 "Hewlett-Packard, E4401B"
#define hpESA_IDN_E4411B "Hewlett-Packard, E4411B”

Table of Contents

Related product manuals