Time stamp calculations

Example user programs, projects, functions, program code, etc. for performing specific tasks

Time stamp calculations

Postby Jacob Paso » Fri Aug 04, 2017 3:18 pm

The Event Timer feature in the RMC200 requires calculating the difference between time stamp values. Each time stamp is stored in two registers. One register holds the number of whole seconds, and the other register holds the number of nanoseconds.

The attached TIMESTAMP_DIFF user function can be used in a user program to calculate time stamp differences. To use this function:
  1. Save the file to your computer.
  2. In the RMCTools project pane, expand Programming, right-click User Functions, and choose Import User Functions.
  3. Browse to the file and click OK.
  4. Create a user program.
  5. In a step in the user program, add the Expression (113) command. When editing the expression, the TIMESTAMP_DIFF function will appear on the Functions tab of the Expression Editor.
(2.15 KiB) Downloaded 66 times
Jacob Paso
Posts: 530
Joined: Thu Jan 03, 2008 3:18 pm

Return to Examples

Who is online

Users browsing this forum: No registered users and 0 guests