09-15-2009 09:23 AM
如何将采集到的加速度信号转换成位移?
09-15-2009 11:03 AM
The first thing to do in this situation is to understand conceptually the relationship between acceleration and displacement.
Acceleration is the second derivative of displacement, or conversely, displacement is the second integral of acceleration.
Since you have discrete points, rather than a function, this would just be two sums.
Do both your velocity and acceleration start at 0? If so, this would make it easier, if not, its not that big of a problem.
Just set up a for loop to run through your array of acceleration data, and calculate the displacement from there.
For i in accerationArray: (where accelerationArray is an array of your data)
product = i * dX
velocity += product (this will serve as a counter for your current velocity)
velocityArray[i] = velocity
end
For j in velocityArray:
product = j * dX
displacement += product
displacementArray[j] = displacement
end
Once you aquire acceleration data into a data array, you can generate a corresponding velocity and displacement array accordingly.
I apoligize for the text code, but I dont have LabVIEW on this computer
Let me know if my explination was confusing.
09-15-2009 11:05 AM
Note : I deliberately did not initialize 'velocity' or 'displacement'.
You should use your initial values from your test for initialization.
If the object starts at rest, both values will be initialized to 0.
05-29-2013 08:55 PM
我的问题和你一样,请问你解决了吗?如果解决了,希望给些指点。
08-07-2023 09:58 PM
我用的逐点积分,但是效果不好。请问您解决了吗?