| Keysight.Visa Namespace > UsbSession Class : Interrupt Event |
'DeclarationPublic Event Interrupt As EventHandler(Of UsbInterruptEventArgs)
'UsageDim instance As UsbSession Dim handler As EventHandler(Of UsbInterruptEventArgs) AddHandler instance.Interrupt, handler
public event EventHandler<UsbInterruptEventArgs> Interrupt
public: event EventHandler<UsbInterruptEventArgs^>^ Interrupt
The event handler receives an argument of type UsbInterruptEventArgs containing data related to this event. The following UsbInterruptEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| CustomEventType | A value that uniquely identifies an implementation-specific event type. (Inherited from Ivi.Visa.VisaEventArgs) |
| Data | The data being transferred over the USB bus when the interrupt occurred, no longer than the expected maximum size. |
| EventType | The VISA.NET standard event type. (Inherited from Ivi.Visa.VisaEventArgs) |
| ExceededMaximumSize | Indicates whether the data size exceeded the maximum size allowed by the USB interface. |
Multiple event handlers may be registered for this event.
When a calling program registers an event handler, it is possible that the event handler might be called before the call to register the event handler returns. In this case, the event handlers registered for an event are executed before the return of the event handler registration.
Client programs should either use the event-related methods VisaSession.DisableEvent, VisaSession.DiscardEvents, VisaSession.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.
Current with Keysight IO Libraries Suite 18
UsbSession Class
UsbSession Members
WaitOnEvent(EventType) Method
WaitOnEvent(EventType,EventQueueStatus) Method
WaitOnEvent(EventType,Int32) Method
WaitOnEvent(EventType,TimeSpan) Method
WaitOnEvent(EventType,Int32,EventQueueStatus) Method
WaitOnEvent(EventType,TimeSpan,EventQueueStatus) Method