Changing the Period of reports

Hi

I am planning to use the Reports and devices to produce a CSV file on a periodic period. eg. A new line of a tag value every minute.

However is there anyway to make the period dynamic, for example, we configure the period of the Report as 00:01:00 (1 minute) but can change it eg. for example to 5 minutes, according to the user's selection later on in runtime.

Any way of implementing such a requirement?

Kelvin

  • You could use the report's Trigger expression. Then, the report only runs when the trigger becomes TRUE. Use an expression like (TimeMin(TimeCurrent()) MOD ReportRate) = 0

    So, if you set your ReportRate variable (probably a persisted memory tag) to 5 then the report will only run if the current time (in minutes after the hour) is a multiple of 5.