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
TUaServerAddressSpace.LoadModel question
November 8, 2022
12:59, EET
Avatar
Guido Niewerth
Member
Members
Forum Posts: 13
Member Since:
August 23, 2022
sp_UserOfflineSmall Offline

(Solved, problem on user side)

November 8, 2022
14:05, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

1) If LoadModel is called, and succeeds, all the nodes in the model should be in the address space. Typically, the nodesets define more types than actual instances, so maybe your nodes are not where you are looking for them?

2) There seems to be an error in the doc of Init – it only loads the standard model “Opc.Ua.NodeSet2.xml” and does not attempt to load any other models. ModelFolder is just defining the default folder to look for these models.

What other tools have you used to produce or verify the model?

November 8, 2022
17:09, EET
Avatar
Guido Niewerth
Member
Members
Forum Posts: 13
Member Since:
August 23, 2022
sp_UserOfflineSmall Offline

Hello Jouni,

thank you for your, as always, quick response. It turned out the problem was the model file provided by our customer. The node IDs had an invalid namespace index, so the server was unable to create the appropriate items.

I´m sorry I wasted your time.

Kind regards,
Guido

November 9, 2022
16:24, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Hi Guido,

No problem. I am happy you managed to solve it. Maybe there is something to improve, if you didn’t get any errors from loadModel, though.

BR, Jouni

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
14 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: 727

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1525

Posts: 6456

Newest Members:

ernestoportus31, martin123, rickie5305, shaylamaggard4, rickyjuarez140, jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall

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

Administrators: admin: 1