Agilent Technologies E4406A VSA Series Programmer's Manual page 129

Transmitter tester
Hide thumbs Also See for E4406A VSA Series:
Table of Contents

Advertisement

viPrintf(viVSA, "CALC:SPEC:MARK1:MAX\n");
/*query the 50 MHz signal amplitude*/
viPrintf(viVSA, "CALC:SPEC:MARK1:Y?\n");
/*get the 50 MHz signal amplitude*/
viScanf (viVSA,"%lf",&dPeakPower);
/*assign marker 2 to the average trace of the spectrum*/
viPrintf(viVSA, "CALC:SPEC:MARK2:TRAC ASP\n");
/*assign the marker function NOISE to marker 2 */
viPrintf(viVSA, "CALC:SPEC:MARK2:FUNC NOISE\n");
/*position marker 2 on the noise floor*/
viPrintf(viVSA, "CALC:SPEC:MARK2:X 50.2E6\n");
/*query NOISE marker*/
viPrintf(viVSA, "CALC:SPEC:MARK2:FUNC:RES?\n");
/*get the the NOISE marker reading*/
viPrintf (viVSA,"%lf",&dNoiseMarker);
/*put the instrument back to continuous mode*/
viScanf (viVSA,"INIT:CONT 1\n");
/*calculate the difference between the marker peak and
the NOISE marker*/
dResult = fabs(dNoiseMarker - dPeakPower);
/*print result to the standard output*/
printf("The Peak Marker measured = %.2lf
dBm\n",dPeakPower);
printf("The Noise Marker at 50.2 MHz measured = %.2lf
dBm/Hz\n",dNoiseMarker);
printf("The difference between the Peak and the Noise
Floor = %.2lf dBc/Hz\n\n",dResult);
/* close session */
viClose (viVSA);
viClose (defaultRM);
}
Chapter 3
Programming Examples
Using Markers
129

Advertisement

Table of Contents
loading

Table of Contents