The OnInterface() is a driver module event that occurs when a condition changes in the driver shortcut configured interface, such as GPIB, COM, VXI, ISA, or Winsock. The code contained in the OnInterface event will execute whenever the OnInterface event triggers. The lInterfaceType and the enCause parameters for the OnInterface event specifies which interface and event that occurred
You can also use the SetInterfaceEvent procedure sets an event procedure other than the module event OnInterface procedure. It also always you to filter what are the cause that the callback procedure will be called.
An syntax for OnInterface event is the following:
Procedure OnInterface(lInterfaceType, lCause, vParam) : Void Public ! This occurs when a driver interface triggers an event
enInterfaceType: Val Internal.enumAInterfaceType
lAddress: Val Long
enCause: Val Internal.enumAInterfaceEvents
{
}
For more information on the driver OnInterface event, see the OnInterface Event.