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>(); }
public RssMachineSerialPort(string portName, bool simulation = false) : base(portName, 115200, Parity.None, 8, StopBits.OnePointFive) { this.simulation = simulation; ControlStatusSim = new ControlStatus(); }