Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB hangs on ibdev/ibfind

I have an Agilent 8564EC spectrum analyzer connected over GPIB through the GPIB to ENET 100 box and I can communicate with it fine.  However If the spectrum analyzer is shut off unexpectedly while it is being controlled over the GPIB the ibdev and ibfind commands hang.  VISA hangs on startup, it won't go past the splash screen, and the NI Measurement Automation program hangs when I click on the GPIB 0 device.  Once this happens I restart everything (Spec An, Converter Box, PC) and the problem still occurs.  The only way I can fix this is by uninstalling the NI drivers and reinstalling them (Repair does not work).

 

Now what's also strange is that I have another pc connected on the network that can communicate to the specAn and those commands also hang when specAn is shut off unexpectedly.  However the drivers only have to be reinstalled on one of the PCs to get it to work again.  Does anyone know a solution to this?

0 Kudos
Message 1 of 5
(4,555 Views)

After looking at the problem some more, it appears the GPIB is stuck as a listener as the listen light on the GPIB to ENET box remains on.  It now appears to work if the ENET box is turned off and back on.  Does anyone know how to do this programmicly?  All the commands I have found need to use ibdev or ibfind.

0 Kudos
Message 2 of 5
(4,524 Views)

Hi snydesc,

Unfortunately, there is no way to reset the GPIB-ENET/100's programmatically when you lose access to the device itself.  I can certainly see how this would be troublesome for youin this instance if no-one is nearby to reset the device manually.  What seems to be causing your instrument to lose power?


Regards,
Anna M.
National Instruments
0 Kudos
Message 3 of 5
(4,495 Views)

Hello Syncdesc,

Will sending the command ibsic do the trick?  In the documentation it says that it unaddresses everything on the bus.  Perhaps it will unaddress itself as listener as well.

-Lamb

0 Kudos
Message 4 of 5
(4,472 Views)
ibsic takes a board descriptor which means ibfind needs to be used.  ibfind hangs.  ibsic looks like it does what I need it to do if I can get it to work.
0 Kudos
Message 5 of 5
(4,447 Views)