Example #1
0
 public UaItemCollection(UaSubscription subscription, MonitoringMode monitoringMode, MonitoringFilter monitoringFilter, bool useQueue)
 {
     _subscription     = subscription;
     _monitoringMode   = monitoringMode;
     _monitoringFilter = monitoringFilter;
     _useQueue         = useQueue;
 }
Example #2
0
        private static async void SetValueImpl(UaSubscription subscription, UaItem item, object value)
        {
            // as discovered by rdgerken, Kepware doesn't like getting a WriteValue with a SourceTimeStamp
            await subscription.SetValueAsync(item, new DataValue(new Variant(value))).ConfigureAwait(false);

            //await subscription.SetValueAsync(item, new DataValue(new Variant(value), StatusCodes.Good, DateTime.UtcNow)).ConfigureAwait(false);
        }
Example #3
0
 private static object GetValue(UaSubscription subscription, UaItem item)
 {
     return(item.CacheQueue);
 }
Example #4
0
        private static object GetValueImpl(UaSubscription subscription, UaItem item)
        {
            var dataValue = subscription.GetValue(item);

            return(dataValue.StatusCode != StatusCodes.BadWaitingForInitialData ? dataValue.Value : DependencyProperty.UnsetValue);
        }
Example #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.RobotSubscription = ((ConverterSystems.Workstation.Services.UaSubscription)(target));
                return;

            case 2:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.World = ((System.Windows.Media.Media3D.ModelVisual3D)(target));
                return;

            case 4:
                this.AmbientLightContainer = ((System.Windows.Media.Media3D.ModelVisual3D)(target));
                return;

            case 5:
                this.AmbientLight = ((System.Windows.Media.Media3D.AmbientLight)(target));
                return;

            case 6:
                this.DirectionalLightContainer = ((System.Windows.Media.Media3D.ModelVisual3D)(target));
                return;

            case 7:
                this.DirectionalLight = ((System.Windows.Media.Media3D.DirectionalLight)(target));
                return;

            case 8:
                this.Base = ((System.Windows.Media.Media3D.ModelVisual3D)(target));
                return;

            case 9:
                this.ShoulderAssembly = ((System.Windows.Media.Media3D.ModelVisual3D)(target));
                return;

            case 10:
                this.Shoulder = ((System.Windows.Media.Media3D.ModelVisual3D)(target));
                return;

            case 11:
                this.ShoulderGeo = ((System.Windows.Media.Media3D.GeometryModel3D)(target));
                return;

            case 12:
                this.ShoulderMotorGeo = ((System.Windows.Media.Media3D.GeometryModel3D)(target));
                return;

            case 13:
                this.LowerArmMotorGeo = ((System.Windows.Media.Media3D.GeometryModel3D)(target));
                return;

            case 14:
                this.BaseMotor2Geo = ((System.Windows.Media.Media3D.GeometryModel3D)(target));
                return;

            case 15:
                this.LowerArmAssembly = ((System.Windows.Media.Media3D.ModelVisual3D)(target));
                return;

            case 16:
                this.LowerArm = ((System.Windows.Media.Media3D.ModelVisual3D)(target));
                return;

            case 17:
                this.LowerArmGeo = ((System.Windows.Media.Media3D.GeometryModel3D)(target));
                return;

            case 18:
                this.UpperArm2Assembly = ((System.Windows.Media.Media3D.ModelVisual3D)(target));
                return;

            case 19:
                this.UpperArm2 = ((System.Windows.Media.Media3D.ModelVisual3D)(target));
                return;

            case 20:
                this.UpperArm2Geo = ((System.Windows.Media.Media3D.GeometryModel3D)(target));
                return;

            case 21:
                this.Logo3Geo = ((System.Windows.Media.Media3D.GeometryModel3D)(target));
                return;

            case 22:
                this.UpperArmTwistMotorGeo = ((System.Windows.Media.Media3D.GeometryModel3D)(target));
                return;

            case 23:
                this.UpperArmMotorGeometry = ((System.Windows.Media.Media3D.GeometryModel3D)(target));
                return;

            case 24:
                this.TwistAssembly = ((System.Windows.Media.Media3D.ModelVisual3D)(target));
                return;

            case 25:
                this.UpperArm = ((System.Windows.Media.Media3D.ModelVisual3D)(target));
                return;

            case 26:
                this.UpperArmGeo = ((System.Windows.Media.Media3D.GeometryModel3D)(target));
                return;

            case 27:
                this.Logo1Geo = ((System.Windows.Media.Media3D.GeometryModel3D)(target));
                return;

            case 28:
                this.Logo2Geo = ((System.Windows.Media.Media3D.GeometryModel3D)(target));
                return;

            case 29:
                this.WristBendAssembly = ((System.Windows.Media.Media3D.ModelVisual3D)(target));
                return;

            case 30:
                this.Wrist = ((System.Windows.Media.Media3D.ModelVisual3D)(target));
                return;

            case 31:
                this.WristGeo = ((System.Windows.Media.Media3D.GeometryModel3D)(target));
                return;

            case 32:
                this.ToolFlangeGeo = ((System.Windows.Media.Media3D.GeometryModel3D)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #6
0
 internal UaSubscriptionMetaObject(Expression parameter, UaSubscription value) : base(parameter, BindingRestrictions.Empty, value)
 {
 }