EasyManua.ls Logo

HP ESA-E Series - Page 78

HP ESA-E Series
398 pages
Print Icon
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...
3-14 Chapter3
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);
}

Table of Contents

Related product manuals