Menu

Data Logging

Anonymous
2017-12-01
2017-12-28
  • Anonymous

    Anonymous - 2017-12-01

    Hi,

    I am receiving lines of data from a transmitter at a much faster rate than I need to log. Is it possible to have a skip option to log only every, for example, 100 lines, before storing the data line?

     
  • Simon Bridger

    Simon Bridger - 2017-12-01

    Currently, you could use post-process batch file to thin/decimate the files with a batch file when capture closes.

    A couple of ways:

    Use SED to select 1ofN lines
    https://stackoverflow.com/questions/5545263/sed-how-to-remove-every-10-lines-in-a-file-thin-or-subsample-the-file/5545278 (Realterm SED is non-gnu sed)

    or

    Set capture so it EndsAfter 100 lines; restart;postprocess
    Now it will close and process capture file every 100 lines.
    Use TAIL (or head) in the post-process to keep just a single line from each file.

     
  • Anonymous

    Anonymous - 2017-12-27

    How do I restart; postprocess?

     
  • Simon Bridger

    Simon Bridger - 2017-12-28

    Postprocess runs each time the capture file closes, so capture restart checkbox will make postprocess run each time also

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB