05-05-2011 06:24 AM
Hi,
I want to have a label in a labVIEW to get it's contents from the file system during runtime. I will use this to have my automated build environment to set the software version string to be displayed in the LabVIEW application within a "about" dialogue.
Does anyone know about any trick for doing a thing like this in LabVIEW? If this whould have been a C or C++ application I would have put the version string as a #define in a .h-file or in an object file to be linked with the application.
Thanks,
//Christian Eggertsen
05-05-2011 06:39 AM
Hi Christian,
there are different solutions. For one please see this link. The other one would be to use the PreBuild function to write the version with the use of scripting into a constant, which you can access from within your applicaton.
Hope it helps.
Mike
05-05-2011 06:53 AM
@MikeS81 wrote:
Hi Christian,
.... The other one would be to use the PreBuild function to write the version with the use of scripting into a constant, which you can access from within your applicaton.
Hope it helps.
Mike
You don't even need a constant, you can have a VI that has a Front-Panel control, load the desired version number into the control. Use the Method 'Make current value default' and save the VI and build. Within your code you can call the VI and read the stored data.
Ton
05-05-2011 07:18 AM
Hi,
Thanks for a relly fast reply. Would this be possible to to automatically, e.g. from the Build Targets Via Command Line.vi (included with the labVIEW examples VIs)?