GX5701, GX5702, GX5704
Returns the Module’s Buffer.
Gx5733ModuleBufferReadData (nHandle, nPort, pdwVector, pdwSize, pnStatus)
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 read. Returns the actual number of double words read. 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 read data from the Module’s buffer until the number of requested of double words to read is reached or if the buffer empty flag is set to TRUE. See the Gx5733ModuleBufferGetState for more details.
The following example reads 18 double words from module port 0:
SHORT nStatus;
DWORD adwVector[64];
DWORD dwSize=18;
Gx5733GetPortByte (nHandle, GX5733_PORT0, adwVector &dwSize, &nStatus);