private void StateDiagramRunPhaseSend() { lock (Lock) { WriteComObjects(); } Thread.Sleep(MinPeriod); EStateDiagramState = EStateDiagram.Read; }
private void StateDiagramRunPhaseRead() { lock (Lock) { ReadComObjects(); } Thread.Sleep(MinPeriod); EStateDiagramState = EStateDiagram.Send; }
private void StateDiagramRunPhaseInit() { if (EStateConnection == EConnectionState.Offline) { Connection(); // navrat INT pokud je hodnota rovna se error komunikace Thread.Sleep(1000); return; } EStateDiagramState = EStateDiagram.Send; }