ReportOffset

For RTMC project pages where a Report Range component is present, this function will specify an offset, in nanoseconds, that will be subtracted from the report's start time.  This function will not have an effect in any other context.

Syntax

ReportOffset( interval )

Remarks

This function is useful for a report that contains a statistical function that requires data from before the report’s start time. This function should appear at the beginning of the expression and either be enclosed in parentheses or followed by a semi-colon. The interval parameter specifies the interval, in nanoseconds, that will be subtracted from the report’s start time. The predefined time constants can be used to easily input the number of nanoseconds in a microsecond (nsecPerUSec), millisecond (nsecPerMSec), second (nsecPerSec), minute (nsecPerMin), hour (nsecPerHour), day (nsecPerDay), or week (nsecPerWeek).

Example

The following example will subtract one day from the report’s start time:

ReportOffset(nsecPerDay); MaxRunOverTime("Server:CR1000.Second.Temp_F",Timestamp("Server:CR1000.Second.Temp_F"),nSecPerDay)

Without the ReportOffset function, the first 24 hours of the report will display the maximum since the start time. The 24-hour maximum will only be displayed 24 hours into the report.