Average my data per revolution

Hi, I have a LV program that acquires simultaneous data. I have crank angle data from a shaft encoder and a voltage reading. To make things simpler lets say, for every 1 degree crank angle (CA), I have 1 voltage (V) reading - so that’s 360 data points per revolution. LV records data all the way from 0 to 359, then returns to 0 for the next revolution.
My data goes something like this:
CA          V
0              2
1              3
2              5
3              5
359         10
0              3
1              2
2              4
359         12
0              1
1              4
...            ...etc
Is there any way I can rearrange my data so that it gives me the revolution data side by side so that it can be average, so for the above it would be:
CA          V (rev 1)               V (rev 2)               V (rev 3)               V (average)
0              2                              3                              1                              2
1              3                              2                              4                              3
2              5                              4                              ...
3              5
359         10                           12                                                           ... etc
If it cannot be average in labview – that is not too much of an issue since I could easily just do it in excel too. But, I need the data side by side at least. The crank angle interval does not change per revolution.
Many thanks in advance.
Notay

Hi,
I'm reading into your post that your data is saved in a text file. 
You could store it in an array, changing the column index every 360th point.  Then you can average it and put that value in the final column.  The first column would be the degree value. 
Also, you can use the size of the array function to get the number of columns, subtract one for the degree column, and use that size to compute the average.
Mark Ramsdale

