Page 1 of 1

ModelManager: How to subscribe to a model

Posted: 28 Sep 2022, 09:43
by w.mena@infors-ht.com
Dear all,
I am currently able to read a model.
Now I want to subscribe to this model, meaning that I would like to be informed if any of the model properties changes,
including also child properties.
Is it possible? If yes, where can I find a code example?
Unfortunately the documentation concerning this point is either very poor or I was looking at the wrong place.
Thx a lot for your help.
BR Wolfgang

Re: ModelManager: How to subscribe to a model

Posted: 18 Oct 2022, 10:30
by w.mena@infors-ht.com
I have found the answer myself.
Model provides the possibility to subscribe to it, using session.Model.Subscribe(...) method.
Thx for the support anyway for not responding due to my silly question because of the poor documentation.
BR Wolfgang

Re: ModelManager: How to subscribe to a model

Posted: 30 Jan 2023, 18:59
by Support Team
Hello Wolfgang,

Sorry for the late response.
In general we think that there are no silly questions. In the documentation sometime some special topics are hard to find.
However you can find the documentation for ModelManager.Subscribe here: https://documentation.unified-automation.com/uasdknet/3.2.1/html/classUnifiedAutomation_1_1UaClient_1_1ModelManager.html#a7b82dcc2b8792beae48b326cddc34491