LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to calculate integral of a waveform?

I am acquiring real time 8-bit signal from a pressure sensor through analog to digital converter and displaying the signal waveform at Labview through parallel port.
the pressure waveform i acquired is like a sine wave at 0,3 HZ and 4 Volts peak to peak. i need to calculate and display the integral of pressure waveform.
i used integal x(t).vi at my project but does not worked.
do you have any recomendation that how i can display the integral waveform of my real time pressure waveform by using Labview 6.0.
 
Thank you for your help.
 
 
0 Kudos
Message 1 of 9
(9,323 Views)
What did not work when you used the Integral VI? Did you get an error, invalid data, no data? Post a simplified version of your program (without the data acquisition parts which we won't have) with some data saved as default in a control. Someone will probably be able to determine what is happening.

Lynn
0 Kudos
Message 2 of 9
(9,310 Views)
If your waveform at the output of the integration function continuously rises, then you have a DC offset in your signal that you need to subtract out before you integrate.
Randall Pursley
0 Kudos
Message 3 of 9
(9,300 Views)

Hello.

 

Mr. Prusley or anybody. I have the same problem. I try to integrate sine wave and my output wave of the integration function continuously rises. I expect a cosine wave if I integrate sine wave. But I get a straight line which rises from zero up. How to subtract DC offset?

 

I hope you have any suggestions.

 

Regards

Message 4 of 9
(8,734 Views)

The standard way to remove DC offset is to take the Mean of the dataset and subtract the Mean from the dataset.  Then integrate the difference.

 

You have posted replies to (at least) two very old threads.  It might be better to start a new one and mention that you have looked at these old ones.

 

If subtracting the Mean does not work, please post your VI along with some typical data.

 

Lynn

0 Kudos
Message 5 of 9
(8,721 Views)

how to integrate acceleration signal to convert it into velocity signal?

0 Kudos
Message 6 of 9
(7,693 Views)

Why there’s need to subtract the DC offset to integrate sine/cos wave??

0 Kudos
Message 7 of 9
(6,658 Views)

Hi abinayg,

 

did you ever try to integrate a biased sine wave? What is the result of that bias?

 

Sometimes it's much better to try something on your own to learn about the problem. (Or ask your math teacher about the basic principles of integration and derivation.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 9
(6,653 Views)

And it's very easy to experiment with these questions using LabVIEW. Take this as a starting point:

 

Integrate Signal - Experiment.png

Greets, Dave
0 Kudos
Message 9 of 9
(6,649 Views)