Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB write keeps returning error 3

Hi.

 

I'm using GPIB card to connect my PC(LabView) and HP3458A. HP3458A is also connected to Fluke calibrator as a function source.

I'm just trying to initialize GPIB, then write to it, and read it.

I succeeded once.

Then I'm getting error out after writing.

I see that it meens wrong addressing. HP3458A is initialized to 23 and I'm using this address to write and read.

Can someone tell me what I'm doing wrong.

 

Thanks,

Kristina.

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

Hey Christyine,

I have found the following KnowledgeBase titled GPIB Error Codes and Common Solutions , that I would like for you to take a look at, specifically the part on EADR (3). Please let me know if this proves to be of help.

Thanks again and have a great day!

Regards,

 

Nicholas K

National Instruments
Applications Engineer
0 Kudos
Message 2 of 5
(4,595 Views)

Thank You.

I have another thread...

I hope You have answer too. 🙂

 

0 Kudos
Message 3 of 5
(4,536 Views)
Hello. I have this situation: With GPIB Read we can read 2, 4, 8, 16 bytes what is OK. But I have one category (MSIZE? from Hp3458A) which gives as answer: ASCII - 16 bytes per reading1 SINT - 2 bytes per reading DINT - 4 bytes per reading SREAL - 4 bytes per reading DREAL - 8 bytes per reading It can be seen 2 equal number of bytes for DINT and SREAL. So, I should write string as input to GPIB Read. Is this possible? I have .vi in attach.
0 Kudos
Message 4 of 5
(4,534 Views)
Your program makes no sense. If the instrument is returning those values, just do a read and you will get those strings back. There is no need to try and convert a string to number to determine how many bytes to read. I believe the returned values is used to determine how to interpret data returned by a measurement.
0 Kudos
Message 5 of 5
(4,521 Views)