Event Methods As mentioned above, VISA.NET event methods include EnableEvent(), DisableEvent(), and which exactly correspond to the C functions DiscardEvent(), WaitOnEvent(), (called with an event mechanism of viEnableEvent() VI_QUEUE), viDisableEvent(), and These methods are part of and so are viDiscardEvent(), viWaitOnEvent(). IVisaSession, included with every type of VISA.NET session. Refer to section 3.7, VPP-3.4: The VISA Library, Event and particularly section 3.7.1, section 3.7.31, Services, Event Handling and Processing, viEnableEvent, section 3.7.3.2, section 3.7.3.3, and section 3.7.3.4, for viDisableEvent, viDiscardEvent, viWaitOnEvent, details. For the definition of the event methods in VISA.NET, refer to section 8.3, When using event methods, the event mechanism is always a queue (VI_QUEUE). The return type of the method is defined as which gives the client WaitOnEvent VisaEventArgs, information about the event from the server. This is the same that is the base class for all VisaEventArgs of the event args defined for .NET events. The data returned by the method is VISA.NET’s WaitOnEvent either or derived from The exact return type can be inferred from the VisaEventArgs VisaEventArgs. value of and VisaEventArgs.EventType VisaEventArgs.CustomEventType.
Event Methods As mentioned above, VISA.NET event methods include EnableEvent(), DisableEvent(), DiscardEvent(), and WaitOnEvent(), which exactly correspond to the C functions viEnableEvent() (called with an event mechanism of VI_QUEUE), viDisableEvent(), viDiscardEvent(), and viWaitOnEvent(). These methods are part of IVisaSession, and so are included with every type of VISA.NET session. Refer to VPP-3.4: The VISA Library, section 3.7, Event Services, and particularly section 3.7.1, Event Handling and Processing, section 3.7.31, viEnableEvent, section 3.7.3.2, viDisableEvent, section 3.7.3.3, viDiscardEvent, and section 3.7.3.4, viWaitOnEvent, for details. For the definition of the event methods in VISA.NET, refer to section 8.3, When using event methods, the event mechanism is always a queue (VI_QUEUE). The return type of the WaitOnEvent method is defined as VisaEventArgs, which gives the client information about the event from the server. This is the same VisaEventArgs that is the base class for all of the event args defined for VISA.NET’s .NET events. The data returned by the WaitOnEvent method is either VisaEventArgs or derived from VisaEventArgs. The exact return type can be inferred from the value of VisaEventArgs.EventType and VisaEventArgs.CustomEventType.
vpp436_2015-02-11.docx