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

AVEVA™ InTouch HMI

ptSetTimeAxis() 函数

  • Last UpdatedSep 24, 2024
  • 1 minute read

在脚本中,ptSetTimeAxis() 函数可用于设置趋势的起始和结束日期与时间。

类别

笔趋势

语法

ptSetTimeAxis(TrendName,StartDateTime,EndDateTime);

参数

TrendName

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

StartDateTime

趋势起始的日期与时间。起始日期和时间的格式为:dd/mm/yyyy hh:mm:ss AM/PM。

EndDateTime

趋势结束的日期与时间。起始日期和时间的格式为:dd/mm/yyyy hh:mm:ss AM/PM。

示例

ptSetTimeAxis() 函数将趋势的起始和结束日期与时间设置为从 2007 年 5 月 22 日 8:30 开始,时间跨度是 25 小时。

ptSetTimeAxis ("PumpPress", "05/22/2007 08:30:00 AM", "05/23/2007 09:30:00 AM");

In This Topic