W5K_Cnt_SetTriggerTypeWords
This function code is used to set contiguous channel's trigger types when D/I channel in 'Count' mode.
C/C++
int W5K_Cnt_SetTriggerTypeWords( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
WORD * wType);
Visual Basic
Declare Function W5K_Cnt_SetTriggerTypeWords Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytStartChannel As Byte, ByVal bytCount As Byte, iType As Integer) 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 |
wType |
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 2: Both |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |