06-24-2011 05:27 AM
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?
Solved! Go to Solution.
06-24-2011 06:09 AM - edited 06-24-2011 06:09 AM
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,
06-24-2011 06:52 AM
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?
06-27-2011 07:35 AM
Hi MimiLKM,
Have a look at this document: http://digital.ni.com/public.nsf/allkb/C751F800E258087B86257535006DB160?OpenDocument
Hope this helps,
06-27-2011 09:48 AM
@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 .
06-27-2011 10:06 AM
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,
06-28-2011 05:19 AM
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?
06-28-2011 05:22 AM - edited 06-28-2011 05:23 AM
Hi,
maybe is it an option for full developement only ?
Which license do you have ?
06-28-2011 05:34 AM
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.
06-28-2011 05:35 AM
I'm using LV 8.6.1. Which one you are using?