Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

stand-alone executeable does not open serial port with VISA-driver

Using LV 6.1, when I built an application with VISA driver(with application builder 6.1)to communicate with a device by a serial port, it does not work properly. On the screen the ring showing the ports is disabled, so you cannot select the proper port, if necessary. Even a simple loopback-test fails, if the source-Vi is based on VISA. If I run the application on the computer where LabView is installed, this problem is not existing. If I use the old serial communication-vi to built the application, it works on all computers.
Are there any files to be added to the run-time engine?
Message 1 of 4
(3,727 Views)
Do you have VISA installed on the target machine where you are running the standalone executable?

Note that when you build an application with LabVIEW, it does not include driver software. Since it sounds like you are using the built-in COM port of the machine, the Windows serial driver is already there. That would explain why the old serial VIs work.

Regards,
Geneva L.
Message 2 of 4
(3,727 Views)
Geneva, thanks a lot, this was the solution.
I downloaded the from www.ni.com/visa the VISA-run-time version, then let it run on the machine (only installing the serial components) and it works. Fine!

Not so fine is that I have to run 2 installers (LV-run-time-machine AND VISA-run-time). I wonder if I could implement the VISA driver installation into the LV-Run-Time-Machine-Installation. Are the dll-files installed in the path WINDOWS\SYSTEM the same for all recent WINDOWS-OS?
National Instrumentalists, do you know?

Regards,
cyanopugnax
Message 3 of 4
(3,727 Views)
Hi,

The LabVIEW installer has the option to execute a program after installation. Youj can use this to execute the VISA installer.

The LabVIEW 6.1 installer uses the Windows Installer, which clashes with the VISA (and other drivers) installer.

The following knowledge base explains the situation, and provides a workaround:

How Do I Distribute National Instruments Drivers with Applications Built in LabVIEW 6.1?

Hope this helps.

DiegoF.
Message 4 of 4
(3,727 Views)