public void Repeat() { ServiceModeSession.Instance.RepeatBeam(); double wedgeFactor = Mode == ModeOptions.EDW ? 1.3 : 1.00; double beamTime = (MU / double.Parse(RepRate.ToString().Replace("_", "")) * 60 * 1000) * wedgeFactor; Thread.Sleep((int)beamTime + 3000); }
public void Run(bool sleep = true) { if (!IsModedUp) { ModeUp(); } ServiceModeSession.Instance.BeamOn(); double wedgeFactor = Mode == ModeOptions.EDW ? 1.3 : 1.00; double beamTime = (MU / double.Parse(RepRate.ToString().Replace("_", "")) * 60 * 1000) * wedgeFactor; if (sleep) { Thread.Sleep((int)beamTime + 3000); } }