Store the application version number in a constant and use a Pre-Build Action VI to automatically update it.
In a Real-Time Application build specification, Labview allow us to set a version number. But unfortunately the App.Version node doesn't work in the RTEXE and there is no other way to get our version number.
As a workaround, I use a constant named "AppVersion" in the top-level VI and i use a Pre-build Action VI in the build specification to automatically update the constant before each build.
In this example, the constant is a string but it can be changed easily with numeric values.
Labview with Application Builder.
Copy the Pre-Build Action VI in your project and add it as a Pre-build action in your Application Build Specification.
LabVIEW Real-Time Ideas : Add a version number to RT EXE files
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
The "pre build" vi is executed but I cannot do any debugging and nothing is updated on the front panel. Am I missing something here?
(I had a bit of difficulty and it would have been faster to find my errors if I could watch vi run or, at least, output something to FP)