Esempio n. 1
0
        //Добавить сигнал, возвращает сигнал прокси для пользователя
        public ProxySignal AddSignal(string fullCode, DataType dataType, SignalType signalType, string infObject, string infOut, string infProp)
        {
            var sig = SourceConnect.AddSignal(fullCode, dataType, signalType, infObject, infOut, infProp);

            ArchiveProxyConnect.AddSignal(SourceConnect, new QueuedProxySignal(SourceConnect.Code, sig));
            return(UserProxyConnect.AddSignal(SourceConnect, new ProxySignal(SourceConnect.Code, sig)));
        }
Esempio n. 2
0
 public CalibratorConnect(RealTimeThread thread, string connectCode, string complect, string providerCode, string providerInf)
 {
     SourceConnect = new SourceConnect(thread.Logger, connectCode, complect);
     SourceConnect.JoinProvider(thread.ProvidersFactory.CreateProvider(thread.Logger, providerCode, providerInf));
     UserProxyConnect    = new ProxyConnect("UserProxy");
     ArchiveProxyConnect = new QueuedProxyConnect("ArchiveProxy");
 }
Esempio n. 3
0
        private static ValuesCount GetValues(SourceConnect connect, DateTime beg, DateTime en)
        {
            connect.Logger.StartPeriod(beg, en);
            var vc = connect.GetValues();

            connect.Logger.FinishPeriod();
            return(vc);
        }
Esempio n. 4
0
 private static void GetValues(SourceConnect connect, DateTime beg, DateTime en)
 {
     connect.Logger.StartPeriod(beg, en);
     connect.GetValues();
     connect.Logger.FinishPeriod();
 }
Esempio n. 5
0
 //Очистить список сигналов
 public void ClearSignals()
 {
     ArchiveProxyConnect.ClearSignals();
     UserProxyConnect.ClearSignals();
     SourceConnect.ClearSignals();
 }