The last but one parameter of SnapshotReport, Mode, sets the report type.
For snapshot report types, set Mode to 4.
For total report types, set Mode to 11.
An example call for a 20 minute report:
\SnapshotReport(Reporter, Start, End, Tags, Vars, 20 * 60 { 20 minutes }, ReportName, 11 { Totals });
For Mode 11, SnapshotReport has an additional optional parameter, StaleTime that sets the maximum validity period for a value. See the documentation on GetTagHistory for more info.
The last but one parameter of SnapshotReport, **_Mode_**, sets the report type.
For snapshot report types, set **_Mode_** to 4.
For total report types, set **_Mode_** to 11.
An example call for a 20 minute report:
````
\SnapshotReport(Reporter, Start, End, Tags, Vars, 20 * 60 { 20 minutes }, ReportName, 11 { Totals });
````
For **_Mode_** 11, SnapshotReport has an additional optional parameter, **_StaleTime_** that sets the maximum validity period for a value. See the documentation on [GetTagHistory](https://www.trihedral.com/help/Content/Pro_Functions/GetTagHistory.htm?Highlight=GetTagHistory) for more info.
Software Developer with Trihedral
edited Jan 24 '18 at 11:14 am