subscribing to events with custom data type definitions #886
Replies: 2 comments 35 replies
-
I tested with a simple testcase all structs should be converted to a dataclass, in this case CurveDataType. Can you read a CurveDataType from any variable? Your diagram looks a bit complex are there any subtyping structs or anything more than basic structs? Maybe there is a nodeset2.xml for the datatypes? |
Beta Was this translation helpful? Give feedback.
-
after calling load_data_types_definitions() then all server custom classes should be registered locally on your client. (For example |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello together,
The main question: How do I get access on the data type from the server?
I'm new in this opc-ua-game and I wanted to subscribe an event on a OPC-UA-Server.


The event (CycleDoneEventType) is called about every 60 seconds and outputs the following data:
The important data for me are the "Curves" which are an extension Object with this Structure:
To get the data I use this code:
I get data back but as "ExtensionObject". Which is still somehow binary encrypted.
It looks something like this:
The logger returns the following information, which leads me to conclude that the data types have been loaded:
Now my question is:
How do I get the correct data? Or how do I use the data type from the server?
I am in despair :D
So I am grateful for any help!
Beta Was this translation helpful? Give feedback.
All reactions