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
Cannot re-browse folders in MyNodeManager
July 12, 2022
13:47, EEST
Avatar
workinprogress
Member
Members
Forum Posts: 3
Member Since:
July 12, 2022
sp_UserOfflineSmall Offline

Hi Team,
I am new in the forum and a newbie in Prosysopc, so please tell me if the information I give is incomplete/not clear. Also I would like to add an image to make it clearer but I cannot find the way. In Opc Expert I would like to show the folder tree in the left frame. It works perfectly when I first receive the data from the server. So far so good, by contrast when I modify the name of the folder on the server, the folder has still the same name in the client, and their tags are appended to the already existing entries. Also, a new folder with the data of the old one and the name of the new one is created. I am using MyNodeManager(extends NodeManagerUaNode).

The code is the following:

private FolderTypeNode myObjectsFolder;
private UaObjectNode myDevice;
final UaObject objectsFolder = getNodeManagerTable().getNodeManagerRoot().getObjectsFolder();
myObjectsFolder = createInstance(FolderTypeNode.class, “MyObjects”, myObjectsFolderId);
this.addNodeAndReference(objectsFolder, myObjectsFolder, Identifiers.Organizes);

final NodeId myDeviceId = new NodeId(ns, “MyDevice”);
myDevice = new UaObjectNode(this, myDeviceId, “MyDevice”, Locale.ENGLISH);
myObjectsFolder.addReference(myDevice, Identifiers.HasComponent, false);

QualifiedName deviceQualifiedName = new QualifiedName(getNamespaceIndex(), devicePath);
NodeId deviceId = new NodeId(getNamespaceIndex(), “MyLevel”);
UaNode myLevel = new UaObjectNode(this, deviceId, deviceQualifiedName, new LocalizedText(devicePath, Locale.ENGLISH));

if(!getNodeManagerTable().hasNode(myLevelId)) {
myDevice.addComponent(myLevel);
}

Does anyone have an idea what is happening and how to fix the issue?
Thanks and regards.

July 12, 2022
15:38, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Maybe the problem is in the client application that you are using, that it does not refresh the nodes after your updates. Please check out with Prosys OPC UA Browser and use the Refresh action in the address space after you have modified the server to update it.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
20 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

fred: 41

Member Stats:

Guest Posters: 0

Members: 678

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, Flores Frederick

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