Ni.com is currently experiencing issues that may cause some pages to fail.
Support teams are actively working on the resolution.
Ni.com is currently experiencing issues that may cause some pages to fail.
Support teams are actively working on the resolution.
11-30-2017 05:18 PM
I'm building a thrust stand and I would like to automate the calibration process. This requires that I apply a force to the thrust stand arm, measure the displacement and get the bolded components of the equation x(t) = A*exp(-gamma*t)*sin(omega*t) + C
"x(t)" is raw data from a displacement sensor. I have written a python script that, if necessary, can be called to read the data and find those components but I was wondering if labview had a similar functionality. Thanks.
Solved! Go to Solution.
11-30-2017 05:34 PM
Try the Nonlinear Curve Fit. Check out this presentation to get started:
11-30-2017 06:24 PM
Thank you. I'm going to read through this, but may have more questions. I'll accept as a solution otherwise.
12-01-2017 09:26 AM
@PFour wrote:
I'm building a thrust stand and I would like to automate the calibration process. This requires that I apply a force to the thrust stand arm, measure the displacement and get the bolded components of the equation x(t) = A*exp(-gamma*t)*sin(omega*t) + C
"x(t)" is raw data from a displacement sensor. I have written a python script that, if necessary, can be called to read the data and find those components but I was wondering if labview had a similar functionality. Thanks.
It seems you need to find the constants to your equation for x(t): A, gamma, and omega. I'm not sure if the other curve fit algorithms will give you those values. I used this code from some time ago using the Hilbert Transform to calculate the Q of a damped sinusoid waveform. I modified it slightly to generate your constants. Try it and see if it works for you.
I didn't calculate "C". By definition of equation, C = x(t) at t=0. That's your initial condition. I also added a phase shift "phi". I needed it to analyze my data. You may or may not need it for your data.
12-01-2017 10:20 AM
FYI: Here is another article you can read to calculate damping parameters
http://www.imeko.org/publications/wc-2015/IMEKO-WC-2015-TC15-323.pdf
01-10-2018 08:32 PM
The non-linear fit VI that I'm using seems as if it could pretty easily fit a damped oscillation. I have been able to fit to mock data. However, it's not converging on a solution for some of my data at the moment so I used your Hilbert Transform VI. This seems to work alright, except it will need an offset term to be added. I'm facing the problem of getting damped components that are nearly 0. There is clearly a damped component to the data but the VI isn't picking up on it. I can attache the data if you'd like to take a look?