Gx6616BIT

Purpose

Performs the board internal Built In Test (BIT).

Syntax

Gx6616BIT (nHandle, pszError, nErrorMaxLen, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX6616 board.
pszError
LPSTR
Pointer to buffer to receive the error string.
nErrorMaxLen
SHORT
The buffer length.
pnStatus
LPSHORT
Returned status: 0 on success, negative number on failure or incomplete (one adapter was present). See the GxSWGetErrorString for a complete list of possible errors.

Comments

The function performs the BIT by connecting the on-board voltage reference to the on-board comparator by closing and opening relays on the board.

The self-test adapter must be installed before calling this function.

WARNING: Do not run this function with a UUT attached. Possible damage to the Board /UUT may occur.

The returned string pszError contains a description of the error occurred. This can be a description of the group and column relays number where the error occurred. If no error occurred, this buffer contains an empty string.

After the BIT is performed the board is in reset state.

Example

The following example perform a BIT test:

 

CHAR sz[128];

SHORT nStatus

 

/* Notify the user to connect the Selftest Adptor … */

/* perform BIT */

Gx6616BIT(nHandle, sz, sizeof sz, &nStatus);

if (nStatus < 0)

   printf("GX6616-bit Status:%s", sz);

else

   printf("GX6616-bit Status: Passed);

 

See Also

Gx6616Initialize, Gx6616GetErrorString, Gx6616Reset