LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW QA - Reading Build Specifications from a LabVIEW Project to Programatically Build Multiple Targets

Hello there,

I'm trying to build multi targets over night from our SVN repo. The following VI looks promising (C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\AppBuilder\BuildTargetBuildSpecification.vi) but I'm having problems trying to transverse the XML in the LabVIEW project file using the Project Invoke Method. The following example (C:\Program Files\National Instruments\LabVIEW 8.2\examples\project\viserver\Add Files to Project.vi) shows adding VIs and folders to a project programmatically.

Can anyone point me on how to read the decendants of the Build Specification tag in a LabVIEW 8.2.1 Project file?

-Chroma



0 Kudos
Message 1 of 3
(3,297 Views)
Chroma,

I am a little unclear about your question.  You should be able to use BuildTargetBuildSpecification to build all or selected build specifications within a project.  You could build a program to call this VI for different projects and build specifications.

Are you looking to find out all builds present in a project, similar to how the other example you pointed too adds files?  If so, have a look at the attached screen shot.  This opens the project, gets all descendents of type "EXE" (application builds), and creates an array of their names.  If you don't specify "EXE", it will return all project descendents (builds, VIs, libraries, etc...).  The help for the "Get All Descendents" method lists other possible types that you can specify besides "EXE" that might be useful, such as "VI", "DLL", "Source Distribution" and "Installer".

I hope that helps!


0 Kudos
Message 2 of 3
(3,241 Views)
Many thanks - that was exactly what I was looking for!

-Chroma
0 Kudos
Message 3 of 3
(3,229 Views)