Agilent-technologies N5183A MXG Uživatelský manuál Strana 103

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 366
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 102
Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide 93
Programming Examples
GPIB Programming Interface Examples
printf("\n");
printf("Press Enter when ready\n");
printf("\n");
getch(); // Waits for keyboard user input
viPrintf(vi, "STAT:QUES:MOD:ENAB 16\n"); // Enables the Data Questionable
// Modulation Condition Register
// bits '0','1','2','3' and '4'
viPrintf(vi, "STAT:QUES:MOD:COND?\n"); // Querys the register for any
// set bits
viScanf(vi, "%s", rdBuffer); // Reads the decimal sum of the
// set bits
num=(int (rdBuffer[1]) -('0')); // Converts string data to numeric
switch (num) // Based on the decimal value
{
case 1:
printf("Signal Generator Modulation 1 Undermod\n");
printf("\n");
break;
case 2:
printf("Signal Generator Modulation 1 Overmod\n");
printf("\n");
break;
case 4:
printf("Signal Generator Modulation 2 Undermod\n");
printf("\n");
break;
case 8:
printf("Signal Generator Modulation 2 Overmod\n");
printf("\n");
break;
case 16:
printf("Signal Generator Modulation Uncalibrated\n");
printf("\n");
break;
default:
printf("No Problems with Modulation\n");
printf("\n");
}
// Close the sessions
viClose(vi);
viClose(defaultRM);
Zobrazit stránku 102
1 2 ... 98 99 100 101 102 103 104 105 106 107 108 ... 365 366

Komentáře k této Příručce

Žádné komentáře