Gx5733ModuleBufferWriteData

Applies To

GX5701, GX5702, GX5704

Purpose

Write a buffer to the Module’s Buffer.

Syntax

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

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5733 board.
nPort
SHORT
Module port 0 (GX5733_PORT0) only.
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 Gx5733ModuleBufferGetState for more details.

Example

The following example return the Buffer flag mode of module port 0:

 

SHORT nStatus;

DWORD adwVector[64];

DWORD dwSize=18;

Gx5733ModuleBufferWriteData (nHandle, GX5733_PORT0, adwVector &dwSize, &nStatus);

 

See Also

Gx5733ModuleBufferReadData