AnsweredAssumed Answered

how to write value to pi tag PI SDK c#

Question asked by srwsbc on Nov 27, 2017
Latest reply on Nov 28, 2017 by srwsbc

i want to know how to write value to pi tag

if i have double value such as 1.11111 to pi tag

 

my code

########################################

PISDK.PISDK g_SDK;

g_SDK = new PISDK.PISDKClass();

PISDK.Server myServer;

PISDK.PIPoints myPoints;

PISDK.PIPoint snapPoint;

PISDK.PIValue myValue;

 

double a= 1.1111;

myServer = g_SDK.Servers["<myserver name>"];

myPoints = myServer.PIPoints;

snapPoint = myPoints["<mytag name>"];

 

snapPoint.Data.UpdateValue( a,PISDK.DataMergeConstants.dmInsertDuplicates );

########################################################

 

how can i add "a" to my tag and have timestamp when add it

Thanks

Outcomes