Skip to content
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

Sharing values between 2 nodes #1775

Open
MKaramen opened this issue Jan 21, 2025 · 1 comment
Open

Sharing values between 2 nodes #1775

MKaramen opened this issue Jan 21, 2025 · 1 comment

Comments

@MKaramen
Copy link

Hi,
I'm trying to share a value between two nodes. I have a "Parent" node which is a custom structure with a value "Acknowledge"
Image

I want to create a node Acknowledge has a child of Parent which shares the value of Acknowledge in the parent, so that when I update Acknowledge in the Parent node it also updates the value of Acknowledge in the node below. As you can see in the screenshots below, the values are not synced :

Image

Image

Here is my code:

Image

@AndreasHeine
Copy link
Member

exposing the inner Fields from an ExtensionObject as Child-Variables is a awful design TBH...
you need a lot of callbacks for reading and writing with each you get a new chance to mess it up ^^ and you need to support at least 100 recurionlevels of depth to it in order to be compliant with ua spec!

the whole point of ExtensionObject's having a all Fields as a package with the same timestamp...

e.g. a Robot-Frame in 3D Space has X, Y, Z plus A, B, C on its own useless information but as structure/package its a exact location in 3D Space

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants