01-03-2008 02:50 PM
01-04-2008
11:49 AM
- last edited on
11-11-2025
04:37 PM
by
Content Cleaner
Just so people don't have to open up the PDF if they are glancing at this thread here was the question again:
"GPIB problems
I have a GPIB-USB-B adapter connecting a PC (XP) with an Agilent 54621D. I have had this interface working correctly in the past but it now does not work. I believe it last worked before I uninstalled then reinstalled the GPIB drivers.
As shown below the GPIB-USB-B checks out OK but an ibwrt command returns an EADR error. The scope GBIB has an address of 7.
Please see the screen shots below."
The EADR is usually associated with the GPIB controller (in your case the GPIB-USB-B) not properly addressing itself before read and write functions. If this is your only GPIB controller on this computer, I would try clicking the "restore defaults" and try again. If this does not work, it would be useful for you to post an NI-Spy file so we can see exactly what is going on underneath.
Here are the links I got this information from:
KB:Performing a Good NI-Spy Capture for Debugging/Troubleshooting
KB:GPIB Error Codes and Common Solutions (Part 1)
Don't be too frustrated, it is Friday!
09-29-2011 07:06 PM
same problem for me, any solutions ?
my testbench worked perfectly, my matlab scrip was perfecly running.
I restarted my testbench and since this time i have the "too many listeners on GPIB" problem ....
09-30-2011
05:14 PM
- last edited on
11-11-2025
04:37 PM
by
Content Cleaner
Hello Panio,
Are you getting the same error code? If not, what error code are you getting? If you are getting the same error code, did you go through the proposed solutions in the article linked above (https://www.ni.com/en/support/documentation/supplemental/22/gpib-error-codes-and-common-solutions.ht...) ?
10-03-2011 12:02 PM
I have the EADR error, i don,t know if there is a conplement error code
I try all of thoses solutions but i don't know exactly what is the problem
My GPIB-USB is linking Matlab with a Keithley picoammeter, it work perfectly, i restarted, it didn't work at all
i tryed some different adresses , i check if my card was corectly adressed ... nothing debug it
thanks fot your help
Sylvain Panier.
10-04-2011 01:00 PM
Hi Sylvain,
What is your picoammeter address and what is your GPIB-USB address? These need to have different addresses, and you need to make sure that your program uses the correct address for the correct function. I belive that during initialization the input should be the address of the GPIB-USB, and during Write the address should be the address of the picoammeter. Does that make sense? If you use the same address for both initialization and for read/write, you will probably get an error.
Regards,
Daniel H.
10-05-2011 02:24 PM
What is your picoammeter address and what is your GPIB-USB address? These need to have different addresses, and you need to make sure that your program uses the correct address for the correct function. I belive that during initialization the input should be the address of the GPIB-USB, and during Write the address should be the address of the picoammeter. Does that make sense? If you use the same address for both initialization and for read/write, you will probably get an error.
My picoammeter is at GPIB0-16 and my GPIB-USB is at GPIB0-0
When my testbench worked; I was initializing and writing on the picoammeter's adress
It worked perfectly two day and didn't the third when I restarted my testbench
My Matlab code to initialize :
%MATLAB_GPIB_LOG Code for initialising the Picoammeter
% Find a GPIB object.
obj1 = instrfind('Type', 'gpib', 'BoardIndex', 0, 'PrimaryAddress', 16, 'Tag', '');
% Create the GPIB object if it does not exist
% otherwise use the object that was found.
if isempty(obj1)
obj1 = gpib('ni', 0, 16);
else
fclose(obj1);
obj1 = obj1(1);
end;
% Connect to instrument object, obj1.
fopen(obj1);
% Communicating with instrument object, obj1.
query(obj1, 'DISP:ENAB OFF');
query(obj1, '*IDN?');
query(obj1, '*RST');
query(obj1, 'SYST:ZCH ON');
query(obj1, 'RANG 2e-9');
query(obj1, 'INIT');
query(obj1, 'SYST:ZCOR:ACQ');
query(obj1, 'SYST:ZCOR ON');
query(obj1, 'RANG:AUTO ON');
query(obj1, 'SYST:ZCH OFF');
query(obj1, 'FORM:ELEM READ');
query(obj1, 'READ?');
query(obj1, 'FORM:ELEM READ');
10-06-2011 03:34 PM
Hi Sylvain,
If this is the only GPIB controller on your computer, have you tried restoring its defaults? It seems like when you restarted your testbench something might have changed in the USB-GPIB address.
Daniel H.