Solution for Extending Historical Data Storage Duration and Exporting Method

Problem Description: I wish to store historical data for a longer duration and import it into my computer for analysis using a viewer program I’ve created. Despite setting the sampling total value in historical settings to the maximum, it falls short of the desired storage duration. After applying the amount saved to the sampling total, I aim to extend the storage duration by creating another file (or renaming the existing one) and saving it as multiple files, but I’m unsure how to proceed. Additionally, when I open the log file (Log_SAMKOON) in text form, some content gets corrupted. Are there any Chinese characters in the log file? Log files should not contain anything other than English and numbers. Is this possible? Also, if you have any sample PJTs to share, as I lack experience with this feature, please do so. Kindly also share examples of the script section. The more samples, the better.

Answer: Currently, historical data supports a maximum storage of 20M. However, you can employ certain methods to extend the storage duration and export data.

  1. Split Historical Data Files: You can attempt to extend the storage duration by creating multiple files. This can be achieved by automatically creating a new file when each file reaches its maximum size. You can script this process to monitor the size of historical data files and create new ones when necessary, thus retaining historical data for a longer period.
  2. Export Historical Data: Utilize special registers (such as LB60128) to export historical data. The exported historical data files are named according to timestamps. You can analyze them by opening them with Windows Notepad or a similar text editor on your computer.
  3. Address Log File Corruption: If you encounter corrupted content when opening the log file (Log_SAMKOON) in text form, it might be due to the presence of Chinese characters or other non-English and numeric characters in the log file. Ensure that the log file contains only English and numeric characters to avoid corruption. You can rectify this by checking the log file’s content and removing any non-English and numeric characters.
  4. Sample PJTs and Script Examples: To enhance your understanding of these features, you can search for sample PJTs and script examples online or refer to documentation and support resources provided by your device manufacturer. Manufacturers often offer sample projects and scripts to help users grasp the utilization of various device features.

In conclusion, by splitting historical data files, exporting historical data, ensuring the content of log files adheres to standards, and referencing sample PJTs and script examples, you should be able to utilize your device more effectively and extend the storage duration of historical data. For further assistance or guidance, feel free to reach out to your device manufacturer or professional technical support team.

Related examples

Leave a Comment