Hello,
I am trying to capture data for a long period of time into a text file. Currently i have the data captured every 30 days. However I need to keep track of the file size. Also every 30 days i need to overwrite the file. Is there a way Realterm can basically create a new file for me every 24 hours for instance? I came across this example line of code this site and my question is where does it go.
realterm capsecs=86400 capautoname=1 capfile="c:\temp\temperature_log.txt" capture=3
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can set a maximum file size or a max length of time to capture for, before closing the file.
You can make it break files at an EOL for ascii files.
You can make it restart automatically.
It can restart the same file, or a new autonamed file
It can run a post-process batch file when the file is closed to move/copy/zip/upload or otherwise process the data
Last edit: Simon Bridger 2021-06-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am trying to capture data for a long period of time into a text file. Currently i have the data captured every 30 days. However I need to keep track of the file size. Also every 30 days i need to overwrite the file. Is there a way Realterm can basically create a new file for me every 24 hours for instance? I came across this example line of code this site and my question is where does it go.
realterm capsecs=86400 capautoname=1 capfile="c:\temp\temperature_log.txt" capture=3
Thanks
Yes, (make sure you are on a current version from https://realterm.i2cchip.com )
https://realterm.sourceforge.io/#Capture
You can set a maximum file size or a max length of time to capture for, before closing the file.
You can make it break files at an EOL for ascii files.
You can make it restart automatically.
It can restart the same file, or a new autonamed file
It can run a post-process batch file when the file is closed to move/copy/zip/upload or otherwise process the data
Last edit: Simon Bridger 2021-06-22