TC2K_GetMathPars
This function code is used to get contiguous TC virtual channel's math parameter.
C/C++
int TC2K_GetMathPars ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
WORD wMathPar[ ]);
Visual Basic
Declare Function TC2K_GetMathPars Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytStartChannel As Byte, ByVal bytCount As Byte, iMathPar 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 gets. |
wMathPar |
An array that stores the contiguous TC virtual channel's math parameter, wMathPar[0] represents the value of the starting channel. The values are : For AVG,Bit 0 of high byte represents the first channel and Bit 1 of high byte represents the second channel. For DEV,High-Byte as subtrahend and Low-Byte as minuend. Exp AVG( b'0000-0000 b'0010-0011) = ch5+ch1+ch0 Exp DEV( b'0000-0100 b'0010-0000) = ch2-ch6 |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |