How to find the moving average for perticular time step for same time series

Hello everyone,
I am new in labview and I have one issue. I have a huge text file with the different pressure value of  different ports.
I make the VI in which first I read the text file and identify the perticular port column. In that column there are 32768 pressure value.
Time  Num     Port 101 Port 102 Port 103...... Port 532
0         1
0.001   2
50       32768
And this all reading takes in 50 sec and I have to split this readings in 4.5 sec... in every 4.5 sec there are 2969 values...
Now please go throw the attched VI... i am able to find the mean value with the 12 time step of 2969 value...
Now I want to do is, to find again the mean value of 2969 values(2970 to 5938) with time step of 12 and so on until 32768... so it happens 11 times in series...
So can anyone modify my VI??
Thank you,
Solved!
Go to Solution.
Attachments:
Moving average.vi ‏18 KB

please go through the attched VI
I made some correction in that.Now I am able to find the mean value for first 2969 rows with the overlapping time step of 12.
It means I am able to find the mean value from 1-12,2-13,3-14 ... 2958-2969...
but now the problem starts, I want to calculate the mean value of next 2969 rows which is 2970 to 5938 with the time step of 12...
So please modify my VI.. I stuck with the serious problem...
I have 32768 rows and have a partition of 2969 rows so the loop has to be repeat for 11 times.
hope you understand the prob
Thank you 
Attachments:
Moving average.vi ‏19 KB

