Keysight VISA.NET Help
DisableEvent Method (VisaSession)



A VISA.NET standard event type supported by Keysight VISA.NET. If eventType is EventType.AllEnabled the session stops receiving all events.
Disables a calling program's ability to receive events of the type specified by the eventType argument using a VisaSession.WaitOnEvent method (any overload).
Syntax
'Declaration
 
Public Sub DisableEvent( _
   ByVal eventType As EventType _
) 
'Usage
 
Dim instance As VisaSession
Dim eventType As EventType
 
instance.DisableEvent(eventType)
public void DisableEvent( 
   EventType eventType
)
public:
void DisableEvent( 
   EventType eventType
) 

Parameters

eventType
A VISA.NET standard event type supported by Keysight VISA.NET. If eventType is EventType.AllEnabled the session stops receiving all events.
Remarks

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.

Requirements

Current with Keysight IO Libraries Suite 18

See Also

 

 


© Keysight Technologies 2015-2025