| Keysight.Visa Namespace > VisaSession Class : EnableEvent Method |
'UsageDim instance As VisaSession Dim eventType As EventType instance.EnableEvent(eventType)
Client programs should either use the event-related methods DisableEvent, DiscardEvents, EnableEvent, and VisaSession.WaitOnEvent (any overload) with the appropriate eventType, -or- the .NET events which are defined individually for each event stype in the ession class to which they apply. If a calling program uses both mechanisms at the same time, it will receive the event twice, once for each mechanism.
When an event type is enabled, events will accumulate in the event queue for that type until the calling program calls WaitOnEvent. When the session is Disposed, any undelivered events in the event queues are discarded.
Current with Keysight IO Libraries Suite 18
VisaSession Class
VisaSession Members
WaitOnEvent(EventType) Method
WaitOnEvent(EventType,EventQueueStatus) Method
WaitOnEvent(EventType,Int32) Method
WaitOnEvent(EventType,TimeSpan) Method
WaitOnEvent(EventType,Int32,EventQueueStatus) Method
WaitOnEvent(EventType,TimeSpan,EventQueueStatus) Method