01-18-2015 12:17 PM
hello all
please refer the attached file for my question.
in it u can see two plots. the left one is on excel and the right one on labview. both the plots are for same data.
u can see the difference
i want to generate a smooth curve like that on excel.
i tried various curve fittings like polynomial, exponential, spline but was not able to get the smooth plot like the one im getting in excel.
note that the number of points in my data are only 5
Solved! Go to Solution.
01-18-2015 12:29 PM
@gargrahul wrote:
i tried various curve fittings like polynomial, exponential, spline but was not able to get the smooth plot like the one im getting in excel.
note that the number of points in my data are only 5
Show us what you tried. You need to generate a much denser x-ramp, then use a spline interpolation.
01-18-2015 12:50 PM
i used the spline function directly
my data array has only five elments
refer the image to see the block diagram
01-18-2015 04:17 PM
Please upload your VI and not a picture.
01-19-2015 12:07 AM - edited 01-19-2015 12:08 AM
01-19-2015 12:18 PM
OMG !!
that worked
u really can do a lot with less coding
sir ur block diagram blew my mind
im sorry i should have uploaded my vi earlier
im using labview 10 so can u upload the same vi in labview 10 or just tell me the spline function u used
actually i searced for that function and came across interpolation 1D
is this the same function that u have used ???
the other one u have used is ramp pattern ???
i have to study these functions now
01-19-2015 12:53 PM
Yes, "interpolate 1D" and "ramp pattern". I am not sure if they are exactly the same in LabVIEW 2010 but here is the downconverted version.
11-09-2020 12:49 AM
hello! Your this vi is working perfectly, but i have problem. I am plotting the xy graph real time, like my values of x and y are sensor values, when i am connecting that x y values with your code, it is not connecting and dotted lines showing. Please help that how can i make graph live with this smooth type curves?
11-09-2020 01:27 AM
11-09-2020 04:12 AM
Hi,
I have attached the picture which i want to do actually. Basically in original solution the values are fixed between a maximum and minimum values and the values are stored in a arrays. But in my situation i am reading the live two temperature values from a sensor and these values are sending to labview from arduino properly. Now i want to plot these values in XY graph, for example T1 on x-axis and T2 on y-axis. XY graph is plotting properly but in sharp edges, i want these graph in smooth trend as show in this original post problem. So the basic difference in my case is i am reading the live values not stored in arrays. Now i want smooth graphs by not storing in any arrays, these should be live and curvy.