![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
![]() |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
|
|
#1
|
|||
|
|||
|
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 ); |
![]() |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Representar una linea de Tiempo | Edgtho | Varios | 5 | 29-04-2011 23:21:10 |
| Problema con TChart | yomismo24 | Gráficos | 0 | 21-08-2008 17:56:35 |
| problema con Legend TChart | VRO | Gráficos | 1 | 27-12-2006 11:19:16 |
| Componente para representar diversa informacion | Trisckel | Varios | 4 | 03-11-2006 11:23:58 |
| Representar coordenadas 3D | blueicaro | OOP | 5 | 20-04-2006 18:03:14 |
|