From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-01-2006 08:20 AM
09-05-2006 02:03 PM
Greetings Bob,
Are you using LabVIEW to perform the integration of your signal? If so, which version, and which VI's are you using to perform the integration? Attaching a copy of your code might be helpful, as well.
I was able to find several VI's that can perform integration in LabVIEW. One VI by the name of "Integral x(t) PtByPt.vi" can be used to determine the integral of a signal x(t) Also take a look at "Numeric Integration.vi" if your data is in array format. Keep in mind, however, that integration, by definition, performs a summation and this VI will give you the area under the curve x(t).
Regards,
Nicholas B, Applications Engineer, National Instruments
09-06-2006 09:18 AM
Sounds like a fairly common real-world problem. Your accelerometer signal seems to have a small DC offset which integrates once into a false straight line velocity trend and then again into a parabolic position trend. There's different ways to handle this. The following couple ideas assume a pretty constant DC offset. If it drifts, that'll add another layer of complication...
1. After integrating once to velocity, subtract off the best-fit straight line to remove the trend. Integrate this result to position. You may need to subtract off a best-fit straight line again.
2. Pass the accel values into a high-pass filter before integrating in an effort to suppress the DC offset.
-Kevin P.
09-06-2006 09:47 AM
12-05-2006 06:25 AM
Hello to everyone
I have the same problem. I need to integrate acceleration data to get velocity and position.
Peak values of acceleration, velocity and position are needed.
I've set up a test file but there's something wrong.
We have the values of acceleration from an accelerometer. First of all we substracte the DC component from our acceleration data. Then, with a double integration with time domain math, we have the values of position ( A_red line ). But we have also a sensor of position , which gives us a curve of the displacement ( B_ green line ). We want to have the maximum displacement from the accelerometer and from the sensor of position. We compared A with B but we had some problems. Sometimes we have a very good matching ( I ), but sometimes no ( II ) .
Please, Help us. It’s very important. :womansad:
12-05-2006 12:17 PM
It's been quite a while since I tried to do similar correlations in an app of my own. Honestly, in my app, even case 2 would have been acceptable as the overall shape was more important for us than the exact values. I never pursued it to the point of trying to match peak amplitudes.
I do recall that the type of accelerometer we used then was capacitive, and we needed to dial-in a capacitance setting on the signal conditioner. I also recall that even slightly wiggling the accelerometer cable would affect results. Also, the zero-point would drift about erratically at a relatively low frequency when we observed it in stationary conditions. It wasn't a well-behaved offset so I knew there was no hope to exactly compensate for this erratic drift, and didn't spend much time trying.
So, just a thought, but you might want to consider changing sensors. I know that there are accelerometers available that operate on different principles (such as current source for excitation, voltage output representing accel) and that are not so sensitive to cable wiggling. I don't really know enough to offer a specific recommendation though.
-Kevin P.
12-06-2006 03:09 AM
12-06-2006 12:38 PM
12-07-2006 04:27 AM