GtDio6xFileSetVectorStartCount

Applies To

File

Purpose

Sets the number of vectors and the starting offset in the file.

Syntax

GtDio6xFileSetVectorStartCount (hFile, dwVectorStart, dwVectorCount, pnStatus)

Parameters

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.

dwVectorStart
DWORD
Sets the vector start offset.
dwVectorCount  
DWORD
Sets the number of the vectors.
pnStatus
PSHORT
Returned status: 0 on success, negative value on failure.

Comments

This function set the number of vectors and the starting offset in the file.

Example

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);

 

See Also

GtDio6xFileGetVectorStartCount , GtDio6xFileOpen, GtDio6xFileClose, GtDio6xFileGetChannelCount, GtDio6xFileSetTimingBoardCount, GtDio6xFileLoad, GtDio6xFileSave, GtDio6xGetErrorString