AmpPhaseSpectrum ,this function cause this error.
i write data to datasocket by using the following sentences
hr = DS_SetAttrValue (dsHandle, "ptsPerScr", CAVT_LONG, &ptsPerScr, 0, 0);
hr = DS_SetAttrValue (dsHandle, "scanRate", CAVT_LONG, &tpTyroProject->Acq.AcqRate, 0, 0);
hr = DS_SetAttrValue (dsHandle, "chNum", CAVT_LONG, &tpTyroProject->EnabledChNum, 0, 0);
hr = DS_SetDataValue (dsHandle, CAVT_DOUBLE|CAVT_ARRAY,data ,
tpTyroProject->EnabledChNum,ptsPerScr );