趋势图

使用趋势图操作处理趋势图。

注:

关于命名规范和脚本关键字的信息,请参阅以下内容。
命名规范

 

文本

changeTrendGraphMode($GraphicObject.TrendGraph1);
         2                       1

1: 趋势图

2: 操作

 

可使用这些操作执行以下工作:

趋势图中的设置:

[Mode change]

[Mode change]

文本

changeTrendGraphMode(TRENDGRAPH);

实现历史和实时模式的切换。
[Move Cursor to New data point]

[Move Cursor to New data point]

文本

moveTrendGraphCursor(TRENDGRAPH, $Enums.DataPoint.New, 1);          

在历史模式下,将光标位置显示向前移动指定数量。
[Move Cursor to Past data point]

[Move Cursor to Past data point]

文本

moveTrendGraphCursor(TRENDGRAPH, $Enums.DataPoint.Past, 1);          

在历史模式下,将光标位置显示向后移动指定数量。
[Move Graph plot to New time]
[Move Graph plot to New time]
文本

moveTrendGraphPlot(TRENDGRAPH, $Enums.GraphPoint.NewTime, 1, $Enums.Time.Day);  

在历史模式下,将显示的时间轴向前移动到指定时间。
[Move Graph plot to Past time]
[Move Graph plot to Past time]
文本

moveTrendGraphPlot(TRENDGRAPH, $Enums.GraphPoint.PastTime, 1, $Enums.Time.Day);

在历史模式下,将显示的时间轴向后移动到指定时间。