Agilent Technologies N9344C Wartungshandbuch Seite 51

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 224
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 50
Programming Example 4
Programmer’s Guide 43
/*Set the peak excursion*/
viPrintf(viN9342C,"CALC:MARK:PEAK:EXC %1fDB \n",fPeakExcursion);
/*Set the peak thresold */
viPrintf(viN9342C,"CALC:MARK:PEAK:THR -90 \n");
/*Trigger a sweep and wait for completion*/
viPrintf(viN9342C,"INIT:IMM \n");
/*Set the marker to the maximum peak*/
viPrintf(viN9342C,"CALC:MARK:MAX \n");
/*Query and read the marker frequency*/
viQueryf(viN9342C,"CALC:MARK:X? \n","%lf",&dMarkerFreq);
printf("\n\t RESULT: Marker Frequency is: %lf MHZ \n\
n",dMarkerFreq/10e5);
/*Query and read the marker amplitude*/
viQueryf(viN9342C,"CALC:MARK:Y?\n","%lf",&dMarkerAmpl);
printf("\t RESULT: Marker Amplitude is: %lf dBm \n\n",dMarkerAmpl);
/*Close the session*/
viClose(viN9342C);
viClose(defaultRM);
}
Seitenansicht 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 223 224

Kommentare zu diesen Handbüchern

Keine Kommentare