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: 321
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: 518

Currently Online:
12 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

ibrahim: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

TimK: 41

Member Stats:

Guest Posters: 0

Members: 677

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6259

Newest Members:

DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule, rashadbrownrigg, christi10l, ahamad1

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1