GtDio6xGetBoardType

Applies To

GX5296, GX5961, GX5964, File

Purpose

Returns the board model number.

Syntax

GtDio6xGetBoardType (nHandle, pwBoardType, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Session identifier:

     Board handle is used when communicating with the hardware. The Board handle session identifier is returned by calling GtDio6xInitialize or GtDio6xSetupInitialization.

     File handle is used when communicating with a file. The File handle session identifier is  returned by calling GtDio6xFileOpen.

pwBoardType
PWORD
Board Type of the specified board:

     GTDIO6X_BOARD_TYPE_INVALID = 0x00.

     GTDIO6X_BOARD_TYPE_GX5960 = 0x5960.

     GTDIO6X_BOARD_TYPE_GX5961 = 0x5961.

     GTDIO6X_BOARD_TYPE_GX5964 = 0x5964.

     GTDIO6X_BOARD_TYPE_GX5296 = 0x5296.

pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The board type will be returned in Hexadecimal.

Example

The following example returns the board summary:

 

SHORT nHandle, nStatus;

WORD  wBoardType;

 

GtDio6xGetBoardType(nHandle, &wBoardType, &nStatus);

if (wBoardType==0x5964)

       printf(“The board is a Gx5964”);

else if (wBoardType==0x5961)

       printf(“The board is a Gx5961”);

else

       printf(“The board is a Gx5296”);

 

See Also

GtDio6xGetDriverSummary, GtDio6xGetErrorString