05-30-2011 03:57 AM
Good Day! Can someone help me.....i have some problem with my XY graph representation. How do i generate a function that reads a value of the X axis of the plot and automaticaly gives me the corespondent value on the y axis. I attached two pictures regarding the plot in cause.I tried using the cursor of the waveform graph by checking Allow Dragging>>Single plot . The cursor now follows my plot but it moves only from point to point (the points can be seen in the atachement).I want to make the cursor to move along the plot and give me at a specific X value the corespondent value on the Y axis. Thank you ...excuse my language:)) my English is a bit rusty . Have a nice day
05-31-2011 04:27 PM
Hello DjFloapa,
Just a couple questions to clarify. So you'd like to choose which x value of the data point and a function will return the corresponding y-axis value? Do you want this for any point like a trend line or only ones that are plotted? Would plotting a trendline along with the data and then moving the cursor along the line be sufficient?
Thank you,
Deborah Y.
06-03-2011 11:39 AM - edited 06-03-2011 11:44 AM
Only the ones that are ploted.....i need to read values from that plot.I have an ideal curve graph and for a x value i need to know its corespondent y value on that curve.
I am bulding a VI that reads parameters from a DAQ device......These values are represented on the X values ...and a need the y value on the plot to implement them in some ecuations.
06-03-2011 12:39 PM - edited 06-03-2011 12:40 PM
Do a polynomail fit, then use Polynomial evaluation using the coefficient obtained earlier to get the function value for any x.
(Of course if there is a theory and a more specific model for the data, you can use nonlinear fit)
06-03-2011 01:55 PM
I would use a cursor. You could make it Transparent if you do not want to see the cursor. See the attached code
06-04-2011 05:35 AM
thank you i will try with the polynominal FIt ! Have a nice day
06-06-2011 08:05 AM
Here is another possiblilty found from a forum post. Good luck with your application!
Cheers,
Deborah Y.