Cnt2K_SetTriggerTypes
This function code is used to set contiguous channel's trigger types when D/I channel in 'Count' mode.
C/C++
int Cnt2K_SetTriggerTypes( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
DWORD dwType);
Visual Basic
Declare Function Cnt2K_SetTriggerTypes Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytStartChannel As Byte, ByVal bytCount As Byte, ByVal 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 clear |
dwType |
Stored 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. |