01-03-2008 02:50 PM
01-04-2008 11:49 AM
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
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 (http://digital.ni.com/public.nsf/allkb/2FA525A8585A92E9862566EE002A3755?OpenDocument#EADR) ?
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.