Set Event

Using events can notify the application program with various states (comparison count match, error occurrence, etc.) that occurred during device operation.

Depending on the parameters passed upon the event notification, you can get what kind of event occurred and distribute the processing by the event.

There are two methods to notify the events.

Message Notification

This is a method of notifying a message to the application by executing function PostMessage of Win32 API from the driver.
It is a common message notification method to be used.
How to create a handler to be called upon notification depends on the development language used.
It can not be used for applications without Window handle (such as console application).

How to set Message Notification
Implementation of Event Message Routine
Visual Basic .NET
Visua C#
Visual C++ (MFC)

Callback Function

Register previously a callback function created in advance,  and the driver calls the registered function directly upon notification.
It is necessary to handle the pointers and function pointers, the amount of code is small and simple.
Works faster than Windows message notification, it can be used for applications without Window handle (such as console application).