LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Formula of xy graph

Hi
 
I have 2 1d Arrays containing over 1000000 sets of xy cordinates which i am plotting in an xy graph,  what i would like to know is it possible to extract the formula of this graph using labview 8.5 and one set of xy co-ordinates for the peak information in each of the pulses in my graph. I have a search function which can look for a negative graidient however i get more than one data set back for each pulse and the program take over 40 mins to run through all the data.
 
I am bundliing the arrays to gether to make my xy graph. 
 
thanks in advance
 
Ross
0 Kudos
Message 1 of 5
(3,550 Views)
can you post your code or a screen shot?
0 Kudos
Message 2 of 5
(3,531 Views)
There are several formulae to determine the equation of a graph, depending on what type of graph you have to begin with.

Are we dealing with a consistent type of graph ~ direct correlation (x=y+c) ~ or a complicated hyperbolic or polynomial expresion?

EDIT ~ finish the post!

Or do the dataplots change so we have to determine what shape we are looking for?


Message Edited by yenknip on 07-29-2008 03:24 PM
_____________________________
- Cheers, Ed
0 Kudos
Message 3 of 5
(3,528 Views)
Technically, there is no equation for an XY graph. The XY graph plots points and connects the points together. If you want an equation to match the "curve" that you see on the graph you have to make one. This means you need to use the curve-fit functions to come up with a function that best fits your data.

As for the peak information, you can determine this by using the Peak Detector function and your array of points.
0 Kudos
Message 4 of 5
(3,500 Views)
Yeah I have just figured that out, and curve fitting is not an option for this project so it cant be used.
 
However the formula for the graph is no longer required, thanks for the help though
 
Ross
Message 5 of 5
(3,482 Views)