Virus scan in progress. Please wait to download attachments.
This VI returns the File Version of the Executable calling this function
This simple example code is very useful for built applications. If you have ever wondered what executable version you are using and don't want to find it in the local properties of the executable (remember that this property needs to be turned on in the Build Specifications for this to work), then this will help you out. Using the Current VI's path and Invoke Nodes, I parse out the version information and view it on the Front Panel.This VI uses the .NET Assembly to get the executable file version. 1. Create a .NET Class Reference constant and link it to the System Assembly then browse to System Diagnostics and choose FileVersionInfo 2. Use the FileVersionInfo Invoke node to get the version info reference of the executable file name 3. Use the FileVersionInfo property node to read the File version
LabVIEW 2012 (or compatible)
.NET Framework 3.5 (or Compatible)
Steps to Implement or Execute Code 1. Downlaod the attached folder "Get Executable Version Infomation_LV2012_NI Verified" 2. Navigate to Build Directory
3. Launch the Executable Test.exe and view its version displayed
4. Open the Project "Executable Version Information_LV2012_NI Verified" and then the "Get Executable Version Information_LV2012_NI Verified" VI to view the code
Additional Notes or References
Block Diagram of the "Get Executable Version Information_LV2012_NI Verified" VI
*This document has been updated to meet the current required format for the NI Code Exchange**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.