Ejemplo n.º 1
0
 public void setPointValue(string tagName, string value)
 {
     PISDK.PIValue PIconnect = new PISDK.PIValue();  //Create new instance of PI value
     PIconnect.Value = value;
     PITimeServer.PITime time = new PITimeServer.PITime();
     PIconnect.TimeStamp = time;
     PI_SERVER.PIPoints[tagName].Data.UpdateValue(PIconnect, "*", PISDK.DataMergeConstants.dmInsertDuplicates, null);
 }
Ejemplo n.º 2
0
 public void setPointValue(string tagName, string value)
 {
     PISDK.PIValue PIconnect = new PISDK.PIValue();  //Create new instance of PI value
     PIconnect.Value = value;
     PITimeServer.PITime time = new PITimeServer.PITime();
     PIconnect.TimeStamp = time;
     PI_SERVER.PIPoints[tagName].Data.UpdateValue(PIconnect, "*", PISDK.DataMergeConstants.dmInsertDuplicates, null);
 }
Ejemplo n.º 3
0
        //<<<<<<<<<<Add data entry given a tag name >>>>>>>>>>
        public void setPiPointValue(string tagName, object value)
        {
            PISDK.PIValue piValue = new PISDK.PIValue();            // Create new instance of PIValue
            piValue.Value = value;                                  // Set the Pi Value

            PITimeServer.PITime piTime = new PITimeServer.PITime(); // Create new instance of PITime
            piValue.TimeStamp = piTime;                             //Set the datetime

            //Add entry to server
            piServer.PIPoints[tagName].Data.UpdateValue(piValue, "*", PISDK.DataMergeConstants.dmInsertDuplicates, null);
        }
Ejemplo n.º 4
0
        ////////////////add data entry given a tag name////////////////////////////

        public void setPiPointValue(string tagName, object value)
        {
            PISDK.PIValue PiValue = new PISDK.PIValue(); // Create new instance of PI value
            PiValue.Value = value; // set the Pi Value

            PITimeServer.PITime piTime = new PITimeServer.PITime(); // create new instance of PITime
            PiValue.TimeStamp = piTime;  // set datetime


            //////////////////// add entry to server//////////////////////////
            PI_Server.PIPoints[tagName].Data.UpdateValue(PiValue, "*", PISDK.DataMergeConstants.dmInsertDuplicates, null);


        }