Agilent Technologies N9344C Manual de servicio Pagina 55

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 224
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 54
Programming Example 4
Programmer’s Guide 47
/*Set the analyzer to the values given by the user*/
//viPrintf(viN9342C,"SENS:FREQ:STAR %lf
//MHZ;:SENS:FREQ:STOP %lf MHZ\n",dStartFreq,dStopFreq);
viPrintf(viN9342C,":SENS:FREQ:STAR %lf MHz\n",dStart-
Freq);
viPrintf(viN9342C,":SENS:FREQ:STOP %lf MHZ\n",dStopFreq);
/*Trigger a sweep, delay for completion*/
viPrintf(viN9342C,"INIT:IMM\n");
//delay(1);
/*Set the marker to the maximum peak*/
viPrintf(viN9342C,"CALC:MARK:MAX\n");
/*Set the analyzer to activate delta marker mode*/
viPrintf(viN9342C,"CALC:MARK:MODE DELT\n");
/*Trigger a sweep, delay for completion*
viPrintf(viN9342C,"INIT:IMM\n");
Sleep(1);
/*Set the marker to minimum amplitude Search mode*/
viPrintf(viN9342C,"CALC:MARK:PEAK:SEAR:MODE MIN\n");
/*Set the marker to minimum amplitude*/
viPrintf(viN9342C,"CALC:MARK:MAX\n");
/*Query and read the marker amplitude*/
viQueryf(viN9342C,"CALC:MARK:Y?\n","%lf",&dMarkerAmpli-
tude);
/*print the marker amplitude*/
printf("\n\n\tRESULT: Marker Amplitude Delta =%lf dB\n\
n",dMarkerAmplitude);
/*Close the session*/
viClose(viN9342C);
Vista de pagina 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 223 224

Comentarios a estos manuales

Sin comentarios