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



The event type(s) for which the method will wait. This may be a custom event type.
The maximum amout of time to wait for the event, in milliseconds. If the timeout is VisaConstants.ImmediateTimeout (0), the operation will not block. If the timeout is VisaConstants.InfiniteTimeout (-1), 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 timeoutMilliseconds As Integer, _
   ByRef status As EventQueueStatus _
) As INativeVisaEventArgs
'Usage
 
Dim instance As INativeVisaSession
Dim eventType As Integer
Dim timeoutMilliseconds As Integer
Dim status As EventQueueStatus
Dim value As INativeVisaEventArgs
 
value = instance.WaitOnEvent(eventType, timeoutMilliseconds, status)

Parameters

eventType
The event type(s) for which the method will wait. This may be a custom event type.
timeoutMilliseconds
The maximum amout of time to wait for the event, in milliseconds. If the timeout is VisaConstants.ImmediateTimeout (0), the operation will not block. If the timeout is VisaConstants.InfiniteTimeout (-1), 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