Cnt2K_GetTriggerType

 

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

 

C/C++

int Cnt2K_GetTriggerType( int hConnection,

BYTE bytChannel,

BYTE * bytType);

 

Visual Basic

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

 

Arguments:

hConnection

The handle for an I/O device connection.

bytChannel

The specific channel to be get.

bytType

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

0 LoToHi

1 HiToLo

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.