tanakakai Posted April 19, 2013 Share Posted April 19, 2013 I'm trying to use Sys.Time as a marker for a data file (just a way to show when a sample was taken). However, when I type in Sys.Time.a, it gives the value of Sys.Time not the address at which it's stored. What is the address for Sys.Time? example terminal window: sys.Time Sys.Time=4029.52099447074715 sys.Time.a Sys.Time.a=4033.07312619812183 Link to comment Share on other sites More sharing options...
Sina.Sattari Posted April 19, 2013 Share Posted April 19, 2013 Are you tying to access the Sys.Time from a C-program? If so, please see the following post: http://forums.deltatau.com/showthread.php?tid=106 Link to comment Share on other sites More sharing options...
tanakakai Posted April 22, 2013 Author Share Posted April 22, 2013 No, I am trying to add it to a gather from within a script motion program. Link to comment Share on other sites More sharing options...
Sina.Sattari Posted April 22, 2013 Share Posted April 22, 2013 For time stamping the gather, you can point one of the gather locations to Sys.ServoCount register. The is a counter which increments by one every servo cycle. By multiplying the values gathered in this column to Sys.ServoPeriod in a post process, you can convert the time stamps to units of milliseconds. The same method has been used in the Plot program. Link to comment Share on other sites More sharing options...
Recommended Posts