【问题标题】:How to get the DataType property of a node in OPC.UA如何在 OPC.UA 中获取节点的 DataType 属性
【发布时间】:2019-09-17 02:18:40
【问题描述】:

我是 Opc.Ua 的新手,我想列出服务器中的所有节点。现在我可以得到所有节点的ReferenceDescription对象DisplayName等等,除了DataType。我尝试使用TypeDefinitionTypeIdReferenceTypeId 的参数调用session.NodeCache.Find,但它们都无法获得正确的DataType。那么如何根据ReferenceDescription 对象和Session 对象获取DataType 呢?

【问题讨论】:

    标签: c# opc opc-ua


    【解决方案1】:

    您应该调用读取服务来读取DataType 属性。您可能还想阅读ValueRankArrayDimensions 属性。

    【讨论】:

      猜你喜欢
      • 2013-03-01
      • 1970-01-01
      • 2022-07-01
      • 2019-10-06
      • 2010-11-08
      • 1970-01-01
      • 1970-01-01
      • 2011-06-11
      • 1970-01-01
      相关资源
      最近更新 更多