Using Marker Delta Mode And Marker Minimum Search 3-1 - 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 Delta Mode and Marker Minimum Searc h
Using Marker Delta Mode and Marke r
Minimum Search
/************************************************************ /
/*
Using Marker Delta Mode and Marker Minimum Search
* /
/ *
/* This C programming example does the following .
* /
/*
The SCPI instrument commands used are given a s
/* reference .
* /
/*
* /
/* -
Opens an HP-IB session at address 18
* /
/* - Clears the Analyzer
* /
/* - Resets the Analyzer
* /
/*
*HS T
/* - 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
* /
/*
INIT :IMM
* /
/* - Check for operation complete
* /
/*
*OPC?
* /
/* -
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
* /
/*
INIT :IMM
* /
/* - Check for operation complete
* /
/*
*OPC?
* /
/* -
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>
3-16
Chapter 3

Advertisement

Table of Contents
loading

Table of Contents