LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using References didn't work on EXE file

I used Reference function in getting the VI Revision and History to be displayed on the Front Panel.
This works fine in running the VI (not compiled yet). It captures the correct data same as in VI Properties.
But, after compiling the VI, it didnt capture any data from VI Properties.
 
Please see attached sample.
0 Kudos
Message 1 of 6
(3,072 Views)
I know that the revision property is not saved when a VI is built into an application. I assume the same is true for the history property.

___________________
Try to take over the world!
0 Kudos
Message 2 of 6
(3,056 Views)
Is there any way I can get the VI History and Revision dynamically after it is being compiled?
0 Kudos
Message 3 of 6
(3,035 Views)
Actually, a quick test seems to indicate that the revision number is saved with the VI, but that the text is removed. In any case, both properties are not supported in the run-time engine, as mentioned in their help topics.
 
Since the text is removed, I think you will have to include it yourself (e.g. as an indicator with a constant name) and I can think of two ways to do this:
  1. Run a VI which will go over your hierarchy and extract these and save them before building your application.
  2. Use the OpenG builder, which allows you to automate this as part of the build.

You could also use VI tags to make it more elegant, but I would recommend against that as it's not supported.

Why do you need to show the revision history? Have you considered using source code control.


___________________
Try to take over the world!
0 Kudos
Message 4 of 6
(3,019 Views)

Thanks for the information. I will try it out.

The reason why we need to have the revision number of the VI in the front panel is to make sure that we have the latest rev running on each of the station(visually).

We really would like to try out the software control. Maybe I will try the third party software control.

0 Kudos
Message 5 of 6
(3,001 Views)
You could try also try getting the modification date of the executable (using File\Directory Info).

___________________
Try to take over the world!
0 Kudos
Message 6 of 6
(2,990 Views)