Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

signal integration

45 views
Skip to first unread message

kungfucrazy

unread,
Nov 20, 2003, 3:44:37 PM11/20/03
to
I can't seem to figure out how to continuiously integrate an
accelerometer signal twice to view the displacement. Ive used all of
the different integration VI's and i can't seem to get the result i
need. i don't want to see a waveform, i just the value of the
displacement. Any one help? been at this a long time now.

kungfucrazy

unread,
Nov 20, 2003, 4:32:12 PM11/20/03
to

LocalDSP

unread,
Nov 20, 2003, 5:47:30 PM11/20/03
to
A true (perfect) integration is probably not what you want because
even the slightest dc-offset in your signal will make it drift and
most likely corrupt your measurement. Double-integration just makes it
even worse.

The best approach really depends on your signal. If it is, for
example, a pure (or at least relatively clean) sine tone, you may want
to perform your integration in the frequency domain. Otherwise you'll
have to choose a "cut-off" frequency under which your integration
flattens out or become differentiation (highpass filtering or
ac-coupling).

Finally, when you say you just want the "value of the displacement",
what is it more precisely? The peak value? The rms value?

Could you post a VI with your signal (for example default values on a
graph) to be integrated and some few comments on what you want to
measure?

kungfucrazy

unread,
Nov 20, 2003, 8:28:22 PM11/20/03
to
hi there. i guess i wasn't very clear, i apologize about that. i am
going to be using a shaker to vibrate a fixture to achieve very small
diplacements. the signal out of the accelerometer is going to be a
sign wave of some sort, i want to be able to view the displacement
after integrating the signal twice. This will allow me to adjust the
settings on the shaker to the desired displacement. I want to
continuosly see the display on an indicator in labview. I don't have
a VI of the signal becasue im not exactly sure what the signal will
look like out of the accelerometer. we haven't ran the test yet. I
suppose the displacement that i will need is the peak to peak value.
hope this helps a bit. thanks.

Tom

unread,
Nov 21, 2003, 12:00:16 AM11/21/03
to

kungfucrazy wrote:

You need

loop:
y1=y0
y0 = y1+k*u
end

where k is a constant, y0 is the output and u the input to the
integrator. Any slight dc offset will send it soaring high into
saturation however. Pure integrators are normally only used when there is
feedback around say a closed loop system. To implement the above you need
a while loop and a register to get y1. Feed the output y0 into the
register and get y1 from the past value. u is the current input. If you
want this in vector (array) format it is a little more complicated as the
register does not do the trick there. For the array case you have to be a
little smarter.

regards

Tom

Erik

unread,
Nov 21, 2003, 3:44:47 AM11/21/03
to
kungfucrazy <x...@no.email> wrote in message news:<5065000000080000006F...@exchange.ni.com>...

I have done something like this, but on chunks of data, and with only
one integration. The program acquires 1000 samples from the AD-card in
each program iteration and puts these into an array. It then
calculates the mean of the array and subtracts the mean from every
array location. After this the array is high pass filtered (signal
prosessing/butterwort filter)and then integratet (signal
prosessing/time domain/integral x(t)).

With this program I measure both a geophone(velocity transducer) and a
accelerometer. When I integrate the accelerometer this way, its time
series matches the volocity time series very vell.

Hope this helps

tacho88

unread,
Aug 7, 2012, 9:19:59 PM8/7/12
to
Could you please post this VI? thanks a lot!


0 new messages