TC2K_SetChnAvg

 

This function is used to set data structure varibles for averaging data of each channel.

 

C/C++

int TC2K_SetChnAvg ( int hConnection,

BYTE bytChannel,

BYTE bytChnIdx[ ],

BYTE bytChCount );

 

Visual Basic

Declare Function TC2K_SetChnAvg Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytChannel As Byte, bytChnIdx As Byte, ByVal bytChCount As Byte) As Long

 

Arguments:

hConnection

The handle for an I/O device connection.

bytChannel

The specific channel to be set.

bytChnIdx

An channel index which is used to be averaged.

BytChCount

The number of channel.

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.