Keysight VISA.NET Help
WaitOnEvent(Int32,TimeSpan,EventQueueStatus) Method



The event type(s) for which the method will wait. This may be a custom event type.
The maximum amount of time to wait for the event. If the timeout is TimeSpan.Zero, the operation will not block. If the timeout is TimeSpan.MaxValue, the operation will not timeout.
The current state of the event queue when the method returns.
Wait for events of type(s) specified by the eventType argument.
Syntax
'Declaration
 
Overloads Function WaitOnEvent( _
   ByVal eventType As Integer, _
   ByVal timeout As TimeSpan, _
   ByRef status As EventQueueStatus _
) As INativeVisaEventArgs
'Usage
 
Dim instance As INativeVisaSession
Dim eventType As Integer
Dim timeout As TimeSpan
Dim status As EventQueueStatus
Dim value As INativeVisaEventArgs
 
value = instance.WaitOnEvent(eventType, timeout, status)

Parameters

eventType
The event type(s) for which the method will wait. This may be a custom event type.
timeout
The maximum amount of time to wait for the event. If the timeout is TimeSpan.Zero, the operation will not block. If the timeout is TimeSpan.MaxValue, the operation will not timeout.
status
The current state of the event queue when the method returns.

Return Value

Event identification and status information. Clients must dispose the returned object when it is no longer needed.
Requirements

Current with Keysight IO Libraries Suite 18

See Also

 

 


© Keysight Technologies 2015-2025