LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accelerometer 1st try need help TIA

gram an input to read acceleration, velocity and position. The
accelerometer takes 5vdc, at 0 acceleration outputs 2.5v and outputs
_+ 1v/g. I've taking the input through a DAQ then multiplied by 9.8
for scaling to m/s^2. I integrate twice, once for velocity and once
for position. I've adjusted for DC levels from the accelerometer. Do
I have to use a peak detect to get the actual position value? I've
also inserted a shift register so that the last position value is
added to the new position each time the loop runs. I've tried taking
200 samples at 1kHz...it appears to be working, but I can't make sense
os the data.

the accelerometer is attached to a mass, which hangs vertically on a
spring. The z axis is the only output.
I've included the file. Any help is much appreciated.

TIA
0 Kudos
Message 1 of 3
(2,782 Views)


@JB2 wrote:
I've included the file. Any help is much appreciated.

TIA


I didn't see any file.  Try again.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 3
(2,775 Views)

Hello JB2,

Thanks for contacting National Instruments. 

What issues are you having with the data?  You should not have to use a peak detect function to determine the position.  Assuming that the issue is related to the integration of your waveform, there are two possible things to try.  The first is that NI does make a Sound and Vibration Toolkit  that provides the necessary VIs to convert an acceleration measurement to a displacement easily. 

The second option, if you do not have the sound and vibration toolkit, is to try to eliminate any DC offset.  Whenever LabVIEW performs integration, some DC offset is introduced.  It will be necessary to remove this DC offset before both the first and second integrations.  The best way to do this is to filter the data using a High Pass FIR Filter.  See this forum post  for information regarding this. 

Please post back if you have any more questions.

Regards,
Browning G
FlexRIO R&D
0 Kudos
Message 3 of 3
(2,736 Views)