GX5961, File
Gets the number of GX5961 boards in the file.
GtDio6xFileGetTimingBoardCount (hFile, pnTimingBoardCount, pnStatus)
Name |
Type |
Comments |
hFile |
SHORT |
Session identifier:● File handle is used when communicating with a file. The File handle session identifier is returned by calling GtDio6xFileOpen. |
pnTimingBoardCount |
PSHORT |
Gets the number of GX5961 boards in the file. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative value on failure. |
This function returns the number of GX5961 boards in the file.
The following example opens an existing file, gets the channel count. The file is then closed.
SHORT nStatus, nChannelCount;
GtDio6xFileOpen(“C:\\MyFile.dio6x”, GTDIO6X_FILE_READ_WRITE, &hFile, &nStatus);
GtDio6xFileGetTimingBoardCount(hFile, &nChannelCount, &nStatus);
GtDio6xFileClose(hFile, &nStatus);
GtDio6xFileOpen, GtDio6xFileClose, GtDio6xFileSetChannelCount, GtDio6xFileSetTimingBoardCount, GtDio6xFileLoad, GtDio6xFileSave, GtDio6xGetErrorString