| Keysight.Visa Namespace > VisaSession Class : DisableEvent Method |
'UsageDim instance As VisaSession Dim eventType As EventType instance.DisableEvent(eventType)
This method prevents new events from being added to the event queue(s). However, event occurrences already in the queue(s) are not discarded.
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 type in the session 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.
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