LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
zenthoef

Programmatically Retriving the Compile/Build Date

Status: Declined

Any idea that has received less than 5 kudos within 5 years after posting will be automatically declined.

It would be helpful if I could programtically retrive the compile/build date of an EXE created with the LabVIEW through a property (maybe invoke?) node. Of course, this would be meaningless during development...Even if it is not an option to retrive this programatically with a property node, perhaps it can be something set when the EXE is built and retrived/displayed when the EXE runs?

 

I use the date the application is built in an indiacator onscreen with the revision number of the software to indicate revision and build date. Right now I have to manually change this everytime. I don't believe retriving the "modified date" the "File/Directory Info.vi" is safe enough as those file parameters can change.

 

I haven't been able to find a way to automate this, so I'm suggesting it here. Obviouslly, whenever I am doing something manually over and over again that is a good thing to automate. Smiley Happy

3 Comments
JackDunaway
Trusted Enthusiast

This is possible with the current toolset. We have our builds automated with a single-click, and some fields are are auto-incremented or auto-populated.

 

In a nutshell (I'm not looking at our code right now), you must create an automated "builder" VI. Look at the Help example "Build Targets Programmatically.vi", and specifically "BuildTargetBuildSpecification.vi". Before placing this into your builder VI, use the VI server to Set Control Values with the values you want and then Make Current Values Default invoke node and then Save Virtual Instrument on whatever VI has the FP indicators that will "store" your build tags/version/date. The VI that "stores" your build info will be a SubVI with no code, but all of the FP indicators now have the default values stored, and you can use the outputs of that SubVI as a "global constant" wherever you want to display the info.

 

That was a pitiful explanation, but at least you know it's possible to do what you want, and it should set you on the right track to finding out how.

zenthoef
Active Participant

Jack -

 

You're right! This is exactly what I was looking for, plus so much more. Thanks for the help.

Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 5 kudos within 5 years after posting will be automatically declined.