02-03-2026 08:23 AM
I'm trying to create a command line utility to build LabView (2013) application exe from command line.
I worked out a solution that works fine .. it uses a powershell script and a VI that executes the build task.
The shell script is something like that:
As I stated everything works fine but "Build output" string indicator is always empty or looks like that..
of course it's a matter of UI thread synchronization.
I tried putting some delay inside for loop, checking the "Synchronous Display", but nothing appears.. just a 1 second or higher delay before the exit allows to read some of the text on the output.
Solved! Go to Solution.
02-03-2026 09:43 AM
Have you tried to use local variable instead of property node?
02-03-2026 10:26 AM - edited 02-03-2026 10:28 AM
I think I understood... and it was also pretty obvious but I didn't get it immediately because I was thinking Build VI was working as the build action when launched from LabView... but.. Build VI just run synchronously.
Anyway I had a chance to learn a little bit on queues (as I used a consumer producer template trying to solve the asynchronous UI update and it works).
Set aside the main issue a new question emerged: "It's possibile to know if a .lvproj defines more than one build specification?"
02-03-2026 10:34 AM
> a new question emerged: "It's possibile to know if a .lvproj defines more than one build specification?"
Sure. From Project property node => MyComputer=>BuildSpecs ...
02-03-2026 11:08 AM
Set aside the main issue a new question emerged: "It's possibile to know if a .lvproj defines more than one build specification?"
And the answer is yes... as cleary explained here:
Programmatically Find the Names of Build Specifications
The need for this it's just to verify if the Build Specification provided by the user as parameter is correct; leaving Build VI to run with a wrong specification input does not provide an useful error message.
The example provided above works fine but if you're using such method to run a build over the project you probably wish to close the Project reference, if you don't call the Close method you will probably asked for the project to be saved.
Maybe this last point should be investigated for side effects on build number update.