Manipulati​on with *.ini file

Hi, 
what would be the easiest way to read or create new ini file. I have an ini file that is not standard type, so i can't use vi's that are already written. 
example of an *.ini file in the attachment.
Thanks, Božidar
Attachments:
Poligon DMS.ini ‏3 KB

For example you could read the file, skipping the first line, into a string.
Use string to array function to have a 2D array with keys in the first column and values in the second column:
Regards,
Marco

Similar Messages

  • Error with ini files & Memory Error

    Hi All,
    I am attaching my VI which is used to save the control values, I am doing it with configuration file, but sometimes what happens my configuration file got erased completely,and my data got lost otherwise saving control values works perfectly fine,  how can I stop this so my configuration data is safe. or is there any other method to save the control values.
    2ndly, I have another error in a different vi which keeps coming (image is attached as "Memory Error"), I tried installing LV and XP again, changed the PC but problem persists.
    Could someone please try to throw some light on these issues.
    Thanks & Regards
    James
    Attachments:
    ini error.PNG ‏24 KB
    Save control values.vi ‏50 KB
    Error2.JPG ‏1 KB

    Your Error2 image is not viewable. Looks like a corrupt upload.
    Your fundamental problem lies in the first part of your code. If the INI file doesn't exist, then when you open it, a new one gets created. There is no SVALUE key, so you are trying to loop 0 times. Since the first for-loop does not execute, the INI file refnum does not get transferred through the tunnel, and subsequent INI file functions receive a null refnum. You need to either wire the refnum outside the loops or use shift registers for the refnum.
    As to your code: OK...
    You must really like whitespace, because that's the only reason I can see for having such a huge while loop that just sits there.
    You really need to learn to draw straight wires.
    You are jumping through unnecessary hoops. You are taking the control values, bundling them into a cluster, converting the cluster into an array, and then autoindexing the array while at the same time setting the "N" terminal of the for-loop. Whew!
    Skip the bundling. Just make an array directly!
    Do not wire both the "N" terminal of a for-loop and autoindex. Do one or the other. Since you have the array, just auto-index.
    The Index Array function is resizable. You do not need to place 2 of them to get the 2 values.
    Your string constants are in 2 places. You should have them in one place only. If you decide to change the names then you need to remember to change them in 2 places.

  • Need help on resolving the issue with adobe output server - error MSG256 & MSG 210 not in .ini file

    Hi,
    I am using adobe output designer 5.5 for designing the label template and using the Adobe output server for printing process.
    In the Jfmerge.ini we given the condition "DiscardUnknownFields=Yes" for ignoring the unwanted fields in the .dat file.
    During the process, I faced some issue with the output server in printing the labels.
    When the .dat file is placed in the Data folder of adobe, the label is not getting printed in the printer.
    The file is move to the error folder and an error file is getting generated which contains the error message as given below:
    090826 02:59:02 D:\Program Files\Adobe\Central\Bin\jfmerge: [256]** Message Msg256 not in .ini file **
    090826 02:59:02 D:\Program Files\Adobe\Central\Bin\jfmerge: [210]** Message Msg210 not in .ini file **
    2009/08/26 02:59:02 D:\Program Files\Adobe\Central\Bin\jfserver.exe: [314]Agent exit message: [210]** Message Msg210 not in .ini file **
    The output server is a new installtion and I verified the Jfmerge.ini file. It contains the message details of Msg256 and Msg210.
    I also verified the license and it is a valid licence.
    Kindly help me out in solving this issue.
    Thanks
    Senthil

    I assume this is too late to help you, but other might need a hint.  I had the same problem, and found some possible causes that I posted on http://codeznips.blogspot.com/2010/02/adobe-output-server-message-msg210-not.html.
    It is quite likely that you are missing some double quotes around the path specifying the ini file (-aii), if its installed under "Program Files".
    Hope this helps anyone....
    Vegard

  • Lion server file sharing issue with windows API read/write ini file (GetPrivateProfileString)

    Hello,
    I try to config lion server as file server for a windows application we use at work. All other computers are windows 7 or XP, lion server is the only mac. I choose lion server because it's size, quality and personal love of apple products.
    10.7.2 lion server's samba file sharing works almost perfectly with all my windows machines, I can copy, delete, modify any text files or office files without any issue, but the most important windows application for my business doesn't work with samba file sharing. After some digging, I found it is because windows program can't read or write INI file stored on lion share. Windows API GetPrivateProfileString always returns empty if the INI file is store on lion share.
    You can download a small application for read/write windows INI file from codeproject.com to test this problem:
    http://www.codeproject.com/KB/files/ini.aspx
    I can open/edit the in file using any text editor without any problem. The only problem is with those windows APIs. ACL is turned on for my lion share and assigned "delete" rights to samba users.
    I install samba3 on the same server; it works perfectly with windows API. My windows program also works. Looks like there is something wrong with lion server's sambax.
    I'd prefer to use built-in samba even I have samba3 working. Built-in samba is very immature right now, but considered how young it is, I will give apple some time to make it mature.
    Does anyone have same issue or knows how to fix it?
    Thanks,
    Michael.

    All the memory is fine. The server rarely if ever goes down when there are only around 10-12 users connected. When there are 20+ users connected and working heavily it goes down often. When I say working heavily, I mean they are transferring huge files to the SAN (100GB+), sometimes 5 at a time per user, and there are a bunch of others who are reading large video files at a minimum of 220MB/sec from the SAN.
    Though this worked on Snow Leopard without any issues, Lion just doesn't seem to be able to handle it. The odd thing is, on Snow Leopard there was only a single 1GB ethernet connection to a NAS system, whereas with Lion we have a much more powerful machine with a 6-port 10GB ethernet card and a 4 lane 8GB fiber card to a true SAN. You would think that the newer scenario with Lion would handle far more users with ease.
    So far, very disappointing with regards to Lion's file serving performance.

  • How to configure the .ini file with applet

    hai
    i am using native methods in that methods they use some ip addresses. when i am using that native methods in applet run the applet using appletviewer tool it works fine but when i am open that applet using html page browser not configure that .ini file data .how to configure that .ini file with browser

    Hi Jay SenSharma,
    Thanks for your immediate response.
    I saw your URL links, But in your link give the recursive deployment using wlst. But my question is how to configure the oracle weblogic library files into Admin server & Managed Servers by using the wls.jar file through wlst script to create the new domain.
    But if create the new domain by using GUI mode then we manually give the admin server port number & managed servers port number and name.
    By default the library files are configured with the Admin server in GUI mode. But the Managed server the Library files are not configured with the Managed servers. Then we manually select all the library files to the corresponding managed servers. Then only the applications are deployed into the corresponding managed server.
    Regards,
    S.vinoth Babu

  • 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

  • Content of Ini-File with config-data sometimes deleted?

    Hello,
    i have a simple vi attached where i read config-data from a file.
    Sometimes it happens that the content is lost. I am not sure why, but perhaps there a errors in the vi.
    I wonder about the last vi "Close Config Data" there is an onput-parameter "write configuration file? (T)".
    Why is this parameter set to default-TRUE? Could it be that i shouzld set it to False? Perhaps this
    close-vi overwrite my data with nothing.
    The vi reads the section [Par1] from this file:
    [Par1]
    PathFile=C:\\profile.txt
    [Par2]
    PathFile=C:\\variants.txt
    and returns --> C:\\profile.txt
    Thx for your help
    Attachments:
    example.vi ‏21 KB

    The values set by using the INI file functions only exist in memory and are NOT written to disk until the "Close" VI with the constant set TRUE.
    If your code executes in multiple threads where one thread sets the values but another thread closes the file without the constant set true, the values will be removed from memory and will not be written to disk.
    So make sure you only execute the "Close" after all values have been set and make sure the constant is set true when the files are closed.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Read ini file with multiple threads

    I have a state machine architecture, but I have multiple threads. For instance, one is dealing with listening for mulitple tcp connections and storing their refnums to an array in a functional global. Another thread is accessing these refnums and collecting data it's receiving from each tcp connection. This data is queued up and then dequeued in a third thread which does some modification and sends it out via serial. My question is, when you have a situation like this and have to read an ini file, where should you read it? It seems like the most logical place would be outside your loops so you can get all the tcp and serial info (port, baud rate, etc) then wire it it to your create listener or initialize serial connection despite them being in different threads. But then again, normal state machine architecture would want an "initialize" case. If you did this though which loop would you put the init case in? And you would then have to worry about synchronizing loops becuase you wouldn't want one to try and create a listener while another thread was still reading ini data which would include the port to listen on. Maybe I'm overthinking this haha. Suggestions? Edit: one more question. Does it seem overkill that I have a tcp loop listening for data and queuing it up and a separate loop sending out the processed data via serial? Or should I just have one state that gets tcp data stores it in a shift register, then another state that sends it out via serial, and returns the state machine to the tcp read state?
    Message Edited by for(imstuck) on 03-03-2010 01:13 PM
    Message Edited by for(imstuck) on 03-03-2010 01:17 PM
    CLA, LabVIEW Versions 2010-2013

    Most of the applications I work on at the moment are used for testing barcode and label printers. The test applications I design are focused on testing the printer's firmware, not the hardware. Within our applications we have three primary objects (Unfortunately they are not native LabVIEW objects yet. They were developed before native LVOOP.) The primary objects we use in our applications are a log object, a connection object (communication interface to the printer) and a printer object. In any single instance of a test we only have a single printer, a single connection to the printer and one or more discrete logs. Each instance of these objects represent a single, real physical entity. A singleton object is a virtual representation of the physical world. Let's take the log object since that is the most simple of the objects described above. Naturally for a given log file you have the log file name and path. We also provide other attributes such as the maximum size of a single file (we allow log files to span multiple files), whether it is a comma delimited file or if it contains raw data, if timestamps should be included with a log entry and so forth. Most of these attributes are static for a log file with the exception of the name and such things as whether the logging is actually enabled or disabled. If we split a wire and had multiple instances of the log file (the way native LVOOP actually works) the attribute for whether logging is currently enabled or disabled will only pertain to the specific instance, or specific wire for the that object. Since this truly represents a single item, one log file, we need that attribute to be shared for all references to the instance of the log object. Since we allow this we can set an attribute on the log object in any task and it will be reflected in any other task that is using it. Think of the way a action engine or functional global works. However, in this case we provide discrete methods for the various actions.
    I hope that made some sense. If not let me know since I just whipped up this response.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • "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

  • PXI-MXI-4 with NI PXI-1044: No PXISYS.INI or CHASSIS.INI Files

    I am unable to locate PXISYS.INI or CHASSIS.INI files for use with the PXI-MXI-4 bridge with a NI PXI-1044 chassis.  I have reviewed the knowledge base article regarding these files (http://digital.ni.com/public.nsf/websearch/862567530005F09C862566A0005EAB87?OpenDocument) but am still stuck.
    According to the article, the chassis manufacturer (NI in my case) should provide these files.  However, they are nowhere to be found!
    Any help would be appreciated.

    Hi Luke,
       You can generate the required configuration files using MAX. Please refer to
    "Configuring the PXI System Entry in MAX 3.x" at
    http://digital.ni.com/public.nsf/allkb/5902345227DFCA1286256EDA0063F50C
       for more information on how to do this.

  • Reading INI files with dashes in the section name

    I am trying to read an INI file from a web site. Within that INI file are sections that have dashes in them. I need to be able to read several sections so I can locate specific files to download referenced within the INI files. I found a script for parsing
    INI files, but when I run it, the script fails to handle the sections that have dashes. Any ideas on how I can work around the issue?
    $Web = New-Object System.Net.WebClient
    Function Get-INIContent ($ContentList){
    $INI = @()
    Switch -regex ($contentList)
    "^\[(.+)\]"
    [string]$Section = $Matches[1]
    $INI[$Section] = @{}
    $CommentCount = 0
    $ContentList = $Web.Downloadstring("http://download.nai.com/PRODUCTS/COMMONUPDATER/avvdat.ini")
    Get-INIContent $contentlist
    What I was hoping to do was search through the INI until I found the sections I want, and then read the fields for that section so I know what to download.  I won't be pulling all of the files, so I need to find a way to search for the sections I am
    looking for then read all of the lines for that section and process them.

    Found part of the problem... When I pull the file into a variable I lose the ability to search it line by line.  For example:
    $Web = New-Object System.Net.WebClient
    $ContentList = $Web.Downloadstring("http://download.nai.com/PRODUCTS/COMMONUPDATER/avvdat.ini")
    #For some reason this returns the entire file
    $contentlist | select -first 1
    $contentlist | %{
    #Thought this would be one line, but it is also
    #the entire file...
    $_
    I have since shifted to a different method of reading the ini and I can process row by row...
    $Web = New-Object System.Net.WebClient
    $INILocation = "c:\SomeLocation\avvdat.ini"
    $Web.DownloadFile("http://download.nai.com/PRODUCTS/COMMONUPDATER/avvdat.ini",$INILocation)
    $INIFile = [System.IO.File]::OpenText($INILocation)
    Do {
    $CurrentLine = $INIFile.ReadLine()
    #This is now one line like it should be.
    $CurrentLine
    While ($INIFile.EndOfStream -ne $True)

  • Editing Executable's INI file with "HideRootWindow"

    Hello
    I'm trying to create an executable so that it shows only one window in the taskbar. On one of the Knowledgebase articles (http://digital.ni.com/public.nsf/allkb/6E660558F3D420C786256FCB005B4F52) I had read about setting HideRootWindow=True in the INI file. I did and it worked. The problem though is that everytime I rebuild the exe in LabVIEW, the line disappears & I have to manually edit the INI file each time. I was wondering if there was anyway I could do it automatically though LabVIEW so that it itself appends that line to INI file at each Build process.
    Appreciate any help. Thank you!
    Solved!
    Go to Solution.

    Instead of checking Use the default LabVIEW Configuration file, uncheck this option and add your own ini file. Also make sure that you add the ini file to the Project too! This will help in maintenance.
    Hope this helps.

  • Where can I find tools for manipulati​ng .INI files?

    Doesn't LabVIEW have some VIs somewhere for manipulating .INI files?
    Or is that another add-on toolset where NI nickles and dimes you for it?

    bmihura wrote:
    Doesn't LabVIEW have some VIs somewhere for manipulating .INI files?
    Yes.  Functions>File IO>Configuration File VIs.
    Openg's toolkit has some useful additions (and for << a nickel).
    http://www.openg.org/content/section/4/41/
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."

  • Oracle workshop 10GR3 workshop.ini file best config prop's with 3GB RAM.

    Hi,
    Could you please suggest what is the best configuration properties we can set in workshop.ini file, I am having 3GB internal RAM, hard disk is good enough 600GB.
    By defualt the workshop.ini file is like this now, my workshop is behaving very slow while working all the time it takes time to build the workspace. hesitating much while working in it.
    -vm
    D:/bea/jrockit_160_05/jre/bin/javaw.exe
    -startup
    D:/bea/tools/eclipse_pkgs/2.0/eclipse_3.3.2/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118awtswtbridge.jar
    --launcher.library
    D:/bea/tools/eclipse_pkgs/2.0/eclipse_3.3.2/eclipse/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118
    -vmargs
    -Xms384m
    -Xmx768m
    -XX:MaxPermSize=256m
    -XX:PermSize=192m
    -XX:NewRatio=3
    -Xss256k
    -DprodMode=production
    -Dweblogic.home=D:/bea/wlserver_10.3
    -Dsun.lang.ClassLoader.allowArraySyntax=true
    -Dnitrox.boot.jar=file:D:/bea/workshop_10.3/nitrox-boot.jar
    -Dosgi.install.area=D:/bea/tools/eclipse_pkgs/2.0/eclipse_3.3.2/eclipse
    -Dosgi.instance.area.default=D:/bea/user_projects/workspaces/default
    -Dosgi.configuration.area=D:/bea/workshop_10.3/workshop4WP/eclipse/configuration
    -Declipse.product=com.bea.workshop.product.workshop
    -Dosgi.splashPath=file:D:/bea/workshop_10.3/workshop4WP/eclipse/plugins/com.bea.workshop.product
    Thanks.

  • 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'.

Maybe you are looking for

  • JScrollPane Scroll Position

    Tried posting this in the newbie section with no luck.... I created a class extending a JScrollPane that encompasses a JTextPane. The method below appends some text to the current JTextPane with a certain color (this part works fine). What I am also

  • Include python script inside an app

    Hi all, I'm writing an applescript app which should use a python script. how can I include the script inside the apple and have it called by the applescript? Thank you!

  • APEX SQL Reports bug? Apex 3.0.1 Oracle 10g XE

    Hi I have a few SQL Based reports and I'm having performance problems with showing them over remote connections. I have looked at the HTML for the page produced from these reports and I see something very strange.             rowActive[50]='N';      

  • Starting WebLogic Commerce as an NT Service

    Hi. I have tried running the WebLogicCommerce Server as an NT service, using the wlservice from the weblogic/bin directory, and setting correctly the environment properties needed for running the commerce. It seems to start.... When I run the portal

  • JavaScript working on local server but not remotely

    Hi, I'm using JavaScript for a gallery widget on our site. This works perfectly when testing locally, but when I upload it to our server the images are all there but the animation no longer works, When you click on a thumbnail, the slide image is jus