Agilent Technologies FS2010 Guida Utente Pagina 75

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 160
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 74
Programming with VISA 3
Agilent VISA User’s Guide 75
If the specified event has occurred, the event information is
retrieved and the program returns immediately. If the
specified event has not occurred, the program suspends
execution until a specified event occurs or until the specified
timeout period is reached.
Sample: Using the Queuing Method
This sample program shows one way you can use the
queuing method.
main();
ViSession vi;
ViEventType eventType;
ViEvent event;
.
.
viEnableEvent(vi, VI_EVENT_SERVICE_REQ,
VI_QUEUE, VI_NULL);
.
.
viWaitOnEvent(vi, VI_EVENT_SERVICE_REQ,
VI_TMO_INFINITE, &eventType, &event);
.
.
viClose(event);
viDisableEvent(vi, VI_EVENT_SERVICE_REQ,
VI_QUEUE);
}
Enabling Events
Before an event can be delivered, it must be enabled using
the viEnableEvent function:
viEnableEvent(vi, eventType, mechanism,
context);
These parameters are defined as follows:
Vedere la pagina 74
1 2 ... 70 71 72 73 74 75 76 77 78 79 80 ... 159 160

Commenti su questo manuale

Nessun commento