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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "Help and Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
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?
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.
View and moderate all "Help and Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
How do I restart; postprocess?
Postprocess runs each time the capture file closes, so capture restart checkbox will make postprocess run each time also