File
Returns the number of vectors and the starting offset in the file.
GtDio6xFileGetVectorStartCount (hFile, pdwVectorStart, pdwVectorCount, 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. |
pdwVectorStart |
PDWORD |
Returns the vector start offset. |
pdwVectorCount |
PDWORD |
Returns the number of vectors. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative value on failure. |
This function returns the number of vectors and the starting offset in the file.
The following example opens an existing file, sets the channel count to 32, sets the number of vectors to 1024, and close the file.
SHORT nStatus;
GtDio6xFileOpen(“C:\\MyFile.dio6x”, GTDIO6X_FILE_READ_WRITE, &hFile, &nStatus);
GtDio6xFileSetChannelCount(hFile, 32, &nStatus);
GtDio6xFileSetVectorStartCount(hFile, 0, 1024, &nStatus);
GtDio6xFileClose(hFile, &nStatus);
GtDio6xFileSetVectorStartCount, GtDio6xFileOpen, GtDio6xFileClose, GtDio6xFileGetChannelCount, GtDio6xFileSetTimingBoardCount, GtDio6xFileLoad, GtDio6xFileSave, GtDio6xGetErrorString