简体   繁体   English

OPC UA采样率设置为0是否可以与OPC UA Ecplise Milo服务器一起使用

[英]Does opc ua sampling rate set at 0 work with an OPC UA Ecplise Milo server

Does the open source OPC UA Milo server support event based data sources? 开源OPC UA Milo服务器是否支持基于事件的数据源? Eg when the server sets sampling rate to 0 (zero) for a node (measuring point), would the server then produce all samples the event source produces? 例如,当服务器将某个节点(测量点)的采样率设置为0(零)时,服务器将生成事件源生成的所有采样吗? And if so where to look for an example or instruction how to achieve that? 如果是这样,在哪里寻找示例或说明如何实现? The example namespace of the example server seem to add attribute delegates that are reactive, ie they only produce values when asked by the subscription mechanism to do so. 示例服务器的示例名称空间似乎添加了可响应的属性委托,即它们仅在订阅机制要求时才产生值。

A sampling interval of zero means use the "fastest practical rate", which can mean report by exception or event-based if the underlying source supports it, but in the case of the example namespace it's not supported. 采样间隔为零表示使用“最快的实用率”,这表示如果基础源支持它,则表示通过异常或基于事件的报告,但是在示例名称空间的情况下则不支持。

An implementation of Namespace is free to handle that rate however it wants, including as event-based if the source actually supports it. 命名空间的实现可以随意处理所需的速率,包括在源实际支持的情况下基于事件的速率。 A namespace is simply told when items have been created, modified, or deleted, and it's the implementation's responsibility to then start sampling those items at the requested rate. 只是简单地告诉名称空间何时创建,修改或删除项目,然后由实施人员负责以请求的速率开始对这些项目进行采样。 The SDK will take into account any MinimumSamplingInterval attribute the node has set on it before instructing the namespace to start sampling. 在指示命名空间开始采样之前,SDK将考虑节点已在其上设置的任何MinimumSamplingInterval属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM