Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to fix VISA Read -1073807339 error?

Hi,

 

I am trying to use LabVIEW to control the Agilent 4294A Impedance Analyzer and have tried using a VI provided by Agilent to read and record data from the impedance analyzer. However, I seem to get a the -1073807339 error from VISA Read. I have been reading up on this error and have tried increasing the timeout time (I have modified the original LabVIEW file from Agilent) but I still get the same error. I don't know what else to do and would greatly appreciate any help. I have attached a screenshot of my VI.

 

Thanks,

NikaS

0 Kudos
Message 1 of 17
(4,967 Views)
What type of connection do you have to the instrument? GPIB, serial, ?
0 Kudos
Message 2 of 17
(4,962 Views)

I'm using the LAN at the moment but if it turns out to be too slow I will switch to GPIB.

0 Kudos
Message 3 of 17
(4,960 Views)

Is the instrument listed in MAX? In MAX, are you able to do some basic communication such as query the ID?

 

Can you attach the driver you got? I can't find anything on Agilent's site.

0 Kudos
Message 4 of 17
(4,953 Views)
Yea, it should be connected properly because I can run other VI's, such as the "Configure Display" example that comes with the NI driver, and MAX also says the device is connected.
0 Kudos
Message 5 of 17
(4,950 Views)

Here is the link to the driver for the 4294A. It's from the NI website: http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=5039

 

0 Kudos
Message 6 of 17
(4,948 Views)
Your comment about the driver coming from Agilent is confusing. You have some code there that does not look like it came with the driver. Where did that come from? If you look at the block diagrams of the functions in the driver, you will notice that a line feed is appended to each command that is written. Your code does not have that. The timeout might just be a problem with you sending the command incorrectly.
0 Kudos
Message 7 of 17
(4,934 Views)

Sorry for the confusion - I meant to say that I got the driver from NI but the program to store data (that I am having problems wth) from Agilent. I noticed the missing \n at the end of the command and tried adding it in but it did not work. Since this program was provided to me as one that should get the job done (and I am a beginner) I would assume that it should not have problems with its coding, but I could be wrong.

Any advice would be great. Thanks.

0 Kudos
Message 8 of 17
(4,903 Views)

Double check that you are actually sending the termination character. The string constant has to be set for '\' Codes Display. Right click on the constant to check/change. You might also want to attach the custom code that you got. The image only shows one frame.

0 Kudos
Message 9 of 17
(4,896 Views)
I double checked and made sure it was set but still get the same error. I have attached the code. I forgot to mention that the analyzer also displays a message on screen saying "GPIB command error occurred". Thanks for your time.
0 Kudos
Message 10 of 17
(4,893 Views)