GX5296, GX5961, GX5964
Returns the number of boards in the domain.
GtDio6xGetBoardInfo (nHandle, nSlaveNum, pnBoardType, pnSlot, pnBoardFirstCh, pnNumberOfCh, pnStatus)
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. |
nSlaveNum |
SHORT |
Specifies the slave number in the domain, slave number 0 refers to the master board. |
pnBoardType |
PSHORT |
Returned the board type, board type can be as follows:● 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. |
pnSlot |
PSHORT |
Returned chassis slot number. |
pnBoardFirstCh |
PSHORT |
Returned the board’s first channel number relative to the domain. |
pnNumberOfCh |
PSHORT |
Returned number of channels in the board, all boards have 32 channels unless GX5961 which has 16 channels. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative value on failure. |
The following example gets the master board information:
SHORT nHandle, nBoardType, nSlot, nBoardFirstCh, nNumberOfCh;
SHORT nStatus;
GtDio6xGetBoardInfo(nHandle, 0, &nBoardType, &nSlot, &nBoardFirstCh, &nNumberOfCh, &nStatus);
printf(“Master board in slot %i”, nSlot);
GtDio6xInitialize, GtDio6xSetupInitialization, GtDio6xGetBoardType, GtDio6xGetErrorString