Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -1073807202

Hello,

I am trying to run the "Basic Serial Write and Read.vi"
downloaded from your homepage.
Trying to run it, the following error message appears:
"
Error-1073807202 occurred at Property Node in VISA
Configure Serial Port (Instr).vi-> Basic Serial Write and
Read.vi
This error code is undefined. No one has provided a
description for this code, or you might have wired a number
that is not an error code to the error code input.
"

Does anybody know what to do about it?
Thanks in advance.
0 Kudos
Message 1 of 14
(6,448 Views)
Hi Chee,
This is VI_ERROR_LIBRARY_NFOUND BFFF009Eh (-1073807202) A code library required by VISA could not be located or loaded.
May be VISA library is missing. Br, Sergei
"Only a life lived in the service to others is worth living..." - Albert Einstein
0 Kudos
Message 2 of 14
(6,437 Views)
Hello,

Just to make sure that VISA is installed correctly, try doing the following:

Open LabVIEW and navigate the functions palette on the block diagram as follows:

All Functions -> Instrument I/O -> VISA -> VISA Advanced -> VISA Open

Then do:

1. Drop the VISA Open function onto the block diagram

2. Right click on the upper left hand terminal and select Create -> Constant
3. Choose an available serial port, which should populate there as COMx where x is a number (you can verify which serial ports you have installed using MAX or Device Manager; if you need to do this or would like to but are unfamiliar, repost and I'll describe how).
4. Run the program

Any errors? The reason I am asking you to do this is that the VISA property node (which is really the heart of the VISA Configure Serial Port VI) will implicitly open the VISA resource if it is not already open; I don't suspect that the error is due to setting a specific property there, but we'll see 🙂

Repost with whatever you find!

Best Regards,

JLS
Best,
JLS
Sixclear
0 Kudos
Message 3 of 14
(6,416 Views)
Hello JLS,

thank you for your detailed comments.

I am not familiar with Labview so far. I have just downloaded
the evaluation v7.0 and wanted to see how it works with one of
our serial devices.

I followed your instructions as far as I could and the same error
appears. (see screenshot). I was not able to select a serial port.
It would be great if you could explaine me how to do that.

Best regards
Chee
0 Kudos
Message 4 of 14
(6,413 Views)
Hello,

I am wondering if VISA is fully operable with the evaluation version... if the palette is populated VISA support should be installed for LabVIEW. If you are not able to select a serial port by using the operting tool (looks like a hand on the block diagram) and clicking the down error on the VISA Resource Name constant (top left purple input to the VISA Open function), then it may be because there are no native serial ports available on your computer (otherwise VISA would recognize them and populate them). This seems unlikely if it is a desktop PC; so attempt to click next to the arrow on the resource name constant with the operating tool, select a COM or ASRL resource, and let's try the following:

Remove all code (including the while loop) except the VISA Open function and VISA Resource Name constant which is wired to it. If you do not remove the while loop you will inevitably get an error as a result of attempting to open the same resource again on consecutive loop iterations without first closing (and therefore releasing) it.

You should have a blank block diagram except for the VISA Open function and VISA Resource Name constant which is wired to it.

NOTE: Before doing this, close LabVIEW completely and then launch it again to be sure that all resources have been closed!

I look forward to your repost! Once we can open the resource in LabVIEW without error, we'll be able to do a loopback test and verify communication with the port no sweat 🙂 Also, take a look at the eval documentation and read any notes about VISA and/or serial specific considerations. I can assure you this is entirely seemless in any shipping version 🙂

Best Regards,

JLS
Best,
JLS
Sixclear
0 Kudos
Message 5 of 14
(6,407 Views)
Hello JLS,

in fact I am testing on a notebook without a physical serial port, but with a usb-serial adaptor
that is working well so far with any software. I use it almost daily. Now I read that Labview 7.1
has some new features in respect of virtual serial ports. As the evaluation software is 7.0 only,
is it that it can't handle a virtual serial port ?

Best regards
Chee
0 Kudos
Message 6 of 14
(6,379 Views)
Chee,

I did tests and runs on several version of LV with different types of USB2serial devices without any problems. I'd not expect LV having those types of probs. Can you access that port with any other SW like Hyperterminal? Can you access this port with MAX (Measurement and Automation Explorer)? Try creating a control or constant from VISA open, select the port you are trying to access and run this. Maybe you should set the VISA session type property for this control/constant (right-click, select VISA-class / I/O session / Instr / serial). Now you should be able to choose the right com port.

BTW, many of those USB2serial devices have some config SW that allows you to choose the com port a given port of that device is acting as.

This is best checked by this confoig SW or in MAX. Open MAX, choose 'my system' / 'devices and ports' / 'ports' and than your specific port. Open a VISA session and choose 'template' / 'property node (read)'. Select the button 'View all settabel attributes'. If this does not cause an error than your port is recognised. testing you device using a VISa session is not too easy, Hyperterminal is better for this.

If you have confirmed that MAX is recognising your device and that the device is working as expected, than LV should operate it as well. Otherwise you have some probs wioth your LV installation.
0 Kudos
Message 7 of 14
(6,373 Views)
Hello Lul,
thank you for your comments.
The usb-serial device is working fine. As I said, I use it almost dayly with several applications. Hyper Terminal is also working with it without problems. Now I tried to start MAX and a message appeared that: "MAX could not be launched. Probably it is not installed".
I did nothing but the standard installation procedure of Labview 7 Express evaluation software. I did it 2 times. One time from the Internet, the second time from CD. Is there a posibility to install MAX sperately, in case the standard install-wizzard doesn't do it ?

Best regards
Chee
0 Kudos
Message 8 of 14
(6,374 Views)
MAX is installed with any hardware-driver from National Instruments. So you could reinstall the GPIB or the NI-DAQ driver. MAX should be reinstalled together with the driver. Hope this helps.

André
0 Kudos
Message 9 of 14
(6,359 Views)

I'm not sure that NI-VISA gets installed with the eval version of LabVIEW. Please go to Drivers and Updates and download and install the current version of NI-VISA. Currently, version 3.2. They you should be able to open up Measurement and Automation explorer and see NI-VISA listed under the Software tree.

-Josh

0 Kudos
Message 10 of 14
(6,344 Views)