read_value not updating, unless subscription is created #818
Replies: 3 comments 3 replies
-
have you tried to browse the variable before reading it!? had it with some products that they start updating from the subsystem only if there was a initial browse on the variable... |
Beta Was this translation helpful? Give feedback.
-
Have you tried it with some other client like UAExpert? Is the server behavior the same? |
Beta Was this translation helpful? Give feedback.
-
Thank you for your responses! @AndreasHeine I'm not sure what you're referring as browsing the variable basically I'm performing this two operations
@schroeder- Yes I've tried with the client included in Movicon and I do see de updates in the client as soon as they're updated. |
Beta Was this translation helpful? Give feedback.
-
Hi!
I've just started using the library a few days ago, built my own server and client using the examples and tested different methods, everything was going smoothly until I tried to connect a client built with the library to a Movicon OPC UA server.
When I try to perform var.read_value() it shows the value of the variable but if the variable changes on the server and I perform read_value() again It doesn't show the updated value it shows the original value.
However If I create a subscription on datachange to the variable It does show the correct value every time I perform read_value.
This was not the behaviour I was experiencing when using the included server class, with the included server if I changed the value of the variable it would show the updated value on the client every time I called read_value without the need of creating a subscription.
I was wondering is this a normal behaviour?, It's due to the Movicon server?, Do I really have to create a subscription for each variable I want to retrieve with read_value? and are those subscription generating more load on the client/server?
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions