Using Marker Peak Search And Peak Excursion; Example - Agilent Technologies ESA-E Series Programmer's Manual

Esa spectrum analyzers
Hide thumbs Also See for ESA-E Series:
Table of Contents

Advertisement

Programming Examples

Using Marker Peak Search and Peak Excursion

Using Marker Peak Search and Peak
Excursion

Example:

/************************************************************/

/* Using Marker Peak Search and Peak Excursion

/*
/* This C programming example does the following.
/* The SCPI instrument commands used are given as
/* reference.
/*
/* - Opens an HP-IB session at address 18
/* - Clears the Analyzer
/*
*CLS
/* - Resets the Analyzer
/*
*RST
/* - Sets the analyzer center frequency and span
/*
SENS:FREQ:CENT freq
/*
SENS:FREQ:SPAN freq
/* - Set the input port to the 50 MHz amplitude reference
/*
CAL:SOUR:STAT ON
/* - Set the analyzer to single sweep mode
/*
INIT:CONT 0
/* - Prompt the user for peak excursion and set them
/*
CALC:MARK:PEAK:EXC dB
/* - Set the peak threshold to -90 dBm
/*
TRAC:MATH:PEAK:THR:STAT ON
/*
TRAC:MATH:PEAK:THR -90
/* - Trigger a sweep
/*
INIT:IMM
/* - Check for operation complete
/*
*OPC?
/* - Set the marker to the maximum peak
/*
CALC:MARK:MAX
/* - Query and read the marker frequency and amplitude
/*
CALC:MARK:X?
/*
CALC:MARK:Y?
/* - Close the session
/************************************************************/
#include <stdio.h>
3-12
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
Chapter 3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents