09-20-2012 10:14 AM
Is there any way to query a LabVIEW executable to determine what version of LabVIEW it was coded in? I need to tell my production department what Run-Time Engine to install to use some old LabVIEW EXEs.
Thanks!
Solved! Go to Solution.
09-20-2012 10:26 AM
@NIquist wrote:
Is there any way to query a LabVIEW executable to determine what version of LabVIEW it was coded in? I need to tell my production department what Run-Time Engine to install to use some old LabVIEW EXEs.
Thanks!
I was under the impression that the latest available run time engine is backwards compatible? So the latest version will run all applications built using the current and previous versions of labVIEW..
I could be wrong
09-20-2012 10:28 AM - edited 09-20-2012 10:30 AM
@Strokes wrote:
I was under the impression that the latest available run time engine is backwards compatible? So the latest version will run all applications built using the current and previous versions of labVIEW..
I could be wrong
Sorry, but yes, in this case you are wrong. There is no compatibility between LabVIEW run-time engine versions.
EDIT: this was just discussed http://forums.ni.com/t5/LabVIEW/Backwards-compatibility-of-the-run-time-environment-RTE/m-p/2160426
09-20-2012 10:58 AM
@NIquist wrote:
Is there any way to query a LabVIEW executable to determine what version of LabVIEW it was coded in? I need to tell my production department what Run-Time Engine to install to use some old LabVIEW EXEs.
You can simply run the applicaiton on a computer that doesn't have any LabVIEW software installed. You'll get a dialog box that tells you which version you need.
09-20-2012 02:34 PM
@smercurio_fc wrote:
@NIquist wrote:
Is there any way to query a LabVIEW executable to determine what version of LabVIEW it was coded in? I need to tell my production department what Run-Time Engine to install to use some old LabVIEW EXEs.
You can simply run the applicaiton on a computer that doesn't have any LabVIEW software installed. You'll get a dialog box that tells you which version you need.
True, but in this case my IT guys requested a method that would let them determine which RTE to pair with each EXE easily. I thought there might be a file property of the EXE that they could query. I think I'll just have to update all the code to a common version to avoid confusion. Thanks for the replies!
09-20-2012 05:10 PM
Ah. Well, I can't say this will work for all versions (I know it's true for 8.2), but you can open the built executable (say in a hex editor, or just Notepad++) and search for the string "SOFTWARE\National Instruments\LabVIEW Run-Time". Right after that should be the version number of LabVIEW used to create the executable.
09-21-2012 08:19 AM - edited 09-21-2012 08:19 AM
Good advice smercurio, it still works for executables created with LabVIEW 10.
Look for something as follows: 'LabVIEW Run-Time..LVRT....10.0'
Thanks,
PH
09-21-2012 08:40 AM - edited 09-21-2012 08:55 AM
@Teds wrote:
Good advice smercurio, it still works for executables created with LabVIEW 10.
Look for something as follows: 'LabVIEW Run-Time..LVRT....10.0'
Thanks,
PH
Are those periods supposed to be spaces? They are spaces for 2011.
EDIT: Now that I performed a read in LabVIEW, I see that they are actually NULLs.
09-21-2012 09:05 AM - edited 09-21-2012 09:06 AM
Based on this new information, here's a quick VI I made to get the version for you.
Saved in LV8.0
09-21-2012 01:02 PM
Nice! There are differences in some of the versions that I checked but if I keep my search string simple (e.g. "SOFTWARE") I can find info on the version number. My task involved mostly version 8.X varieties and it works great for that.
Thanks for the good advice!