/// <summary> /// Instruct Re:load Pro to stop monitoring and close port. /// </summary> private void ClosePort() { if (comPort.IsOpen) { comPort.WriteToComPort("monitor 0\n"); comPort.ClosePort(); SetpointTextBox.Text = "?"; CurrentTextBox.Text = "?"; VoltageTextBox.Text = "?"; PowerTextBox.Text = "?"; ResistanceTextBox.Text = "?"; } }