Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA error -1073807346

I am using LabVIEW 6i to communicate with a HP34401A via HPIB with the HP34401A drivers downloaded directly from the ni.com website. As soon as I run the VI "HP34401A App. Example.vi" or VI "HP34401A Read Measurement.vi", I immediately receive VISA error -1073807346.
0 Kudos
Message 1 of 14
(7,231 Views)
What you should do when you receive an error is to right-click in the error cluster and choose Explain Error.

For this error, you should see that the session is invalid. This means that for some reason you did not provide a valid VISA resource string for the instrument. For GPIB, this should look something like GPIB0::5::INSTR, if the GPIB controller is configured as board 0 and the device address is 5.

If you are using an Agilent/HP driver and GPIB controller, then make sure you have their latest driver (at least L.01). Some of their earlier drivers (I think version J or K) did not work correctly with LabVIEW 6i.

If you are using an NI GPIB controller and you think you are using the correct resource string, try using MAX and NI Spy to see if the
y help pinpoint the problem.

Dan Mondrik
Senior Software Engineer, NI-VISA
National Instruments
0 Kudos
Message 2 of 14
(7,231 Views)
I believe I am using the proper VISA resource string (GPIB0::17::INSTR). The error occurs at the first property node of sub-VI "HP34401A Read Measurement.vi".

How do I check the version of the HP driver? I simply downloaded the most recent HP34401A VI library from the ni.com website.

Can you please be more explicit about how MAX or NI Spy can help me? Thank you for your prompt response.
0 Kudos
Message 3 of 14
(7,231 Views)
The "driver" I refer to is not the instrument driver. I am referring to the driver for the GPIB controller. Is that controller NI or HP/Agilent? The GPIB driver must be explicitly for that controller.

If that controller is HP/Agilent, then use their config utility to find out the version. They probably have a Help>>About menu that will give you this information. For downloading a newer version of this driver, see:
http://we.home.agilent.com/cgi-bin/bvpub/agilent/editorial/cp_MiscEditorial.jsp?OID=536913958&NAV_ID=-12268.536881830.03&LANGUAGE_CODE=eng&COUNTRY_CODE=ZZ

If the controller is from NI, you should use MAX, expand Devices&Interfaces, and see whether the controller is correctly configured. Try "Scan for Instruments" to se
e if the device is correctly found. Also, you should run NI Spy when running your LabVIEW VI to see what calls are being made and exactly where the error occurs.

Hope this helps,
Dan Mondrik
0 Kudos
Message 4 of 14
(7,231 Views)
Hi, I am using Labview 8.2.  Whenever I start to run a very simple programm like VISA example from the Labview manual.  I receive the following message  "Error 1073807346 occured at VISA write in VISA.vi".  In MAX under the hardware - Miscellaneous VISA resources (a Question mark appears infront of VISA resources), I can see my device (HP 34401A).   When I was trying to solve this problem, I came across another problem  (I guess this have something to do with my previous problem).  Under NI-VISA I found NIvisaic.exe, when I press start NIvisaic.exe, immediately I receive the following error. 

Unable to find resources using expression "?*"
Return status code: 0xBFFF003A
Status Name:  VI_ERROR_INV_SETUP

Please help me to solve this problem.  Thank you in advance.
0 Kudos
Message 5 of 14
(6,677 Views)
Meenu,

Thank you for contacting National Instruments.

Do you have the most current drivers for the device? These drivers are NI-VISA 4.2, NI-488.2 2.5 and Hewlett-Packard / Agilent Technologies 34401A. Please ensure that you have these current drivers installed. Also, when you get the "Error 1073807346 occured at VISA write in VISA.vi" error, which specific VI is this error occurring at?

Please let me know me the results of this suggestion. Have a great day.
Sarah S.
Applications Engineering
National Instruments
Message 6 of 14
(6,635 Views)
Dear Sarah,

Thanks for your tips.  I have the latest drivers installed in my computer.  I also installed the Agilent I/O suite.  The error appears for the simple VISA example.  I am able to communicate with the device via GPIB, but not via VISA.  I forgot to mention in my previous message thatTestPoint is also installed in the same computer. 

regards,
Meena
0 Kudos
Message 7 of 14
(6,619 Views)
Meenu,

The issue may be due to incorrect setup of the GPIB parameters. An example that I would recommend you try is Basic GPIB Write and Read using NI-VISA.

Please let me know if this is able to resolve the errors you are currently seeing.
Sarah S.
Applications Engineering
National Instruments
Message 8 of 14
(6,605 Views)

Meena,

You mention the Agilent I/O Libraries. Does that mean that you do not have an NI GPIB board? If that's the case, that's a vital piece of information you should have included in your first post. See http://digital.ni.com/public.nsf/websearch/F7C187DBF09EBE1186256F550065BD32?OpenDocument

Message 9 of 14
(6,600 Views)
Hi Dennis,

Thanks for your reply.   I have installed Agilent I/O suite 15.0 but when I installed I uncheck the box of VISA therefore I have only VISA from NI.  Today I also installed the VISA 4.2.   Still I have the same problems with VISA.   Looking forward for more suggestions.

regards,
Meena
0 Kudos
Message 10 of 14
(6,586 Views)