10-26-2007 08:40 AM
10-29-2007
11:25 AM
- last edited on
11-11-2025
06:24 PM
by
Content Cleaner
bicycle,
Thank you for contacting National Instruments.
One option that I think you should try, was found in a previous discussion forum thread.
You could detect if an EDVR (Driver Error) error occured. EDVR is returned when GPIB hardware is not configured properly, or the interface name or device name passed to the ibfind function is incorrect. The error returned by the function is stored in ibcnt. You could use this error as a signal that the NI GPIB-ENET/100 is turned off. Any EDVR means some fatal error occur, so you can assume you need to reestablish communication. It does not matter if the NI GPIB-ENET/100 is off or the network is failing, in either case the EDVR will indicate an error.
You can then call a function that handles this situation by calling ibonl (device[index], 0); //This removes the entry from a table in memory maintained by the driver. to close the handle and then try to reestablish communication using the ibdev function.
For more information concerning the specific driver error, you can reference GPIB Error Codes and Common Solutions.
Please let me know if this was able to answer the question you had, if not please let me know.
Thank you very much.
11-02-2007 04:39 PM
11-05-2007
10:35 AM
- last edited on
11-11-2025
06:24 PM
by
Content Cleaner
bicycle,
Looking into the NI-488.2 Function Reference Manual for Windows, I was able to find the following information.
int ibcmda (int ud, void *cmdbuf, long count)
Possible Error that you are able to get: ENOL (2) No Listeners are on the GPIB.
ENOL usually occurs when a write operation is attempted with no Listeners addressed. For a device write, ENOL indicates that the GPIB address configured for that device in the software does not match the GPIB address of any device connected to the bus, that the GPIB cable is not connected to the device, or that the device is not powered on.
Please give this command a try and let me know if this is able to work without hanging.
Thank you very much.
11-05-2007 01:47 PM
11-05-2007 02:31 PM
11-05-2007 05:11 PM
11-06-2007
01:47 PM
- last edited on
11-11-2025
06:24 PM
by
Content Cleaner
bicycle,
I have found a developer zone tutorial: Developing Distributed GPIB Test Systems Using the NI GPIB-ENET and Existing Ethernet Networks, that includes example code.
Please look through this tutorial and let me know if these example are able to help you out. If it is not, I will continue to look into this issue.
Thank you very much.
11-09-2007 03:37 PM
11-12-2007 01:23 PM - edited 11-12-2007 01:23 PM