04-25-2016 03:56 AM
We have about 10 projects with each at least 1 build definitions, building these manually is tedious.
Looking into automating this I came across http://www.ni.com/example/30051/en/. This has two problems making it not really usable:
Ideally a solution to the second problem would be ideal, however a nice way around the first one would already be a good start. Any ideas? Thanks!
Solved! Go to Solution.
04-25-2016 05:15 AM
04-25-2016 05:39 AM
This article from our friends at JKI is old, but still good - http://blog.jki.net/jki/can-you-build-your-application-in-one-click/
04-25-2016 05:52 AM
@SamSharp I've attached the programmaticbuild.vi, only slightly modified from the original, and a project which just creates a standalone application from it.
Called from the commandline like ProgrammaticBuild.exe /path/to/my.lvproj, the generated logfile contains
ProgrammaticBuild
/path/to/my.lvproj
/path/to/my.lvproj was unsuccessful for build. Error Code: 1025 Error Source: Open VI Reference in NI_App_Builder_API.lvlib:Build (path).vi->BuildTargetBuildSpecification.vi->programmaticbuild.vi<APPEND>
VI Path: <b>_bin\vi.lib\AppBuilder\BuildTarget.vi</b>
I don't know for which vi the 'Open VI Reference' error is
The exact same command works when ran through labview, i.e. if I call "C:\Program Files (x86)\National Instruments\LabVIEW 2013\LabVIEW.exe" programmaticbuild.vi -- /path/to/my.lvproj the logfile has
LabVIEW
/path/to/my.lvproj
/path/to/my.lvproj was built successfully.
@Jim interesting but it also uses BuildTargetBuildSpecification.vi, so will probably generate the same error I'm facing now
04-25-2016 05:56 AM
04-25-2016 06:05 AM
@mikeporter wrote:
one of the things stripped out of a standalone executable is the ability to compile code.
Aha, that explains a lot.
We're planning to make building of our Labview projects part of a continuous integration, so yes we're going to build them often.
Another workaround for option 1 would be to write the projects to build to a file which is then read by the vi.
But the idea of a 'server' application which builds is probably the most viable. Thanks!
04-25-2016 06:16 AM