Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

HTGetValue() 函数

  • Last UpdatedMar 21, 2018
  • 1 minute read

HTGetValue() 函数为指定的趋势笔返回所请求的类型的值。

类别

历史

语法

RealResult=HTGetValue(Hist_Tag,UpdateCount, PenNum,ValType_Text);

参数

Hist_Tag

指定了趋势的名称的“历史趋势”标记。

UpdateCount

代表趋势的 .UpdateCount 点域的整数。

PenNum

代表趋势的笔号(从 1 到 8)的整型标记或值。

ValType_Text

代表要返回的值的类型的字符串:

PenAverageValue = 整个趋势的平均值。

PenMaxValue = 整个趋势的笔的最大值。

PenMinValue = 整个趋势的笔的最小值。

PenMaxEU = 整个趋势的最大工程单位值。

PenMinEU = 整个趋势的最小工程单位值。

PenStdDev = 整个趋势的标准偏差。

附注

函数按实数形式返回所请求的值。

示例

以下语句获取从 PumpPress 趋势中检索的 2 号笔数据的标准偏差。该值存储在 LeftHemisphereSD 内存实型标记中:

LeftHemisphereSD=HTGetValue("PumpPress", PumpPress.UpdateCount,2,"PenStdDev");