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
Some "References" go missing while loading the nodeset.xml
June 6, 2018
16:39, EEST
Avatar
ashwin.fernandes
Member
Members
Forum Posts: 7
Member Since:
May 24, 2018
sp_UserOfflineSmall Offline

Hi,

I’m currently trying to load a type definition nodeset file on the server. While doing so I found that some type references went missing because of which the types couldn’t be found at the location they were supposed to be found.
I created a model where certain types were subtyped from DeviceType(from DI model). As seen in the example below, GatewayDeviceType, ProfibusDeviceType and PBIDeviceType are subtypes of DeviceType. PBIDeviceType has a SubDevices component which is of ConfigurableObjectType which brings along with it a SupportedTypes folder. This folder should contain the type definitions of device types which can be instantiated which in my case are the GatewayDeviceType and ProfibusDeviceType.
But after loading the model in the server and viewing it from the client (UaExpert), it seems that the SubType reference to DeviceType from GatewayDeviceType and ProfibusDeviceType go missing and therefore cant be seen underneath DeviceType. Only PBIDeviceType can be seen.
After some trial and error I figured that the SDK could not realize both the HasSubType and Organizes reference while being used together for a Type. I figured this out because when the Organizes reference to SupportedTypes were removed from GatewayDeviceType and ProfibusDeviceType, these Subtypes were visible underneath DeviceType.

Example:
DeviceType
I->GatewayDeviceType (HasSubType)
I->ProfibusDeviceType (HasSubType)
I->PBIDeviceType (HasSubType)
I->SubDevices (HasComponent)
I->SupportedTypes (HasComponent)
I->GatewayDeviceType (Organizes)
I->ProfibusDeviceType (Organizes)

June 6, 2018
17:24, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1032
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

If you can send the Nodeset to uajava-support@prosysopc.com I can take a look. I assume you did load the DI model first before loading your model?

Your example looks weird, but assuming it as-is, if you really did add a Organizes Reference from DeviceType to something, it should be noted that the SourceNode of Organizes ReferenceType cannot be anything other than an Object node (or well View as well, but those are not used anywhere), and generally it should be a FolderType Object instance.

June 6, 2018
17:55, EEST
Avatar
ashwin.fernandes
Member
Members
Forum Posts: 7
Member Since:
May 24, 2018
sp_UserOfflineSmall Offline

Sorry, there was some formatting problem. Below is actually how it looks like

DeviceType
  |–>GatewayDeviceType (HasSubType)
  I–>ProfibusDeviceType (HasSubType)
  I–>PBIDeviceType (HasSubType)
      I–>SubDevices (HasComponent)
          I–>SupportedTypes (HasComponent)
              I–>GatewayDeviceType (Organizes)
              I–>ProfibusDeviceType (Organizes)

Yes I did upload the DI Information model first. The organizes references is only from SupportedTypes which is a Folder instance.

June 7, 2018
16:24, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1032
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

This ended up being a SDK bug when loading the model. More than one inverse reference of certain reference types causes them to be ignored. Will be fixed for the next release.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
11 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: 729

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala

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

Administrators: admin: 1