SympatheticHardwareControl.Controller.TSRestart C# (CSharp) Method

TSRestart() public method

public TSRestart ( ) : void
return void
        public void TSRestart()
        {
            try
            {
                tstage.Restart();
                Thread.Sleep(2000);
                tstage.CommsDisable();
                controlWindow.WriteToConsole("Translation stage restarted");
            }
            catch (NullReferenceException)
            {
                MessageBox.Show("Translation stage is not connected.\nPress Connect button first.");
            }
            catch (ObjectDisposedException)
            {
                MessageBox.Show("Translation stage has been disconnected.\nPress the Connect button to reconnect.");
            }
        }