Topic RSS4:11, EET
October 20, 2016
OfflineHi
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
OfflineHi,
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
Offline

Log In
Register