LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 6.1 problems with VISA when running application executable

Hi,
I created stand-alone application (.exe) which communicates to serial port. The problem is that I get error when trying to launch it: "Error 1073807343 at VISA write:Insufficient location information or the device or resource is not present in the system."
There is Labview RTE 6.1 and NI-VISA 2.60 RTE installed. I don't use any other VISA drivers which might be incompatible (there is only NI-VISA RTE v2.6 installed). The same problem occurs on different PCs running Win98SE and Win2000 operating systems.
On Labview development system everything works just fine. Does anybody have any ideas, what is wrong?
Thanks in advance.
0 Kudos
Message 1 of 3
(2,719 Views)
I've seen this happen when the program uses a VISA resource name of "Com1" instead of "ASRL::1". Com1 is an alias whereas ASRL::1 is the actual VISA name of serial port #1. I don't believe that just installing VISA RTE will create the aliases. If that's the case, you can change your program to use the actual VISA resource name instead of the alias or install a visaconf.ini file with the alias names in it. The file (on a WinNT/2K/XP machine) should be in VXIpnp\WinNT\NIvisa.
Message 2 of 3
(2,719 Views)
Thanks! You helped me a lot. The problem was really related to VISA resource names. On non-development PCs there were no aliases defined inf visaconf.ini [Aliases] section, that's why I experienced difficulties to get my application working. VISA resource name on front panel of my appl. was named "COM1", and it had to be changed to ASRL1::INSTR in order to fix the problem. Indeed, VISA RTE does not create aliases itself.
0 Kudos
Message 3 of 3
(2,719 Views)