Download Print this page

Using Marker Peak Search And Peak Excursion - Agilent Technologies EMC Series Programmer's Manual

Spectrum analyzers 9 khz-1.5/3.0/6.7/13.2/26.5 ghz
Hide thumbs Also See for EMC Series:

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 example is for the E44xxB ESA Spectrum Analyzers
/* and E740xA EMC Analyzers.
/*
/* This C programming example does the following.
/* The SCPI instrument commands used are given as
/* reference.
/*
/* - Opens a GPIB session at address 18
/* - Clears the Analyzer
/*
*CLS
/* - Resets the Analyzer
/*
*RST
/* - Sets the analyzer center frequency, span and units
/*
SENS:FREQ:CENT freq
/*
SENS:FREQ:SPAN freq
/*
UNIT:POW DBM
/* - 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 and wait for sweep to complete
/*
INIT:IMM;*WAI
/* - 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>
104
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
Chapter 3

Advertisement

loading

This manual is also suitable for:

E7404aE7402aE7405aE7401aE7403a