Jump to content
OMRON Forums

Steven Beaumont

Members
  • Posts

    3
  • Joined

  • Last visited

Steven Beaumont's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter

Recent Badges

0

Reputation

  1. Thanks used this code but it locked up system if it is run on every plc cycle struct timeval MyTimeVal; gettimeofday(&MyTimeVal, NULL); Which code would be best in your opinion. Regards Steven
  2. Sorry I have already passed the stage of getting time synchronised to a master clock. Since my last post I have also got system time from the Linux operating system using C code, thank you for replying anyway. Regards Steven
  3. I have been working on capturing encoder positions and logging it relative to real world UTC time. I have the Linux operating system synced to a ptp time source but the only access to this time I have found is the C++ code "time()" which give time as an integer in seconds, is there a method to get sub second time from within C code, I am looking for at least millisecond resolution anything better would be a plus. I have already tried to use "ftime()" but found it crashed the system. any help here would be appreciated. Regards Steven
×
×
  • Create New...