Save variable value and locking the code

Hi,
I want to save some values of indicator on front panel in place of typing them each time. e.g,
maximum velocity 1 mm/sec
maximum accel .....
Each time, while opening I want the values used in last experiment as default.
I do not want to set a fixed default value, it should be from last experiment.
Also, I have to lock the code so as no bady else can change it. But I do not know how.
Any help is appreciated,
Dushyant

There is a VI method that will set all the values as default. However a VI can not call on itself, while it is running. So take a look at the attached code.
The Main Project VI represents your code, and I added a password 123
You would need to put that code at the very end of your code. Notice that I call the other VI and then finish. The other VI loads your VI, with password, and then sets the values to default once it stops running.
Let me know if you have any questions.
Attachments:
Set Defaults.zip ‏20 KB

Similar Messages

  • Can I lock the code view?

    Apologies in advance if this has been covered, but I haven't been able to find the answer to this...
    When working with a split view (usually live), every time I make an amendment and update the live view, my cursor position or code view jumps to the end of my document.  Is there anyway to lock the code position or cursor so that when I click on my live view, the cursor doesn't automatically go to the appropriate code and stays where I was editing?

    Hi toby_ni,
    Here is the link for filing feature request.
    Adobe - Feature Request/Bug Report Form
    If you have Dreamweaver CC 2014, you can directly file it from Help Menu.
    Go to Help ->Submit Bug/Feature request

  • HT4628 No matter what I do after selecting my network, when I put the computer to sleep it reopens saying that no network is selected.  I have applied the appropriate network and locked the selection as well as restarted the computer (a windows habit).

    I cannot get this imac to save selected newtwork preference (tried apply and locking the selection to no avail).  My other imac maintains the selection without a problem using the same airport.  The connection works immediately after re-selecting the network from a list of "neighborhood" networks that I have never used.  But once I "sleep" the mac, the dialog states:  no network selected.

    I cannot get this imac to save selected newtwork preference (tried apply and locking the selection to no avail).  My other imac maintains the selection without a problem using the same airport.  The connection works immediately after re-selecting the network from a list of "neighborhood" networks that I have never used.  But once I "sleep" the mac, the dialog states:  no network selected.

  • Locking The Code Inspector Window?

    Is there any way to lock the code inspector window so it does
    NOT scroll to follow my interaction in the design view?
    I want it to stay fixed on a line of code, even if I'm off
    changing and inspecting other compoenents in the design
    view.

    I doubt it, but you could keep a notepad window open.
    "Dynamator" <[email protected]> wrote in
    message
    news:esskrh$5i0$[email protected]..
    >
    > Is there any way to lock the code inspector window so it
    does NOT scroll
    > to
    > follow my interaction in the design view?
    > I want it to stay fixed on a line of code, even if I'm
    off changing and
    > inspecting other compoenents in the design view.
    >

  • Problem with unlocking and locking the Materials in MARA using idocs.

    We are sending a inbound idoc from one cluster to the other to update the materials
    If the material is locked ( MARA-MATFI=x ) before it needs to be unlock it  ,update it and lock again .
    If its not locked ,we just need to update it and lock the material .
    When we are trying to implement this the materials are not getting locked at all times .
    the update inbound idoc is being sent to 5 clusters at a time .
    The same material is getting locked in some clusters and some it is not . (But the data is being updated in all the clusters )
    Can you please suggest me a solution or give me an idea where the problem would be lying.

    The client has a Keystone Server where alll the Master data is kept and there are 5 Production Servers .
    When ever there are any updates to the Materials they are first updated in the Keystone server .
    And with the help of a Batch Job they send inbound idocs to the 5 Production Servers.
    On the Production servers if the material in MARA  that needs to be updated is locked ,it needs to be unlocked updated and locked again .
    Hope i have  given u the clear idea of the scenario

  • Please help block my ipod touch second generation and forget the code, try putting the code so many times that now says connect to itunes, I connect but will not let me do anything that tells me this should unlock with key and I should do for Please help!

    please helpme i block my ipod touch second generation and forget the code, try putting the code so many times that now says connect to itunes, I connect but will not let me do anything that tells me this  should unlock with key and I should do for Please help!. thanks

    Place the iPOd in recovery mode and then restore. For recovery mode:
    iPhone and iPod touch: Unable to update or restore

  • How can I purchase an iTunes card online and get the code online to purchase apps.

    How can I purchase an iTunes card online and get the code online to purchase apps.

    iTunes Gift Options
    http://support.apple.com/kb/HT2736

  • Why do i need to enter the credit card information for downloading free apps and redeem the codes?

    getting a message says apple id has not yet been used with the itunes store while trying to download apps
    why do i need to enter the credit card information for downloading free apps and redeem the codes?

    As a security precaution, Apple verifies your billing credentials with every transaction whether paid or free apps or using the balance of a redeemed code.

  • TS3212 i am trying to download itunes 10.7.  i have windows vista 32-bit.  when i click on download.  the pop up window comes up and ask to save or cancel, and then the webpage says thank you for downloading.  it hasn't downloaded it.  what can i do to fi

    i am trying to download itunes 10.7.  i have windows vista 32-bit.  when i click on download.  the pop up window comes up and ask to save or cancel, and then the webpage says thank you for downloading.  it hasn't downloaded it.  what can i do to fix this?

    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/itunes/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • This field contains duplicate values. Remove all duplicate values and try the operation again.

    Greetings Everyone,
    I am getting the follow up errors: "This field contains duplicate values. Remove all duplicate values and try the operation again."
    when I tried to make the field "Claim Number" from the list in site collection library. See the screen below:
    1- I selected on the "List" and I clicked on the list name
    "Claim Tracking Report"
    2- After I clicked on the list name then I went to the ribbon and selected list setting to choose Enforce Unique for the Field Column
    "Claim Number"
    3- Then I went down and selected
    "Yes" to Enforced the Unique for the Field Column "Claim Number".
    4- Then after I clicked "Yes" I got the error
    "Sorry, something went wrong. This field contains duplicate values. Remove all duplicate values and try the operation again."  But I don't have any duplicates values Items, because I had them removed before I tried
    to Enforce the field column values to Unique. Can someone help or provide me a suggestions on how I can solve this issue please. Thank you
    FYI: I am using a Nintex Workflow

    Hope this is a list, how many total items are there?
    Please try to open this list as access(link in IE) and run this query in access
    SELECT Claim.[Claim Number], Count(*) AS Expr1
    FROM Claim
    GROUP BY Claim.[Claim Number]
    HAVING (((Count(*))>1));
    Hope it will show something! if this does not show you dups then better to create a separate list and migrate items after configuring unique column.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • I disabled my Macbook  Hard Disk and lock the settings, after i try to reboot, the system wouldn't come up. It refuses to read instructions from the hard disk. How can i enable the hard disk when the system wouldn't come up?

    I disabled my Macbook  Hard Disk and lock the settings, after i try to reboot, the system wouldn't come up. It refuses to read instructions from the hard disk. How can i enable the hard disk when the system wouldn't come up?

    How do you disabled it if running the same?

  • How to move the code and deploy the code from Dev environment to SIT.

    Hi,
    I have a requirement.
    I want to move the components and deploy the code from dev Environment to SIT environment using Ant Script for AIA.
    Before doing this is any pre-requisites required?
    Can you please help on this,how to do?
    Thanks in advance.

    Further to add to Anish Statement follow the steps to easily migrate the code to different environment.
    Steps:
    First log on to the EM Console and export the Composite Flow as a SAR file to a location.
    In Jdeveloper create a project using the same name of a SAR file like - ProcessSalesorderFlow
    import the project using the option import the composite using a SAR File.
    After import , then click on the composite and then generate the config plan.
    In config plan add all the url changes using the search and replace Tags.
    And in case if you have a JCA Adapters the same has to be taken care in SIT environment why because during deployment a lookup happens and deployment fails if it dont find the JNDI Name.
    Take the SAR file adn config plan seperately from JDeveloper.
    Now open em console again and then deploy it using the config file and SAR file.
    Thanks,
    Venugopal SSS RAJA

  • How to retrieve the procedure value and pass the value to a form field

    How to retrieve the procedure value and pass the value to a form field?

    Set property for the field and the value is the actual procedure/function.
    Cheers

  • Can I buy an iTunes voucher and get the code sent straight to my email?

    Can I buy an iTunes voucher and get the code sent straight to my email?

    If the iTunes Store sells gift certificates in your country, yes, but you'll need to provide a credit card issued in that country to make the purchase.
    Regards.

  • HT4480 When I enter my redemption code I get a message that says the code is not recognized, even when I copy and paste the code.

    When I enter my redemtion code in the app store I get a message that says code not recognized, even when I copy and paste the code.

    Use the email form to contact Apple here >  Apple - Support - Mac App Store - Contact

