LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

OPC UA Get Node Attribute only returns datatype: 24

Hello all,

 

I have an OPCUA server that I'm trying to read data from. The datatypes on the server vary, so there's floats, UInt16's ect. 

If I connect to the server using an application such as UA Expert it shows different nodes as different data types, however, if I browse these nodes in LabVIEW using Get Node Attribute the Datatype value is 24. This is unexpected, as everything has the same datatype, and also datatype 24 is not listed as value on the help page.

 

Anyone know what could be causing this?

 

Cheers,

 

Gazebo

______________________________________________________________


______________________________________________________________
0 Kudos
Message 1 of 7
(3,701 Views)

Here's the code and UA Expert view showing the datatype as UInt32

 

OPCUA24.png

 

As you can see on the Get Node Attribute help page, 24 is not listed as a datatype: http://zone.ni.com/reference/en-XX/help/371618J-01/lvmve/opcua_get_attri/

UInt32 should correspond to a datatype of 7.

______________________________________________________________


______________________________________________________________
0 Kudos
Message 2 of 7
(3,690 Views)

Hello Gazebo,

Is "Get Node Attribute VI" returning any error code?

Best regards,

 

Jovan N. - Application Engineering
0 Kudos
Message 3 of 7
(3,581 Views)

There is no error message. The other attributes seem correct, just the datatype value remains the same.

______________________________________________________________


______________________________________________________________
0 Kudos
Message 4 of 7
(3,565 Views)

Could you confirm me that, by ading an indicator in "Get Node Attribute VI" error node, there are not error messages?

BR,

 

Jovan N. - Application Engineering
0 Kudos
Message 5 of 7
(3,539 Views)

Sure!

 

OPCDT.png

______________________________________________________________


______________________________________________________________
0 Kudos
Message 6 of 7
(3,527 Views)

Here's the output of the GetNodeAttribute vi itself. <24> is not even a value in the Datatype enum.

 

opcmakesnosense.png

______________________________________________________________


______________________________________________________________
0 Kudos
Message 7 of 7
(3,500 Views)