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.

GPIB Warning - Unable to Read Any Data

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

'gpib' unable to read any data

When using the GPIB 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
The device did not receive the command because of an incorrect GPIB address or resource string.Verify that the device is at the GPIB address that you specified when you created the gpib object. For information about setting the address, see gpib and Configuring the GPIB Address.
The EOIMode property is not set correctly.Verify that the EOIMode property is set to the value required by your device. You can set it to on or off, and on is the default. For more information about setting the property, see Writing and Reading Data.
You might have connected to the wrong instrument.Check the GPIB address. Verify that the device is at the GPIB address that you specified when you created the gpib object. For information about setting the address, see gpib and Configuring the GPIB Address.

More Troubleshooting Help

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