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
Similar Messages
-
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 KBI 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 -
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 KBHi 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 -
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 KBThe 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 -
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
y
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 to draw a line of sin x and its area under the line?
Hi,
I know how to draw a line from two points. However, I do not know how to draw a line of function sin(x) and its area under the line. Anyone know where to read or how can I draw it, please help me. Thanks !!
Calvinuse Graphics2D:: draw(Shape)
create a class that implements Shape, and specifically the getPathIterator methods, in these methods you should return a path iterator that follows the sin/cos curve.
All fairly simple to do.
rob, -
Regression area under the curve
hello
i was trying to get the area under the curve. mathematically the
integration can b done directly from 'numeric integration' vi. but what
my problem is i cant define the time t1 to t3( as i need to set the
threshold level to eliminate noise). what i previously did was defining
the threshold level, find the 2 point of t1 and t2. but i left out the
coloured portion. using regression will it help to get t3?if yes. how
this will b done?
thanks
regards
Attachments:
graph(dt)1.PNG 8 KBThis has been going on for a while:
http://forums.ni.com/ni/board/message?board.id=170&message.id=226483#M226483
http://forums.ni.com/ni/board/message?board.id=MathScript&message.id=145#M145
http://forums.ni.com/ni/board/message?board.id=170&message.id=227008#M227008
If I understand this correctly, you use a threshold to find the peak, but then you want the entire area, including the "wings".
As I said before, if you pick the baseline right, your integration boundary does not need to be exact and can be significantly outside because the areas outside the peak will average to zero.
If you have a mathematical model for the peak (e.g. gaussian), you can fit it and calculate the area from the fit.
LabVIEW Champion . Do more with less code and in less time . -
How can i print out the waveform chart?
hello everybody,
how can i print out the "waveform chart". can i do it just push the button. ( example; stop button is stop the program etc..)
i checked the NI examples but i can't understand. i'm new to the Labview.
pls help me.
i added the my program
look forward your reply
regards from turkey...
Message Edited by hknmkt on 05-29-2008 04:15 AM
Attachments:
29.05.2008_11.vi 37 KBhi jim,
i tried the program but it's not running. When i run the program, it's print out without run the program
i added the printed file.
look forward your reply
hakan
Attachments:
error8.JPG 8 KB -
So there are several iOS devices in my family and on one of our iPads we have purchased an in-app purchase. I also have the same app on another iPad and would like to also have access to that in-app purchase. Both of these devices are under the same iTunes account so is there a way to share this in-app purchase across multiple devices?
You can check here > iTunes Store: About In-App Purchases
But I don't think this is possible. -
I have three different computer with three different libraries, but all are under the same sign on and password. Can I sync the libraries somehow and get all my music and movies on each computer?
Can you just create a new "Playlist", name it Bob Seger and drag what you want into the Playlist.
File/New Playlist -
My playlists show how many titles are in the playlist but does not show the list of titles
my playlists show how many titles are in the playlist but does not show the list of titles. Is there a setting that I hit by mistake to hide the content?
Perhaps you have made one column extra wide and the window isn't currently showing the Name column. Try resizing columns, turning off those that you don't need, or scrolling sideways.
tt2 -
Using powershell to find out how many people are using the on-prem SkyDrive
Hi
Is there a way of using powershell to find out how many people are using the on-prem SkyDrive?
Thank you.Hi,
According to your post, my understanding is that you wanted to use PowerShell to find out the users who use the on premise SkyDrive.
As this is the forum for SharePoint Server, I recommend you post your question to the forum for PowerShell or SkyDrive.
Windows PowerShell forum:
http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverpowershell
SkyDrive forum:
http://answers.microsoft.com/en-us/onedrive/forum/sdsignin?tab=Threads
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
How much documents are therein the database maxdb???
Hi,
My boss wants to know how many documents are in the database......how can I know???
Thanks in advance!!
Nerea.Hello Nerea,
first of all it would be good to know which application you are using.
Are you talking about a content server?
We could tell you how many rows are in which table - but I'm not sure if that corresponds to your documents.
It might be best to check with the application, how and where they store these docments.
Regards,
Melanie -
Impact of merging plant B to plant A. Both plants are under the same CoCode
Hello Gurus,
May I request please for your assistance on the query I have. We are about to merge plant B to plant A (when i say merge, we'll also merge all existing SLOC under plant B to plant A), and with that I'd like to know if what would be the impact of this merger. Please note that both plants are under the same company code.
Also, since the plan is to no longer post tansactions for plant B until March, then is it ok to deactivate plant B and it's storloc afterwards? The plan is to complete or close first all open and pending transactions for plant B until March then deactivate it. Is it ok to deactivate it by then? Will it not cause an impact?
Please help and advise. Your inputs would be greatly appreciated.
Thank you very much in advance.
Regards,
Lee THello Ajay,
Thank you very much for your response. I have taken note of it. But could you advise if there's an impact if we activate it? What is the impact on the storloc assigned to it? Where should the deactivation take place? Is it in the plant level or storloc level?
PLease help.
Thank you very much in advance.
Regards,
Lee -
Hi I've been using apple products for sometime now , I have one iPad , & 2 iPhones under my apple Id but that's as I know oh and maybe an old mini iPod I lost but my question is, is there any way to check how many devices are under your apple ID ?
If you have registered all your Apple products, you can see them at:
https://supportprofile.apple.com
Maybe you are looking for
-
Error while loading the data from ODS to InfoCube
hai Im trying to load the data from ODS to InfoCube for particular year . But it says that there is a source system problem . why it is like that . pls tell me i ll assing the points rizwan
-
I need to update my ipad and I have not synced in quite some time. When I attempted to sync it does not appear in itunes. I have gone through all the suggestions posted on your website and still have no luck
-
How do I remove Messages from Mission Control?
I double clicked the top near the resize arrow mistakenly and it made its own screen in Mission Control. I've been looking online but I can't find out how to remove it. I've tried the control+click but it doesn't show the x. I don't want my messages
-
Setting image zoom and offset properties in Forms 6
I have a Forms 6 form with an image item with "Sizing Style" set to "Adjust" and "Show Palette" set to "Yes". When running the application, the users typically need to view approximately the same region of a set of images. Currently, they have to rea
-
Has anyone setup DNS in windows Azure? I am thinking abut moving over to the Azure and i am not seeing anything about settup DNS. CAn some direct me to any documentation