eHealth, Realterm and KST

Hey.
Is there someone that are familiar with the eHealth from cooking-hacks?
I am trying to figure out to make graphs for the EMG setup.

I get some numbers and stuff, but I it seems like the time scale is off and it is scaled in microseconds when i get it to KST from Realterm.
I have tried the date/time interpretation in KST to convert it to seconds, but it still seems a bit off.
And the graph in KST is not stuck to the x-axis, its annoying.

I can see that Realterm has a Matlab TimeStamp option, could this be a better solution?

Best regards
Even

Is there an Arduino program involved with this anywhere ?

You could start by explaining that your trying get serial data out of an ElectroMyography machine. (If I understand it correctly)

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?

Shouldnt the first number be in microseconds?

I don't see anything to say it isn't.
What are you saying?

What is the output format of the data directly from the machine plugged atraight into pc ?

Forgot to say that this:

35150744;15
35151456;15
35152160;13
35152856;18
etc.

is the first numbers that i get from the Serial Monitor on the Arduino after starting the code with "C".
Why does it start to count on 35seconds?

But nevermind, I'll just use another code with controlled delays, so I know samples per second.

Thank you anyways

I don't want to know what you are getting on the arduino. I want to know what you get when you connect it directly to a PC with no arduino ?

Probably nothing.... http://www.cooking-hacks.com/ehealth-sensors-complete-kit-biometric-medical-arduino-raspberry-pi

I think your serial read code is wrong. You're only reading a byte. You need to read a string.
Have a look at this: