Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
guidance in finding the HasTypeDefinition
June 18, 2021
15:09, EEST
Avatar
Rakshan
Member
Members
Forum Posts: 30
Member Since:
June 2, 2019
sp_UserOfflineSmall Offline

Hello,
I need some guidance in finding the HasTypeDefinition information.
For example: I have a server with a node, “nodeA”( ns =3, s= nodeA) of type “nodeAType”(ns=2,s=nodeAType).
I am working trying to extract this information and namespace index of the type.
i.e I need the “nodeAType” and the namespace(ns =0) information. Currently, I have the information of nodeA.

Could you guide me here please?

Regards,
Rak

June 18, 2021
16:05, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 346
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

Are you looking for the TypeDefinition on the Client side or the Server side? In either case, I’m assuming you’re using the Prosys OPC UA SDK for Java to get it.

On the Client side, you can use UaClient.getAddressSpace().getTypeDefinition(NodeId nodeId) to get the NodeId of the TypeDefinition of the Node with the NodeId used as the input of the method.

On the Server side, you can use UaServer.getAddressSpace().getNode(NodeId nodeId) to first get the Node with the known NodeId, then cast it to UaInstance and use UaInstance.getTypeDefinitionId() to get the NodeId of the TypeDefinition.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 735

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1523

Posts: 6449

Newest Members:

rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1