HTUpdateToCurrentTime() Function
- Last UpdatedFeb 22, 2017
- 1 minute read
The HTUpdateToCurrentTime() function retrieves and shows the data with an end time equal to the current time. The start time is equal to end time minus the width of the chart.
Category
Historical
Syntax
HTUpdateToCurrentTime(Hist_Tag);
Argument
Hist_Tag
HistTrend tag assigned the name of the historical trend.
Example
The following statement retrieves and shows data for the Trend1 historical tag at the current time:
HTUpdateToCurrentTime("Trend1");
If the current time is 3:04 PM and the width of the trend is 60 seconds, the new end time is 3:04 PM. The new trend start time is 3:03 PM.