"Hardcoding ini-File Settings" or "Automatic Revision Number with tortoise"

Hi all,
we use a SVN Repository with tortoise here at our company for version control.
I'd like to get the revision number hardcoded into the Application (.exe version).
I've allready found out, that there is some tool which can scan a directory and replaces a constant string in a file with the current revision number.
(So I could automatically generate a .ini file with "Ver=...RevNr" as content)
But I have no clue, how I can hardcode a file into the application with the labview builder.
(I think of something like the .ico file, which is hardcoded into the application too)
Has someone a sollution for this?
thanks
Mario Hirth
Solved!
Go to Solution.

Hi Mario,
I want to
ensure you mean what I think by "get a revision number hard coded in an Application"
When we build
an executable we
display a revision number on the front panel of our application and
we also have a Help -> About menu that displays the revision number
and other info like build
date and time.
If this is the sort of thing you want read on for some suggestions.
I have a software release VI
which contains control for things like build data, revision
number etc. This
Vi is shown from the help ->
about menu and
by an indicator on the
front panel of
our main application.
Manual revision control
Before every build
you edit this
Software Release VI
putting in the
details you want
in the controls, set these to be the default values and save the VI. When you build the new
values will then
be displayed in
your executable application.
This method is
simple to implement
and test; it is a good way to start. You just treat this VI as any other from the
point of view
of your source
control system.
However this method
has problems (people
forgetting to do
the change before
the build, people not knowing the next
number etc) and very
soon you will
want to move to an automatic revision control system.
 I use and strongly
recommend the OpenG builder
rather than the
NI builder, for
a number of reason.
1) Good API,
to help you script you builds automatically
2) Good hooks
for pre-build, post-build
and call-backs VI
integration. For example
automatically zip up
your application after
a build an email to somebody.
3) A built
in revision system
you should be
able to get up and running without much trouble
4) The Build
configuration files are
in a human readable format.
In our system
which using ClearCase
and not SVN but the same principle applies, this
is a simplified
description.
 I have three
basic files that
are used to auto revision, an ini file
that holds a record of all build for example - 001 29-Nov-2008, the software release
VI mentioned above
and I use the OpenG builder revision file to allow an easy built in hook in the OpenG builder.
When a build
starts a pre-build
trigger runs a
VI to look in the ini file to see what the next build number should
be, it then adds in a new entry with this new build number and various other information we
store, the .ini
file is then saved. In our ClearCase system I used a special config specification to
ensure that EVERYONE
sees the same
version of the
ini file (the
latest) and after
it is checked
in the latest
is immediately updated
with this new
save version again
so that EVERYBODY
can see it.
The pre-trigger VI then opens in edit mode the software release
VI in edit mode and plugs into the various control and indicator
the values read
out from the ini. The version of the software release VI is then saved and closed and then the build start. I do not worry about keeping
these edited versions
of the Software
Release VI in
the config control
system, in fact
I throw them away after the build is finished, they are in effect only templates
it is the ini file that
counts.
 Hope this helps
as a simple guide
cheers  
Dannyt
Danny Thomson CLAD
Sub10 Systems Ltd

Similar Messages

  • How  to modified automatic batch number with plant and current year details

    hi all,
            i want tomodify automatic batch number with plant and current year details. if any one understand plz explain.
    thanks,
    radhakrishna.

    Hi,
    I am not clear what is u r requirement exactly?
    I  mean you don't want automatic batch no or modify the batch no.  with plant means and Current year details means.  Can give details more
    Regards
    Ganesh

  • Migrating data and settings from XP to Win7, do I have to overwrite the profiles.ini file on the new Win7 system with the old XP version of the file?

    I have the Profiles folder and the profiles.ini file copied to a USB stick. I know I copy the Profiles folder content into the Profiles folder on the Win7 machine, but do I have to overwrite the profiles.ini file on the new machine too? Various strands of advice aren't clear on this. And are there any other files which also need to be migrated/overwritten? Clear directions would be welcome.

    don't transfer, reinstall.
    if you need to reset your activation count, contact adobe support -  http://helpx.adobe.com/x-productkb/global/service1.html
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5.5 (win), 5.5 (mac) | 5.4 (win), 5.4 (mac) | 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Web service php file: unable to change "inStock" number with "Product_UpdateInsert"

    I am new to php and can't figure out how to change the in stock number through the eCommerce api.
    Here is what I am trying:
    I'm sure this example looks stupid to all the pros out there.
    If someone could just point me in the right direction for resources, that would be helpful.
    I suspect "productList" is where it is failing. It gives me no errors but doesn't update the "inStock" quantity to 1900 either.
    <?php
    $_prod = array("productId" => 2345678 , "productCode" => "YoYo" , "productName" => "4-Piece Accessory Kit" , "inStock" => 1900);
    $_pass = array("username" => "username", "password" => "password" , "siteId" => 1234567 , "productList" => $_prod);
    $client = new SoapClient("https://domain.worldsecuresystems.com/CatalystWebService/CatalystEcommerceWebservice.asmx? WSDL");
    $result = $client->__soapCall('Product_UpdateInsert', array('parameters' => $_pass));
    ?>

    Here is another version I tried and got the same result.
    <?php
    $_prod = array(
      'productId' => 2345678,
      'supplierCommission' => 0,
      'weight' => 24,
      'inStock' => 1900,
      'inventoryControl' => true,
      'canPreOrder' => false,
      'captureDetails' => false,
      'isOnSale' => false,
      'hideIfNoStock' => false,
      'isGiftVoucher' => false,
      'enableDropShipping' => false,
      'excludeFromSearch' => false,
      'cycletypeCount' => -1,
    $_list = array('Products' => $_prod);
    $_products = array('ArrayOfProducts' => $_list);
    $_pass = array('username' => 'username',
      'password' => 'password',
      'siteId' => 1234567,
      'productList' => $_products);
    $client = new SoapClient('https://domain.worldsecuresystems.com/CatalystWebService/CatalystEcommerceWebservice.asmx? WSDL',array('trace' => 1));
    $result = $client->__soapCall('Product_UpdateInsert', array('parameters' => $_pass));
    print_r(get_object_vars($result));
    echo $result;
    ?>

  • Using ini-files with write-key/read-key (double) and defined accurarcy

    Hello,
    in a popup the user can insert a numeric-double-value.
    This value is saved in a ini-file using the Write-key-vi with Type = double. Works fine.
    What do i have to do to set the values after the comma?
    So if user inserts 1,532 i want to round to two digits after comma and save it. (-> 1,53)
    Thx
    Solved!
    Go to Solution.

    I don't know how LV deals with different decimal seperators (e.g. comma instead of point), I guess it 'just works' depending on the system locale.
    A few different options are available as follows...
    The Write Key function has a 'precision' input which will set the number of decimal places to save the DBL to (in your case, set this to 2):
    If you are using a numeric field, you can set the 'increment' property with 'coerce to nearest' to prevent them from entering more precision than is available:
    The obvious method for post-rounding the input is to scale up the number, round to the nearest integer and then divide again to limit the precision:
    I couldn't see anything in the numeric/math palettes that does this.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Application ini file description?

    The Application Builder in LabVIEW produces an EXE along with a config (*.ini) and alias file. Is there a programmer's reference which describes the different sections and keys that are contained in the config file? This is the best I've found and its lacking.
    Thank You,
    Craig

    That KB article is not meant to list all of the possible INI file keys - it's mean to explain why an INI file is created. A more comprehensive listing of INI file settings is here: http://labviewwiki.org/LabVIEW_configuration_file
    Note that most of those keys only make sense in the development environment.

  • Use of revision number to segregate shutdown maintenance

    Hi,
    Please guide me the functionality of revision number with transaction code..like while creating order how can we assign revision number to maintenance order, as we are not using different order type for shutdown.
    Thanks
    DM

    hi
    it is entirely depend on your requirement ,if your industry will have shutdown for 3 months every year.
    then create revision number say 1 for this year and create 2 for next year.
    then while creating maintenance order in header tab page you can select the revision number in the Revision field,system will reschedule to the date specified in the system
    regards
    thyagarajan

  • EBS check number with leading zeros

    When we upload EBS, we are getting the check number in the record 16 (reference field). But unlike the check number posted in SAP, the check number in the BAI file has 2 leading zeros. Now since check number is coming in record 16, instead of record 88 we are not able to solve this problem through String configuration.
    So, we thought of following solutions(Options):
    1.    Modify the check lot numbers to have two leading zeros plus associated changes like the form and so on.
    2.    Modify the check number in the incoming file u2013 strip the check number with two leading zeros with the use of customer enhancement. (After upload and before posting)
    Can we solve the problem of leading zeros (before the check number) through any configuration steps instead of changing the SAP script form for check(Check lot) or going for customer enhancement.
    Thanks
    Ron

    You are correct, since the check numbers are coming through only in the 16 records and not in the 88 records, you cannot use a search string to resolve the issue with leading zeros.  Also, I do not know of any other configuration that can be used to reformat the reference values in the 16 records.
    The 2 solutions you have listed are both valid options.  Although with the first option (changing the check lots), you would need to make sure the business users approved of changing the check lots before going forward with that option.  And you would still have to manually clear checks that had been issued prior to the check lot change.
    At my company, we went with the second option - using ABAP code to update the check numbers from the file to match those in SAP (we actually had to add leading zeros to the check numbers).  In our case, we had already created a pre-processor program for other re-formatting of the file that was needed prior to loading it into SAP - so we added the check number logic to that.
    However, if you do not have a pre-processor program, I know there is a user exit available for EBS - exit EXIT_RFEBBU10_001, include ZXF01U01.  I have heard of others using this exit to update the check numbers from 16 records.  The exit is called during the FF.5 processing.
    Regards,
    Shannon

  • SVN revision number in EAR file

    Hi everyone,
       Is there a way to have the SVN revision number displayed somewhere in our application? It would really help us and save time when trying to troubleshoot.
       Currently, we build an EAR file using a weblogic deployment descriptor. It could be nice if there was a way to query the SVN server to get the next revision number and store it in a property file inside the ViewController, then we could display it on the application.
       All suggestions are welcome.
       I'm using JDev 11.1.1.7
    Thanks,
    Guillaume

    Use FlexDeploy.
    Automate build process for Fusion web application | Flexagon FlexDeploy for DevOps and Deployment Automation
    ADF | Flexagon FlexDeploy for DevOps and Deployment Automation
    Flexagon FlexDeploy Deploy Oracle SOA, ADF, WebLogic, DevOps | Flexagon FlexDeploy for DevOps and Deployment Automatio…

  • Where are settings stored (foldeer/ini file/Registry)? Backup settings poss

    Where are the settings of SQL Developer stored?
    Is this a folder, an *.ini file or the Registry?
    If it is a folder: Can I change the location of the folder?
    If yes: Where exactly?
    How can I otherwise export/save settings otherwise?
    Peter

    In your home directory will be created a path like ...\SQL Developer\system1.5.4.59.40
    There SQL developer stores the local data.
    You can change this path (here ...my_options/system) with th following line in the sqldeveloper.conf, located in path ...\sqldeveloper\sqldeveloper\bin:
    # This is to enforce storing of configuration information in the "/my_options/system"
    # subfolder I have created in the SQL-Developer installation directory (instead
    # of in the "C:\Documents and Settings\<user>\Application Data\SQL Developer"),
    # so that SQL-Developer installation directory can be just copied to another
    # location (e.g. a stick) and along with the configuration information.
    AddVMOption -Dide.user.dir=../../my_options/system
    Thanks to Juri W. for this solution!
    Before changing the path you should save your connection and custom report - settings via right click -> export in the connection and custom report view, I had to reimport these settings after movimg my directory.
    Gerhard

  • Where Can the Preference Settings to place in the .INI File Found

    I can not find a lot of the settings that are found on the drop down list under the Menu item Edit - Preferences. Specifically I am looking for the setting to stop Acrobat asking clients to update. I know it can be done manually. I deliver Acrobat over the company network to thousands of clients of which my helpdesk cannot go to everyone of them. Where is the setting found. In the .ini file or in the registry and what is the actual code to be placed in the .ini file or the HKey in the registry?

    Here's how to find various registry keys:
    1. Open RegEdit. Navigate to HKCU and Export The Adobe Acrobat hive under the Software/Adobe key. Close regedit
    2. Launch Acrobat and make your preference change.
    3. Open Regedit again and export the Adobe Acrobat hive again. Us a program that can compare text and find the change thats was made.

  • Compile VI with Applicatio​n Builder: Fails to load settings from INI file.

    I utilize Labview 2011. I have written a VI which reads an INI file and sets the Tasks Names of DAQmx tasks. The VI works properly when I run it before compilation. However, once I compile it into a standalone application the application does not change the settings of the channel controls. I have updated the VI to include an indicator to verify that the compiled application is finding the correct ini file. However, the values of the controls never update.
    Is there something in the Application Builder which is needed to insure programmatic changing of control values upon compilation?
    I'm truly stumped. Any help would be much appreciated.

    Your problem might be related to this.

  • Step incrementing of .ini file and check and changing the content within step

    Hello I want to increment the [step002] automatically in the .ini file. If the steps are copied and pasted more times in already existing file, where by doing so the step numbers are doubled. For example if there exists  [Step002] followed by content of it and then [Step001] and followed by contet of it and  [Step002] followed by content of it. And if a person copies [Step002] with its content 80 times or n number of times then the last one should be automatically incremented  to new number as [Step003] and [Step004] [Step005]. And then I want to arrange the content under each step. In my file I have a " Group_Start = Step001" and  " Group_Name = OQ_004 set high port" as contents in each step. I want to arrange the group name. 
    What I want is, if in the newly copied [Step002] which would have already been incremented to [Step004], it would contain Group_Name = OQ_004 set high port which I have highlighted in italics, if this already exists some where in the file, then its corresponding Group_Start = Step001 which I have highlighted in italics should be given to the newly copied and incremented [Step004]. And in case the Group_Name = OQ_004 set high port which I have highlighted in italics does not match any where then its corresponding Group_Start will be as Group_Start = Step004. That means since the group name is new and it does not exist already in the file, the Group_Start should take its step number [Step004] which her I have highlighted in italics, as its Group_Start = Step004. Here with I attach my file and I also attach my steps which I had tried. It would be nice if solution is given or further step ideas from my steps to complete the task is given.
    Thank you.
    John
    Attachments:
    Config.ini ‏2 KB
    Tried.vi ‏26 KB

    Hello, Thank you for your reply. May be I break it into steps. Now where I am struck is that if there are say random numbers some repeated ones
    example 001, 002, 002, 002, 004, 007, 006 etc.. I would like get sorted in ascending order and also the reapeated numbers should be in the running order. That means 001, 002, 003, 004, 005, 006 etc.. There should not be repeated numbers.if reapeatd then the repeated one should have to be incremented from the previous one. If this has been solved then I can explain the other part and shall aslo goahead. I had already tried one method but the loop seems to be not exactly matching. There are some numbers which come extra. You can use the same config file which I had sent earlier. Just copy and paste the steps below or inbetween and use it for testing. Thank you
    Attachments:
    change all stepst number.vi ‏14 KB

  • Displaying "Revision Number" in a report

    We use Crystal's revision number as a means to help us track a problem one of our clients may be having with a report we have provided them for use by our application.  Revision number is found in the Crystal file document summary File > Summary Info > Statistics tab.
    Is there any method to have a Crystal report display this field.  We are using Crystal-10 and Crystal-XI.
    Thanks in advance for any help you might provide.
    Frank

    Not what you want,  but I just add a text box, and put the revision number in it.
    Now, you could use some of the "Special Fields", like file path and name, modification date, modification time.
    and just add them to the report  ( At least these are automatic )
    File summary info, can also be used, ( but this is a manual update, if you need to change it )
    Comments and Titles can be pulled from this location, using a formula like this.
    ReportTitle &" "& ReportComments

  • How to create table from .ini file

    Hi,
    The file *.ini generates a Multicolumn Listbox where is indicated a number (variable) of tables with them characteristics (row and column) as in the picture below.
    I need to find the way to create automatically, on word file, the tables as indicated in the *.ini file. Do you think that it could be possible? That you know, exist a Macro to do this?
    Best regards
    Attachments:
    Multicolunms .png ‏8 KB

    As Taki said above, to do this you need to use the Report Generation Toolkit. This will allow you to generate tables in a word document. Look for the examples in the LabVIEW Help for a rough idea of how to use the toolkit and if you have any specific questions after that then feel free to post them here.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

Maybe you are looking for