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

AVEVA™ InTouch HMI

HTGetValueAtScooter() 函数

  • Last UpdatedMar 21, 2018
  • 1 minute read

HTGetValueAtScooter() 函数返回指定的指示器位置、趋势以及笔号处的所请求的类型的样本值。UpdateCount 参数在函数处理完毕之后导致对表达式进行求值。

类别

历史

语法

RealResult=HTGetValueAtScooter(Hist_Tag, UpdateCount,ScootNum,ScootLoc,PenNum, ValType_Text);

参数

Hist_Tag

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

UpdateCount

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

ScootNum

代表左指示器或右指示器的整数:

1 = 左指示器

2 = 右指示器

ScootLoc

代表趋势的 .ScooterPosRight 或 .ScooterPosLeft 点域的实数。

PenNum

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

ValType_Text

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

PenValue = 指示器位置处的值。

PenValid = 如果该值无效,则返回 0;否则返回 1。

在 HTGetValueAtScooter() 函数中使用 ValType_Text 参数时,使用列出的有效类型之一。

示例

如果值是一个实际的样本,则以下函数返回 1;如果值对于右指示器当前位置上 Trend1 趋势的 3 号笔而言无效,则以下函数返回 0:

HTGetValueAtScooter("Trend1",Trend1.UpdateCount, 2,Trend1.ScooterPosRight,3, "PenValid");