Is there is command to find out how many bytes are in the GPIB read buffer using VISA commands?
status = viPrintf(instrH, command);
{
// Would like to poll the input buffer here to get the
// number of bytes to read.
numBytes = SomeCommandToGetBytesInBuffer()l
status = viRead (instrH, Databuf, numBytes, &RtCount);
}
// This command returns the size of the buffer, not how
// bytes are in it.
status = viGetAttribute(instrH, VI_ATTR_RD_BUF_SIZE, &numBytes );