4:11, EET
October 20, 2016
Hi
Now I have a periodic variation and want to bind it to a variable in address space.First I got the variable node by the method findNode(NodeId) in class com.prosysopc.ua.server.NodeManager,then change the value of the node by the method updateValue(Object) in class com.prosysopc.ua.server.nodes.UavariableNode.It can work ,but the methods should be called every few seconds.Do you have some suggestions ?
10:11, EET
April 17, 2013
Hi,
Thank you for the question. Can you explain what is the problem with updating the data every few seconds?
If you use the UaNode-based approach, you will have to update the value to the node object. Alternatively, if your data is already in an existing subsystem, it may not feel very reasonable to replicate it all with UaNodes. In this case, you can implement a custom NodeManager (and other managers), which manages the service requests from the OPC UA clients and provides the requested data.
Without knowing more about your exact system, I would say that the best option is to just keep using the updateValue method and calling it whenever your data changes. For example, OPC UA subscriptions will only work if you provide all the value updates.
12:19, EET
April 17, 2013
18:05, EET
October 21, 2016
Most Users Ever Online: 1919
Currently Online:
25 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: 737
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1524
Posts: 6450
Newest Members:
fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerleyModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1