Very Thanks of your answered.
I am using Measurement Studio 6.0 in Borland C++ Builder 6.0 to plot the data get from A/D.Because the data is continious wave,so I must continue to plot graph. When I plot graph, the system memory continue to be exhausted.I monitoring this leak in task manager and use GlobalMemoryStatus() function.
In Borland C++ Builder 6.0, I use NI ActiveX control as this sample code:
/////////////////////////////////////////////////////
for(int i=0; i<16; i++)
{
Graph->Plots->Item(Variant(i+1))->ClearData();
Variant data=VarArrayCreate(OPENARRAY(int,(0, len)), varDouble);
for(j=0;j Variant ele= double;
data.PutElement(&ele,j);
}
Graph->Plots->Item(Variant(i+1))->PlotY(data,Variant((double
)0),Variant((double)5));
}
//////////////////////////////////////////////
Is there some wrong in this code?
Thanks!