LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Build standalone applications from command line

Is ist possible to create a standalone application without starting LabView?
I want to use a batch-job from the command line to automate the creation.
0 Kudos
Message 1 of 5
(3,036 Views)
 
hi there,
 
this should work with LV 7.1 (don't know about the file names of the AppBuilder for prior versions):
 
1. Create a VI (lets call it CMD_Builder.vi)
2. Place  ..\National Instruments\LabVIEW 7.1\project\prodisttool.llb\_Build Application from Script.vi as a SubVI
3. Place the Applications property Application.Command Line Parameters to get the command line parameter (e.g. the path to the build script) in CMD_Builder.vi
4. feed  _Build Application from Script.vi with the BuildScript - Path from the command line parameters, be sure to close CMD_Builder.vi when done with building
5. Create a BuildScript for CMD_Builder.vi, be sure the enable Application Settings->Pass all command line paramaters to application
6. Build CMD_Builder.vi
7. Call CMD_Builder.exe in your script and feed the BuildScript - path
8. let me know if it works (or not..)
 
 
 
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 5
(3,030 Views)
Hi Chris,
I tried to build the application in the way you explaind.
But I have got the problem that I can not build the CMD_Builder executable, because LabView always complains that it can not close some subVIs that are opened by CMD_Builder.
Do you have any idea how I can solve that Problem?
 
Best regards,
Johannes
0 Kudos
Message 3 of 5
(2,984 Views)

arghll!

the CMD_Builder executable containes VIs from the Application builder itself, and these VIs can't be closed before creating the executable! sorry, didn't thought about that deadlock. the application builder VIs are password protected, so there is no way to rename them.

try to call the Application builder dynamically within CMD_Builder.

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 4 of 5
(2,972 Views)

Hi Chris,

how can I call a VI (Application builder) dynamically?

Best regards,

Johannes

0 Kudos
Message 5 of 5
(2,957 Views)