Runs the self-test procedure on the board.
GxCntSelfTest (nHandle, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a counter board. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The counter runs the following:
On-board EPROM.
Internal RAM in the microprocessor.
Other checks.
The self-test takes about 60 ms for the GC2220/GC2230/GTX2220/GTX2230,GTX2220, and 100 ms for the GC2210/GTX2210.
Every time the power is turned on an extensive self-test is performed automatically.
The following example run the board self test:
SHORT nHandle, nStatus;
GxCntSelfTest (nHandle, &nStatus);
GxCntReadStatusRegister, GxCntGetFunction, GxCntGetErrorString