EasyManuals Logo

Agilent Technologies E7401A Programmer's Guide

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
Page #184 background imageLoading...
Page #184 background image
184 Chapter 3
Programming Examples
Making Faster Measurements (multiple measurements)
printf("Could not open a session to GPIB device at address 18!\n");
exit(0);
}
/*Clear the Instrument */
viClear(viESA);
/* go to known instrument state with cleared status byte */
viPrintf(viESA, ":SYST:PRES:TYPE FACT;*RST\n");
/* measure, transfer and calculate power average of multiple traces */
average();
/* convert average power array back to integer array */
for (iLoop = 0; iLoop < iNumPoints; iLoop++) {
dPower = 10.0 * log10( dPwrAvgArray[iLoop]);
iAvgArray[iLoop] = (int) (1000.0 * dPower);
}
/* build ’TRAC:DATA TRACE2,#nyyy’ header and write the result to Trace 2 */
sprintf(cCommand,":TRAC:DATA TRACE2,#%i%i", HeaderLength(iArrayLength)-2,
iArrayLength);
write_binary_trace(cCommand, iAvgArray);
/* enable the trace, local display and return to continuous sweep */
viPrintf(viESA,":TRACE2:MODE VIEW;:DISP:ENAB ON;:INIT:CONT ON\n");
/* Close session */
viClose(viESA);
viClose(defaultRM);
} /***************************** End of Main *******************************/

Table of Contents

Other manuals for Agilent Technologies E7401A

Questions and Answers:

Question and Answer IconNeed help?

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

Agilent Technologies E7401A Specifications

General IconGeneral
BrandAgilent Technologies
ModelE7401A
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals