The Scpi Instrument Commands Used Are Given As /* Reference; Opens An Hp-Ib Session At Address 1; /* - Clears The Analyze R; Cl S - 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
Measuring Harmonic Distortion (GPIB )
Measuring Harmonic Distortion (GPIB )
/************************************************************ /
/* Measuring Harmonic Distortion (HP-IB )
/ *
/* This C programming example does the following .
/* The SCPI instrument commands used are given as
/* reference .
/*
/* - Opens an HP-IB session at address 1 8
/* - Clears the Analyze r
/*
*CL S
/* - Resets the Analyzer
/*
*RST
/* - Set the input port to the 50 MHz reference
/*
CAL :SOUR :STAT ON
/* - Set the analyzer center frequency to the fundamenta l
/*
SENS :FREQ :CENT freq
/* - Set the analyzer to 10 MHz span
/*
SENS :FREQ :SPAN 10 MHZ
/* - Set the analyzer to single sweep mode
/*
INIT :CONT 0
/* - Trigger a sweep
/*
INIT :IMM
/* - Check for operation complet e
/*
*OPC ?
/* - Perform the peak search
/*
CALC :MARK :MAX
/* - Set the marker to reference leve l
/*
CALC :MARK :SET :RLEV
/* - Trigger a sweep
/*
INIT :IMM
/* - Check for operation complet e
/*
*OPC?
/* - Perform the peak search
/*
CALC :MARK :MAX
/* - Change VISA timeout to 60 second s
/* - Activate signal trac k
/*
CALC :MARK :TRCK :STAT ON
/* - Perform narrow span and wai t
/*
SENS :FREQ :SPAN 10e4
/* - Check for operation complet e
/*
*OPC ?
/* - De-activate signal track
Chapter 3
3-69

Advertisement

Table of Contents
loading

Table of Contents