Similar Messages

  • Custom SAP report used to display an average standard cost per material.

    Hi All,
    I need to implement a report with the following functionality,
    This is a custom SAP report used to display an average standard cost per material.  Standard cost data is stored in SAP at the Material/Plant level.  This report will gather the individual Standard Costs at each applicable plant (restricted by selection screen input and additional logic specified in more detail in the u201CReport Fieldsu201D section) for applicable Materials (restricted by selection screen input; if not specified all materials should be returned) and calculate an average standard cost for each material.  The corresponding Currency and Base Unit of Measure will also be displayed.
    Additionally the relevant u201CCommodity Code/Import Codeu201D information should be displayed for each material returned.  This attribute is also stored at the Material/Plant level.  To determine the value of this field for each relevant material, the report logic must retrieve the values stored for each plant.  If all values are the same, the value can be output to the report.  If not all values are equal, a message u201CNot Consistentu201D should be output.  It should be noted that if all values are u201Cnull,u201D a null value should be returned in the report.
    Can any one provide me with sample code for the same??
    Thanks Debrup.

    Hello,
    Also refer this [ THREAD|Re: error in Fleet management customising] and [link|Error when recording measurements in IFCU]
    Regards
    Nav
    Edited by: Desire_Naveen on Nov 4, 2009 12:35 PM

  • What is Averaging Time & Data Reduction Factor in Frequency-Weighted Acceleration?

    I have to analyse the Ride Comfort Data of one vehicle (as per ISO2631-1). It has Acceleration levels of driver seat in X, Y, Z directions.
    I need to plot Frequnecy Weighting in dB vs Frequency in Hz. Data is recorded at 500 Hz for 9.95 secs.
    How much Averaging time & Data Reduction Factor should i take and how to convert them in as above said graph.

    In ISO2631-1 it says that while analysing the data you should take weighing factors for seating condition. For driver seat it is 1 it is also mentioned in Frequency Weighted Averaging in Diadem as Wk & Wd etc in signal analysis.
    Output should come as Frequency weighted RMS of individual X, Y , Z and combined RMS of X, Y , Z. for that i need to know the "Averaging Time Constant Required" & Data Reduction Factor. As changing any of these will change the results.
    I need to have one final RMS value of X, Y, Z representing the ride comfort of that vehicle & If possible combined RMS too.
    And how to change that value to dB. I know how to do it manually by taking a reference value and taking log with base 10 by dividing by reference value.

  • Give SQL command to find the average annual salary per job in each department

    Give SQL command to find the average annual salary per job in each department pls help

    with
    data as
    (select empno,deptno,job,payday,1000 + trunc(500 * abs(dbms_random.normal)) + decode(deptno,10,500,11,200,12,100,0) salary
       from (select 1000 + trunc(dbms_random.value(10,100)) empno,
                    10 + floor(dbms_random.value(1,10) / 4) deptno,
                    decode(trunc(dbms_random.value(1,10)),1,'A',2,'B',3,'C',4,'D',5,'E',6,'F',7,'G',8,'H',9,'I','?') job
               from dual
             connect by level <= 17
            (select add_months(to_date(to_char(level),'mm'),-12) + 10 payday
               from dual
             connect by level <= 12
    select deptno,job,avg(salary) average_salary
      from data
    group by deptno,job
    order by deptno,job
    DEPTNO
    JOB
    AVERAGE_SALARY
    10
    B
    1812.83333333333333333333333333333333333
    10
    F
    2046.08333333333333333333333333333333333
    10
    G
    1877.45833333333333333333333333333333333
    10
    I
    2081.75
    11
    C
    1456.08333333333333333333333333333333333
    11
    E
    1654.91666666666666666666666666666666667
    11
    G
    1650.5
    11
    I
    1579.33333333333333333333333333333333333
    12
    A
    1580.58333333333333333333333333333333333
    12
    E
    1414.33333333333333333333333333333333333
    12
    H
    1380
    12
    I
    1404.83333333333333333333333333333333333
    Regards
    Etbin

  • When I pre ordered my iphone 6 i was told I was going to get an additional 1 gig of data per month for a year.  It even shows it on the receipt i received with the phone.  When will I see that reflected on my account.  I have had my new phone for a week a

    When I pre ordered my iphone 6 i was told I was going to get an additional 1 gig of data per month for a year.  It even shows it on the receipt i received with the phone.  When will I see that reflected on my account.  I have had my new phone for a week and used tons more data than usual and am hoping that will save me this month.

    concretedonkey, I'm glad you were able to take advantage of this offer when you ordered your new iPhone 6. I can certainly review your account to ensure this was added for you. Please reply to the direct message I have sent you.
    AndreaS_VZW
    Follow us on Twitter @VZWSupport

  • Payment on Average Due Date

    Hi
    Automatic Payment Program considers due date for making payment to vendors.
    Now i want to know if there is possible for making payment on the basis of average due date (calculated on the basis of amount and the actual due date).
    Requirement:
    While posting vendor invoice, i will enter give payment terms and due date will be calculated on the basis of payment terms.
    Now in one week, i need to make the payment on the basis of average due date for that week.
    For example, on wednesday, i will make all the payment which are due in the entire week (i.e. monday to friday). Is this (average due date) possible for automatic payment program.

    Hi
    Check the BADI 'MRM_PAYMENT_TERMS'. You have a sample coding. See SAP Note 1559443 - Changing baseline dates for payment terms for Spain as an example. This note is for a legal requirement, but I understand that it's a good example.
    I hope this helps you
    Regards
    Eduardo

  • Configuring Encoders Counts per Revolution using a flexmotion function

    Hello,
    I am having a problem configuring a connected encoder in labview using the flexmotion function.
    The setting:
    I am building a labview vi I want to run on a computer with the connected hardware. But I may NOT have access to the machine to configure it with the "Measurement and Automation Explorer". The hardware may vary too, thus I have to detect and then configure it. I want my VI to set all necessary parameters before I start moving the hardware. I am pretty much done with this.
    The problem:
    I cannot find a way to configure the 'Encoder Counts per Revolution' as shown in picture 2. There is no function in the Motion menu as shown in picture 1. There does not seem to be a function in the FlexMotion32 library (shown in picture 3) to do this either.
    I read through the FlexMotion Software Reference Manual (http://www.ni.com/pdf/manuals/321943b.pdf) and tried to find an answer in multiple forums but was unsuccessful.
    The question:
    Does anyone have an idea about a function in the FlexMotion32.dll that I could not find? Or any other way to configure the encoders within LabView?
    I appreciate any ideas and thank you for taking your time reading this.
    Best,
    Frank.
    Attachments:
    Motion config 1.JPG ‏31 KB
    Motion config 2.JPG ‏75 KB
    Motion config 3.JPG ‏86 KB

    See attachment.
    Attachments:
    Encoder Counts.JPG ‏71 KB

  • BTE 1650 LINE ITEM DISPLAY: Add to data per line - possible solution

    Hello,
    I would like to populate field payment order (Pymt.order) in custom transaction FBL5N
    I have read that it should be doable using BTE 1650 LINE ITEM DISPLAY: Add to data per line but I am not sure if 1650 is correct one and if its proper solution for this purpose.
    Could you please advice?
    Thank you in advance!
    Michal

    i have the same problem , i used BTE and the fields appear but without data . which table or code i will use to in FM to display data in transaction.
    thanks all for help

  • ACS 5.2 expiration date per internal user

    Migrating from 4.2 to 5.2 acs and have noticed there is no expiration date per internal user added. We expire users at different times due to their time on site. Does anyone know if there is something that has to be added to get back this basic feature we had before?

    I have tried to do this. Currently I have an attribute for Internal Users that i called Expiration Date.. I wanted to set the policy something like if the Internal user attribute Expiration Date is greater than the system date then deny access but I cannot. The system date is time and date so it does not match...for the dictionary attribute i created called Expiration date i cannot set it to be a time and date. Can you advise a little deeper how this can be done?

  • Filtered the data to get only one data per day

    Hi,
    From the excel file below I have Power (from Hg Lamp) vs date.
    I would like to filtered the data to have only one data per day. So when there are many data for one day, I want the data with Max Power (and delete the others).
    In the test vi below I filtered data by compared the data 1 by 1. So I reduced the number of data but I still have date with many data.
    I would like to count the number of data per days and keep the data with max power, but I don't know how to do it.
    If you have any ideas...
    Thanks
    Geof
    Attachments:
    Test.xls ‏227 KB
    Test.vi ‏48 KB

    I did it
    Thanks
    Attachments:
    Test.vi ‏48 KB

  • I'm running Firefox 32bit on aWIN7 64bit laptop - Firefox freezes up, usually at high capacity, accumulates something on average of 500,000K to @900,000K average (2+ times per session)

    I'm running Firefox 32bit on aWIN7 64bit laptop - Firefox freezes up, usually at high capacity, accumulates something on average of 500,000K to @900,000K average (2+ times per session)

  • Importing form data per XML - Using the form interface?

    Hi!
    I'm developing interactive forms by adobe and I want to import my form data per XML file. The xml file and the email are created by my pdf document.
    Now this xml file has to be parsed by a report or something like this.
    Is it possible to use the form interface, I implemented, or do I have to parse it manually?
    I think it has to work with this interface because it makes the pdf and it "knows" what to import/export.
    Am I wrong with my suspicions or can you help me with this problem?
    Thanks & greets,
    Philip Gillißen

    I'm pretty impressed of Adobe and their stuff (I do NOT refer to the community), how helpful they are.
    Perhaps I didn't understand  the meaning on the offical customer support website, stating:
    The best way to contact us...  
    Ask our experts 
    Our community and staff are at your service 24/7
    Even worst, their is a similar question from 25/09/2013 (http://forums.adobe.com/message/5711946#5711946) and no feedback form Adobe stuff at all.
    Great service guys!
    Thanks a lot!

  • New GL data per day

    Hello,
    Is there any solution that provides new GL data per posting date in the new BI7.0?
    Basically, I need to see the Profit center posting per date..
    Regards,
    F C
    Message was edited by: F C
            F C

    Hi dear,
    I don't think you need any new solutions, since you can use the "old" 0FI_GL_4 datasource: here you can find all GL line items from tables BKPF and BSEG and, as you can see from the help page, you will have both posting date and profit center info.
    http://help.sap.com/saphelp_bw33/helpdata/en/8b/02f93abb013b0de10000000a114084/frameset.htm
    Hope it helps!
    Bye,
    Roberto

  • Read "Encoder counts per revolution" in Labview

    Hello,
    I have set up an 'NI Motion Device' in the Measurement & Automation Explorer.  I would like to read the value of 'Encoder counts per revolution' in labview.
    I do not want to re-enter the value of 'Encoder counts per revolution' in my labview code;  I would like to write the value once (in the Measurement and Automation explorer), and then have labview read this value.
    How does labview access this value?
    Regards,
    Myles

    After speaking with a few different applications engineers at NI (see ref#2042315), the 'NI Motion' module only supports setting the counts per revolution (not reading them).  The 'NI SoftMotion' module allows for the reading of "Encoder Counts per Unit' under the softmotion property node.

  • Can you enter cumulative numeric rating data per response in colums on the Formcentral Data Form?

    Can you enter cumulative numeric rating data per response in colums on the Formcentral Data Form?
    In other words can you rate each responce numerically - have it add up per responce etc... - and then divide up the responces by the accumulated ratings ( All rated 5 ) (All rated 8) etc... ?
    Thanks
    Al

    Hi Brian
    The form is a grant application where the applicants are rated on their responses.
    The ratings are done after the answers are accumulated in the Formscentral contol panel. The ratings are done by 3 other project members (VPs).
    These ratings are in 3 catagories, each catagory is worth up to 5. The VP's will access the form central panel and rate each applicant per catagory.
    I have added 3 catagory colums with multiple choice rating selections from 1 to 5 for each of the 3 VP's for a total of 9 colums (3 x 3 catagories)
    The reason I did it this way is because at this point I would be relying on an Exel download to calculate the winner or/and also the top rated winners
    per the ratings that the 3 VP's put on them per catagory.
    Thanks for your help - do you have any suggestions to make this smoother.
    Thanks
    Al

Maybe you are looking for

  • My time zone!

    I live in Las Cruces, New Mexico. In my iPhone the time zone is set for Denver. I don't know my time zone but I'm pretty sure it's not Denver. What time zone should I select?

  • How to restrict CTRL+K command to show the shortcuts

    Hi All, Have there anyone to help me "How to restrict *CTRL+K* command to show the shortcut list?". I want to stop this list to show all. And also to customize the key commands. Arif

  • Error while loading JS libraries for UI5 and I5 Grid together

    Hello Experts, I am trying to load JavaScript libaries for UI5 (OpenUI5 SDK) and I5 Grid (from bootstrap.js). My requirement is to create UI5 as well as I5 Chart/Grid components in the IRPT pages. Development environment is MII 14.0 sp04 . I have add

  • Can COPA pull values from material classification tables

    Hi All, I know COPA can pull values from standard SAP tables like material master tables (e.g. MARA) but can it also pull values from material classification table(s)? Your help is greatly appreciated, Points will be rewarded

  • Plug-in missing?

    I have just installed CS4 and am having trouble opening a CS 3 indesign file.  I get the message "...may not support the file format, a plug-in that suports the file format may be missing..." Appreciate some advice as I am a new user.