Creating and initializing a UAVariable.

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

Moderator: uasdkcpp

Post Reply
rjackson
Jr. Member
Jr. Member
Posts: 4
Joined: 05 Aug 2013, 12:11

Creating and initializing a UAVariable.

Post by rjackson »

I'm in the process of creating unit tests for my readValues() and writevalues() methods.

I would like to create and initialize the UaVariables for different test cases. Are there any examples of
setting up the UaVariables. I am using the C++ sdk.

User avatar
Support Team
Hero Member
Hero Member
Posts: 3072
Joined: 18 Mar 2011, 15:09

Re: Creating and initializing a UAVariable.

Post by Support Team »

Hi,

All Server SDK tutorial create instances of classes that implement the UaVariable interface. Especially tutorial lessons 2 and 3 create variables (lesson 2) and handle them in readValues() and writeValues() (lesson 3).

The tutorial uses classes like AnalogItemType wich is the implementation for the interface UaVariable for a AnalogItem variable type.

Best Regards,
Unified Automation Support Team

rjackson
Jr. Member
Jr. Member
Posts: 4
Joined: 05 Aug 2013, 12:11

Re: Creating and initializing a UAVariable.

Post by rjackson »

Thanks for the response. I was able create my own UaVariable class and initialize it with the contructor.

Post Reply