Navigation:  Programmer's Reference >

Retrieving data points from DPlot curves

 

Previous pageReturn to chapter overviewNext page

Once you have created a curve in DPlot you might want to get the point pairs of the curves back into your HTBasic program for further computing. This is easily possible for 2D curves using the function FNDplot_getcurdat, for example:

 

REAL Curve1(1:200,1:2)       ! curve with maximum 200 xy point pairs

INTEGER Curve,Numpoints

Curve=2                       ! get data points for curve 2

!

! now get the curve data

Numpoints=FNDplot_getcurdat(Doc_num,Curve,Curve1(*))

 

The variable Doc_num contains the DPlot document number of the desired DPlot document. The function FNDplot_getcurdat returns the number of transferred xy point pairs in variable Numpoints and the array Curve1(*) contains the data points. If Numpoints is 0 (zero) no data have been transfered.
 

lampe

Hint:

Example program 5 demonstrates how to retrieve data points from DPlot curves.