Dim nodoId As NodeId = NodeId.Parse(Node1TB.Text)
Dim variable As VariableNode = New VariableNode() With {
.Value = 0,
.DataType = 3,
.ValueRank = -1
}
Dim Result As BuiltInType = TypeUtils.GetBuiltInType(nodoId, m_session.Cache)
Result is always NULL
GetBuiltInType return null
Moderator: uasdknet
- Support Team
- Hero Member
- Posts: 3072
- Joined: 18 Mar 2011, 15:09
Re: GetBuiltInType return null
Hello DANILOMARIO,
your method call seems right. We assume you try to get the BuiltInType with the NodeId of a Variable.
GetBuiltInType can only be used with NodeIds of DataType nodes.
You can read the DataType attribute at your Variable and then use GetBuiltInType on that DataType NodeId.
your method call seems right. We assume you try to get the BuiltInType with the NodeId of a Variable.
GetBuiltInType can only be used with NodeIds of DataType nodes.
You can read the DataType attribute at your Variable and then use GetBuiltInType on that DataType NodeId.
Best regards
Unified Automation Support Team
Unified Automation Support Team