Dio_ setdualinterrupt – ADLINK MXC-6300 Series User Manual
Page 118

106
Digital Input/Output Function Library
Return codes
NoError
ErrorInvalidCardNumber
ErrorCardNotRegistered
ErrorFuncNotSupport
DIO_ SetDualInterrupt
Informs the MXC-6300 matrix_dio library of the two interrupt
source modes of a dual-interrupt system and returns dual inter-
rupt events. If an interrupt is generated, the corresponding
interrupt event is signaled. The application uses Win32 wait
functions, such as WaitForSingleObject or WaitForMultipleOb-
jects to determine interrupt event status.
Syntax
C/C++ and Borland C++
I16 DIO_SetDualInterrupt (I16 Int1Mode, I16
Int2Mode, HANDLE *hEvent)
Visual Basic
DIO_SetDualInterrupt (ByVal Int1Mode As Integer,
ByVal Int2Mode As Integer, hEvent As Long)
As Integer
Parameter(s)
CardNumber
ID of the card performing the operation.
Int1Mode
Interrupt mode of INT1.
Valid values include: MXC-6300, and INT1_DISABLE,
INT1_EXT_SIGNAL INT1 by COS of Ch0 of Port 0
Int2Mode
Interrupt mode of INT2.
Valid values include: MXC-6300, and INT2_DISABLE,
INT2_EXT_SIGNAL INT2 by COS of Ch1 of Port 0