GX5701, GX5702, GX5704
Write a buffer to the Module’s Buffer.
Gx5731ModuleWriteData (nHandle, nPort, pdwVector, pdwSize, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5731 board. |
nPort |
SHORT |
Specified Module's port number:0. GX5731_PORT0: Module port 01. GX5731_PORT1: Module port 12. GX5731_PORT2: Module port 2. |
pdwVector |
PDWORD |
Array of double words (32-bit) |
pdwSize |
PWORD |
Number of requested of double words to write. Returns the actual number of double words written. The Array size can be between 0 and 4095. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The function will continue to write data from the Module’s buffer until the number of requested of double words to write is reached or if the buffer full flag is set to TRUE. See the Gx5731ModuleBufferGetState for more details.
The following example return the Buffer flag mode of module port 0:
SHORT nStatus;
DWORD adwVector[64];
DWORD dwSize=18;
Gx5731ModuleBufferWriteData (nHandle, GX5731_PORT0, adwVector &dwSize, &nStatus);