Maybe you are looking for

  • How to insert serial Number in BI Publisher Report

    Hi All,     I want to insert serial numbers in BI Publisher report. For Example:    SNO      1      2      3      4 I tried below code in XML file...but i confused where i need to add these code in XML file <?xdoxslt:set_variable($_XDOCTX, 'var', 0)?

  • WF: Approve trip facts

    All Experts:     I  am working at WF:ws20000040, in the steps: 000404. when choose the outcome 'Trip facts are consisent' the to the next steps: 000416(Approve trip facts). the WF occurs error.: Work item 000000426408: Object FLOWITEM method EXECUTE

  • Error in J1INCHLN

    Hi I am posting Bank Challan. I fill all details for bank. When i run it i gives me error: "Runtime error SAPSQL_ARRAY_INSERT_DUPREC has occured" Let me know what is the reason for the same. It shows the document generated. But that document is not p

  • Tuning a sql to remove cpu intensive operations

    Along the simliar lines of the other thread but we want to tune a sql to reduce cpu impact. Its a complicated sql, joins subqueries, with etc. What tools/web pages/blogs should I focus on for this topic? An explain plan shows cpu .. is that showing t

  • Cleaning my Android Cache removes my addons.

    Cleaning my Android cache removes my add-ons from Firefox. What solutions are available?