HP ESA-E Series Programmer's Manual page 82

Esa spectrum analyzers
Table of Contents

Advertisement

Programming Examples
Using Marker Delta Mode and Marker Minimum Search
/*Set the analyzer to active delta marker mode*/
viPrintf(viESA,"CALC:MARK:MODE DELT; \n");
/*Trigger a sweep*/
viPrintf(viESA,"INIT:IMM; \n");
/*Check for operation complete*/
viQueryf(viESA, "*OPC?\n", "%d", &lOpc);
if (!lOpc)
{
printf("Program Abort! error ocurred: last command was
not completed!\n");
exit(0);
}
/*Set the marker to minimum amplitude*/
viPrintf(viESA,"CALC:MARK:MIN; \n");
/*Query and read the marker amplitude*/
viPrintf(viESA,"CALC:MARK:Y?; \n");
viScanf(viESA,"%lf",&dMarkerAmplitude);
/*Print the marker amplitude*/
printf("RESULT:Marker Amplitude = %lf
dBm\n",dMarkerAmplitude);
/*Close the session*/
viClose(viESA);
viClose(defaultRM);
}
3-18
Chapter 3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents