Download PDF file
Transcript
The XYDataPointsCallback() Function
int
TotalNumDataPts;
TecUtilLockStart(AddOnID);
/*
* Data will contain all the data points and is 1 base:
* RawIndpts
* RawDepPts
* IndCurveValues
* DepCurveValues
* Therefore, the array must be large enough to
* contain all these points: 2*(NumRawPts+NumCurvePts).
*/
TotalNumDataPts = 2*(NumRawPts+NumCurvePts);
Data = malloc((TotalNumDataPts+1)*sizeof(double));
if (Data != NULL)
{
/* Initialize Data to contain all zero. */
for (ii = 0; ii < TotalNumDataPts+1; ii++)
Data[ii] = 0;
}
121