Programming Examples
Using Marker Delta Mode and Marker Minimum Search
Using Marker Delta Mode and Marker Minimum
Search
/************************************************************/
/* Using Marker Delta Mode and Marker Minimum Search
/*
/* 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
/* - Resets the Analyzer
/*
*RST
/* - Set the input port to the 50 MHz amplitude reference
/*
CAL:SOUR:STAT ON
/* - Set the analyzer to single sweep mode
/*
INIT:CONT 0
/* - Prompts the user for the start and stop frequencies
/* - Sets the start and stop frequencies
/*
SENS:FREQ:START freq
/*
SENS:FREQ:STOP freq
/* - Trigger a sweep and wait for sweep completion
/*
INIT:IMM;*WAI
/* - Set the marker to the maximum peak
/*
CALC:MARK:MAX
/* - Set the analyzer to activate the delta marker
/*
CALC:MARK:MODE DELT
/* - Trigger a sweep and wait for sweep completion
/*
INIT:IMM;*WAI
/* - Set the marker to the minimum amplitude mode
/*
CALC:MARK:MIN
/* - Query and read the marker amplitude
/*
CALC:MARK:Y?
/* - Close the session
/************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <conio.h>
108
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
Chapter 3