Change engineering unit of variable

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

Moderator: uasdknet

Post Reply
jonasthiel
Sr. Member
Sr. Member
Posts: 10
Joined: 27 Aug 2013, 09:35

Change engineering unit of variable

Post by jonasthiel »

Dear Forum,
I generate variables (AnalogItemType) within my .NET code. To do so I use "CreateVariableSettings" and "CreateVariable". That's working fine. But right now I struggle with the assignment of the Engineering Unit. Do any one of you has a clue how to assing a specific unit to this variable?

Thanks alot and regards

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

Re: Change engineering unit of variable

Post by Support Team »

Hello,

There is the class EngineeringUnits which contains many instances of EUInformation representing common units. Please also see the Boiler example in the DemoServer.

http://documentation.unified-automation.com/uasdkdotnet/3.0.5/html/classUnifiedAutomation_1_1UaBase_1_1EngineeringUnits.html
Best regards
Unified Automation Support Team

Post Reply