LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application Builder EXE

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

0 Kudos
Message 1 of 5
(3,305 Views)

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.

0 Kudos
Message 2 of 5
(3,297 Views)

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

 

Owen

Message Edited by OwenC on 08-14-2008 07:54 AM
0 Kudos
Message 3 of 5
(3,293 Views)

 


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. 

 

 

0 Kudos
Message 4 of 5
(3,289 Views)
Posting your vi or a screen shot of your block diagram will defenitely help
0 Kudos
Message 5 of 5
(3,288 Views)