SOLVED
Dim WithEvents TriggerEngine As xpEngine
Dim GPI As xpGPIBoard
Private Sub Form_Load()
Set Eng = New xpEngine
Set GPI = New xpGPIBoard
If Eng.GPIBoardCount > 0 Then
Eng.GetGPIBoard 0, GPI
Else
MsgBox "no gpi boards found"
End If
End Sub
Private Sub Eng_OnGPI(ByVal BoardID As Long, ByVal PinID As Long, ByVal PinState As Boolean)
msgbox PinID & "-" & PinState
End Sub
#XPression