关于回调函数的触发队列

已锁定

北方明珠

  • 帖子

    93
  • 精华

    27
  • 被关注

    18

论坛等级:侠圣

注册时间:2008-05-07

普通 普通 如何晋级?

关于回调函数的触发队列

433

0

2019-03-18 13:57:07

 问题:在脚本中调用dpConnect并触发相应的回调函数,运行时在日志中出现大量信息如下:

……

Script: Initialize
, callbackFunc, function has 200 pending runs -> DISCARDING!


分析:在帮助文档中,可以找到如下信息:


The default maximum amount of the queue (events that have to be executed) is 200. As soon as this amount is reached the system discards all calls except the youngest and processes only the last value. The queue can grow again. The maximum value can be set selective via the config entry ctrlMaxPendings in the UI and CTRL Manager sections.


 对于dpConnect函数,当注册的值发生变化时会触发相应的回调函数。如果出现上述信息,说明回调函数的触发速度大于实际处理速度(回调函数中代码的实际执行速度),导致队列排队,默认是200个长度的队列;如果队列不断增长并超过该长度,早期的触发将被丢弃,并且在日志中会显示上述消息。

关于回调函数的触发队列 已锁定
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC WinCC OA (原PVSS)

共有389条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

快扫描右侧二维码晒一晒吧!

再发帖或跟帖交流2条,就能晋升VIP啦!开启更多专属权限!

  • 分享

  • 只看
    楼主

top
X 图片
您收到0封站内信:
×
×
信息提示
很抱歉!您所访问的页面不存在,或网址发生了变化,请稍后再试。