LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application version number property

Hi,
 
I am using the application builder. I have a little problem to get the version of my application.
 
In my original VI I want to read the version of my created application in using property node for application and version number. (The application reference is the local reference). But the return value is not the version number I have chosen but 8.0 (I think it's the version of the Labview runtime Engine).
 
Somebody has already observed that?
 
I do the same thing to get the name of my application and I have the name of my executable file.
 
Regards,
 
Yoann Le Gall
 
PS: I
 
0 Kudos
Message 1 of 7
(6,540 Views)

Sorry I post two times!

 

the PS was : I attached a bmp of my function

0 Kudos
Message 2 of 7
(6,521 Views)


@Yoann029 wrote:
Hi,
 
I am using the application builder. I have a little problem to get the version of my application.
 
In my original VI I want to read the version of my created application in using property node for application and version number. (The application reference is the local reference). But the return value is not the version number I have chosen but 8.0 (I think it's the version of the Labview runtime Engine).
 
Somebody has already observed that?
 
I do the same thing to get the name of my application and I have the name of my executable file.
 
Regards,
 
Yoann Le Gall

Your observation is right. The version number returned is that of LabVIEW and not your version number. You will have to implement your own version number function in your app. I do this with a special VI that is present in all my projects that returns a string with the version number I want and use that VI anywhere in my application where I need information about the current version.

The version you enter in the application builder/project manager is only used for the InstallShield Installer and hasn't really more funcitonality until now. This is partly because InstallShield Installer is also a LabVIEW for Windows only feature and completely implemented outside of LabVIEW.

Rolf Kalbermatter
Rolf Kalbermatter
My Blog
0 Kudos
Message 3 of 7
(6,516 Views)

Thanks rolfk,

Do you get the version dynamically or do you write the version number in a variable ?

0 Kudos
Message 4 of 7
(6,514 Views)


@Yoann029 wrote:

Thanks rolfk,

Do you get the version dynamically or do you write the version number in a variable ?



I just place a string constant in the diagram of that subVI. This is because the other version number is not at all available in the LabVIEW development system and in a built application only with some obscure registry and/or WinAPI calls that would need to know some other specific information from your Applciation Builder script first as well.

Rolf Kalbermatter
Rolf Kalbermatter
My Blog
0 Kudos
Message 5 of 7
(6,512 Views)

I have though the same thing.

0 Kudos
Message 6 of 7
(6,506 Views)
There's a few examples of how to extract the version information programmatically here. One uses .NET and the other (mine) uses Win32 API calls. Hope this helps!
Jarrod S.
National Instruments
0 Kudos
Message 7 of 7
(6,418 Views)