Thermo Scientific HERAcell 150i Instrucciones De Manejo página 144

Instrucciones de manejo | HERAcell
13
13
Anexo Comunicación de datos
Anexo Comunicación de datos
Escritura de datos en fichero
50115193 B / 11.2010
®
150i / 240i
// Recortar decimales
z = z / 10;
// Calcular enteros y copiar
for (i = 0; i < 12; i++){
// Calcular valor
a[i] = z%10+0x30;
// Reducir valor prescrito
z = z/10;
//¿Número completamente copiado?
if (z == 0)
}
for ( ; i >= 0; i--)b[l++] = a[i];
// Calcular y copiar decimales
b[l++] = ',';
// Calcular valor
b[l++] = rest%10+0x30;
return (l);
}
read_datalogger
int read_datalogger ()
{
#define SIZE_DATA2
#define EVENT_STATUS 0x01
unsigned char buffer[300], string [300];
unsigned char zahlenstring [150],datestring ,timestring ;
unsigned char excelstring [150];
unsigned char len, h,i;
unsigned int
#define EVENT_DATA.END 0xFF
char data;
int GetTele = 0
GetError = 0,
// Escribir la línea titular del fichero
WriteFile (FileHandle, "Date;Time;Comment;Temp Act.;CO2 Act.;O2
Act.;rH Act.;Temp Set;CO2 Set;O2 Set;rH Set;\n", 85);
// Ciclo infinito
while (1)
{
// Poner el registrador de datos en comienzo y leer
if (!GetTele){
send_telegramm ("2400");
}
else{
// Leer otros grupos de datos
send_telegramm ("2401");
}
len = get_telegramm (buffer);
// Ningún telegrama recibido
if (!len) {
GetError ++;
// Nueva demanda
send_telegramm ("2402");
len = get_telegramm (buffer);
// Nuevamente ningún telegrama recibido
if (!len) return 1;
}
// Elevar contador de telegramas
GetTele ++;
break;
16
read_count,status;
144
loading

Este manual también es adecuado para:

Heracell 240i