hi, am going in to see my professor in 1 hr time and have yet gotten the graph plotted.
what i need to do: i have a series of readings which i have to plot on Tchart(line graph) over time
hence: Y axis: Readings, X axis: TimeInSeconds
such that Readings will be plotted every second.
can anyone help me rectify what is wrong with my coding?
void __fastcall TForm1::Button22Click(TObject *Sender)
{
Timer8->Enabled=true;
}
void __fastcall TForm1::Timer8Timer(TObject *Sender)
{
for(int a=0; a<1; a++)
{
Series1->AddXY(TimeInSeconds,Readings,(String)(a),clBlue);
Series1->AddY(0,(TimeInSeconds),clRed);
}
}