gshort Posted September 2, 2011 Share Posted September 2, 2011 I plan to use Gather in rotary fashion (Gather.Enable = 3) and read out from the Gather buffer in a background program. Since this will be a "best effort" approach it is possible that if the background program doesn't get enough cycles it might miss reading samples from the buffer. Is there any indication back from the Gather hardware that an overflow has occurred ? Although there is not much you can do about it, it would be useful to be able to indicate that a loss in data has occurred. Thanks Graham Link to comment Share on other sites More sharing options...
bradp Posted September 5, 2011 Share Posted September 5, 2011 I do not think there will be any indication but you will be able to see that this has happened because the time column in the gathered data will skip some samples. Link to comment Share on other sites More sharing options...
gshort Posted September 5, 2011 Author Share Posted September 5, 2011 I'm actually setting up the Gather buffer from a background program, rather than using Plot. I had tried adding Sys.Time into the Gather buffer but this doesn't seem to work for me. If you try dump Sys.Time.a for instance you just get Sys.Time not a valid address to put in the Gather buffer. Am I missing something here ? Link to comment Share on other sites More sharing options...
bradp Posted September 5, 2011 Share Posted September 5, 2011 Look at how our plot sets this up. I believe we use Sys.ServoCount. Sys.Time is a function so it can not be used. Link to comment Share on other sites More sharing options...
gshort Posted September 5, 2011 Author Share Posted September 5, 2011 Yep it looks like its Sys.ServoCount. Thanks for the pointer. Link to comment Share on other sites More sharing options...
Recommended Posts