Athanasios

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: printing of Timestamp of shr parsing #223399
    Athanasios
    Participant

    Hello Andrew. Now I have a new problem with regards to the timestamp. I can’t write it on a csv file, I get the same enormous number like before. Do I need a special conversion before passing it to a csv because it is uint64_t ?
    I passed integers and doubles into the csv without problems.
    Regards,
    Athanasios

    in reply to: printing of Timestamp of shr parsing #223397
    Athanasios
    Participant

    Hello Andrew.
    I figured out the mistake.
    I tried to print the timestamp while in the for loop that did the sweep.
    It worked with : printf(“%” PRIu64 ” \n”,state2.timestamp);

    Thanks for all the help.
    Regards,
    Athanasios Loukas

    in reply to: printing of Timestamp of shr parsing #223377
    Athanasios
    Participant

    Hello Nick and Andrew. Thank you for your replies.

    I used ” printf(“%llu \n”,state2.timestamp); ” like you suggested but still got an enormous undefined number.
    (Although I get this weird warning for %llu : “unknown conversion type character ‘l’ in format [-WFORMAT=] )

    Different result but still enormous number while trying with “%” PRIu64 ” \n”.

    I checked the signal hound code again, and there is a comment next to unint64_t timestamp saying //milliseconds since epoch. So the timestamp is encoded in epoch time format.

    I can’t figure out what is wrong. I am using C++, a GCC compiler.
    I imported the shr file to Spike and i saw that the timestamp I need to get is 20/3/19 9:37:46.

    I saw another function in the signal hound code called “vrtGetTime”. Will that also give me the timestamp?

    Athanasios

Viewing 3 posts - 1 through 3 (of 3 total)