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

AVEVA™ InTouch HMI

ptSetTimeAxisToCurrent() 函数

  • Last UpdatedSep 24, 2024
  • 1 minute read

在脚本中,ptSetTimeAxisToCurrent() 可用于计算图表当前的时间跨度以及图表的结束时间。

类别

笔趋势

语法

ptSetTimeAxisToCurrent(TrendName);

参数

TrendName

趋势对象的名称。TrendName 必须是字符串常量或消息标记。

示例

ptSetTimeAxisToCurrent() 函数将 PumpPress 趋势的结束日期与时间设置为当前日期与时间。

ptSetTimeAxisToCurrent("PumpPress");

In This Topic