Keysight VISA.NET Help
DiscardEvents Method (VisaSession)



A VISA.NET standard event type supported by Keysight VISA.NET. If eventType is EventType.AllEnabled the session discards all events.
Discards events of the type specified by the eventType argument from the queue for that event type.
Syntax
'Declaration
 
Public Sub DiscardEvents( _
   ByVal eventType As EventType _
) 
'Usage
 
Dim instance As VisaSession
Dim eventType As EventType
 
instance.DiscardEvents(eventType)
public void DiscardEvents( 
   EventType eventType
)
public:
void DiscardEvents( 
   EventType eventType
) 

Parameters

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

This method causes loss of event occurrences.

The event occurrences discarded by this method are not available to a session at a later time.

This method does not affect events that have already been delivered to the application.

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.

Requirements

Current with Keysight IO Libraries Suite 18

See Also

 

 


© Keysight Technologies 2015-2025