Cnt2K_GetTriggerTypes
This function code is used to get contiguous channel's trigger types when D/I channel in 'Count' mode.
C/C++
int Cnt2K_GetTriggerTypes( int hConnection,
BYTE bytStartChannel
BYTE bytCount
DWORD * dwType);
Visual Basic
Declare Function Cnt2K_GetTriggerTypes Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytStartChannel As Byte, ByVal bytCount As Byte, nType As Long) As Long
Arguments:
hConnection |
The handle for an I/O device connection. |
bytStartChannel |
Specifies the starting channel. |
bytCount |
The number of channels to be get |
dwType |
A pointer that stores the contiguous channel's triggers types; each bit holds one channel trigger type. A bit value of 0 represents the trigger type of the start channel. A bit value of 1 represents the second channel's trigger type. The values are : 0: LoToHi 1: HiToLo |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |