Gx3756SelfTest

Purpose

Run self test on all 56 digital I/O channels and 4 serial channels.

Syntax

Gx3756SelfTest (nHandle, pszSelfTestStatus, nSelfTestMaxLen, pnStatus)

Parameters

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.

Comments

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.

Example

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);

 

See Also

Gx3756Initialize, GxFpgaGetErrorString