LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stand alone

I'm trying to run my labview program on another computer that do not have the labview software. What changes should I make to my block diagram so that I'm able to save my labview program as an exe file?
0 Kudos
Message 1 of 8
(3,725 Views)

You need to build it into an standalone executable using the application builder.

 

What version of LV are you using?

What kind of license do you have for LV?

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 8
(3,724 Views)
You will also need to install the appropriate LabVIEW runtime engine on the target machine the you wish to run the exe. To build an executable (exe) would require you have the Professional Development LabVIEW package.
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 3 of 8
(3,719 Views)
Also, it depends if  your code is doing other things like accessing a serial port.  If the code uses VISA functions, then you would also have to install the VISA run time engine.
0 Kudos
Message 4 of 8
(3,703 Views)
I'm running Labview V8.5 and using an academic license. I've got one book that teaches me on the stand alone part. However its the block diagram part which I can't figure it out. They told me to add a Quit Labview function and simple error handler VI but I don't know where to place it in the block diagram. The rest of the options under the Application Build specification and installer build specification I've already followed according to what the book specified.
0 Kudos
Message 5 of 8
(3,700 Views)

Ok, very good. A typical program will have some initialization code that sets things up, a loop that does whatever you want your program to do a bunch of times, and then when you tell the program to quit, some deinitialization code that returns the system to some default state and cleans up any resources you may have opened. The Quit LabVIEW function needs to be placed such that it is the very last thing that gets called in this deinitialization code.

 

Something else to be careful of is if you are using relative file paths anywhere in your code - say for example you are expecting to find a configuration file in the same directory as the VI that is reading it. When you build an executable your relative paths change.

 

Mike...

Message Edited by mikeporter on 02-13-2009 06:13 AM

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 6 of 8
(3,682 Views)

I think I've fixed the problem already. Thanks again. Now I have a new problem, when I try running the stand alone application on another computer, I got this error :

 

"Find the shared library named nilvaiu.dll"

0 Kudos
Message 7 of 8
(3,643 Views)
Sounds like you might have just copied the exe to the other computer. Create an installer, include all necessary drivers and runtimes (espceially the LabVIEW runtime), and then use the installer on the other pc.
0 Kudos
Message 8 of 8
(3,627 Views)