Ver Mensaje Individual
  #5  
Antiguo 07-08-2014
soymoe soymoe is offline
Registrado
NULL
 
Registrado: mar 2014
Posts: 6
Reputación: 0
soymoe Va por buen camino
Hola, ya lo solucione,gracias, necesito hacerlo asi para poder saber el tiempo transcurrido del proceso.
lo soluciones sabiendo el intervalo que tiene el timer del proceso, tiene 0.1seg entre cada evento, entonces puse un contador que incremente en 0.1 cada vez u esos valores los mande a la grafica.

Código:
Segundos:=segundos+0.1;
RoundSeg:=Redondear(segundos,1);
Contador:=Contador+1;
ComPort1.ReadStr(StrTemp,CantBytes);
if (StrTemp='')or(StrTemp[1]<>'@') then StrTemp:='-------';
if ((StrTemp[3]='@')and(StrTemp[1]='@'))then StrTemp:=StrTemp[2];
if ((StrTemp[4]='@')and(StrTemp[1]='@'))then StrTemp:=StrTemp[2]+StrTemp[3];
if ((StrTemp[5]='@')and(StrTemp[1]='@'))then StrTemp:=StrTemp[2]+StrTemp[3]+StrTemp[4];
Temp:=StrToIntDef(StrTemp,0);
LabelTemperatura.Caption:=IntToStr(Temp);
if ((Temp<>0)and(Contador=5))then
  begin
  chart1.Series[0].Add( Temp,FloatToStr(RoundSeg), clRed );
Responder Con Cita