12-20-2006 02:38 AM
Any SW development unit must have an automated build chain to which you can say build us version X. All tools in the chain must do their job without any user interaction. As we use LabVIEW in our build chain this applies to LabVIEW.
So we found …\vi.lib\AppBuilder\BuildTargetBuildSpecification.vi that enables us to programmatically build LabVIEW projects. We combined this with a vi that can read “command line” parameters. The only thing we now need is building this vi in to an executable that we can use in our automated build chain to build LabVIEW projects.
Problem is that this doesn’t work.Refer to the attached vi;
This runs perfect when executed from straight LabVIEW. However if it is added to a project and opened from there is stops working?? We get the attached error (Error 1025, LabVIEW: Application Reference is invalid. VI Path: C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\AppBuilder\BuildTarget.vi).
Also when build into an exe this exe doesn’t work either, i.e. nothing happens no error message.
Any ideas?
01-05-2007 02:07 AM
Hello,
This is a known issue see explanation below. It is on a list to be fixed in a future version but I cannot give you a timefram or version number.
Explanation:
This error occurs because a project is open while trying to programmatically build a project. Since this VI will reference a project file (*.lvproj) in its execution, a project should not be open (especially the project being built). To prevent this error, close any open projects. Then open the VI without any project attached to it.
Regards,
RikP
National Instruments