LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically determine the LabVIEW version of a VI/control

Solved!
Go to solution

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

0 Kudos
Message 1 of 9
(5,555 Views)

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 🙂

Message 2 of 9
(5,545 Views)
Solution
Accepted by Priyadarsini

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.

 

getviver.png

Message 3 of 9
(5,505 Views)

@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.

 

getviver.png


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

0 Kudos
Message 4 of 9
(5,483 Views)

@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.

 

getviver.png


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. 


"Should be" isn't "Is" -Jay
Message 5 of 9
(5,460 Views)

Hi priyadarshini,

 

Probably this may be your expected answer. Check the VI below.

0 Kudos
Message 6 of 9
(5,442 Views)

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.

Message 7 of 9
(5,373 Views)

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

0 Kudos
Message 8 of 9
(5,354 Views)

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

0 Kudos
Message 9 of 9
(5,332 Views)