Agilent Technologies N9344C Instrukcja Obsługi Strona 54

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 224
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 53
46 Programmer’s Guide
4 Programming Example
{
/* Open an USB session*/
viStatus=viOpenDefaultRM(&defaultRM);
viStatus=viO-
pen(defaultRM,"USB0::2391::8472::9876543210::0::INSTR",VI_NULL,V
I_NULL,&viN9342C);
if(viStatus)
printf("Could not open a session to USB device!\n");
exit(0);
}
/*Clear the instrument*/
viClear(viN9342C);
/*Reset the instrument*/
viPrintf(viN9342C,"*RST\n");
/*Display the program heading */
printf("\n\t\t Marker Delta Program \n\n" );
/*Check for the instrument model number and route the 50MHz
signal accordingly*/
Route50MHzSignal();
/*Set the analyzer to single sweep mode*/
viPrintf(viN9342C,"INIT:CONT 0\n");
/*Prompt the user for the start frequency*/
printf("\t Enter the Start frequency in MHz ");
/*The user enters the start frequency*/
scanf("%lf",&dStartFreq);
/*Prompt the user for the stop frequency*/
printf("\t Enter the Stop frequency in MHz ");
/*The user enters the stop frequency*/
scanf("%lf",&dStopFreq);
Przeglądanie stron 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 223 224

Komentarze do niniejszej Instrukcji

Brak uwag