Setting current values as default.

Hi there !
I got a VI that is suspend when called.
I make the right settings, and then I run the VI (settings are written
trough GPIB to a HP4145A)
It would be nice if I can make a checkbox or something, when this box is
checked, that all the current settings are set as default. So when I
call the VI next time, I got the previous setting. I've searched LabVIEW
help and menu's, but didn't find a thing.
Anybody suggestions, tips, ???

You can save the settings in a file and load them again, if you need.
Kristof Poppe schrieb:
> Hi there !
>
> I got a VI that is suspend when called.
> I make the right settings, and then I run the VI (settings are written
> trough GPIB to a HP4145A)
> It would be nice if I can make a checkbox or something, when this box is
> checked, that all the current settings are set as default. So when I
> call the VI next time, I got the previous setting. I've searched LabVIEW
> help and menu's, but didn't find a thing.
> Anybody suggestions, tips, ???
Ingenieurbüro Mencke & Tegtmeyer
Laubbreite 21
D-31789 Hameln
Tel. 0 51 51 / 96 33 68
Fax 0 51 51 / 96 33 69
e-Mail: [email protected]

Similar Messages

  • Setting Current Values as Default in Stand-Alone Application ?

    Hi
    I have a stand-alone application using LabVIEW run-time and I want the user to be able to make the choice if he wants to retain the default values or modify them ? I know you can't use the invoke node and set the current values to default because that works only in EDIT mode. I saw some postings where there was a talk about using configuration VIs. I am not sure how to use them. Also is there some other way I can accomplish this ?
    Thanks
    Sridhar
    P.S: I use LabVIEW 7.0
    Kudos always welcome for helpful posts

    I would use a configuration file to hold default values for my controls. When the vi starts, prompt the user to select default values or to modify. You can use a two button dialog to do this. Wire the output to a case structure. If the user selects default, read the config file and use the values to set your controls values. If the user selects modify, call a subvi that gives the user an interface to modify the values. You can start with the old default values. This subvi would have a loop, waiting for the user to press either a cancel button or a change button. If the user makes changes and presses the change button, exit the loop and write these new values to the config file. If cancel is selected, exit the loop and do not write to the config file. Upon returning to the main, read the config file and set the control values accordingly. You can even go a step further and create a "factory default" file. This file would be read only. The user can be given a choice to select this file in case he made changes and saved them to the config file, and the new changes were all screwed up.
    Config files are nothing more than a file containing keys which represents controls, and the data values for those controls. There are examples located at \examples\file\config.llb.
    - tbob
    Inventor of the WORM Global

  • Set country value to default

    Hi All,
            In my identification page there is a input field for country, I want to set the country to default value. The code for input field is as given below.
    <crmic:inputField
        disabled    ="<%=Search->GET_I_Country( )%>"
        id          ="Country"
        value       = "//Search/Country"
        maxlength   = "3"
        showHelp    = "TRUE"
            width       = "100%"
    />
    How can i set this value to default value but it also possible to change the value and do the search.
    With advance Thanks & Regards,
    Sujith

    Hi Sujith,
        You are in the ICWebClient 5.0.. i guess. If you want initializate a attribute you should give the value in method DO_INITATTRIBUTES of implementation class of your view..  C*IMPL
    Regards.
    Manuel

  • How to make current value to default to all controls at once

    Choosing "Data Operation" -> "Make Current Value Default" to multiple controls requires a lot of clicking. Is it possible to do this with one click?
    Solved!
    Go to Solution.

    Yes.  If you select no controls, it says "Make current values default", and it does all the controls at once.  If you have a control selected, then it does only the selected controls.
    Reinitialize current values to default works the same way.  Select nothing, it does all the controls at once.
    Bob Schor

  • Setting current values in Multiple Select List in SQL Query based Report

    Hi,
    I have a report based on a sql query that contains a multiple select list. Unfortunately I cannot get the multiple select list to display the current values (p_value) correctly. I have created a page item, :p311_current_versions, that is set using a pre-header process and it returns a value with a colon delimited format e.g. '10.1.2.1.0:10.1.2.2.0'. Then this item is used in the sql query to set the current value (p_value) of the apex_item.select_list_from_query function. However when the table is displayed, instead of having two entries, 10.1.2.1.0 and 10.1.2.2.0 selected, it has an extra entry '10.1.2.1.0:10.1.2.2.0' selected.
    Here is my code:
    select distinct a.product, a.version from (
    select distinct
    apex_item.display_and_save(2,product)||apex_item.hidden(1,env_product_id) PRODUCT,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(3,decode(product, 'HTTP Server' , :p311_current_versions, version), 'SELECT distinct version d, version r FROM ebs_tech_stack where
    product ='''||PRODUCT||'''',
    decode(PRODUCT, 'HTTP Server' ,'multiple="multiple" style="width:170px"','style="width:170px"'),
    'NO') as version
    from ebs_environment_tech_stack
    where environment_id = :p311_umgebung_id) a order by a.product
    If anyone can help me figure out how to set the current values correctly I'd be really grateful!!
    Thanks in advance,
    Jean

    Jean,
    I don't think this is possible using the apex_item package. The select_list_from_query function accepts only a single value for the second parameter.
    Scott

  • How to set current data as default when stop VI automatically?

    Each time, when I finish a VI, I want it remember all current value so that I can reuse it next time. I want this can be done by program itself.
    Any idea, thanks

    Hello,
    If you are using LV 8, there is a built in function to perform a "make current value default" at end of you VI.
    If LV 7 and older there are some tricks, that have been explained and re-explained on the forum, so do a search with "make current value default" and you'll find all you need.
    Hope this helps.
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Exit to set current date as default

    Hai Gurus,
    One of our clients require to set the current date as default billing date when perfirming vf01. As you know in vf01, if we dont specify any date, the system would take the default date from the delivery date. We found an exit for this requirement. RV60AFZC. However I want to make sure whether this is the right exit to be used ..
    awaiting a valuable reply
    Dinkar

    The following one of the options would satisfy your condition
    A. T-Code: VTFL(delivery related billing)
    For the billing document and delivery, at item level assign the copying requirement 011 or if you are currently using some other routine then you can use following in that VBRK-FKDAT = SY-DATUM.
    B. T-code VTFA(order related billing) Similar to A, using copying requirement 011
    I'm not sure about user exit

  • Setting Profile Value as default in Task List Initial Screen Profile Field

    I have created a profile for enabling Network Graphic view for operation relationship in PM task list. Whenever i want to create task list i have to enter profile in initial screen to activate Network Graphic view. Can this profile be set as default, i mean whenever i create task list, profile field be filled automatically with predefined value instead of entering profile every time ?

    Yes, you can default this Profile name by use of PIDs
    Not at a system right now - can anyone help with the PID name??
    PeteA

  • How to set Current Date as default date in the form?

    Hi ,
    I have a date field and in the form I need it to be 'Current Date' as defualt.
    How do I get it in Portal??
    Thanx
    swati

    In the "Default Value Type" you choose "SQL query returns date" and in Default Value you write "select sysdate from dual".

  • Setting null values vs Default or initial values in the Database?

    i am working on a system and i have set any field that might optional as Allow Null,, but this is causing me a lot of troubles especially when i am querying the data or perfoming some calculations from the database. So is it valid if i changed all the Allow null field to have initial values an restricting null values to be inserted into them, so example, to set the initial values for an integer to be 0 and string to be empty?

    Hi,
    You can implement business logic on db side or on app side.
    Advantage and disadvantage of implementation business logic on DB side.
    Advantages:
    1.Don't require app server software version changes/compilations (Java, C, C++, C#...)
    2.Stored procedures are stored directly in the db.
    3.DBA can manage and optimize the stored procedures in flexible way; it'll be transparent for app server because the same remaining interface.
    4.Avoidance of network traffic - the stored procedures can run directly within DB engine.
    5.Encapsulation of business logic as API in the database.
    6.Reports can be implemented like PL/SQL functions that return table data type. The functions can be called from application side - sort of API.
    Disadvantages:
    1.DB vendor specific, but when dealing with the same databases (for example Oracle) it's not relevant.
    2.Require DB skills to write the procedures correctly: it will require time for a pure java/c/c++/c# programmer to understand the DB code and to write it in optimal (from db point of view) way.
    3.If it's too complex business logic - the db side implementation can become too complex.
    To overcome issue with null(s) please use NVL function.
    Example:
    drop table  TEST_TABLE;
    create table TEST_TABLE(parameter varchar2(20), val number(10, 2));
    insert into TEST_TABLE values ('A', 23.245);
    insert into TEST_TABLE values ('B', null);
    insert into TEST_TABLE values ('C', 123);
    insert into TEST_TABLE values ('D', null);
    select avg(nvl(val, 0)) from TEST_TABLE;Hope this will help.
    Best Regards,
    http://dba-star.blogspot.com/

  • Making Current Values Default While VI is Running

    Is there a way to 'make the current values default' while a VI is running?

    You know, i try to read these posts really quick because i do this at work
    (my boss doesn't mind because i learn things too). Anyway, my dyslexic mind
    interpreted the subject line as initialize to default values. Sorry. Craig,
    i think that's twice you corrected me. Thanks.
    But now i have a question. Why would you want to set the current values
    to default? So after stopping then re-starting the program it starts with
    the last know values? (i know, thats really 2 questions). The way i do
    this is to use the simple configuration read and write vi's to some ini file.
    On program close, write the values. To make sure this is done, take the
    stop button away from your users and use a front panel quit button that will
    execute the write code before calling labview exit. Obvisously, on program
    start, read from this file to return your controls to the last know states.
    Hope this helps, sorry for the confusion.
    Jared
    "Craig Graham" wrote:
    >Uh.. perhaps I missed this. Certainly you can set default values via>property
    nodes, but I was under the impression only for a VI that isn't>running or
    locked for running- i.e. in the hierarchy of another VI that is>running.
    Am I mistaken?>>Hence a VI can load settings into another VI's front panel
    controls, set>them as default and then use an "invoke node" to run the VI,
    but there's no>way a VI can set its own front panel defaults unless you use
    some horrible>method whereby it launches another VI, via "invoke node" since
    the>hierarchies must be independent, the other VI aborts the first, sets
    the>font panel defaults and then relaunches it, using "invoke node" before>killing
    itself.>>jared wrote in message>news:[email protected]...>>>>
    Yes, you have to use property nodes. This will only work in the>development>>
    enviroment. If you compile into an .exe it won't work. This was discussed>>
    last week or the week before on this group. Search using keywords from>your>>
    subject line, i'm sure you'll find alot of info. I also created a sample>>
    of how to implement this in an .exe. If this is something you would like,>>
    email me and i will respond with it attached.>>>> Jared>>>> "Peter T"
    wrote> >>Is there a way to 'make the current values default' while a VI
    is>running?>>>

  • Automatically making current values default in an exe

    Hi,
    an old but evergreen topic once again. We all know that there is no simple "Make current value to default" option anymore if we built an exe. Nevertheless in many cases there is a need to have exactly such an option. The common advice is to work with an ini file and write all current values of all controls into that file. By starting the exe, the ini file must be read first and the values must be written to property nodes of the controls.
    This strategy works well for small applications with few controls. But what if there are some ten, twenty or even more controls of various types? The necessary code gets easily very bulky and difficult to adapt if changes in the controls become necessary.
    Is there any universal vi around which collects automatically the values of all controls regardless to the type of control, writes it to a file, loads that file again at start of program and sets the controls to their initial value?
    Regards,
    Peter

    Peter,
    > thanks a lot for your big effort. I followed the
    directions given in the FAQ you are pointing to. However, I couldn't
    get the vi package manager connected to the internet yet though I tried
    all obvious things like switching off the firewall and playing around
    with the internet options.
    I'm sorry that you're having trouble downloading packages.  Are you behind a corporate proxy server or firewall?  VIPM does support some proxy servers (settings are in the Internet tab of the Options dialog) but it does not support certain authentication schemes of Windows Proxy Servers.
    > Why isn't there a simple download for the Open G
    packages? It would make things much easier. I don't have any idea how
    to get these packages if the internet connection of the manager doesn't
    work.
    Well, VIPM is supposed to be the "simple download".  The alternatives are much less easy.  There are so many different packages, that creating a single download file would be very time-consuming for the OpenG developers.  That said, you can download the package files individually from the OpenG Toolkit project page at SourceForge.net.  However, it would be great if we could figure out why your VIPM installation cannot connect to the Internet.  Can you look to see if there is an error message in the error logs folder ( C:\Program Files\JKI\VI Package Manager\error\ )?
    Thank you,

  • How to set current year,month as default value in combo box

    hi,  im newbie of xcelsius user
    i realize  that hv a issue that display combo box base on year & month
    let said
    <b><u>step 1</u></b>
    I create excel data like this
    <b><u>year___ </u>  </b>    |     <u><b>month_   </b></u> |     <u><b>Product</b></u> |     <u><b>revenue</b></u>
    02-04-09 |     02-04-09 |       a |     $4,154
    03-04-09 |     03-04-09 |       b |     $6,813
    04-05-09 |     04-05-09 |       a |     $9,875
    05-06-09 |     05-06-09 |       b |     $6,813
    06-04-10 |     06-04-10 |       a |     $6,813
    07-04-10 |     07-04-10 |       b |     $9,875
    08-06-10 |     08-06-10 |       a |     $9,875
    22-06-10 |     22-06-10 |       b |     $6,813
    <u><b>Step2</b></u>
    Then i go format cell to format/custom date to year & month
    Eg1: Year u2013>  02-04-09  convert to u2018YYYYu2019 (2009)
    Eg2: Month u2013>  02-04-09  convert to u2018mmmmu2019 (April)
    So output like this
    <u><b>year</b></u> |     <u><b>month</b></u> |     <u><b>Product</b></u> |     <u><b>revenue </b></u>
    2009 |     April |     a |     $4,154
    2009 |     April |     b |     $6,813
    2009 |     May |     a |     $9,875
    2009 |     June |     b |     $6,813
    2010 |     April |     a |     $6,813
    2010 |     April |     b |      $9,875
    2010 |     June |     a |     $9,875
    2010 |     June |     b |     $6,813
    But the problem is when i insert to combo box,use u201Cfilter Row u201D, i excpectation will display only 2009,2010
    But Actual display the Year  in combo box is duplicated :'(
    so any solution ? and then only how to set current year & month as default value  :'(
    thanks,
    regards
    s1
    Edited by: Leong Pui Kee on Feb 25, 2011 5:25 AM
    Edited by: Leong Pui Kee on Feb 25, 2011 5:36 AM

    hi,
    your created  data
    step 1
    I create excel data like this
    year___ | month_ | Product | revenue
    02-04-09 | 02-04-09 | a | $4,154
    03-04-09 | 03-04-09 | b | $6,813
    04-05-09 | 04-05-09 | a | $9,875
    05-06-09 | 05-06-09 | b | $6,813
    06-04-10 | 06-04-10 | a | $6,813
    07-04-10 | 07-04-10 | b | $9,875
    08-06-10 | 08-06-10 | a | $9,875
    22-06-10 | 22-06-10 | b | $6,813
    In this, year and month both are same data, make the diffent data like year  2009, 2010  And month Jan, Feb, March, ...Etc 
    and also one more check you formulas on month and year, select correct source data, destination data  for compoonent..
    OR
    from above, to create a date column and convert  date-->year, date--> month and Explore it.
    All the best,
    Praveen

  • How to make the LV front panel controls the current value through the program is set as the default value when the next time you open?

    How to make the LV front panel controls the current value through the programis set as the default value when the next time you open?
    1110340051 

    Try this: Re: How to make a VI remember the latest control value?
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • Invoke Node - Make current values default

    I have an issue similar to many postings regarding the use of an invoke node to set control values and then to make those values default in that I get an error message: "Error 1000 ( The VI is not in a state compatible with this operation)."
    The catch is that it is not all the time.
    I am trying to set up a configuration utility which allows configuration or modification of settings of channels and serial ports. This top level VI pulls values from a configuration file using a mid-level VI which, in addition to loading the configuration file, also calls a further sub VI which initialises and sets as default front panel objects on a number of VI's using Invoke Nodes. Thus there is a heirachy of three VI's
    with the lowest level VI doing the Invoking.
    The only time I get the Error 1000 is when I try to run everything from the top level VI. From any lower level the VI's run with no problems and the defaults are set as desired.
    Any suggestions as to the origin of the problem?
    Ross.

    To complement the other answer that explains why it not always works, I would again and again stress that !! make current values default !! is not the way to go when you want initial values to be changed.
    For changing startup values you should use .ini files !
    greetings from the Netherlands

Maybe you are looking for

  • Sample .PDF files from Adobe versions 9, 10, 11, etc.

    I'm a software developer/tester and I'm currently testing a new software we are using to manipulate/upload PDF files to our website.  The software opens the PDF, counts the number of pages, displays the page numbers in a listbox, then lets users sele

  • Reloading Plug-In Page causes browser to hang during stress test on IE & NS

    When an applet page is in the process of being loaded using the Java Plug-In and a second request is made to reload that applet or a new applet several times in succession, the browser hangs. Is there a work around for the Java Plug-In version 1.3.1.

  • "ORA:12514 TNS: listener could not currently know of service requested in c

    Hi, I have just install 10g database, and when am connecting from 'scott' with password 'oracle' it'll get connected but when at the same time am giving the host string 'ORCL' it does not work giving below attached error, "ORA:12514 TNS: listener cou

  • Activating a Particular Module in SAP Menu?

    In our sap menu we usually see different folders for different modules such financial accounting. Human capital management etc. I can't not see that folder of public sector management {PSM} module in my front end as well as spro backend sap menu. How

  • PS 7 and PSE 7

    Heads up. The downloads of PS 7 and PSE 7 are now available and I'm downloading them now. Quick question. The older versions are stored in directories with the version number in the name, i.e. C:\Program Files\Adobe\Adobe Premiere Elements 4.0 C:\Pro