ptGetTrendType() 函数
- Last UpdatedSep 24, 2024
- 1 minute read
ptGetTrendType() 函数可以在脚本中用于返回一个值,此值指出“16 笔趋势”的当前模式是显示历史还是实时数据。
类别
笔趋势
语法
ptGetTrendType(TrendName);
参数
TrendName
趋势的名称。TrendName 必须是字符串常量或消息标记。
返回值
返回趋势类型:
0 = 历史趋势
1 = 实时非滚动趋势
2 = 实时趋势
示例
下例返回一个值,指出 PumpPress 趋势是显示历史还是实时数据。
ptGetTrendType("PumpPress");