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: 1026
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: 1919

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