Similar Messages

  • How to find the max session count and process count for a database

    Hi All,
    How to find the maximum session count and process count reached for a database over a period of 15 days?
    DB version:11.2.0.2
    OS:AIX

    Thanks for the link.
    The output of the below query that is given in the link shows the results for the last 10 or 12 days.. Is there a query which gives a result for the last 30 days?
    col metric_unit for a30
    set pagesize 100
    Select trunc(end_time),max(maxval) as Maximum_Value,metric_unit
    from dba_hist_sysmetric_summary
    where metric_id in ( 2118,2119) group by trunc(end_time),metric_unit order by 1;

  • Where can I find the moving average value of Project stock

    Dear All
    All my company stock is project stock. For all my Goods Issues with 221 Q, system takes the moving average value for that consumption posting. Where this moving average value can be found?
    Other than MBBS, is there anything else?
    Thanks
    Edited by: srini v on Dec 12, 2009 12:48 PM

    Hi,
    Try MM60
    Regards,
    Pardeep Malik

  • How to find the list of USER-EXITS or BADI for the transaction ABSO

    Hi all,
    Please help me to find the list of USER-EXITS or BADI for the transaction ABSO & find the exact user-exit which meets the requirement.
    Thanks & Regards,
    gyanaraj

    Hi,
    Copy the problem  in SE38 and  Execute it
    Enter the Tcode  u want
    this  will the  list of Userexits and badis
    TABLES: TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA: JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA: FIELD1(30).
    DATA: V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS: P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA: WA_TADIR TYPE TADIR.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    ENDCASE.

  • How do find the list of Supported Cameras raw files for Elements 12

    Where can you find the list of cameras that are supported by photoshop Elements 12  raw processing?

    Hi R Kelly,
    I tried to follow your directions for marking your answer as correct….. but I could not locate the “Correct” under the box where your answer appeared.  I tried clicking on the green icons to the right of the page but I could not get the “not answered” phrase to change to “Correct answer”.   I have not used this forum before and have no clue how it functions….  sorry
    LinDaZie
    Begin forwarded message:
    From: Garth & Linda Ziegenhagen <[email protected]>
    Subject: Re: Camera Raw supported Camera list
    Date: May 1, 2015 at 10:34:10 PM PDT
    To: [email protected]
    Dear R  Kelley,
    Thank you so much for your help.   I am thinking of purchasing the Panasonic Lumix Fz200 and wanted to be sure that my editing software supported my cameras raw format.  The OSX system is….. iMac Mavericks.   do have the Camera raw 8.5 with both my Elements 12  and the Photoshop CS6 Extended.   I will go ahead and order my camera… yeah!
    Again, thank you,
    LinDaZie

  • How to find the number of users log into ESS for last three months

    Hi Team
    Is there any transaction / Report to find the number of users logged into the ESS and used the payslip tab. Is this possible to find?
    Waiting for hopeful replies.
    Regards
    Bhaskar

    Bhaskar,
    you can use google analytics,
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50b94044-7008-2b10-1680-c04e4526367b
    jo

  • How to find the position of view in MM02 transaction for coding BDC?

    Hi Guys,
    Is there any FM or BAPI Available to find the position of the view in MM02 transaction. I tried FM SELECTION_VIEWS_FIND. But getting inconsistent results
    i.e Some materials it is giving correct positions but for others i am getting wrong position. So my BDC is getting failed.
    Thanks in advance.
    Vinod.

    Hi,
    data : i_t133a like t133a occurs 0 with header line,
          ch(1),
           viewno(2) type n.
    clear viewno.
      select * from t133a into corresponding fields of table i_t133a
                    where bilds = '21' and guifu like 'SP%'  .
      loop at i_t133a .
        ch = i_t133a-pstat.
        if mara-vpsta na ch .
          delete i_t133a     .
          continue .
        endif .
      endloop.
      sort i_t133a by guifu ascending .
      loop at i_t133a .
        viewno = viewno + 1 .
        if i_t133a-guifu = 'SP01'.  "FOR BASIC DATA1                CHANGES              ACCORDINGLY REFER TABLE T133A TO FIND VTHE VALUE
          exit .
        endif .
      endloop .
    reward if usefull

  • How to find the current CPU and Memory (RAM) allocation for OMS and Reposit

    Hi There,
    How do I check the CPU and memory (RAM) allocation for the OMS and the Repository database? I'm following the "Oracle Enterprise Manager Grid Control Installation and Configuration Guide 10g Release 5 (10.2.0.5.0)" documentation and it says to ensure the following:
    Table 3-1 CPU and Memory Allocation for Oracle Management Service
    Deployment Size Host CPU/Host Physical Memory (RAM)/Host Total Recommended Space
    Small (100 monitored targets)                   1                                             1 (3 GHz)                            2 GB                                                                        2 GB
    ***Table 3-2 CPU and Memory Allocation for Oracle Management Repository***
    Deployment Size Host CPU/Host Physical Memory (RAM)/Host Total Recommended Space
    Small (100 monitored targets)                   1                                   1 (3 GHz)                                        2 GB                                                                          10 GB
    Thanks,
    J

    Hi J,
    This is the minimum requirement. However It will work fine.
    Also read below article on "Oracle Enterprise Manager Grid Control Architecture for Very Large Sites"
    http://www.oracle.com/technology/pub/articles/havewala-gridcontrol.html
    For GRID HA solution implementation please read :
    http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10gR2_EnterpriseManagerBestPractices.pdf
    Regards
    Rajesh

  • Updating the Moving Average Price

    We want to adjust the price of a material to account for storage overhead by adding 10% to the price. We have found procedures to modify the price if the price control is standard, but none for moving average prices.
         As I understand it, the moving average price is re-calculated for a material every time stock is received and the new value is stored in table MBEW (VERPR). We’ve pretty well determined that we don’t want this to change. Rather, it seems best to simply add 10% at goods issue time (and do a split valuation for the account assignment).
         I’ve examined transaction MIGO for user exits and found a couple that look promising: EXIT_SAPM07DR_001 (Customer Function Exit: Material Document Item for GR/GI Doc) and EXIT_SAPM07DR_002 (Customer Function Exit: Acct Assgmt for Multiple Acct Assgmt). I didn’t find any BADIs.
         Has anybody used these exits for this purpose? Are there other exits or BADIs that would be more appropriate? Does it make sense to change the price this way at all?
    Thanks
    Rob
    Well, I got about the response I expected. I'll close it in a couple of days if no one has any ideas.
    Message was edited by: Rob Burbank

    Hi Rob!
    I found this thread again and started reading a little bit.
    I can't follow your problem.
    When you have PO and vendor invoice, then we should talk about goods <b>receipt</b>. Then it's quite usual to add additional values (like freight costs, taxes, customs...), which are not part of vendor invoice, but can be part of goods receipt value (depends on statistic flag).
    When you have goods <b>issue</b>, then you have internal movement (to a different company code) or sales process. Then you should not increase goods value above moving average price - otherwise goods receipt of 100 PC and goods issue of same 100 PC won't end up with 0 value. Your revenue (for storage costs, handling fees, packing material...) can be added in an invoice for the sold goods - but that's not part of VPRS (stock value).
    The question, if you display something in an outgoing invoice is just related to printing - internal documents can be larger.
    Also selling based on saved conditions (not based on VPRS + surcharge) is an option -> free defined surcharge, no possibility for outsiders (personal in warehouse) to follow up the mark-up.
    But I guess, your thinking about extension of an existing process: you might have already an unusual starting point for process design.
    Work-around? Yes, I've heard of customers, where end-of-year balance is 'tuned' in excel before presentation to officials. There are many ways to solve a problem
    Regards,
    Christian

  • How to find the source code of EJB?

    I have download the EJB class file on the sun's site,but I wanna download java file of EJB,how to find the java file?

    download a decompiler for java ...search in downlaod.com

  • How to find the technical name

    Hai,
    How to find the technical name of a data source for General Ledger: Balances – Period Breakdown
    Thanks

    Hai
    my question is in General Ledger: Balances – Period Breakdown
    the link is showing General Ledger : Balances , Leadingledger
    I got this link in queries for General Ledger: Balances – Period Breakdown
    http://help.sap.com/saphelp_nw70/helpdata/en/2d/955a73da4d6d41a0a6128caf274ce8/frameset.htm
    But here technical name of info cube is given.But i dont know how to find the technical name of the data source.This might be simple question i think but i am new to SAP
    Thanks

  • How to find the sessions which generated maximum redo amount at instance?

    I use below query or Sql*Plus's set autotrace traceonly statistics > redo size statistic to calculate how much redo I generated in my session;
    CREATE OR REPLACE VIEW redo_size AS
    SELECT value
    FROM v$mystat, v$statname
    WHERE v$mystat.statistic# = v$statname.statistic#
    AND v$statname.name = ‘redo size’;
    But how to find the sessions which generated maximum(top 5 for example) redo from the last database startup on 9iR2 or also with new 10gR2 historic views?
    We need this information because from the produced archived log files we observe something new producing almost 2 times more redo for a week. I looked at statspack report but couldnt find as I suspected for a massive update or delete.
    Best regards,
    Tonguc

    I tried v$sysstat but I didnt think about v$sesstat Mr.Gasparotto, thank you very much :)
    SELECT ss.sid,
    sq.sql_text,
    se.status,
    se.username,
    se.osuser,
    se.program,
    se.machine,
    ss.VALUE
    FROM v$sesstat ss, v$statname sn, v$session se, v$sqlarea sq
    WHERE ss.statistic# = sn.statistic#
    AND se.sql_hash_value = sq.hash_value(+)
    AND se.sql_address = sq.address(+)
    AND ss.sid = se.sid
    AND sn.NAME = 'redo size'
    ORDER BY ss.VALUE DESC
    Best regards.

  • Reg: Finding the Payer of a perticular Customer (XD03 transaction)...

    Hi friends,
    Can anyone let me know, how to find the Payer of a perticular Customer (this concept comes in the transaction code XD03).
    is there any TABLES or FUNCTION MODULE to find the Payer of a perticular Customer...
    thanks in advance, murashali...

    Hi,
    Check
    Transaction codes:
    OABZ
    AOBK
    Edited by: Neenu Jose on Nov 18, 2008 7:39 AM

  • HT2204 how to find the gift code

    how to find the gift code

    create a SQ01 quickview query for table TSTC  or, even do a join for TSTC&TSTCT
    TSTC - Transaction codes
    TSTCT - Transaction codes texts
    if you want to see where some of the transactions are in the hierarchy you can use transaction "search_sap_menu"  or SPRO and use the binocular button to search

  • How to find the standard smartform,sap scripts and theur driver programs

    Hi friends,
    can any one tell me how to find the standard smartforms and their driver programs and same for scripts also.
    bye
    sasi

    Hi sasidhar,
    1. Either standard or Y sapscript layouts,
       we can check their standard programs
       in this manner also.
    2. goto se71
       open the layout in DISPLAY mode.
    3.  FORM------> CHECK -
    > TEXTS
    4.  a small window will come.
        click ok (tick button)
    5. Again a new window will come
      which will list out all the DRIVER programs,
      which use this layout.
    regards,
    amit m.

Maybe you are looking for