Main Content

TCP/IP Socket Using VISA Warning - Unable to Read All Data

These remedies apply to the case when you receive some data and you get this warning message:

'visa' unable to read all requested data

ASCII Data

When using the VISA TCP/IP Socket for:

  • Reading ASCII (text) data using the fscanf, fgets, or fgetl functions

these are possible causes and remedies:

CauseSolution
The read EOSCharCode is incorrect.Verify that the EOSCharCode property is set to the value required by your device.
Communication with the device was interrupted.Check your device connection. For more information about troubleshooting configuration and connection, see Troubleshooting TCP/IP Client Interface and Troubleshooting IVI and Quick-Control Interfaces.

Binary Data

When using the VISA TCP/IP Socket for:

  • Reading binary data using the fread function

these are possible causes and remedies:

CauseSolution
The number of values to read was not specified and was set to the InputBufferSize by default.Set the number of values to read using the Count property on the fread function, or change the InputBufferSize property. For information about setting number of values to read, see fread.
Device did not send all the requested data.Check your device connection. For more information about troubleshooting configuration and connection, see Troubleshooting TCP/IP Client Interface and Troubleshooting IVI and Quick-Control Interfaces.
There was a data format mismatch.Verify that the device data format matches the specified read format. Data format is set using the Precision property. For more information about supported precisions, see fread.

Binblock Data

When using the VISA TCP/IP Socket for:

  • Reading binblock (binary-block) data using the binblockread function

these are possible causes and remedies:

CauseSolution
The timeout value might be too short for the amount of data being read.Increase the Timeout property value.
Communication with the device was interrupted.Check your device connection. For more information about troubleshooting configuration and connection, see Troubleshooting TCP/IP Client Interface and Troubleshooting IVI and Quick-Control Interfaces.

More Troubleshooting Help

For more information about troubleshooting the TCP/IP Socket using VISA interface, including supported platforms, adaptor requirements, configuration and connection, and other troubleshooting tips, see Troubleshooting TCP/IP Client Interface and Troubleshooting IVI and Quick-Control Interfaces.