10-21-2011 11:22 AM
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
10-21-2011 11:33 AM
I'm tagging this because I'm also interested in the answer.
10-21-2011 11:43 AM
Can you not just use the EXE version instead of the VI rev number?
10-21-2011 11:54 AM
If you can use your EXE version, see here.
10-21-2011 12:00 PM
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...
10-21-2011 12:05 PM
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!
10-21-2011 12:11 PM
As an aside, Jeff: why do you use the While loop with hard-wired stop condition?
10-21-2011 12:13 PM
@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.
10-21-2011 12:18 PM - edited 10-21-2011 12:20 PM
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 thread![]()
10-22-2011 02:02 AM - edited 10-22-2011 02:03 AM
@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
) if it's VI specific and the executable version number if it's application specific.