Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Error explanation for driver

I am developing a driver for a simple instrument which outputs data at a constant rate and constant length string. I'm getting error in the configure serial port vi. Here it is any help is appreciated:
Error -1073807346 occurred at Property Node in VISA Configure Serial Port-> Driver.vi.

Possible reasons:

This error code is not listed in the internal database, or you have wired a number that is not an error code (such as a DAQ task ID) to the error code input.
0 Kudos
Message 1 of 4
(3,744 Views)
Hi,

I checked in LabVIEW's online help and found the error -1073807346 means:
"The given session or object reference is invalid"

This is a VISA error. The following KB shows a posible solution for this error:

http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/a2561cde98b66dd4862566510078264f?OpenDocument

You can search for the error in our web site and see if you can find more info.

If the problem persist, let me know what NI-VISA and LabVIEW version you're using, as well as the OS and how are you configuring the serial port.

DiegoF.
National Instruments.
0 Kudos
Message 2 of 4
(3,744 Views)
Diego,
I looked at your suggestion but I can't find anything for Edit>>Preferences>>...... There is no preferences under my edit toolbar. I am running LV6.1 on Windows XP and the NI-VISA is the one installed from the software. The serial port is 9600baud, 8 data, 1 stop, no parity, no handshaking, on COM1, and the instrument outputs data every 3sec(approx). I've included a file of the driver if it helps. Thanks
0 Kudos
Message 3 of 4
(3,744 Views)
Hi,

The KB is for LabVIEW 5.0. In LabVIEW 6.1 this option is under Tools >> Options >> Miscellaneous.

I ran the VI you sent. It configures the serial port properly. I'm using Windows 2000 computer, but I couldn't find any known problems with windows XP.

You can find the NI-VISA version in MAX (Measurement & Automation Explorer). The lastest version is IN-VISA 2.6. Also check that the ports appear under "Device and Interfaces".

I don't know what could be happening. I would suggest reinstalling or reparing NI-VISA. Go to Add/remove programs and look for NI-VISA. You can also download the lastest version uptade at www.ni.com (if you don't have it already).

Also check the serial port of the computer doing a loopback test and
using hyperterminal. Go to www.ni.com then click on Support >> Serial for details.

It seems like a computer specific problem, either a bad installation or a faulty serial port.

Let me know if anything new comes up.

DiegoF.
National Instruments.
0 Kudos
Message 4 of 4
(3,744 Views)