Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

8 1/2 Digit Multimeter Agilent 3458A problem

Hi,

 

I have created a VI to read from the Agilent multimeter mentioned but but I am getting an error message. The connection is done using a GPIB-USB-HS. I use the Agilent drivers I download from the NI website (http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=36A7F6A5AF553389E0440003BA7CCD...

 

The VI consists of of a state machine hat goes through the various steps of the process of acquiring data from the multimeter. "Initialise" reads the sourde name of the equipment. "Open" initialises the comminication (with Initialize.vi). In the "Configure" state the measurement is conigured (with ConfigureMeasurement.vi). In the "Read" state, a single measurement is taken from the equipment. The "Close" state closes the connection with a Close.vi.

 

This VI is a subVI of the main program (MainDCRM.VI).

 

I need 5 measurements from the equipment but in the first measurement there is an error and the it doesn't go to the next measurement. The error I get is code -1073807339 and source: Visa Write in Agilent 3458.Measurement (Single Point)>DVMs.vi->MainDCRM.vi.

 

When I create a VI with just that sequence of VI's (from the source name to the Close.vi I don't get the error message.

 

I was wondering if anyone could help me with this. Could this be a driver problem for some odd reason? It doesn't seem to me that there is a problem with the state machine since at the same time I am acquiing data from another multimeter and this is performed with no problem.

 

Thank you,

Regards,

Rita

0 Kudos
Message 1 of 7
(5,942 Views)
You can't acquire data from another instrument at the same time with GPIB unless you do some special programming. Do you mean you have another state machine running in parallel?
0 Kudos
Message 2 of 7
(5,934 Views)

Hi,

 

No. What I mean is that I have 2 multimeters going in my state machine and more or less at the same time I am acquiring data from the multimeters. I don't need it to be exactly at the same time but roughly.

0 Kudos
Message 3 of 7
(5,914 Views)
I don't know what you mean by 'more or less at the same time'. In the same state? Please attach an image of the block diagram. Use a snippet!
0 Kudos
Message 4 of 7
(5,898 Views)

Yes, I mean that the two acquisitions are done in the same state as you can see in the picture.

 

block.jpg

0 Kudos
Message 5 of 7
(5,892 Views)
As I already said, you can't do GPIB communication in parallel. Use your error wires to do it sequentially.
0 Kudos
Message 6 of 7
(5,888 Views)

Just wire the Single Point vi for the Agilent meter after the Read of the HP meter. 

0 Kudos
Message 7 of 7
(5,883 Views)