LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does my .exe file run on the PC I created it on, which has LV installed, but it will not run on a PC which does not have LV installed?

I am trying to run a stand alone application on a PC which does not have Lab View installed. I created the executable file and the installer. However, when I run the .exe the VISA functions contained in the VI return error messages and the power supply I am trying to control does not respond. The stand alone application will run on a PC that has Lab View installed. 

My application initially used a VISA resource control to selct the instrument GPIB address on the PC I used to create the application. Since the PC I am trying to run the .exe on has an older version of NI-MAX I cannot create aliases that the VISA control can interpret.I have tried to upgrade NI-MAX hoping that would solve my problem:

Here is what I tried:

uninstall NI-488 and NI-MAX ( if you want to uninstall MAX you must uninstall NI-488 ) reinstall NI-488 and NI-MAX Ver 3.1 then try to install NI-MAX version 4.1 which I downloaded from NI website. When I do this I get an error message when I try to run MAX. None of this worked so I hard coded the instrument address as a constant and again that works on the PC with LV installed but does not on the PC without LV.

Any input would be greatly appreciated.

0 Kudos
Message 1 of 6
(2,888 Views)
It looks like you do have the LabVIEW runtime engine installed.  It might be that the VISA drivers you have are not compatible versions.  In NIMAX, look under software to see what versions of VISA software you have installed on both systems.
 
It does not matter what version of NI MAX you have installed, since your application does not use NI MAX.  NI MAX only helps you look at (or simulate) the hardware and software you have on your system.
 
One thing you could do is include drivers and the runtime engine while creating your installer.  That way, you should be able to do a complete install on a clean system.
 

Message Edited by Sudhir Gopinath on 06-19-2007 12:26 PM

S G
Certified LabVIEW Architect, Certified TestStand Architect, Certified Professional Instructor
0 Kudos
Message 2 of 6
(2,883 Views)
Silly question, but the target computer does have an NI GPIB card?

Paul
Message 3 of 6
(2,877 Views)
yes and I can communicate with the power supply via MAX
0 Kudos
Message 4 of 6
(2,869 Views)
You keep mentioning NI-488 and MAX, but you do not mention NI-VISA at all. When you right click on an instrument listed in MAX, you are not using NI-VISA for the communication. It uses the low level GPIB functions. Expand the software listing in MAX and verify that NI-VISA is installed as well as NI-GPIB. You also mention that your version of MAX is old and you can't assign an alias. I've been using VISA since it came out and I can't recall a time when you didn't have the ability to assign an alias. In any case, you might want to uninstall all of the hardware drivers and start fresh with the latest version of both NI-GPIB and NI-VISA. Installing those will update your version of MAX.

Message Edited by Dennis Knutson on 06-19-2007 12:10 PM

Message 5 of 6
(2,857 Views)

Thanks to everyone who suggested NI-VISA and to all the responders.  I was not including NI-VISA in the installer build and when I did that did the trick.

 

0 Kudos
Message 6 of 6
(2,832 Views)