EasyManua.ls Logo

Agilent Technologies E7401A

Agilent Technologies E7401A
349 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
120 Chapter 3
Programming Examples
Reading Trace Data Using 32-bit Real Format (GPIB)
Reading Trace Data Using 32-bit
Real Format (GPIB)
/************************************************************/
/* Reading Trace Data using 32-bit Real Format (GPIB) */
/* */
/* 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 */
/* - Query for the number of sweep points (for firmware */
/* revisions A.04.00 and later). Default is 401. */
/* SENS:SWE:POIN? */
/* - Calculate the number of bytes in the header */
/* - Set the analyzer to single sweep mode */
/* INIT:CONT 0 */
/* - Sets the analyzer center frequency and span to 50 MHz */
/* SENS:FREQ:CENT 50 MHZ */
/* SENS:FREQ:SPAN 50 MHZ */
/* - Specify 10 dB per division for the amplitude scale in */
/* and dBm Units */
/* DISP:WIND:TRAC:Y:SCAL:PDIV 10 dB */
/* UNIT:POW DBM */
/* - Set the analyzer trace data to 32-bit Real */
/* FORM:DATA: REAL,32 */
/* - Set the binary order to swap */
/* FORM:BORD SWAP */
/* - Trigger a sweep and wait for sweep to complete */
/* INIT:IMM;*WAI */
/* - Calculate the number of bytes in the trace record */
/* - Query the trace data */
/* TRAC:DATA? TRACE1 */
/* - Remove the "," from the ACSII data */
/* - Save the trace data to an ASCII file */
/* - Close the session */

Table of Contents

Other manuals for Agilent Technologies E7401A

Related product manuals