Cnt2K_SetTriggerType

 

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

 

C/C++

int Cnt2K_SetTriggerType( int hConnection,

BYTE bytChannel,

BYTE bytType);

 

Visual Basic

Declare Function Cnt2K_SetTriggerType Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytChannel As Byte, ByVal bytType as Byte) As Long

 

Arguments:

hConnection

The handle for an I/O device connection.

bytChannel

The specific channel to be clear.

bytType

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

0 LoToHi

1 HiToLo

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.