Discussion:
Application Builder EXE
(too old to reply)
OwenC
2008-08-14 12:10:05 UTC
Permalink
I wrore a VI using Labview 8.5.1 and used Application builder to create a EXE so I could run it on other Lab machines. Application bulider creates the executable, however when I run the program (even on the machine with my working VI) it does not communicate with any of my instruments nor give an error message. The original VI woks perfectly, I am communication with Agilent E4432B Signal Generator & Agilent E4402B Spectrum analyzer through VISA. If anyone can shed some light on what I am doing wrong I would greatly appreciate it.  OwenC
centerbolt
2008-08-14 13:10:05 UTC
Permalink
Owen, In order for your .exe to have a chance at running on a target PC you will need to install LV Runtime and NI-VISA Runtime on the target machine along with the .exe.  The version of LV Runtime should match the version of LV you used to create the .exe.  The version of VISA Runtime should match the version of VISA loaded on your development machine.  A quick way to do this is to create an installer using Application Builder. Note:  There may be other files that need to be installed as well depending on you vi.
OwenC
2008-08-14 13:10:05 UTC
Permalink
Hi Centerbolt, Thank you for your valid suggestion. As mentioned though, when I ran into the isssue I tried to run the EXE on the machine where I developed the VI and had it running. Therefore I must have the proper drivers and required file on this machine. Still the EXE did not work. PS: I had a demo version of Labview 8.5.1 running on the target machine, my developed VI worked fine, so I still have the instrument & VISA drivers installed OwenMessage Edited by OwenC on 08-14-2008 07:54 AM
muks
2008-08-14 13:10:07 UTC
Permalink
 
Owen Wrote: it does not communicate with any of my instruments nor give an error message. 
Very strange indeed. Can you just run a vi with the close session before running the exe? Just in case the session is not closed properly. Check the com port number before running the exe. To be doubly sure create the comport as a control rather than a constant. Check whether the comport number u have given is proper.  Connec all the error connections.   
muks
2008-08-14 13:10:07 UTC
Permalink
Posting your vi or a screen shot of your block diagram will defenitely help
Loading...