Keysight VISA.NET Help
EnableEvent Method (VisaSession)



A VISA.NET standard event type supported by Keysight VISA.NET.
Enables a calling program's ability to receive events of the type specified by the eventType argument using a WaitOnEvent method.
Syntax
'Declaration
 
Public Sub EnableEvent( _
   ByVal eventType As EventType _
) 
'Usage
 
Dim instance As VisaSession
Dim eventType As EventType
 
instance.EnableEvent(eventType)
public void EnableEvent( 
   EventType eventType
)
public:
void EnableEvent( 
   EventType eventType
) 

Parameters

eventType
A VISA.NET standard event type supported by Keysight VISA.NET.
Remarks

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.

Requirements

Current with Keysight IO Libraries Suite 18

See Also

 

 


© Keysight Technologies 2015-2025