09-17-2014 01:16 AM
1, I have a lot of sample data, it can be plot a 2D dot distribution map.
2, then, I need fit a function curve,such as:
Solved! Go to Solution.
09-18-2014 02:18 AM
CVI can use OpenGL functions: there is a specific OpenGL instrument located in <CVIfolder>\toolslib\custctrl\cviogl.fp. There is also an example program that makes use of OGL functions to plot 3D sufraces: see the code in <CVISampleFolder>\apps\oglscxi fodler.
Having said this, since you are dealing with 2D plots, do you really need OpenGL? All the steps you have listed above could be addressed with standard CVI functions: as an example you can use a properly formatted PlotXY () call to plot curves as in step #1, PolyFit () to calculate the interpolant in step #2 (which also goves you the formula as in step #5) and cursors to do plot searching as in step #4.
09-20-2014 09:57 AM
09-22-2014 03:01 AM
Thank you again.
I will give up openGL, that is too complicated.
Would you please help me on the other question ?
09-22-2014 03:02 AM
Yes, I have just answered there
09-22-2014 03:27 AM