Save the last value

hello
is there a way to register an that the last value of an numeric indicator in a  file LVM OR EXCEL
OR
THE inside a LabVIEW program is even better, for example in VI memory if there exists, or another trick I do not know.
and thank you.
Attachments:
save the last value.vi ‏10 KB

bilalus wrote:
is there a way to register an that the last value of an numeric indicator in a  file LVM OR EXCEL
There is no real "last value", because your VI will exceeed the range if I32 within milliseconds. When you stop the VI, the last value will be in the indicator. (what is the meaning of "register"?)
bilalus wrote:
THE inside a LabVIEW program is even better, for example in VI memory if there exists, or another trick I do not know.
VI memory always exists and there are probably many tricks that you don't know. However, I have no idea what you actually want.
Do you want to save the VI with a certain default value. Do you want to retain the current value between runs? Something else?
Your feedback node alredy retains data between runs. If you always want to start with zero, you need to initialize it.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Retrieve data from a text file, incrementing the last value and save new value below

    Hi
    This was working initially. It is part of my LabView Project. I was trying to create a unique number that increments every time the adds the value to the list. It works on computer perfectly. But when I put this on a PDA, it seems to create a blank space when reading the contents of the text file after the last value, which means 0 + 1, which is not what I want.
    Please run the testUniqueNoOnPDA.vi first and change the path to C:\uniqueNumber.txt and save the uniqueNumber.txt file to your C drive and see What I am trying to do. Click the Enter button to increment.
    Why does the PDA create a blank space after the last value and a computer does not?
    I was working perfectly all week and it is not working well now.
    Help please, I think I'm missing something
    Attachments:
    uniqueNumber.txt ‏1 KB
    testUniqueNoOnPDA.vi ‏33 KB
    testUniqueNoOnPDA.lvproj ‏4 KB

    It works perfectly, it was a hardware problem. It depends on what PDA I used.

  • How to display the last value of a field in a group in the group header

    I need to display the last quiz score from a group of quiz scores as part of the header of a group of units (the quiz score values are in the detail record).  I can not use the group footer, which would be the natural place to find the last value.  It must be in the group header because there will be a subsequent group within the unit group.  In other words, the grouping is as follows:
    Unit Group Header (Display last quiz score in unit)
    SubUnit Group Header (Display other detail summaries)
    Detail Record (including quiz score)
    SubUnit Group Footer
    Unit Group Footer
    While there is a minimum/maximum summary function, there is not a first/last function.
    Fuskie
    Who is constantly amazed at the ability of users to request report features that are not easily implented through Crystal Reports...

    Hi Fuskie,
    One suggestion to display the last quiz score in the Group Header, other than what had already been suggested, will be to use a linked subreport in the Group Header. It is not an efficient way to display the information, but it could do the trick.
    Another suggestion will be to insert a subreport in the report header, then store the last quiz score in an array for each group, then share it with the main report and display the  values in the appropriate group. In this way it will only connect twice to the data source, one for the main report and once for the subreport, instead of multiple connection for each group.
    Finally, the most efficient way will be to have this value calculated on the database side using a command object or a stored procedure.
    Patrick

  • Save the selected value from listbox with its respective tab control dropdown selcted values in another listbox

    Hi all,
    I am making a vi where I have to save the selected value from listbox with its respective tab control dropdown selcted values in another listbox.Whenever I select Item1 then the heading change and respective tab will open for that item.But Now I just want to save the selection and put it in another ListBox.SO that I can renmove or add according to my wish. Plz help me.
    Solved!
    Go to Solution.
    Attachments:
    my_vi.png ‏83 KB

    Hi, I successfully make the vi to insert itmes from listbox1 to listbox2.Whenever I select itmes 1 in listbox 1 it display same elected item in listbox2 , but it not appending the items in listbox2.Like If 1 is selected in listbox1 then 1 will display , next time after saving when I selct next item like 3 then in listbox 2, 1 is replaced by 3,it dont come in second row of listbox2.Hope I am able to explain.\
    Plz help me to resolve this.
    Attachments:
    listbox_update.vi ‏11 KB

  • Is there a way to save the last curor position in Numbers?

    Is there a way to save the last curor position in Numbers? We have a custom Budget spreadsheet but every time we open the file, we have to scoll to the bottom of the spreadsheet.
    There are several thousand entries, and every time we open it, we have to scroll to the bottom of the screen which is getting fairly annoying.
    Every time we open it, regardless of what sheet or cell we are in when it is saved previously, it opens at the top....
    Any suggestions?
    Thanks!

    reverse the order of you entries and add rows at the top of the table.  That is have newest date entries at the top and oldest at the bottom

  • How to get the last value edited by users from JTable?

    Hi.
    I have a JDialog that includes an editable JTable. This table is used to set up field caption and font for a report program. I found only when cursor is moved to another cell, the value in current cell being edited will be transferred to Table Model. So if the user don�t move cursor to another cell after editing the value of a cell but click OK button directly, Table Model cannot get the last value edited by the user, I wonder if there is a way to fire JTable to transfer the value being edited to Table model.
    By the way, I found if the TableCellEditor is using JCheckBox or JComboBox instead of JTextField, there is no this problem.
    Thank you for any reply.

    I guess you can make use of the following methods on your table model to inform it make it getValueAt bcos table data has changed.
    fireTableCellUpdated
    Notifies all listeners that the value of the cell at [row, column] has been updated.
    fireTableChanged
    Forwards the given notification event to all TableModelListeners that registered themselves as listeners for this table model.
    fireTableDataChanged
    Notifies all listeners that all cell values in the table's rows may have changed. The number of rows may also have changed and the JTable should redraw the table from scratch. The structure of the table (as in the order of the columns) is assumed to be the same.
    But when to call these methods??
    -- When OK button is pressed, do this as the first thing!!
    OR
    -- Call this on every key event!!
    regds,
    CA

  • How can I reference the last value in a column?

    How can I reference the last value in a column? For example, today I want the value of A1 to appear in another cell. Tomorrow, I will add a row and want to reference A2, next day A3, and so forth.

    Now I got it:
    =OFFSET(A1,COUNT(A)-1,0)

  • WAD - display only the last value in the chart

    hi...
    I designed a chart in WAD wich displayed a range of values in a line. Now im searching for a possibility to display the value for the points in my chart, but not for all values, only for the last value in the line! And every month the line will extended with new value-points, so it is necassary that the function is dynamic, always for the last point in the chart the value should displayed!?
    thx for some ideas!
    david

    hi @ all... once more information:
    the chart displayed only one keyfigure of a query. for example it display the revenue per month. in jan. = 10, feb. = 15, mar. = 25, apr. = 13, jun. = 23. these values should be displayed in a line in the chart aaaand additional for the last one in the line the valuecaption direct in the chart (f.e.: jun. = 23). not for all "periods-points"only for the last one.
    in jul. = 25 the chart changed and only for july the value-caption should be displayed. Is it possible?
    Regards,
    David

  • How to determine the "Last Value" in exception aggregation

    Hi gurus,
    I have a KeyFigure with an exception aggregation -Last value- by time.
    I report on a multiprovider ("containing" a infocube and a realtime infocube with BPS-InputLayout). I can correct separate Items with this BPS-Layout. So, at the end I have 2 values for one item.
    So, by these facts, my report shows the the last value for the specific KeyFigure, but I expected that both values (the value in the infocube and the correction via BPS)are sumed up.
    As this is due to the exception aggregation not the case, I could "overwrite" the normal value in the infocube with the BPS.
    But SAP determines the normal value in the Infocube as "Last Value", not the one in the correction cube, which is entered via BPS.
    How does SAP determine the "last value" as I can´t see any date...
    Thanks in advance!

    Thank you for your answer...
    I got the soltion by myself.
    I thought, Last Value means the last Value, depending on the time, but in my opinion the function last value should be called "Greatest Value".
    All figures with the same value for the reference characteristc are aggregated anyway.

  • Function module that can give the last value or the highest value of a key

    hi,
    Is there any function module that can give the last value or the highest value of a key feild in a z table.
    regards,
    johnson

    Hi ,
    We have  aggregate functions in SQL. Some of the functions are as follows.
    MAX(col ) Determines the maximum value of the value in the column col in the resulting set or in the current group.
    MIN( col ) Determines the minimum value of the content of the column col in the resulting set or in the current group.
    AVG(  col ) Determines the average value of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
    SUM( col ) Determines the sum of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
    COUNT( col ) Determines the number of different values in the column col in the resulting set or in the current group.
    For further details , type the function name name and press F1 for further help.
    Eg: select count(mantr) from mara into workarea where condition.
    Reward points if helpful.
    Thanks and Regards.

  • Sapscript printing only the last value

    Hello,
    Im currently coding subroutine for medruck.. My problem is sapscript is only printing the last value of the item for all items.. For example:
    Item # 1    10 pcs  10,000.00
    Item # 2     5 pcs   10,000.00
    Item # 3     5 Pad  10,000.00
    where actually the value of item 1 and item 2 is not 10,000.. sapscript prints only the price of item # 3 for the  first two items.. here is my code..
      TABLES: konv, ekko, ekpo.
      DATA: BEGIN OF tab OCCURS 0,
          brtwr LIKE ekpo-brtwr,
          ebelp LIKE konv-kposn,
          ebeln LIKE ekko-ebeln,
          knumv LIKE ekko-knumv,
          kbetr LIKE konv-kwert,
    END OF tab.
      DATA: sum TYPE p DECIMALS 2, gross TYPE p DECIMALS 2, val(16) TYPE c, d_knumv LIKE ekko-knumv, tab1 LIKE tab, val1(20) TYPE c,
            ext TYPE p DECIMALS 2, val2(20) TYPE c, extend TYPE p DECIMALS 2.
      REFRESH: tab.
      READ TABLE in_tab INDEX 1.
      CHECK sy-subrc = 0.
      SELECT brtwr ebelp ebeln FROM ekpo INTO TABLE tab WHERE ebeln = in_tab-value.
      LOOP AT tab.
        AT NEW ebelp.
          tab-kbetr = 0.
          ext = 0.
        ENDAT.
        SELECT SINGLE knumv FROM ekko INTO tab-knumv WHERE ebeln = tab-ebeln.
        SELECT SINGLE kbetr FROM konv INTO tab-kbetr WHERE knumv = tab-knumv AND kposn = tab-ebelp                                AND kschl = 'ZDEL'.
        ext = tab-brtwr + tab-kbetr.
        AT END OF ebelp.
          READ TABLE out_tab INDEX 1.
          WRITE ext TO val.
          out_tab-value = val.
          MODIFY out_tab INDEX 1.
        ENDAT.
        CLEAR: tab.
      ENDLOOP.
    i used this code using abap only and it work. there seems to be a problem in sapscript.. Thank u for the help guys..
    Thanks,
    JP

    put ur write_form with in loop...
    loop at itab.
      write_form..
          element = 'ddd'
    endloop.
    in script check ...
    check wheather element is specified there r not
    /e  ddd.
         &itab-   &  &itab-  &

  • Values added into arraylist are override with the last value

    Hi,
    I am running a very simple java program.
    Here is the sample program.
    CustProfAccountFid fid = new CustProfAccountFid();
    for(int i=0;i<cp104Result.size();i++ ){
    Hashtable cp104ht = (Hashtable)cp104Result.get(i);
    fid.setFidSeqNumber((String)cp104ht.get("x"));
    fid.setFidType((String)cp104ht.get("z"));
    fid.setFidName((String)cp104ht.get("c"));
    fid.setFidText((String)cp104ht.get("v"));
    custProfAccountFidList.add(fid);
    Here cp104Result and custProfAccountFidList, both are arraylist.
    I want to get all the values added to the arraylist.But the problem is when loop continues the arraylist values get
    override by the last value.
    As a result i get 5 or 6 same values in the arraylist.
    Please help me out for the solution.
    Thanks in advance.

    for(int i=0;i<cp104Result.size();i++ ){
        CustProfAccountFid fid = new CustProfAccountFid();
        Hashtable cp104ht = (Hashtable)cp104Result.get(i);
        fid.setFidSeqNumber((String)cp104ht.get("x"));
        fid.setFidType((String)cp104ht.get("z"));
        fid.setFidName((String)cp104ht.get("c"));
        fid.setFidText((String)cp104ht.get("v"));
        custProfAccountFidList.add(fid);
    }

  • JTable problem : how to get the last value entered by user + event lost

    Hi all,
    I have 2 problems with Jtable class.
    1 => To get the last value entered by user in a cell,
    it seems that we must change the selected cell.
    That is to say we can only have the previous cell's value.
    Is there a simple way to get the current value of any cell ?
    2 => To resolve the problem i store the values of each cell in a vector and i intercept keyboard event (!)
    BUT, when i do a double click with the mouse on the Jtable, i loose keyboard events. Then, i can't intercept them.
    Is it a bug of swing or am i following a wrong way ?
    Thanks by anticipation for your help.

    You have to fire the "TableCellUpdatedEvent"
    and override the getCellEditorValue in TableCellEditor to return the current value

  • How to get  --Last date of the Last value .

    Dear All,
    I have a report like
    Material – Country – Current Price
    1112-----  Singapore  -
      100
    1112-----  Japan  -
      120
    1112-----  Malesia   -
      99
    Here current price is Last Value of the particular Material on particular Date.
    This I can get based on Key figure Aggregation ( Last Value and reference Character 0CALDAY ), It is giving the last Value of the Particular Material.
    Now my user wants to see Last date of the value ( Date of the Value )
    Example :-
    Material – Country –  Date --Current Price
    1112-----  Singapore  -
    01/04/2008 -- 100
    1112-----  Japan  -
    04/05/2008 -- 120
    1112-----  Malesia   -
    05/05/2008 -- 99
    If  I drill down the date in my  report  it is showing all dates , my user wants to see only last date .
    Hope some one has solved this issue , please help me to solve this issue.
    Regards,
    SHAIK.

    I have created a keyfigure with date as a data type.
    In aggregation tab, I selected  aggregation Maximum.
    Upto DSO, data is Loaded perfect. Ok.
    I added the same key figure in cube , When I am trying to Activate the Transformation,
    It is giving Error message.
    Rule 17 is invalid and is being deleted. The reason for this is that a field or InfoObject that is used in rule 17 has been deleted in the source or target of the transformation ODSO ZPL_DSO1 -> CUBE ZPLATT_C (0GH6MHANQ2J79LXZBLGIJ9ZK9LWHK6RS)
    Plz Advice.
    Regards,
    SHAIK
    Edited by: shaik on May 7, 2008 5:46 PM

  • How to pick up the last value of the input string

    Hi there,
    I have a requirement in which I have to pick up the last value of the input string.
    I don't know the field length, it could be 10 line, it could be 4 line and it could be even 1 line.
    Another problem is that the field contains all the alphanumeric values so the sort function is not working.
    I believe I need to write a UDF but not sure exact what and how.
    Can some body please help me solving this issue.
    Input.
    1.Abc
    2.abc123atxx.com
    3.(980)771-2341
    4.
    5.518VR50V58AD10DSAYBDSAFDSIEGHA:1
    In that case I only need to pickup the last value i.e. 518VR50V58AD10DSAYBDSAFDSIEGHA:1
    Output
    518VR50V58AD10DSAYBDSAFDSIEGHA:1
    Note:
    1. Length is unknown
    2. Alphanumeric data
    Thanks,

    Hi karthick Lakkar,
    Thanks for your quick response but unfortunately I am getting mapping exception.
    What I did is create a UDF with 2 input
    INPUT
    a string
    b string
    and then this code
    int Length=Integer.parseInt(a);
    int requiredLength=Integer.parseInt(b);
    if(Length<=requiredLength)
    return(a);
    else
    return a.substring((Length-requiredLength),Length);
    I am wondering about the input as well.
    At present I am doing
    KTEXT + KTEXT --- UDF
    + does represent concat, means same input will go to the UDF
    This is the error which I am getting
    Exception:[java.lang.NumberFormatException: For input string: "Kevin Farrar"] in class com.sap.xi.tf._MM_XXXXXXXXXXXXXX_ method calculate[Kevin Farrar, Kevin Farrar, com.sap.aii.mappingtool.tf7.rt.Context@6dbf19db]

Maybe you are looking for

  • Delivey related info rqrd from one table

    Hi, Can I got the following SCM related information from one standard table. plz reply ASAP. 1. Outbound Delivery Number. 2. Invoice Number of O/D. 3. Invoice Value 4. Invoice Qty. (Base Unit) T & R Sanjay

  • UCM10gR3 - find empty fields

    Hello, I want to find all records with empty custom metadata field. We use RIDC API for integration with our application. We tried to use <NOT> (dDocAccount <matches> `*`), but it didn't work. Do you have some Idea? Thanks Martin

  • Table cells for imported picture of invoice

    Hello, I have watermark picture of invoice with fields. I have to align table cells with fields in the picture. I have problem that on the left side fields are different positioned than on the right side. When I want to move border of cell, all line

  • CAF dictionary data types cannot be seen

    Hi all, I tried to import a development configuration and create a Composite Application Services Project in it. I imported a webservice as an external service. I create dan Application service and added the dependency. When I select the implementati

  • Migrating from Evolution to Sylpheed

    Hi, i used to run Ubuntu, with Evolution. I have all my mail in an Evolution backup Tar.gz. How can i import all my Evolution mail to Sylpheed? I googled this but i didnt found an aswer