Exemplo n.º 1
0
        public RSSController()
        {
            ControlStatus      = new ControlStatus();
            LoopSuccessCounter = 0;
            LoopFaultCounter   = 0;

            waitHandle = new ManualResetEvent(false);

            LoopThread = new Thread(MainLoop);
            LoopThread.Start();

            cycleTime = new Stopwatch();
            CycleSpan = new TimeSpan();

            queueLock    = new object();
            queueActions = new Collection <Action>();
        }
Exemplo n.º 2
0
 public RssMachineSerialPort(string portName, bool simulation = false) : base(portName, 115200, Parity.None, 8, StopBits.OnePointFive)
 {
     this.simulation  = simulation;
     ControlStatusSim = new ControlStatus();
 }