LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reporting success or failure of labview command line build

We've set up a nightly build for our project, using a batch file for compiling the C++ code in our project on Windows. Thanks to some other posts on this subject, we've gotten the command-line build to work in Labview 8.2. I'd like to add the Labview build command to same batch file as the C++ build. We found how to check within Labview if the project built or failed; however, I didn't see a way to report the success or failure status of the build from the Labview environment back up into the calling batch file (as/just before Labview exits).

One option is to have the batch file check for the existence of the Labview output executable file(s). Does anyone have a more elegant solution?

Thanks,

Adam
0 Kudos
Message 1 of 2
(2,575 Views)
Hello Adam,

Based on what you have described, your method seems to be the simplest way to do it.  You can not only check whether the executable files were created, but you can also check to see the modification dates to make sure that they are from the latest build.

To check if they exist, you can use the following batch command to check if a file exists: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
IF EXIST some.txt DOSOMETHING

Good luck!
Kameralina

0 Kudos
Message 2 of 2
(2,532 Views)