LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

svn revision number in the windows bar

Solved!
Go to solution

Hi,

 

I'm thinking of the possibilities of putting the SVN revision number on the bar of application (exe). I'd be usueful feature to quick assess from which source code revision the application is build in.

 

So what I would need is a kind of trigger/interface which I could use to launch the small piece a code which modify the  application window bar when the application is being build. I thought about preparing the string using the System Exec.vi (to execute svn.exe -st command to get the information I need). But how come can I impose on LV to trigger that code only when the build operation starts?

 

Or maybe I shall use different approach?

 

0 Kudos
Message 1 of 17
(3,662 Views)

Hi,

I don't know how tofind the svn revision, but I know that you can programaticaly change the title of a Labview window with property node (FP.name) assigned to the vi you want to change the name.

You can set the name when you want during the execution.

Hope it will help you.

Best regards,

 

V-F
0 Kudos
Message 2 of 17
(3,657 Views)

Yes, I know how to change the Title Bar programatically as well. But in my story the key point is to execute that code ONLY WHEN the build operation is in progress to capture the current revision level at the moment of building.

 

Maybe a kind of build option?

0 Kudos
Message 3 of 17
(3,648 Views)

Hi MimiLKM,

 

Have a look at this document: http://digital.ni.com/public.nsf/allkb/C751F800E258087B86257535006DB160?OpenDocument

 

Hope this helps,

Shalini B
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 4 of 17
(3,612 Views)

@ShalB wrote:

Hi MimiLKM,

 

Have a look at this document: http://digital.ni.com/public.nsf/allkb/C751F800E258087B86257535006DB160?OpenDocument

 

Hope this helps,


And how does that answer the question about changing the title bar of a window when a build process is initiated?

 

As to the question: The application build has an API, so if you really needed to do this (and I can't quite figure out why), you could write your own VI to call the application builder to build your app. You can then change the title bar. I'm not sure, but I suspect you may need to resort to using the operating system API to change the window name, as I don't know if you can get a reference to the window that is displayed during the build process. If you have to use the operating system, then on Windows you can use the Windows API Function Utilities (32-bit) for LabVIEW .

0 Kudos
Message 5 of 17
(3,598 Views)
Solution
Accepted by MimiKLM

Hi,

in build specification, you can execute a VI before build.

So if you know how find the svn revision number, you can call a vi which change the name of your main VI when you build the exe...

I think it's the good way ! 🙂

 

Best regards,

 

V-F
Message 6 of 17
(3,593 Views)

Hi ramses64,

 

Thank you for advice. However after having checked the build specification settings there are nothing written explicitly like 'execute VI before build'. Am I missing something?

 

0 Kudos
Message 7 of 17
(3,578 Views)

Hi,

maybe is it an option for full developement only ?

Which license do you have ?

V-F
0 Kudos
Message 8 of 17
(3,575 Views)

 

As to the question: The application build has an API, so if you really needed to do this (and I can't quite figure out why), you could write your own VI to call the application builder to build your app. .



1. To tie up the version of the source code on which the application has been biuld

2.  Hmm, I rathher dont want to create separete bulder. ramses64 solution would be much more nicer. 

0 Kudos
Message 9 of 17
(3,573 Views)

I'm using LV 8.6.1. Which one you are using?

0 Kudos
Message 10 of 17
(3,572 Views)