11-14-2014 07:20 AM
Hi all,
Given the path to a VI/control I want to get the version in which it is last saved. Is there a way to do it? I am doing this to programmatically identify all its dependencies - by adding it to a project and getting its dependencies list using property nodes & methods. Thank you for your help & time.
Thanks,
Priyadarsini S
Solved! Go to Solution.
11-14-2014 07:38 AM - edited 11-14-2014 07:42 AM
Hello,
I've made some years ago an a program which after installed give you the opportunity to right click a VI to obtain its developpment version ... let me find the source 🙂
It's surely not up to date, but will give you a lead.
Edit : It misses some files to make the project work I think but you have the main property nodes usefull to what you want 🙂
11-14-2014 12:19 PM
You can use the Get VI Version method of the Application class to get the saved version of a VI file on disk, without loading the VI into memory.
11-14-2014 05:01 PM
@Darren wrote:
You can use the Get VI Version method of the Application class to get the saved version of a VI file on disk, without loading the VI into memory.
Son of a gun! I played around with various Properties and Methods of Applications and VIs, but didn't think to look at a Method of an Application to get a Property of a VI. But it works! I even used LabVIEW 2012 and pointed it at a VI written in LabVIEW 2014 and, to my astonishment, it said "14.0".
Bob (Always Amazed by LabVIEW) Schor
11-14-2014 08:44 PM
@Bob_Schor wrote:
@Darren wrote:
You can use the Get VI Version method of the Application class to get the saved version of a VI file on disk, without loading the VI into memory.
Son of a gun! I played around with various Properties and Methods of Applications and VIs, but didn't think to look at a Method of an Application to get a Property of a VI. But it works! I even used LabVIEW 2012 and pointed it at a VI written in LabVIEW 2014 and, to my astonishment, it said "14.0".
Bob (Always Amazed by LabVIEW) Schor
Well, you are trying to find out the property (Version) of the application that compiled the object. If you thikn backwards its almost obvious.
11-14-2014 10:56 PM
Hi priyadarshini,
Probably this may be your expected answer. Check the VI below.
11-16-2014 04:51 PM
If it were a VI property, it would require having the VI in memory. All of the "Get VI" methods in the Application class can give you information on a VI based on its path, without having to load the VI into memory.
11-16-2014 05:51 PM
Good point. Just never thought to look for the VI Version in the Application Methods ... There's undoubtedly tons of other "hidden gems" (who wrote those things, anyway?) in LabVIEW ...
BS
11-16-2014 10:49 PM
Thank you, Darren. This is the exact method that I am looking for & it works good. I also did not think to search in Application Methods.
Thank you, M.athieu and others for your replies.
Vij@y, I could not open your VI in LV2013 since I have only 2012.
Thanks,
Priyadarsini S