LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measurement using 34401A

Sorry, I am using  ICS Electronics 488-USB2.  I changed the language on the HP to SCPI (from HP 3478A), now with the single measurement VI I can take one reading.  Then I time out after that.  So progress at least.
0 Kudos
Message 11 of 15
(1,953 Views)
Here is the error code that I am getting when I try to read a second measurement:

Error -1073807339 occurred at VISA Write in Agilent 34401.lvlib:Initialize.vi->Agilent 34401 Read Single Measurement.vi

Also, if I enable tulip passport I do not get any response and get following error:

Error -1074003951 occurred at Agilent 34401.lvlib:Initialize.vi


FYI, I should note that with the same controller I have no problem using a HP 54610B oscilloscope with no issues.  So I know that in general this ICS controller works.
0 Kudos
Message 12 of 15
(1,944 Views)
Progress!!!

Ok, it was hanging the second time I would ask for a measurement, specifically I was timing out at the IDN? Write in the Initialization vi the second time through.  So in the close vi I added a VISA CLR right before the VISA Close.  And it seems to work!!  So far so good anyways.
0 Kudos
Message 13 of 15
(1,939 Views)
Hi Seanp,

It's great that you are moving forward in your application. Here are a few things that might help.

You can find more information about the error codes by pasting them in the search field of the www.ni.com website.

Here is the link I found about it.

The link suggests to increase the timeout value.  However, that may not solve the problem if the instrument is not sending anything.

You mentioned in one of your last posts you were using an example.  Can you point us to that example?  

Also, it seems like you are opening and closing the VISA session everytime you read measurements.  You can put your "read measurements" part of your program in a while loop such that your program will only open the VISA session once and close it at the end of execution.

Regards,

 
O. Proulx
National Instruments
www.ni.com/support
0 Kudos
Message 14 of 15
(1,921 Views)
I have been using the Agilent 34401A Single Measerurement example from NI, which is why I am opening and closing the VISA session everytime.  But that sounds like a good idea to do a while loop as I hope to adapt this example to automatically take a reading every X seconds for Y measurements (or user says stop).
0 Kudos
Message 15 of 15
(1,918 Views)