How do you save the value entered in a controller?

I want to be able to save values entered into a controller (say set points) for the next time the program is opened...I was wondering if there was any easy way to do this (i.e. a setting on the controller rather than having to read the values from file and write them to the controllers each time)

I don't know about easy, but you can use the VI server functions to "set current values to default" and then "save" the VI, essentially self modifying code. We use VI server functions like this all the time. look to the methods available in a VI reference.
Stu McFarlane
Viewpoint Systems, Inc.

Similar Messages

  • How I can save the value of a variable in a database?

    hello,
    how I can save the value of a variable in a database? I need to keep the # of times you press click animation. to know how many times it has been seen.
    I connect to msql database, using php, javascript, ajax and jquery, but not how to save the variable counter clicks from adobe edge Animate
    appreciate your help so I can connect to the database from adobe edge animate.
    thank you very much
    Luis Felipe Garcia
    [email protected]

    Hi, all-
    This isn't an Animate-specific issue, but I thought I'd take a stab at it anyway.  As with anything else on the web, you need to have a server script to handle incoming data, so it's all back end work.  Your page will need to call that script and provide parameters to that script that it can read.
    The easiest way I can think of to do this (and this is all highly theoretical, so please make sure it's secure before you implement it) is to create a 1px div that has visibility off.  Whenever you click, you can load your URL in that div, which then increments your counter on your db.
    Hope that helps inspire some interesting solutions!
    -Elaine

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How can i save the values of output waveform in array ?

    hi
    how can i save the values of  output waveform in array ?

     how can i save the values of  output waveform in array ?
    the program is attachment bellow
    Attachments:
    closed loop transfer fn+fuzzy.vi ‏28 KB

  • Can i put Microsoft word onto the ipad, if so how can you save the documents, can i put Microsoft word onto the ipad, if so how can you save the documents

    can i put Microsoft word onto the ipad, if so how can you save the documents, can i put Microsoft word onto the ipad, if so how can you save the documents

    Welcome to Apple Support Communities
    If you have Office 365, you can install Office in your iPad > https://itunes.apple.com/us/app/suscriptores-office-mobile/id541164041?mt=8
    If you haven't got Office 365, there are other apps that work with Microsoft Word files, like Documents To Go > http://www.dataviz.com/dtg_home.html

  • How do you get the value of a selected list item?

    I have a drop-down list that the user can choose from. How do I get the value of what they selected? I thought I could do this by using the NAME_IN function, but I'm getting FRM-40105 Unable to resolve reference to item X. I don't know what I'm doing wrong.
    Thanks!

    Hi,
    You can use an WHEN-LIST-CHANGED trigger, attached to the list-item itself. And, in this trigger, you can use the name of the item to refer its value.
    For example:
    :block_name.list_item_name
    John

  • Hi.  How do you save the iPhoto album as you are making it?

    How do I save the photo album I making on iphoto as I am making it?

    How do I save the photo album I making on iphoto as I am making it?
    Saving in what way? iPhoto has a database architecture - all changes you make to library items are immediate - no saving needed. Only do not forget to make regular backups of your iPhoto Library..
    Or are you asking, how to create a pdf-copy of your book for future reference?
    Then select your book in the source list and use the command "File > Print" to print a copy of your book to PDF - press the "PDF" button in the lower left part of the "Print" panel.
    Regards
    Léonie

  • Re:How can we save the values in drafts

    Hi all,
    I am using jdev 11.1.2.3.0
    My requirement is I have one table as jobsheet.In jobsheet table some fields are mandatory.In this jspx page I have 2 buttons as save and draft.if i entered some data without entering mandatory fields and click the draft button it will saved in draft.if i modified the draft data and then clicks save it will save into the database.so how can i implement the logic.can anyone help me please.
    Thanks,
    G.Shilpa

    This is not that easy.
    First you have to think about where to save the data when the user clicks on draft. Then you have to think about how the data is saved. Finally you have to find out how to get to the data.
    If you have constraints on your DB (which I recommend), that you can't store the data in the table you later want to store the real data as the constraints will not allow this. As we are talking about a multi user environment you have to store multiple sets of data which you need to assign the user who stores the data.
    You can add another table to the db which look the same as the real one but does not have constraints like mandatory applied to it. When the user hits draft you store the data in this table. For the UI you then have to look into the too tables to find out if the user has saved a draft and read it from there if yes.
    Timo

  • How can I save the value of a variable in a database?

    Do I need to save the number of times that I click in the animation to know how many times it has been seen
    I go to the databases msql through php, javascript, ajax and jquery, but I  don't know how to save the variable that contes the clicks from adobe edge animate
    I appreciate your help about how I can go to the database from adobe edge animate, Thank you very much.
    Luis Felipe Garcia
    [email protected]

    Can you clarify something? You want to know how many times someone has clicked a particular animation. Are you wanting to store the click as soon as they click it? So for example:
    User sees animation.
    They click to continue and go to some other page.
    You want to know how many times they've done that.
    Is that what you mean?

  • How do you change the value of the primary key in the CMP?

    Hi,
    The cmp that I built has the phone as the Prikey field.
    The bean has the get/set methods. The servlet invokes the cmp
    to change the phone number. How could I do that?
    The setXXX for the priKey can not be called outside of the ejbCreate() so
    how would I change the prikey value of a particular row of the table. Do I have
    to remove the bean then create the new bean with the new priKey value?
    Please help,
    Thanks

    Thanks Mona
    Tom.
    Mona Ramlawi <[email protected]> wrote:
    Hi TOM,
    The primary key is the unique identifier of an Entity Bean.
    To change it, you have to remove the bean instance = database delete
    then you have to create a new one with the new primary-key value =
    database insert.
    Hard luck tom, maybe you should consider changing your primary key. You
    can easily change it to an AutoNum
    Tom wrote:
    Hi,
    The cmp that I built has the phone as the Prikey field.
    The bean has the get/set methods. The servlet invokes the cmp
    to change the phone number. How could I do that?
    The setXXX for the priKey can not be called outside of the ejbCreate()so
    how would I change the prikey value of a particular row of the table.Do I have
    to remove the bean then create the new bean with the new priKey value?
    Please help,
    Thanks

  • How do you set the value of an enumeratio​n programati​cally

    I would like to be able to select (programatically) the value of an enumeration.  I don't seem to be able to find any reference to how to do that.
    Thanks.
    Solved!
    Go to Solution.

    True, True.  The original post wanted to know how to programmatically "select" the enum value.  To me, that means to either force the enum to display another value, or retrieve the current value.   I thought Ben was referring to the fact that you can't programmatically set or initiate new values into an enum.  Which as he said, can only be done with a Ring.
    "In your example you're not "getting" the value of the enum. You're converting it to a string. That's a different operation."
    I showed two ways to get the value,  one gets the current string value associated with the numeric value, and the other gets the current numeric value.  i went further in the attached vi, by demonstrating how to change the current (displayed) value of the enum by using a string.  (IFF you already know the string values in the enum.)   
    In my program, i use a typedef cluster with an enum in it.  At runtime, i need to "select" the active enum value based on which operation i'm performing.  I know from elsewhere in the program what operation i need, but it's string, and there's no easy way to change the value of an enum with a string, except with the backdoor methods i showed.  
    I wish my cohort woulda used a ring.  ;-)

  • How do you find the value of an iMac

    Just curious how and where to find the value of my iMac 20 inch

    Welcome!
    Find your exact model from this list:
    http://www.everymac.com/systems/apple/imac/index-imac.html
    Then click its link. The full specifications have an estimated used price value near the bottom:
    There are a lot of 20-inch iMac variants, so you need to at minimum do "About this Mac" to see what it shows for processor speed and type to find your model on the index.
    The last update of estimated prices was done last August. Prices on that site tend to be at the top of the range.

  • How do you get the value of an ELEMENT node?

    Which API call do you use to get the value of a simple element node, e.g. <element>value</element>
    The comments for getNodeValue in the header file oraxml.h says
    This function returns the "value" (e.g. associated data) for the given node. Only COMMENT, CDATA and TEXT nodes have data, all others return NULL.
    I've used an xpath expression to select the node that I want but now I can't get the value of the node because it is of type ELEMENT.
    When use getNodeValue I get NULL just like the comment says. Not sure what to try next.

    For parsing with XPath
    http://www.oracle.com/technology/pub/notes/technote_domparser.html

  • How do you save the screen plot on an 8753ES network analyser using Labview 7.0?

    I need the screen to be saved in the .FP format to save space (not a
    jpeg) and saved on my PC. All information is required, such as marker
    levels

    Is your .fp file really a graphic format? Can you open it with a
    graphic editor program (Adobe or Paint Shop Pro, for example)? What
    do you currently do with a .fp file? Can you post an example?
    I'm not familiar with your particular piece of equipment, but is it
    possible to save the important parameters that are displayed in the
    the front panel image (xscale, yscale, data, markers, etc)? You could
    then load these parameters and update a graph(?).
    Otherwise, I'd agree with Jeremy. Also, I'd say there's probably a
    reason that the Agilent program saves in jpeg format.
    Tim

  • How do you retrieve the value?

    Hi There,
    XML request is:
    <?xml version="1.0" encoding="utf-8"?>
    <payload>
      <region>
        <__type>Category:#Test.XYZ.Framework.Categorization</__type>
        <Extension></Extension>
        <Id></Id>
        <Name>
          <en></en>   
        </Name>   
      </region>
    </payload>
    I did an XML to JSON conversion on the above and stored the value of "en" node under "Name" in an attribute named "payload.region.Name.en" by extracting using JSON path filter - using "$.payload.region.Name.en".
    But, when I print the value of the attribute, it is printing as "null". Any idea why? I was expecting "" as I do not want the string null to be send as the value for "en".
    Regards,
    ET

    Hi,
    The XML to JSON filter does actually converty empty value into the string "null" in the JSON and when you read it out with the path it actually reads the string "null". It does look a bit flawed in my opinion and I recommend creating a support case for it..
    But a solution for you!
    Create a script filter (JavaScript) after you have read the parameter and do this:
    function invoke(msg)
        var att = msg.get("payload.region.Name.en");
       if (att == "null") {
          msg.put("payload.region.Name.en", "");
        return true;
    It will just replace null with an empty string!
    Cheers,
    Stefan

Maybe you are looking for