05-31-2013 01:50 PM
Is there any way to find a curve from least squares or anything like that to find coefficients of a second-order differential equation by inputting a data set?
Thanks in advance
05-31-2013 01:51 PM
something like this would be excellent:
05-31-2013 04:05 PM
You can fit anything you want. What have you tried so far?
(Your image links to your gmail and is not publicly viewable by any of us. Please link to a public image or attach it here.)
06-03-2013 09:12 AM
My apologies - I haven't tried anything yet, I am very new to LabView. I have a set of data that I wish to fit rather than solve a differential equation and am not sure how to proceed.
relating force to a variable (displacement, velocity, or acceleration) and unknown constants:
06-03-2013 11:08 AM - edited 06-03-2013 11:10 AM
@jstoph wrote:
My apologies - I haven't tried anything yet, I am very new to LabView.
I don't think there is anything specific to LabVIEW. How would you solve it in any other programming envoronment?
@jstoph wrote:
I have a set of data that I wish to fit rather than solve a differential equation and am not sure how to proceed.
In order to fit, you need two things:
For some problems, there is a direct linear algebra solution available (e.g. linear or polynomial fit). For more complicated problems, an iterative procedure (e.g. Levenberg Marquardt) needs to be used, where, given an initial guess for the fitting parameters, the fitting algorithm will adjust them in way to best match the data to the model. In your case.
In your case, the differential equation needs to be solved for each iteration. Do you know the initial conditions for the differential equation or is this also to be fit??
06-06-2013 10:29 AM
I have about 7,000 KB of data on an excel spreadsheet.
I am not sure what you mean by initial conditions - the time we start "recording" data can be adjusted if it makes curve fitting easier. Mostly need to figure out said function for an object dropping in freefall, then striking an object which causes a damped oscillation.
06-06-2013 10:37 AM
Pleas explain what you mean by "fit"?
Of course there are analytical solutions for damped oscillations. What parameters are you interested in?
06-06-2013 10:42 AM
I really am searching for coefficients which would be used to write a function that can best describe my data.
06-06-2013 10:53 AM - edited 06-06-2013 10:57 AM
Can you attach some data?
Some analytical solution can be found here, of course. The solution will depend on the initial condition, for example if the mass is resting at the equilibrium, nothing interesting will probably happen.
06-06-2013 01:46 PM
I can't due to the sensitive nature of the project. It recorded about 20,000 data points in ~20 seconds. It recorded time, force, and two accelerations (the two accelerations were very similar but not exactly the same.)