How to write table values into a configuration file

Im writing some values in the table, i want to save and load the table values,  how to save the table configuration into configuration file??

Pls ignore my prev post, I cud not finish edit within 10 mins as req by the forum rule...
If you are not able to access a VI front panel at all when another VI is called by the first VI, then probably the issue is that the VI properties is set to be Modal. Right click on the VI icon on the right top corner and select VI Properties. Under Window Appearance, you can click on Customise button and ensure the VI is not Modal (and Custom is selected). Before this, you need to ensure the calling VIs are also not set to Modal (I think if you set it to dialog, it will be Modal by def. So don't use that as well). If any of the parent VI is set to Modal and a subsequent child VI is in non-modal mode, then you will not be able to access the child VI front panel when called and may end up with forcing the program to close.
Probably you may also need to have a different independant loop looking for the events. For this you may need to use Q structure as well, so that you can define a Q outside both loops, add elements to Q as and when the menu is selected within the loop for menu events, while the other loop works according to the Q elements it gets to remove.
Hope that helps !

Similar Messages

  • How to save VISA information into a configuration file

    Hi guys,
    I've got a problem that i can't quite figure out and I'm sure someone else has done this but i have searched the forums and didn't find anything suitable myself.
    I'm trying to save configuration files for my program and then reload them back in so that i can get the same state of the controls.  One of the controls I'd like to save into the configuration file is a VISA control.  has anyone figured out how to save this into configuration files?  I know that OpenG has a write variant to config but Id like to stay away from 3rd party stuff as much as possible.  Does anyone have any suggestions as to how to get around this?
    Thanks
    Brent 
    Solved!
    Go to Solution.

    The alternative to Write Keys, if you don't want a text file, is a BIN file. I do it this way when I don't want users poking around text file trying to change things, and/or for security. And it's fast.
    The attached picture shows, in general, how to do it.
    Richard
    Attachments:
    saveSettings.gif ‏11 KB

  • How to write the resultset into a text file

    how to write the resultset into a text file

    You can use the java.io.* package to write to files.
    API: http://java.sun.com/j2se/1.5.0/docs/api/java/io/package-summary.html
    Tutorial: http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • How to write table content into excel quickly?

    Dear gurus, I am fresh to ABAP, could you please so kind advise how can I save a table content into an excel which is stored in certain path efficiently?
    I found a way as following:
    form excel_range_write using lcobj_excel
                                 lc_range
                                 lc_value.
      data: lc_cell type ole2_object.
      call method of
          lcobj_excel
          'RANGE'     = lc_cell
        exporting
          #1          = lc_range.
      perform font using lc_cell 1 '30'.
      set property of lc_cell 'VALUE' = lc_value.
    endform.                    "excel_cell_write
    However if I would like to write everything out, I have to loop the table to fill each cell, is there any easier way? Could anyone kindly help?

    hi Frank
    this is the wiki published by me
    hope it will help u a lot
    https://wiki.sdn.sap.com/wiki/display/Snippets/OLEprogramforconvertingtomultitabexcel
    cheers
    s.janagar

  • How to write input data into an xml file

    Hi All,
           I have some input data and i have to write it
    into an xml file.How is it possible send me some related
    links regarding this and source code if any.

    Hi
    Try to go through these links.I hope this will help you to solve your problem.
    http://www.xml.com/pub/a/2003/07/09/udell.html
    Thanks
    Mrutyunjaya Tripathy

  • How to write list values to a text file?

    Hi. Does anyone know how to write values stored in a List to a text file? I have a program that asks the user to enter a name and stores it in a list. The number of names in the list depends on how many times the user wants to enter a name. The problem is that my writeToFile method, which handles writing values to a text file, only writes one name and overwrites any previous names. How could I fix this so that it goes thru the list and writes every value to the file? Any hints would be appreciated!
    peace
    Chris
    import java.util.*;
    import java.io.*;
    public class StoreNames
    String name;
    char answer;
    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
    public void anotherName(List a)throws IOException
    System.out.println("Enter another name? (Y or N)");
    answer = (char)System.in.read();
    System.in.skip(2);
    while(answer == 'Y' || answer == 'y')
    inputName(a);
    System.out.println("Enter another name? (Y or N)");
    answer = (char)System.in.read();
    System.in.skip(2);
    if (answer == 'N' || answer == 'n')
    System.out.println("Ok. GoodBye");
    writeToFile(a);
    //prompts user to input names
    public void inputName(List a) throws IOException
    System.out.print("Enter a name: ");
    name = input.readLine();
    a.add(name);
    public void writeToFile(List a)throws IOException
    PrintWriter output = new PrintWriter(new FileWriter("names.txt"));
    output.print(name); //Problem area - handles only one line of input, overwrites previous input
    output.close();

    System.out is an instance of PrintStream (check the API documents for the System class to see this).
    So the easiest way to convert from a "print to screen" class to a "print to file" class is to acquire a PrintStream that prints to a file, and use it exactly the same as you'd have used System.out...
    So start with your console code...
            PrintStream out = System.out;
            for(int i = 0; i <10; i++){
                out.println("Number " +i);
            }Then you adapt to file code:
            FileOutputStream fos = new FileOutputStream("temp.txt");
            PrintStream out = new PrintStream(fos);
            for(int i = 0; i <10; i++){
                out.println("Number " +i);
            out.flush();
            out.close();Note that we flush the stream because for reasons of efficiency files aren't necessarily written to disk until you explicitly ask the system to do so (memory is fast, disks are slow, that's why).
    Closing the stream releases system resources associated with it.
    Actually, that's redundant, because close calls flush automatically, but I left it in for clarity.
    Any use ?

  • How to write the errors into a specific file

    Hi all,
    How to handled the errors in the scenarios,By using fault messages we can informed about errors to sender.But in my case i have to gather all errors & write into a specific file.For this can i create another Communication Channel for File reciever.How can i gather error messages in the scenario.
    Early response is appreciate

    Hi,
    Bhavesh had already answered how to handle it. For saving it in a file yes you can use File Receiver adapter.
    Regards,
    Prakash

  • How to write exception information into a txt file??

    i got a program which generate lots of exception information. its hard to see from the screen, is there any way to make the input into some txt file?
    when i use
    try
    }catch(Exception ex)
    // to do something here and make the output into a txt file?
    }

    depending upon the version of jdk being used one of the options will be to fetch the StackTraceElement array and writing each of the element using the standard file io operation
                StackTraceElement[] elements = ex.getStackTrace();
                int noOfElements = elements.length;
                for (int i=0; i<noOfElements;i++)
                      //fetch the stacktrace element and write to a file.
                }Thanks
    Rahul

  • How to write parameter-value into a servlet

    I use URL , URLEncoder and HttpURLConnection in java.net package to connect to a servlet in WebSphere 3.0.2 server with Https protocol. I try to write the necessary parameters into one servlet . But the http response code is always 500 ,means Server Error.
    Why can I not get the full html code or Ok http response code as I get the page from IE with inputing parameter directly ? The inputed String in IE address bar is "https://xxxHost/xxxDir/servlet/xxxServlet?para1=value1&para2=value2 ".
    I try to use all kinds of character encoding But the result code is alaways 500.
    The following code is my test code .
    //JVM 1.4.0_01
    //***********************Code Start*************************
    URL url=new URL("https://xxxHost/xxxDir/servlet/xxxServlet");
    HttpURLConnection Conn=(HttpURLConnection)url.openConnection();
    Conn.setDoOutput(true);
    Conn.setDoInput(true);
    Conn.connect();     
    PrintWriter trxOut=new PrintWriter(Conn.getOutputStream());
    String para1=URLEncoder.encode("para=value&para1=value1","ISO-8859-1");     
    trxOut.print(para1);
    trxOut.flush();
    trxOut.close();     
    Conn.getResponseCode();
    //***********************Code End *************************
    Where do i need or is error action? Thank you for this question .

    So, when you hit your servlet from a browser with a url that has the query string of
    para1=value1&para2=value2
    do you bet a 500? If so, it's not your (client) codes fault.
    To read the HTTP response see:
    http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html
    Good luck
    Lee

  • How to use Table valued MSSQL  function in OBIEE

    Hi all,
    Can some one help me to understand how to use table valued function in OBIEE? I want to use a table valued function (MSSQL function, with some input parameter), in the physical layer to pull the data?
    I know for MSSQL Stored Procedure we can write as
    EXEC SP_NAME @Parameter = 'VLUEOF(NQ_SESSION.Variablename)'
    but now I have a table valued function in the query window I can get the data as
    select * from myfunction(parametervalue)
    In physical layer of OBIEE I have tried as
    select * from myfunction('VLUEOF(NQ_SESSION.Variablename)'), but I'm getting error as the NQ_SESSION variable doesn't have a value , but actually I have initialized the variable but still Im getting error.
    Can some one help me to solve this.
    Thanks,
    Mithun

    Follow this link and try yourself. let me know for issues
    Substring instr issue in obiee
    Appreciate if you mark
    Edited by: Srini VEERAVALLI on Feb 20, 2013 8:13 AM

  • How to pass src value into img tag in ADF

    Hi,
    My Dev : 11.1.2.3.0
    How to pass row values into <img> tag.,I used the below code but it's taking empty.,
    I tried both ways like #{row.CdFilePath}   and   ${row.CdFilePath}
    <af:iterator var="row"
                      value="#{bindings.xxx.collectionModel}"
                     id="i2">
         <img src='/ShowImage?src=#{row.CdFilePath}' border='0' style="width:100px; height:100px; margin:5px;"/>
    </af:iterator>
    Please tell me any other option is there..
    Thanks

    This works if you use a normal table so I guess it should work here too.
    Are you sure the el #{row.CdFilePath} return something?
    Why don't you use the adf image tag <af:image source="/ShowImage?src=#{row.CdFilePath}".../> instead of the html img tag?
    Should the src property not be enclosed with " instead of your '?
    Timo

  • How to read and write a string into a txt.file

    Hi, I am now using BEA Workshop for Weblogic Platform version10. I am using J2EE is my programming language. The problem I encounter is as the above title; how to read and write a string into a txt.file with a specific root directory? Do you have any sample codes to reference?
    I hope someone can answer my question as soon as possible
    Thank you very much.

    Accessing the file system directly from a web app is a bad idea for several reasons. See http://weblogs.java.net/blog/simongbrown/archive/2003/10/file_access_in.html for a great discussion of the topic.
    On Weblogic there seems to be two ways to access files. First, use a File T3 connector from the console. Second, use java.net.URL with the file: protocol. The T3File object has been deprecated and suggests:
    Deprecated in WebLogic Server 6.1. Use java.net.URL.openConnection() instead.
    Edited by: m0smith on Mar 12, 2008 5:18 PM

  • How do you save data into an excel file while myRIO is acquiring data? I tried saving it using "Write to file" but it doesn't work for some reason.

    I am acquiring cosine wave and a pulse wave as input and I want to store their peak to peak values into an excel file. "Write to File" is not working for it. Is there any other vi which can be used for data logging?
    Thank you for your help.

    Hi Ssheoran,
    Can you provide more detail when you say that the Write to File VI doesn't work? Is there an error given? Or can you just not find the file on your computer? Keep in mind using this file in a Real-Time VI on the myRIO will save files on the myRIO. You will then have to transfer to your PC. Please view the following video as a guide for saving files and transferring them to your computer: (http://www.youtube.com/watch?v=BuREWnD6Eno). Hope this helps.
    Best Regards,
    Roel F.
    Applications Engineer
    National Instruments

  • How to write the data into EEPROM using Labview?

    How to write the data into EEPROM using Labview?

    You would need some sort of EEPROM programmer. Typically might
    communicate with it via serial. I don't know how you would do this in
    LV. You would need to have the command protocol for the programming
    device to start with.
    Doug De Clue
    gpibssx wrote in message news:<[email protected]>...
    > How to write the data into EEPROM using Labview?

  • How to write the value of JComboBox

    Hi All
    how to write the value of JComboBox, when the user selected?
    i.e. if i have text filed age and a JComboBox 20,30,40 and so on
    i want to save the age with the user selected item from JComboBox??
    any ideas

    Thanks for the useful link
    but what i need is how to write the JComboBox when it is appear in the line
    i.e if i have the following line
    Name Hana Age JComboBox Major JComboBox
    and i need to save all this line in a text file
    JLabel JTextfiled JLabel JComboBox JLabel JComboBox

Maybe you are looking for

  • Statspack report, execute to parse %

    Hi guys, I am finding the Execute to Parse ratio very low in a database. What is the desired percentage for this. And its significance. Instance Efficiency Percentages (Target 100%) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Buffer Nowait %: 100.0

  • Db_hotbackup: assert failure

    I am investigating using Berkeley DB 4.5.20 ( with replication ) at my site. When I run db_hotbackup : db_hotbackup -h ../data/rep/ -b /tmp/dir3 we repeatedly get the error: db_hotbackup: assert failure: ../db/db_dispatch.c/661: "i <= hp->generation"

  • EbXML 2.0 support in WLI

    Hi all, Is there any information available on when (or if) "ebXML 2.0" will be supported in WLI? Thanks! Jim

  • How to set the default boot kernel in /etc/default/grub or /etc/grub.d

    and without messing with /boot/grub/grub.cfg  ? I need this so that new kernels show up but do not change the default boot kernel Is there a way to do it by file name instead of position within the menuentry / submenu list? I found some ubuntu and fe

  • Are there any good third party or otherwise apps and/or plugins for imovie'11?

    Are there any good third party or otherwise apps and/or plugins for imovie'11?