Gx5731ModuleBufferWriteData

Applies To

GX5701, GX5702, GX5704

Purpose

Write a buffer to the Module’s Buffer.

Syntax

Gx5731ModuleWriteData (nHandle, nPort, pdwVector, pdwSize, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5731 board.
nPort
SHORT
Specified Module's port number:
0. GX5731_PORT0: Module port 0
1. GX5731_PORT1: Module port 1
2. 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.

Comments

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.

Example

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

 

See Also

Gx5731ModuleBufferReadData, Gx5731ModuleBufferGetState