-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to create an OPC UA View? #5556
Comments
We currently don't support views. I added this to the wishlist in #5075. |
We use Views with open62541 to organize our whole data model into sub-parts for results with and without errors. There is Unfortunately, you cannot raise Events from View nodes, i.e. in our case to get notified when there was a non-successful result. When you try it, you hit this TODO: open62541/src/server/ua_subscription_events.c Line 302 in 0b1d72f
So official support for Views with Events would be appreciated on my side! |
From my experience Views are basically deprecated, as they do not satisfy the use case they where thought out for. One can reference Nodes always in other hierarchies. Therefore Companion Specifications are available to define Types to support this. |
Hi!
Description
There are lots of examples how to create variables within the Objects folder of an OPC-UA server. But there is no example of how to populate the Views folder? In principe it should just contain references to variables in the Objects folder. Correct?
Background Information / Reproduction Steps
We have several OPC-UA servers, each with its specific structure in the Objects folder. As usual in software development, things are changing day by day, stuff is added or deleted or moved around for more consistency. Although it is easy for us to change this structure, our customers often cannot replicate these changes themselves, because their software is developed by other facilities and each changes requires lots of time (and involves paying money aswell). They just want to access the same NodeIds to keep their software unchanged, no matter how much had to be changed on our side.
So our idea is to use OPC-UA views to work around this issue. This way we could modify our variable tree in the Objects folder as we require it. The entries in the View folder on the other hand will be kept the same all the time and only the references to the Objects folder are changed. That way a customer will always access a "constant" View, while the Objects folder can be rearranged and modified without any visible changes in the View.
Some examples programs on how to setup a View would be highly appreciated.
Checklist
Please provide the following information:
UA_LOGLEVEL
set as low as necessary) attachedThe text was updated successfully, but these errors were encountered: