Please consider registering

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
Question regarding the visibility of events
April 8, 2021
15:25, EEST
Forum Posts: 3
Member Since:
January 31, 2021
sp_UserOfflineSmall Offline

Greetings, I’m presently working on a thesis project utilizing the Java SDK to develop a server program. I am testing the method / event functionality using the Prosys Browser. I have hit something of a snag however. In the samples provided (as well as the tutorial) it is simply stated that a new BaseEventType object can be created within a function of the custom NodeManagerUaNode object (as it is done in the sample code). This has, however, not worked. I am unable to see those events in the the Browser no matter which object I monitor.

The only success I’ve had in being able to monitor events is by creating a BaseEventType node as part of the DeviceSet within the address space. This is far from ideal however. I feel as if I’ve missed something obvious. Because of that any ideas are appreciated.

April 9, 2021
9:08, EEST
Bjarne Boström
Forum Posts: 633
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Please clarify that are you trying to make a new Event type as in a new ObjectType node or are you trying to “trigger” a BaseEventType (type’d) Event?

Note that the literal “BaseEventType” is an abstract type (IsAbstract Attribute is true). Though, techically I do not think we actually prevent making an instance of it, but maybe we should..

Is your Event a subtype of ConditionType or anything else?

If a ConditionType subtype, you will NodeManagerUaNode.createInstance a node for it and then you can node.triggerEvent(…) for it. The node will remain in the address space and typically it has Methods etc. to change the state of it or it might have Properties to show some limit values etc.

If it is anything else, it is a “one-shot” event, for which there is no node. For those you must use NodeManagerUaNode.createEvent(…). Technically the way it currently works is that “virtual nodes” are constructed and then deleted when triggerEvent is called for the node that createEvent returned. These events can be observed by monitoring the Server node.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 267

Currently Online:
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 109

pramanj: 86

ibrahim: 71

kapsl: 57

gjevremovic: 49

TimK: 41

fred: 41

Fransua33: 39

Xavier: 34

rocket science: 33

Member Stats:

Guest Posters: 0

Members: 1283

Moderators: 15

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1100

Posts: 4643

Newest Members:

henryking123, pcygraig5029, corejavatuts, jaynelumpkin4, nandant07, vnd18, arnetteleverett, autumnzzi6, vickiviera, dianames129491

Moderators: Jouni Aro: 869, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 633, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Teppo Uimonen: 21, Markus Johansson: 30, Matti Siponen: 100, Lusetti: 0

Administrators: admin: 1