Exemplo n.º 1
0
        public void StartL502(L502Ch[] _channels)
        {
            if (!lcard_local)
            {
                return;
            }
            if (lcard == null)
            {
                return;
            }
            DefCL dcl = new DefCL(EUnit.Cross);

            lcard.Start(dcl.L502, _channels);
        }
Exemplo n.º 2
0
        public void Start(int _startTick)
        {
            if (bank == null)
            {
                return;
            }
            if (started)
            {
                Finish(_startTick);
            }

            DefCL dcl = new DefCL(Tp);

            ReadPeriod = dcl.L502.ReadPeriod;
            List <L502Ch> L = new List <L502Ch>();

            if (Tp == EUnit.Line)
            {
                for (int i = 0; i < dcl.LCh.Count; i++)
                {
                    L.Add(dcl.LCh[i]);
                }
            }
            if (Tp == EUnit.Cross)
            {
                if (IW.Cross)
                {
                    for (int i = 0; i < dcl.LCh.Count; i++)
                    {
                        L.Add(dcl.LCh[i]);
                    }
                }
                if (IW.SG)
                {
                    L.Add(ParAll.SG.Sensor_I);
                    L.Add(ParAll.SG.Sensor_B);
                }
            }
            lcard.Start(dcl.L502, L.ToArray());
            started        = true;
            bank.FirstTick = _startTick;
        }