How to read values

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
manakamu
Sr. Member
Sr. Member
Posts: 10
Joined: 13 Dec 2018, 02:08

How to read values

Post by manakamu »

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?

manakamu
Sr. Member
Sr. Member
Posts: 10
Joined: 13 Dec 2018, 02:08

Re: How to read values

Post by manakamu »

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.

cavin12
Jr. Member
Jr. Member
Posts: 1
Joined: 28 Mar 2019, 13:09

Re: How to read values

Post by cavin12 »

nice to know that it was resolved and i hope if there any issues can post here further

Post Reply