Esempio n. 1
0
        public LinkInpu()
        {
            var m = Manager.GetAPI("VirtKlapany", new Guid("{0BDF2636-CF7F-42D3-AF39-7801EDAFEFD5}"));

            _chan             = m.JoinChannel("IO_KLAPANS", null);
            _chan.SyncReceive = true;
            //_rcvchannel = new SyncChannel(m.JoinChannel("MODEL_TO_KLAPANY", null));

            _dt = new DispatcherTimer(TimeSpan.FromMilliseconds(50), DispatcherPriority.Normal, OnTimer, Dispatcher.CurrentDispatcher);
            _dt.Start();

            var repos = ModelVariableRepository.Instance;

            ExpressionBinding.SetBinding(repos.BoolFMSValues[1], BoolVarFMS.VaRStateBoolPropertyFMS, "__FMS_WD_INPU1_LOADED");
            ExpressionBinding.SetBinding(repos.BoolFMSValues[0], BoolVarFMS.VaRStateBoolPropertyFMS, "__FMS_WD_INPU2_LOADED");
        }