TimeMode property
- Last UpdatedJul 15, 2024
- 1 minute read
During run time, the value of the TimeMode property can be modified to change the type of trend time period.
-
When TimeMode is 0, the trend time period mode is Moving. The end time of the trend is the current time. The default.
-
When TimeMode is 1, the trend time period mode is Fixed. The start time of the trend is when the Trend Pen first appears in the WindowViewer, also the start time changes as time passes.
The value of TimeMode is ignored if the value is neither 0 nor 1.
When the time period changes from Moving to Fixed during run time, the trend’s start time and end time remain the same before switching, and the data remains as well. When the time period changes from Fixed to Moving during run time, data is retrieved again before drawing the trend. The trend’s start and end times are adjusted automatically by Moving mode.