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
, orfgetl
functionsReading binary data using the
fread
functionReading binblock data using the
binblockread
function
these are possible causes and remedies:
Cause | Solution |
---|---|
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 . |
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 Write and Read GPIB 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 . |
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.