Integral of waveform graph to calculate area under curve over time

Hello ,
Please find my attached VI and please help me for integration to get area undercut for my waveform graph.
I would like to find total  Energy output from my wind power  waveform graph oever one month period of time.
I believe i have to integrate to get area under curve and so i m now using integral tool in labview as attached. 
As I don't have expected ans for my result and so i want to make sure the tool that i m using is correct.
Please advise me which method of integration shall i use for my graph.
Solved!
Go to Solution.
Attachments:
Wind data only.vi ‏134 KB
wind data.txt ‏1253 KB

I don't know about your calculations to get the Wattage.  But as far as integration, you really should supply a dt (sample rate) in order to get a proper energy measurement.  I would use your second integration method (the one with "Result" as the indicator) and give it the dt as well.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • Calculate area under XY graph

    Hello to all, I am plotting the data acquired from the system as amplitude v/s time on XY graph. My task is to calculate are under the graph and am using integrator tool to achieve this. However, feel that am not using correctly as answer is not matching with expected value. For example, I have plotted y=x function and as per the definition area is equal to 0.5*height*base for area under the graph. It is not matching, kindly help as I want to find out area under the curve for any two points of X-axis.
    Attachments:
    xy-graph.vi ‏22 KB

    The integration gets accurate in your case if you change the integration method to 'trapezoidal' instead of the default 'Simpson's Rule'.
    Simpson's Rule probably doesnt work because you don't provide suitable Initial and Final conditions. This method needs an assumption about the borders of the integration interval.
    Cheers
    Edgar

  • Calculate area under the graph

    Hi
    I need to calculate area under the graph, but really have no idea.
    Anyone could give me some idea please.
    Merci.
    Solved!
    Go to Solution.
    Attachments:
    Graph PV.JPG ‏35 KB

    I don't know whether the example CC attached in this thread will help you or not. Please go through it.
    Start your own program. Whenever you stuck up at any point, post here. Genius people around the forum here will surely guide you to proceed further. don't worry.
    Enjoy wiring.
    Mathan
    Message Edited by mathan on 03-16-2009 05:33 AM

  • Regarding Area Under Curve of ROC-ODM

    Which method is used by Oracle Data Miner to calculate the Area Under Curve(AUC) of ROC? either trapezoidal or other ? Please reply me

    Using the trapezoid method, the numerical integration is rather direct.
    See the attached vi.
    You can't get the function described by the X and Y arrays. You need to know the function from start ! However, you can always fit a function to the data. Polynomial curve fitting is quite popular. Of course this is something you could have done : fit a polynomial, then integrate it. With a large number of points (such as yours), the result will not be better than the trapezoid method.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Area.vi ‏30 KB

  • Area under curve

    i am having the hardest time calculating area under a closed curve using basic maths. I have tried the integrate function (by splitting the curve in two and then adding the two). I am not susre of the answer so i am using basic math functions to code the thing in. So far i have:
    L1 = globusedchn
    CALL FORMULACALC("CH(L1):=CH('D')*CH('F')")
    CC(L1)="MULTIPLIED POINTS"
    CN(L1)="MULTPTS"
    R4 = 0
    R1 = CHDX(1, L1)
    R2 = CHDX(2, L1)
    R3 = R2 - R1
    R4 = R3 + R1
    A = R4
    FOR I = 2 TO CL(L1)
    L2 = I
    R5 = CHDX(L2, L1)
    R6 = CHDX(L2+1, L1)
    R7 = R6 - R5
    R8 = R7 + A
    A = R8
    NEXT
    CALL MSGBOXDISP(R8 & " = new area")
    maybe its my data but i keep getting R8 as 0. Any pointers will be greatly appreciated. Thanks ~sn

    Hi shefalika,
    It looks to me like the ChnIntegrate() function is the one to use. Note that the entire area under the curve is just the last value of the integrated curve. I included your original data in the ZIP file attached below, along with a quick VBScript which loads the data, creates 2 new channels which are the integral of channels 2 and 3 vs. channel 1, respectively, and loads a REPORT layout to show the results.
    The REPORT layout shows the raw data curves twice, once as a thick red line and then again as vertical blue spikes. This gives you the visual respresentation of the area under each curve being blue. I then included on each of the 2 graphs a text box which displays the last value of the integrated channel for that raw data curve. This is not a static value but an embedded @ function in the REPORT layout, specifically:
    Area Under Curve = @str(ChDX(CL('Area1'), 'Area1'), 'd')@
    for the 1st graph. Note that the area under the curve value is pulled explicitly from the channel named "Area1", so if you rename the integrated channel, you will need to change the channel reference in each of these 2 embedded @ formulas in the REPORT layout. The str() function formats the string result to not show any decimal points in the results (you could use 'd.ddd" instead, for instance). The ChDX(row, channel) function returns the value from the "row-th" data row of the "channel" data channel.
    Also note that several items in this example are built with DIAdem 9.1 features. If you need an earlier version of the example, let me know and I can build it again in DIAdem 8.1.
    Ask if you have further questions,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Attachments:
    Area Under Curve.zip ‏12 KB

  • Get a waveform graph to stop plotting after a given time period

    I am doing a research project looking at the effects of modifying visual feedback on a person's current force output. I have a waveform graph that plots the target force level they are trying to match (specified by me) and next to it a second plot showing their current force output (in real time). I am trying to make a condition where the current force output plot (or really the whole waveform graph) stops plotting after a 10 s time period, but can't seem to get it to work. It either plots for the whole trial, or does not plot at all. Is there a way to put a timer on a waveform graph in order to tell it to stop plotting after a specified time period?
    Thanks!

    Hi again,
    I have tried to open the .vi you sent, but I have version 8.2 (yours is in version 8.5) and cannot open it. Is there a way for you to tave the.vi so that it can be opened with earlier versions of the program?
    I have attatched my .vi to this message as well.
    Attachments:
    bimanual combined with metronome_conds.vi ‏174 KB

  • Area under Curve -- ROC-- Classification

    Dear All,
    I had applied classification technique and plot the ROC curve, the Oracle Data miner calculates the Area under Curve of that ROC, anyone please tell me on which formula does the Area under curve is calculated....

    which formula is used to calculate the area under ROC curve in oracle data miner

  • Area under Curve for Unbounded Guassian & Laurentzian Distributions

    Hi - I believe (maybe mistakenly) that there are mathematical formulas for obtaining (unbounded) area under curves for Guassian & Laurentzian distributions that do NOT involve integration.  I cannot seem to find those formulas.  Does anyone have them or point me to a link that might.
    Thank you in advance.
    Sincerely,
    Don

    Incomplete Gamma Function
    where the gamma(.5,z^2) is the incomplete gamma function;
    The "Upper Incomplete Gamma Function"
    (1)
    For an integer
    (2)
    (3)
    (1)
    For an integer
    (2)
    (3)
    For other
    The cumulative distribution function, which gives the probability that a variate will assume a value , is then the integral of the normal distribution,
    (8)
    (9)
    (10)
    It is a bit "thrown together", I hope this helps some...

  • How to calculate area under the waveform

    I need to calculate absolute energy of the waveform. Do you have a math function to do this? I used Integrate funtion but the return value is 0.

    You didn't say much about what you are doing. The CNiMath::Integrate function should be able to do this for you. Maybe you don't understand the function. You would input your waveform as a vector (say 1000 elements), then the delta time between each element (1/sampling rate), then the first and last value of the discrete integral (waveform[-1] and waveform[n]). Then, on output, the vector would contain the integrated data. You could get the sum of the elements to get the total area under the curve.
    Best Regards,
    Chris Matthews
    National Instruments

  • How can I calculate area under a curve?

    I would like to use an integral equation to obtain positive and negative areas from graphed data. For example, I have a graph representing power for a 24 hour period and want to integrate the curve to obtain daily energy.

    One common way to approximate the area under a curve is to divide it into a series of trapezoids, with the area of each calculated as avg height x width. Then sum the areas.
    So with this table:
    x     

    trapezoid
    1
    0
    3
    2
    6
    11
    3
    16
    23
    4
    30
    39
    5
    48
    59
    6
    70
    83
    7
    96
    218
    You could use this formula in C2, filled down through the rest of the body cells in that column:
    =IFERROR((B3+B2)÷2×(A3−A2),"")
    This calculates the area of each trapezoid.
    The first row is defined as a Header Row, the last row as a Footer Row.  It's important not to have blank row(s) before the Footer Row. The sum formula in the Footer Row in C9 is:
    =SUM(C)
    Of course, the greater the number of x-y data points the better the estimate of the area under the curve.
    SG

  • How do I calculate areas under the curves above and below the x axis at 0?

    The xy graph generated is similar to a sinusoidal representing the magnetic intensity of the poles of a motor. For each of the four areas above and below the x axis at 0 I would like to calculate the area then do a variance analysis on the 8 areas. Can anyone suggest a method to calculate each of the 8 areas. See the attached vi to understand better what I'm trying to do.
    Thank you.
    Attachments:
    MIN MAX A.vi ‏16 KB

    Hi all,
    If you are simply looking to do numeric integration, there is built in functionality to do that.  The help file is here:
    http://zone.ni.com/reference/en-XX/help/371361H-01/gmath/numeric_integration/
    You will may have to do some edge checking if you want to break this down into individual components.
    Let us know if you need any more assistance
    Applications Engineer
    National Instruments

  • Calulate area under curve: Hystresis

    I have a force and dispacement values in excel. I want to calulate the hystresis of this.
    How can i do this through VBS?? I dont have time channel in that, How can i create it and find the hystresis?
    Rsh
    Solved!
    Go to Solution.
    Attachments:
    data points.xls ‏67 KB

    Hi RSH,
    Ignore the above, I wasn't thinking clearly.  I banged out a quick data set and tried it out, and it turns out to be much simpler-- you just need to calculated the integral channel and look at the last value in the channel, like this:
    i = 1 ' GroupIndex
    Call GroupDefaultSet(i)
    DispCh = CNo("[" & i & "]/Displacement")
    ForceCh = CNo("[" & i & "]/Force")
    IntCh = CNo("[" & i & "]/Integral")
    IF IntCh > 0 THEN Call ChnDel(IntCh)
    Call GroupDefaultSet(i)
    Call ChnIntegrate(DispCh, ForceCh, "/Integral")
    IntCh = CNo("[" & "]/Integral")
    Integral = ChDX(ChnLength(IntCh), IntCh)
    Call ChnPropValSet(IntCh, "Integral", Integral)
    The calculated area is put in the "Integral" property of the "Integral" channel in the same group as the "Displacement" and "Force" channels.  In the example I'm attaching, I split the raw hysteresis curve (both forward and return) into its two components and calculated the integral of each, just to make sure that the different in their integrals really was the same as the net integral of the raw data curve-- and it was.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Attachments:
    Hysteresis.zip ‏3 KB

  • XControl Data wiring problem - Data type is Waveform Graph (Strict)

    Hi,
    I created an Xcontrol for a waveform graph. The datatype (under Data 1.ctl) is a WaveformGraph reference type.
    When I wire a Waveform graph reference to the Xcontrol (as an indicator), there is a wire conflict.
    I checked the strict definition and the reference types are theoretically congruent but I cannot seem to wire it together. Any solutions?
    Please see the attached code.
    Thanks!
    Attachments:
    GraphDisplay XControl.7z ‏1717 KB
    Tester.vi ‏15 KB

    It looks like the XControl data is a waveform reference (strict). I can't open the XControl though, because I don't have a 7z compiler, but the problem is probably that the refnum will only take in a reference to an exact waveform graph because it's strict.
    You can create a non-strict reference and use that for your data by:
    Open your data control FP
    Press Ctrl-Space
    Type "Control Refnum"
    Press Enter and place that on front panel
    Right click it and brows to the correct data type:
    James
    LabVIEW Professional 2014

  • Waveform graph x scale

    Hello,
    I am using a waveform graph.  My x scale is the time value of data being taken.
    I want the x scale to start at zero and my oldest data being displayed first.
    In other words a progessive flow of how data is seen on a graph starting from when the data was first
    taken to eventually newest data on the right side of the graph.
    Right now the graph does the opposite with my newest data displaying first.
    Please ...using a chart is NOT an option as I need cursors.
    Many Thanks !!

    Simply invert the wires at the build array located just before the Graph
    Message Edited by JoeLabView on 06-20-2007 03:44 PM
    Attachments:
    buildArray.PNG ‏2 KB

  • Measuring the area under a torque waveform produced by a rotating shaft.

    I am measuring a torque waveform that a shaft produces as it spins up to speed. I am using the waveform vi's in Labview to calculate the total time of the waveform. Is there an easy way to calculate the area under the waveform? The hope is that we wil be able to figure out the amount of work done.

    Here is a VI that should do the trick. It is a basic integral of your waveform.
    Christian L
    NI Consulting Services
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
    Attachments:
    waveformpicture.vi ‏80 KB

Maybe you are looking for

  • How I Managed to Install Windows 8.1 Pro on an iMac 27-inch, Late 2013

    As is typical with many of my Boot Camp installs, this one did *not* goes as smoothly as planned. This installation was particularly troublesome, so I thought I would share how I managed to set up Boot Camp on a brand new iMac (27-inch, Late 2013) us

  • NEF Thumbnails not displaying in Bridge CS3

    I decided to dip my toe into RAW images. However unlike jpegs and tiffs the NEF thumbnails are not rendering in Bridge CS3. However when I double-click on an unrendered thumbnail it does open normally. As seeing thumbnails would be very helpful I dec

  • WLS Users and Groups interface questions / observations

    I'm new to WLS, having just installed OBIEE 11g for the first time. There are some oddities in WLS around setting up Users that I'd like to ask about, to see if I'm just missing something, or if the interface really IS this bad. Please feel free to c

  • How can I reduce the number of lines in live paint?

    I'm trying to use adobe illustrator to color the background of a photograph green while keeping the person in the picture the same color. I used live trace to get a vector image and then attemped to use live pain to finish the job, but I end up with

  • Will not eject CD- DVD

    Just bought a 20" and after setting up I find that the puter won't eject discs. So... I go through the troubleshooting and guess what? The disc reader-writer isn't lined up with the slot... The housing and the hole are not lined up, so , when I try t