9:36, EET
November 29, 2016
Hello,
Is there a way to send events without generating “MyEventType” classes? For example we load an UA-Model.xml in which an eventtype & node is defined. We know the node ids (and also the ids of it’s properties) but we did not find a way to trigger them. Could you provide a code snippet?
Thanks!
15:43, EET
April 17, 2013
Hello Sascha,
Thank you for the question. The SDK is designed so that this is the only sensible way to deal with Events. Do you have some reason that generating or writing the EventType classes is not working for you? As you already have the UaNodeset file, the codegen should work nicely in this situation.
11:22, EET
November 29, 2016
Thanks for the answer,
we have a generic communication interface (currently using another protocol) and the variables which will be linked to the events is only known after the startup. Using classes would require that we generate and load them during runtime and then fill them via reflection. It would be much less error prone if we could skip this step and set the variables directly.
Would it be possible to send events without classes if we buy also the source code of the sdk?
br
Sascha
15:17, EET
April 17, 2013
Hi,
So, did I understand correctly that the UaNodeset file containing the event types will become available for your application only during the runtime? And after the file becomes available, you would like to be able to create EventTypes dynamically?
In the current version of the Java SDK, this kind of feature is not available even if you bought the source code edition. Of course ‘everything’ is possible, but it’s hard to estimate how big of a change this would be in practice. However, we always try to provide features that are requested so this could potentially be implemented in the future.
Just to provide some backgroud, you always need to define the EventType and the EventType needs to be visible in the servers address space. This requirement comes from the OPC UA specification and there would be no sense to not work according to specification in this case.
Perhaps the most practical and still OPC UA compliant solution in this case would be that you create your EventType, for example named DynamicEventType. Then, you would define properties/variables in this EventType so that you can always set your variable values defined during the runtime in these properties/variables.
Most Users Ever Online: 1919
Currently Online:
20 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: 730
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus, DeakinModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1