Agilent Technologies E8462A Instrukcja Użytkownika Strona 36

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 156
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 35
34 Configuring the Agilent E8462A Multiplexer
/* Query State of Channel 002 */
errStatus=viQueryf(E8462A,”ROUT:CLOS? (@10002)\n”,”%t”,ch_state);
if (VI_SUCCESS > errStatus) {
printf(“ERROR: viQueryf() returned 0x%x\n”,errStatus);
return errStatus;}
printf(“Channel State is: %s\n”,ch_state);
/* Open Channel 002 */
errStatus = viPrintf(E8462A, “OPEN (@10002)\n”);
if(VI_SUCCESS > errStatus){
printf(“ERROR: viPrintf() returned 0x%x\n”,errStatus);
return errStatus;}
/* Close the Module Instrument Session */
errStatus = viClose (E8462A);
if (VI_SUCCESS > errStatus) {
printf(“ERROR: viClose() returned 0x%x\n”,errStatus);
return 0;}
/* Close the Resource Manager Session */
errStatus = viClose (viRM);
if (VI_SUCCESS > errStatus) {
printf(“ERROR: viClose() returned 0x%x\n”,errStatus);
return 0;}
return VI_SUCCESS;
}
Przeglądanie stron 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 155 156

Komentarze do niniejszej Instrukcji

Brak uwag