How to manage the trend files stored on the SmartStruxure™ Lite Manager flash memory.
Examples and guidelines for the FTP transfer of trend files.
SmartStruxure Lite 2.4.3 and above
All data points collected by a TL object are saved in a text file stored on the SmartStruxure™ Lite Manager SD memory card (which has a storage capacity of 2 GB). This file is accessible at [ipaddress]
The trend.csv file contains the log of all TL objects on a SmartStruxure™ Lite Manager. It logs new data until it reaches a size of ~10 MB, when it will be renamed trend_date.csv for backup. A new trend.csv file will be created to record the new data.
In the context of your application, it may be of interest to retrieve the trend.csv file from the SmartStruxure™ Lite Manager for analysis. It is also important to remove these excess trend files since there is a risk of filling the SD card on the Manager.
An example of storage requirements are listed below:
- A Manager with 10 trend logs recording data every 10 minutes will record ~50 kB of data each day, for a total of ~350 kB per week.
- A Manager with 20 trend logs recording data every 30 seconds will record ~2 MB of data each day, for a total of ~14 MB per week.
The simplest way to automate this process is to use a Lua script to initiate a FTP file transfer to an FTP server on an event of your choice. The example shown in the application note below, the file transfer is initiated by a SmartStruxure™ Lite scheduler.
Once the file is transferred to the FTP server, you can rename the file to create a backup. Data collection will then continue in a new and empty trend.csv file. This way, any new transfer of the trend.csv file to the FTP server will be a complement of the preceding file.
This application note discusses the management of the trend files stored on the SmartStruxure™ Lite Manager flash memory, and provides examples and guidelines for the FTP transfer of these files.
Lua script examples can be found here