Cnt2K_SetTriggerTypeWord

 

This function code is used to set specific channel's trigger type when D/I channel in 'Count' mode.

 

C/C++

int Cnt2K_SetTriggerTypeWord( int hConnection,

BYTE bytChannel,

WORD wType);

 

Visual Basic

Declare Function Cnt2K_SetTriggerTypeWord Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytChannel As Byte, ByVal wType as Integer) As Long

 

Arguments:

hConnection

The handle for an I/O device connection.

bytChannel

The specific channel to be clear.

wType

stores the trigger type for specific channel. The values are :

0: LoToHi

1: HiToLo

2: Both

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.