LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there an equivalent property (Hist.Revision) for executable?

I wanted to display the revision of the code within the executable by getting the current revision from the main VI's property Hist.Revision.

This works great in the development code but gives an error 1043 in the executable version.

 

Is there an executable equivalent to this?

 

Thanks,


RayR

0 Kudos
Message 1 of 11
(3,139 Views)

I'm tagging this because I'm also interested in the answer.

0 Kudos
Message 2 of 11
(3,133 Views)

Can you not just use the EXE version instead of the VI rev number?

0 Kudos
Message 3 of 11
(3,129 Views)

If you can use your EXE version, see here.

Message 4 of 11
(3,122 Views)

My memory is a little fuzzy on this, but if I recall correctly, I think the revision information is removed once you build the application, so I think the only option you have is to use one of the methods that have been posted on extracting the exe version number.  A recent one: http://forums.ni.com/t5/LabVIEW/Can-I-find-the-version-of-my-executable-built-with-the/m-p/1121206/h...

Message 5 of 11
(3,116 Views)

Here is a toy I keep on hand.  I use it in just about every solution I deliver for creating banner information, About.vi's, conditional code switching, etc....

 

Its been useful- enjoy!


"Should be" isn't "Is" -Jay
Message 6 of 11
(3,109 Views)

As an aside, Jeff: why do you use the While loop with hard-wired stop condition?

Message 7 of 11
(3,104 Views)

@LandBelenky wrote:

As an aside, Jeff: why do you use the While loop with hard-wired stop condition?


That's known as a Functional Global. Or a LabVIEW-2 style global. Or an Action Engine.

Message 8 of 11
(3,101 Views)

Short answer- it give me a Uninitialized Shift Register that acts like a data storage unit.  see the First call primitive? I never exicute the .NET calls again while the SR is within lifetime. and subsequent calls to the Action Engine get the data on the SR rather quickly.

 

Long answer: Here is a link to what you see after going to my profile page and clicking the Required_Reading tag.  Start at the bottom of the list

 

EDIT: Saverio's link is the oldest tagged Required Reading threadSmiley Very Happy


"Should be" isn't "Is" -Jay
Message 9 of 11
(3,099 Views)

@smercurio_fc wrote:

My memory is a little fuzzy on this, but if I recall correctly, I think the revision information is removed once you build the application, so I think the only option you have is to use one of the methods that have been posted on extracting the exe version number.  A recent one: http://forums.ni.com/t5/LabVIEW/Can-I-find-the-version-of-my-executable-built-with-the/m-p/1121206/h...



Yes History information along with version number etc is removed when the VI is build for inclusion in a build app. I think it used to stay in the VI (~Version 7) when you did configure a VI to not have it's panel removed, but this is undocumented and not guranteed, and I would never rely on that. Also it may have changed since and get removed anyhow in modern LabVIEW versions, or going to be removed in the future.

 

Pesonally I use Tags (another undocumented feature Smiley Wink) if it's VI specific and the executable version number if it's application specific.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 10 of 11
(3,079 Views)