I use UaModeler to create my address space and generate source code file(h/cpp).
I created my server using generated source code.
But I don't know the way to get values of address space.
The SDK tutorials server_lesson03 uses "setValueHandling(UaVariable_Value_Cache)".
But auto generated source code doesn't use BaseDataVariableType derived class nor UaVariable derived class which have setValueHandling function.
Auto generated code uses UaBase::Variable class to create instance.
UaBase::Variable class doesn't have setValueHandling function.
How can I set setValueHandling?
I think that I need to setValueHandling(UaVariable_Value_Cache) to enable nodemanager's readValues call.
Could you give some advice for me?
How to read values
Moderator: uasdkcpp
-
- Sr. Member
- Posts: 10
- Joined: 13 Dec 2018, 02:08
Re: How to read values
Sorry, solved.
I found that source code generated by UA Modeler uses AnalogItemType elsewhere.
So I can use setValueHandling.
But I can't understand yet what UaBase::Variable is used for.
I found that source code generated by UA Modeler uses AnalogItemType elsewhere.
So I can use setValueHandling.
But I can't understand yet what UaBase::Variable is used for.
-
- Jr. Member
- Posts: 1
- Joined: 28 Mar 2019, 13:09
Re: How to read values
nice to know that it was resolved and i hope if there any issues can post here further