eHealth, Realterm and KST

Raschemmel:
Yes, that is correct.
But i get the serial data just fine, the problem is to interpret the timescale.

UKHeliBOb:
The eHealth is run by arduino, Realterm is logging the data to be able to print it as .txt.

The code from cooking-hacks:

#include <eHealth.h>

extern volatile unsigned long timer0_overflow_count;
float fanalog0;
int analog0;
unsigned long time;


byte serialByte;
void setup() {
  Serial.begin(9600);
  Serial.println("Starting...");
}

void loop() { 
  while (Serial.available()>0){  
    serialByte=Serial.read();
    if (serialByte=='C'){        
      while(1){
        analog0=eHealth.getEMG();  
        // Use the timer0 => 1 tick every 4 us
        time=(timer0_overflow_count << 8) + TCNT0;        
        // Microseconds conversion.
        time=(time*4);   
        //Print in a file for simulation
        Serial.print(time);
        Serial.print(";");
        Serial.println(analog0);

        if (Serial.available()>0){
          serialByte=Serial.read();
          if (serialByte=='F')  break;
        }
      }
    }
  }
}

From that I get:
35150744;15
35151456;15
35152160;13
35152856;18
etc.

Shouldnt the first number be in microseconds?