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.
Creating and initializing a UAVariable.
Moderator: uasdkcpp
- Support Team
- Hero Member
- Posts: 3072
- Joined: 18 Mar 2011, 15:09
Re: Creating and initializing a UAVariable.
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
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
-
- Jr. Member
- Posts: 4
- Joined: 05 Aug 2013, 12:11
Re: Creating and initializing a UAVariable.
Thanks for the response. I was able create my own UaVariable class and initialize it with the contructor.