Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with 34401A DMM

Solved!
Go to solution

Hello,

I have a really strange problem with my Agilent DMM, I looked over the internet for the solution and I didn't find anything that helps.

So why it's so strange?

Because sometimes it happened and sometimes not. Furthermore, I use the example that I downloaded with my driver, so why?

This is what I get when I try to read DC current with the Agilent 34401 Read Multiple Measurements.vi example:

Error 1074000000 occurred at Agilent 34401A.lvlib:error query.vi

 

Instruments reports:

+550, "Command not allowed in local"

-420, " Query unterminated"

+0, "No Error"

 

Please help...

Thanks

 

 

0 Kudos
Message 1 of 13
(11,781 Views)

Hi -

 

As a little background, when LabVIEW reports error -1074000000, it is handling an error that has been reported by the instrument. To help us all better understand your situation, please let us know exactly which driver you are using. Is this the correct link?

 

Also, at what point in the example does the error occur? Does the error first occur in a configuration VI or at the Read VI itself?

 

Best Regards,

 

John M

National Instruments
Applications Engineer
0 Kudos
Message 2 of 13
(11,730 Views)

Hi,

 

Yes, this is my driver.

And the error occurs at the read VI...

 

Thanks for helping,

Ariel.

0 Kudos
Message 3 of 13
(11,704 Views)

Hello,

 

To try to reproduce the issue can you please indicate the version of LabVIEW, VISA, and firmware version (on DMM)?  If you can also please indicate what interface you are using and if you made any changes to the example?

0 Kudos
Message 4 of 13
(11,677 Views)

Hi,

 

I'm using:

LabVIEW 2009

VISA 4.6

Firmware version: 11-5-2 (is it the firmware?)

GPIB.

 

I didn't make any changes to the example.

I want to say that I can communicate with the instrument, the LabVIEW - GPIB.vi example works fine:

When I send "*IDN?" I succeed to read back from the DMM.

 

Thanks,

Ariel.

0 Kudos
Message 5 of 13
(11,668 Views)

Could you run NI Spy and attach a NI Spy log  including the problem ?

0 Kudos
Message 6 of 13
(11,648 Views)

This is my NI Spy log...

 

Ariel.

0 Kudos
Message 7 of 13
(11,594 Views)

I also downloaded the new driver, and it's still doesn't work.

I really need this...

 

Please help,

Ariel.

0 Kudos
Message 8 of 13
(11,554 Views)
Solution
Accepted by topic author arielsl\

Hi -

 

It looks like the "Command not allowed in local" error message can often occur when the 34401A needs to have the REN Line asserted. Please try the following edit to the example:

 

  1. Double click to open the Initialize.vi in Agilent 34401 Read Multiple Measurements.vi
  2. On the block diagram of the Initialize.vi, swap to the False (GPIB) case of the first case structure.
  3. Double click to open the Device Clear.vi
  4. Swap to the False case of the case structure in this VI
  5. Add a VISA GPIB Control REN VI and set the mode input to "Assert REN"

I have included a picture below which shows the modification to make in the Device Clear VI. Please let me know if this fixes it for you.

 

AssertREN.jpg

 

Best Regards,

 

John M

National Instruments
Applications Engineer
Message 9 of 13
(11,537 Views)

Hello Ariel,

      What happens when you run the other examples?  If asserting the REN line does not remedy the problem, please take a look at the Instrument Driver Troubleshooting Guide

 

Cheers,

 

NathanT

0 Kudos
Message 10 of 13
(11,495 Views)