LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Acceleration to displacement

Hello,

 

I have an accelerometer connected to an amplifier and a DAQ USB-6000.

As I'm more interested in the position of the different axis, I need to convert the acceleration to displacement.

 

I tried to put an integral to get the speed and then I would have add another integral for the velocity but it doesn't seem to work as it's giving me the same data of the acceleration.

 

I attach the vi. If you can help me, that'd be great.

 

Thank you very much.

Carolina

0 Kudos
Message 1 of 5
(1,848 Views)

Is there anything wrong with using the Integral x(t) in the integration and differentiation pallete? (instead of the Blue express VI)

(And those dynamic data type wires are horrible - avoid if you can!)

James

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 2 of 5
(1,835 Views)

Hi Carolina,

 


@carot95 wrote:

I tried to put an integral to get the speed and then I would have add another integral for the velocity but it doesn't seem to work as it's giving me the same data of the acceleration.


Your DAQAssistent is set to read "1 sample on demand". Afterwards you try to integrate that one sample: which result do you expect from integrating exactly one sample?

 

I recommend to get rid of your ExpressVIs, too.

Especially that DAQAssistent can be replaced by proper DAQmx functions easily! (As is also shown in all those DAQmx example VIs coming with LabVIEW!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 5
(1,800 Views)

@GerdW wrote:

Hi Carolina,

 


@carot95 wrote:

I tried to put an integral to get the speed and then I would have add another integral for the velocity but it doesn't seem to work as it's giving me the same data of the acceleration.


Your DAQAssistent is set to read "1 sample on demand". Afterwards you try to integrate that one sample: which result do you expect from integrating exactly one sample?

 

I recommend to get rid of your ExpressVIs, too.

Especially that DAQAssistent can be replaced by proper DAQmx functions easily! (As is also shown in all those DAQmx example VIs coming with LabVIEW!)


Doh - I didn't look at that. I don't have any  devices attached to my PC so I replaced with it with a simulated sine wave!

James

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 4 of 5
(1,781 Views)

Keep in mind, that small offset errors in the acc. amplifier output end in accelerated position output 🙂

usually you apply a highpass before integration ..  if you have access to the sound and vibration vis: there is an integration vi including HP

DC accelerometers for inertial measurements are available but not cheap... and the better ones need a lot of paperwork to get. (Dual use,, )

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 5 of 5
(1,768 Views)