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

Similar Messages

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

  • 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 save copyright information into Gif files?

    URGENT - can someone please help. i have photoshop cc and I need to know how to copyright my gif files

    c. is correct in that it's a little ambiguous what you're trying to achieve. Here are three ways:
    Under US law your image is already copyrighted at the moment you create it, but you greatly improve your legal standing in court if you register the image with the US Copyright Office.
    To add invisible copyright metadata inside an image, choose File > File Info in Photoshop, click the Description tab, and fill out Copyright Status and Copyright Notice. Then do what c. said in Save for Web to make sure it's included on export. However, while this works with most formats including JPG and PNG, I do not think it will work with a GIF. As far as I can tell, GIF doesn't support metadata. If you want better support for modern standards for non-photographic web graphics, use PNG instead of GIF.
    To add a visible copyright watermark over the image, download the Adobe Watermark panel and install it.

  • How to save an image into an image file?

    I have posted my problem before, nobody replied so I ask again if anybody has any solution??
    I want to save an image, which I created before from a physical file and did some bit-level manipulation, into the same or a new (doesn't matter) physical file (say in png format). But I do not know how to do it. I have tried the FileConnection API and OutputStream and then the method write() to write the byte array, rather this does not solve my problem. I need something like corresponding to J2SE ImageIO.write(image,null) function. Any Idea??
    please.....

    daregazi wrote:
    I have posted my problem before, nobody replied so I ask again if anybody has any solution??
    I want to save an image, which I created before from a physical file and did some bit-level manipulation, into the same or a new (doesn't matter) physical file (say in png format). But I do not know how to do it. I have tried the FileConnection API and OutputStream and then the method write() to write the byte array, rather this does not solve my problem. I need something like corresponding to J2SE ImageIO.write(image,null) function. Any Idea??
    please.....I don't think it's possible in a midlet. You'll have to save the data as a byte[] to a RecordStore and then convert it back again if you want the midlet to redisplay it.

  • How to save html code  into a html file in webdynpro

    Hello Everyone!
    I want create a html page in WebDynpro,
    example :
    String mystr = "<html><head><titile>This is a text</title></head><body> this is body</body></html>";
    I want create a html page and save this to the *.html page , how can i to do ?
    thanks!

    HI! sowmya&Satya
    1st:
    I use method (File>new>file.) create a html under my project . but when I swith web dynpro perspective,  can't found the html file under my current project ?
    2nd:
      public void onActionInputToHtml(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionInputToHtml(ServerEvent)
        String mystr = "<html>.............</html>"
        //@@end
    how to input "mystr" to the html page which I have create in 1st step ?
    3rd :
    how to display the html page In IE when run my project program ?
    Thanks!

  • How to save changes back into binary text file

    I have a repository with a single binary field that contains an HTML file
    I have a pageflow with a form where users can edit content, including the contents of the HTML file.
    Can I just treat that like any other property:
    If the name of my binary field containing an HTML file is “file”
    Can I just treat it like any other field in the repository and do :
    <pre>
    try{
    properties = node.getProperties();
    properties[0] = new Property("title",new Value(form.title));
    properties[1] = new Property("description",new Value(form.description));
    properties[2] = new Property("file",new Value(form.contentText));
    properties[3] = new Property("author",new Value(form.author));
    node.setProperties(properties);
    String title = form.title;
    nodeId = node.getId();
    title = node.getProperty("title").getValue().toString();
    } catch(Exception e){
    e.printStackTrace();
    error = "error1";
    RepositoryManager manager = null;
    try{
    manager = RepositoryManagerFactory.connect();
    NodeOps nodeOps = manager.getNodeOps();
    nodeOps.updateProperties(nodeId, properties);
    } catch(Exception e){
    error += "error2";
    e.printStackTrace();
    </pre>
    Thanks much.

    I have a repository with a single binary field that contains an HTML file
    I have a pageflow with a form where users can edit content, including the contents of the HTML file.
    Can I just treat that like any other property:
    If the name of my binary field containing an HTML file is “file”
    Can I just treat it like any other field in the repository and do :
    <pre>
    try{
    properties = node.getProperties();
    properties[0] = new Property("title",new Value(form.title));
    properties[1] = new Property("description",new Value(form.description));
    properties[2] = new Property("file",new Value(form.contentText));
    properties[3] = new Property("author",new Value(form.author));
    node.setProperties(properties);
    String title = form.title;
    nodeId = node.getId();
    title = node.getProperty("title").getValue().toString();
    } catch(Exception e){
    e.printStackTrace();
    error = "error1";
    RepositoryManager manager = null;
    try{
    manager = RepositoryManagerFactory.connect();
    NodeOps nodeOps = manager.getNodeOps();
    nodeOps.updateProperties(nodeId, properties);
    } catch(Exception e){
    error += "error2";
    e.printStackTrace();
    </pre>
    Thanks much.

  • How to save a CWGraph into a bitmap (.bmp) file in Visual C++?

    I plot (chart) data into a graph control on a MFC dialog in Visual C++ and I need to save the image into a bmp file. I found the ControlImage method, but did not find any way to use it in Visual C++.
    I would also like to retrieve the chart data (the point charted on the graph for each plot) and to use them to build data files. How to do it?

    Dealing with images in VC++ is far from easy. You would need to create the following objects: CBitmap, CArchive, CPictureHolder and a CDC.
    Then call the SelectObject function on the CDC and pass in the CBitmap object. Then you can put the image of the graph in the CPictureHolder with:
    ph.SetPictureDispatch((LPPICTUREDISP)m_CWGraph.Con​trolImage().m_lpDispatch);
    where ph is the CPictureHolder and m_CWGraph is the CWGraph.
    Then you can render the image to the bitmap CDC by calling the CPictureHolder::Render function. It will ask for the bounds of the picture in CRect form as well.
    Then you can call the CBitmap.Serialize function with the CArchive object which should be pointing to the appropriate BMP file. Don't you just love MFC?
    As for you second qu
    estion, you can't retrieve the data that has been plotted to the graph. We don't maintain the data that is sent in because it would be very inefficient memory usage since data is usually decimated for display. I would recommend that you just send your data to a global buffer at the same time as plotting.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • I have three websites in one file. How do I separate them into three individual files?

    I have three websites in one file (Domain.Sites2). How do I separate them into three individual files without taking the site down or loosing files?

    Duplicate the domain file 3 times (keeping the orignal as a backup).  Name each domain file for the website you want it to contain.  Then open each domain file and delete the two sites you don't want it it. 
    Since you're running Mt. Lion you'll need to read the following in order to be able to open the different domain files.
    In Lion and Mountain Lion the Home/Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    To open your domain file in Lion or Mountain Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application. 
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    You can download an already compiled version with this link: iWeb Switch Domain.
    Just launch the application, find and select the domain file in your Home/Library/Application Support/iWeb folder that you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    OT

  • How to save Internal table as a local file?

    Hi,
    How to save Interanl table as a local file ?
    I had some data which i had selected in Interanl table and would like to send this as an attachment by attaching internal table contents as a local file--

    Hi friend,
    See sample code for GUI_DOWNLOAD.
    *Types
    TYPES: BEGIN OF g_r_mara,
           matnr LIKE mara-matnr,
           ersda LIKE mara-ersda,
           laeda LIKE mara-laeda,
           mtart LIKE mara-mtart,
           mbrsh LIKE mara-mbrsh,
           END OF g_r_mara.
    *Data
    DATA: g_t_mara TYPE TABLE OF g_r_mara,
          filename TYPE string.
    *Tables
    TABLES: mara, sscrfields.
    *Selection Screen
    SELECT-OPTIONS: s_matnr FOR mara-matnr.
    SELECTION-SCREEN BEGIN OF LINE.
    *SELECTION-SCREEN COMMENT 10(20) text-001 FOR FIELD p1.
    SELECTION-SCREEN PUSHBUTTON 12(20) word USER-COMMAND uc.
    SELECTION-SCREEN END OF LINE.
    *Initilizing data.
    INITIALIZATION.
      word = 'word'.
      filename = 'C:\Testing.doc'.   <------- File name and location
    AT SELECTION-SCREEN.
      CASE sscrfields-ucomm.
        WHEN 'UC'.
    *Data retrival
          SELECT matnr ersda laeda mtart mbrsh
            INTO  CORRESPONDING FIELDS OF TABLE g_t_mara
            FROM mara
            WHERE matnr IN s_matnr.
    *Downloading data from internal table to excel
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
              filename              = filename
              filetype              = 'ASC'
              write_field_separator = 'X'
            TABLES
              data_tab              = g_t_mara.
      ENDCASE.
    (Note: Downloaded file is in C:\Testing.doc)
    You can change the file format by changing the extension in filename.
    Might helpful for u.
    Thanks..

  • How do I put text into an Edge File that clients can edit easily afterwards

    Hi
    Can anyone explain how I can put text into an edge file (styled with google fonts) and make it so that clients can access the text and update the text as they require?
    Previous suggestion was dynamically loading a .txt file - any instructions would be most appreciated.
    Thanks.

    Hi Resdesign!
    Your code is very useful to learn how to use Json in Adobe Edge Animate!
    But I have a question: why you use ( i ) as argument of the function UpdateInfo and when you recall it you use ( index )?
    $.getJSON('slides.json', function(data){
              //for(var i=0; i<data.length; i++){
    function updateInfo(i){
                        sym.$("photo").css({"background-image": "url('"+data[i].image+"')"});
                        sym.$("pillar").html(data[i].pillar);
                        sym.$("what").html(data[i].what);
                        // position
              index = -1;
              sym.$("btn").click(function(){
              index++;
                        if (index>=5){
                                  index = 0;
              updateInfo(index);
    Many thanks for your attention!
    Davide

  • I am a CC subscriber and trying to update lr5.7 and I am told to got to my CC folder and click on install. The problem is, LR is not in my file. I guess I have been using my original lr that I bought years ago. What now? How do i get lr into the CC file?

    I am a CC subscriber and trying to update lr5.7 and I am told to got to my CC folder and click on install. The problem is, LR is not in my file. I guess I have been using my original lr that I bought years ago. What now? How do i get lr into the CC file?

    Gary116 please remove and reinstall Lightroom by following the steps listed in CC desktop lists applications as "Up to Date" when not installed.  The version of Photoshop Lightroom available through the Creative Cloud Desktop application supports your Creative Cloud Membership.

  • Linux server(how to save command out put to another file. )

    hi all,
    i have Q ?
    how to save command out put to another file.
    Ex: #ps -ef
    that particular cmd output i need to save another file.
    is it possible ...if possible ..please let me know
    And how to save command history in Linux.

    df -h >> /oracle/output.log
    /oracle -- mount point name
    Regards
    Asif Kabir

  • ANYBODY KNOW how to save a swatch in an ID file at a percentage?

    ANYBODY KNOW how to save a swatch in an ID file at a percentage?
    So that every time it's used, it applies that percentage automatically?

    LOL...nevermind. Took me 2 seconds to realize all I needed to do after posting this. Sad trombone.

  • How to scan more pages into one PDF file using hP inkjet 2515

    Dear friend 
    How to scan more pages into one PDF file using hP inkjet 2515 

    Dear friend 
    How to scan more pages into one PDF file using hP inkjet 2515 

Maybe you are looking for

  • Master Plan - problem with calendar into Subproject

    If the save in the sub-project baseline and then connecting it to the master plan during the publication of the master plan, an error is returned "not found the appropriate calendar project............". The solution is to first connect the subprojec

  • My phone died.  How can I get my contacts from the icloud onto my mac?

    My phone died.  How can I get my contacts from the icloud onto my mac?

  • Prob with group by function

    Hi frds I wrote a code where there is a subquery in my select statement, when i use a group by function with my query it comes with an error Example This is how my select statement looks SELECT mt.subinventory_code, item.description, we.wip_entity_na

  • Loans given: monthly repayment to be effected by rebate earned by customer

    Hi guys, We have a requirement that for certain type of loan, the customer (loan partner/borrower) will not make cash repayment , but the loan balance will be reduced on monthly basis by the amount of rebate earned by the customer. The rebate is calc

  • 10.2.0.2 backup restore to 11.2.0

    Hi. My task is to restore a backup created with 10.2.0.2 software DIRECTLY to the 11.2 on another host. This is migration to 11.2 using rman. I followed instructions in this metalink document: [ID 369644.1] , section 1) Can I restore or duplicate my