12-15-2021 08:46 AM
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
12-15-2021 09:12 AM
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
12-15-2021 01:47 PM
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!)
12-16-2021 12:13 AM
@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
12-16-2021 03:29 AM
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,, )