Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

TCP/IP Warning - Unable to Read Any Data

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

'tcpip' unable to read any data

When using the TCP/IP interface for:

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

  • Reading binary data using the fread function

  • Reading binblock data using the binblockread function

these are possible causes and remedies:

CauseSolution
An invalid command was sent to the device, so there is a problem reading the response to the command.Check your device manual for proper command formatting.
An incorrect write terminator was sent to the instrument before attempting to read data, so there is no data to read.Verify that the Terminator property is set to the value required by your device. For more information about setting the property, see Terminator.
Your device did not receive the command because the remote host address or the remote port is incorrect.Verify that the device is at the remote host address that you specified, and is listening on the remote port that you specified when you created the tcpip object. For more information about communication settings, see Create a TCP/IP Object and TCP/IP Communication with a Remote Host.

More Troubleshooting Help

For more information about troubleshooting the TCP/IP interface, including supported platforms, adaptor requirements, configuration and connection, and other troubleshooting tips, see Troubleshooting TCP/IP Interface.

Was this topic helpful?