Run self test on all 56 digital I/O channels and 4 serial channels.
Gx3756SelfTest (nHandle, pszSelfTestStatus, nSelfTestMaxLen, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX3756 board. |
pszSelfTestStatus |
PSTR |
Buffer to contain the returned self test result string. |
nSelfTestMaxLen |
SHORT |
pszSelfTestStatus buffer size. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Note: User must remove all connections from the front connector prior to calling this function.
The function runs an output pattern on all 56 digital I/O channels and compare the output pins readback.
If 56 digital I/O channels passed test passed, then all 4 serial channels are tested by sending 64-bit data and capturing it using the Gx3756SerialOutGetlLastTxData() API.
The following example run self test on all 56 digital I/O channels and 4 serial channels, and prints the results string:
CHAR szSelfTestStatus [1024];
Gx3756SelfTest (nHandle, szSelfTestStatus, 1024, &nStatus);
printf(szSelfTestStatus);
Gx3756Initialize, GxFpgaGetErrorString