Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB ERROR CODE 3 WITH LabVIEW 6

USING LABVIEW 6I OR 6.0.1 I GET ERROR CODE 3 WHEN I READ OR
WRITE, BUT ONLY IF I INITIALIZE FIRST. I AM USING THE HIGH LEVEL
GPIB FUNCTIONS. IF I DO NOT INITIALIZE EVERYTHING IS OK. IF I DO
INITIALIZE, I GET THE ERROR AND THE PC MUST BE REBOOTED TO
GET THE GPIB TO FUNCTION. IT CANNOT BE A HARDWARE PROBLEM.
I HAVE TRIED SEVERAL PC'S, SEVERAL CARDS, WINDOWS 95 AND ME.
IBIC WORKS FINE. I DO NOT HAVE THIS PROBLEM WITH VER 4.0.1.
ANY HELP WILL BE APPRECIATED.
0 Kudos
Message 1 of 2
(3,840 Views)
Hi Mike,

Are you specifying an address string in your GPIB Initialization function? It should be of the form "bus:pad+sad", where bus is the bus #, example 0 (zero) for GPIB0; pad is the primary address of your GPIB controller; and sad is the secondary address of your GPIB controller (0, if no sad). I was looking at the Online Help for the GPIB Initialization function, and it states that if you do not specify an address, then read and write functions will not re-address your devices. This could result in the EADR error (GPIB error 3) that you've been seeing.

I think this is different from the previous behavior of this function, where it would assume "0:0+0" (or GPIB0:PAD0+SAD0" for the default controller values. If you are not specifying this information, then
I suggest that you add it to your program to see if this helps.

Otherwise, I would be interested to know what your GPIB settings (bus #, pad, sad, etc.) are for your GPIB controller and for your hardware. The Developer Exchange allows you to attach files, too. If you have an example of the VI that you're using to initialize your GPIB (no necessarily the VI itself, but a snippet of the GPIB code), then you could attached it to your response.

Mr. KB

P.S. A good place to look for GPIB Settings information is the main GPIB Support page at http://www.ni.com/support/gpibsupp.htm. Follow the link to "The Measurement & Automation Explorer and GPIB".
Message 2 of 2
(3,840 Views)