Beispiel #1
0
 public static void KSpiceFillWith(this EventVqt @event, KSpiceVariableData data, DataChange change)
 {
     @event.tag    = data.tagName;
     @event.time   = change.Value.SourceTimestamp;
     @event.status = TranslateStatus(change.Value.StatusCode);
     @event.value  = ParseValue(change.Value.Value, ref @event.status);
 }
Beispiel #2
0
        protected override void DataChanged(Subscription subscription, DataChangedEventArgs args)
        {
            foreach (var change in args.DataChanges)
            {
                EventVqt @event = new EventVqt();
                @event.KSpiceFillWith((KSpiceVariableData)change.MonitoredItem.UserData, change);
                var package = new EventPackage(@event, _plantCode, Constants.RealTime, new List <string>());

                _outBuffer.Post(package);
            }
        }
Beispiel #3
0
        protected override void DataChanged(Subscription subscription, DataChangedEventArgs args)
        {
            foreach (var change in args.DataChanges)
            {
                NodeData nodeData = (NodeData)change.MonitoredItem.UserData;

                EventVqt @event = new EventVqt();
                @event.FillWith(nodeData, change);
                var package = new EventPackage(@event, plantCode, Constants.RealTime, null);

                outBuffer.Post(package);
            }
        }