Publication 1756-RM004B-EN-P - October 2000
4-12 CIP Messaging API
The MVIcip_ReadConnected function can only be used if the
rxdata_proc
callback function pointer was set to NULL in the call to
MVIcp_RegisterAssemblyObject().
Return Value:
MVI_SUCCESS data was read successfully
MVI_ERR_NOACCESS
apiHandle
does not have access
MVI_ERR_BADPARAM
connHandle
or
dataSize
is invalid
MVI_ERR_INVALID an
rxdata_proc
callback has been registered
Example:
MVIHANDLE apiHandle;
MVIHANDLE connHandle;
BYTE buffer[128];
// Read 128 bytes from the connected data buffer
MVIcip_ReadConnected(apiHandle, connHandle, buffer, 0, 128 );
See Also:
MVIcip_WriteConnected
MVIcip_ReadConnected