
Chapter 3
181
Programming Examples
Making Faster Measurements (multiple measurements)
viPrintf(viESA,":DISP:WIND:TRAC:Y:RLEV -25 DBM\n");
viPrintf(viESA,"CAL:SOUR:STAT ON \n");
}
else
{
/* For the analyzers having frequency limits >= 3GHz, prompt the user*/
/* to connect the amplitude reference output to the input*/
printf ("Connect AMPTD REF OUT to the INPUT \n");
printf ("......Press Return to continue \n");
scanf( "%c",&cEnter);
/*Externally route the 50MHz Signal*/
viPrintf(viESA, ":DISP:WIND:TRAC:Y:RLEV -20 DBM\n");
viPrintf(viESA,"CAL:SOUR:STAT ON \n");
}
/* Single sweep mode */
viPrintf(viESA, ":INIT:CONT OFF\n");
/* Turn off the local display to maximize measurement rate */
if(!DISPLAY) {
viPrintf(viESA, ":DISP:ENAB OFF\n");
}
/* transfer data in definite length,32 bit integer blocks. Select */
/* machine units (milli-dBm) to maximize measurement rate */
viPrintf(viESA, ":FORM:DATA INT,32\n" );
/* select the byte order; low-byte first for Intel platforms */
/* To further increase measurement rate,:FORM:BORD NORM could */
/* be used instead. The byte ordering would then need to be */
/* done within this program. */
viPrintf(viESA, ":FORM:BORD SWAP\n");
/* pre-calculate amount of data to be transferred per measurement */
iTermLength = 1;
iArrayLength = iNumPoints * DATA_LENGTH;
iHeaderLength = HeaderLength(iArrayLength);
iBlockSize = iHeader iArray iTermLength;
}
/**************** Write binary trace data to ESA *******************/
void write_binary_trace(char *cScpiCommand, int *ipTraceData) {
Содержание E7401A
Страница 36: ...36 Commands Alphabetical Listing ...
Страница 92: ...92 Chapter 2 Status Registers Use Status Registers to Determine the State of Analyzer Events and Conditions ...
Страница 185: ...185 4 Programming Command Cross References ...
Страница 283: ...Chapter 5 283 Language Reference SENSe DETector Subsection Figure 5 4 Auto Rules of Detector Selection ...
Страница 339: ...339 6 Agilent 8590 EMC Analyzers Programming Conversion Guide ...