EasyManuals Logo

Agilent Technologies EMC Series Programmer's Guide

Agilent Technologies EMC Series
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
Page #125 background imageLoading...
Page #125 background image
Chapter 3 125
Programming Examples
Reading Trace Data Using ASCII Format (RS-232)
Reading Trace Data Using ASCII Format (RS-232)
/************************************************************/
/* Reading Trace Data using ASCII Format (RS-232) */
/* */
/* 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 an RS-232 session at COM1/COM2 */
/* - 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? */
/* - 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 */
/* - Trigger a sweep */
/* INIT:IMM */
/* - Check for operation complete */
/* *OPC? */
/* - Specify dBm Unit */
/* UNIT:POW DBM */
/* - Set the analyzer trace data ASCII */
/* FORM:DATA: ASC */
/* - Trigger a sweep */
/* INIT:IMM */
/* - Check for operation complete */
/* *OPC? */
/* - 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 EMC Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies EMC Series and is the answer not in the manual?

Agilent Technologies EMC Series Specifications

General IconGeneral
BrandAgilent Technologies
ModelEMC Series
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals