HP ESA-E Series Programmer's Manual page 78

Esa spectrum analyzers
Table of Contents

Advertisement

Programming Examples
Using Marker Peak Search and Peak Excursion
/*Set the marker to the maximum peak*/
viPrintf(viESA,"CALC:MARK:MAX \n");
/*Query and read the marker frequency*/
viPrintf(viESA,"CALC:MARK:X? \n");
viScanf(viESA,"%lf",&dMarkerFreq);
printf("RESULT: Marker Frequency is: %lf MHz
\n",dMarkerFreq/10e5);
/*Query and read the marker amplitude*/
viPrintf(viESA,"CALC:MARK:Y?\n");
viScanf(viESA,"%lf",&dMarkerAmpl);
printf("RESULT: Marker Amplitude is: %lf dBm
\n",dMarkerAmpl);
/*Close the session*/
viClose(viESA);
viClose(defaultRM);
}
3-14
Chapter 3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents