/// <summary> /// Stops running measurement /// </summary> /// <param name="sender">Sender</param> /// <param name="e">Event arguments</param> public void StopContinuousMeasurementBt_Click(out string errormess) { errormess = ""; try { // stop running data acquisition runMeasurement = false; Measurement.StopDaq(); // AddToLog("Continuous measuring stopped!"); } catch (Exception ex) { errormess = ex.Message; // MessageBox.Show(ex.Message, ex.ToString()); } }
/// <summary> /// Stops running measurement /// </summary> /// <param name="sender">Sender</param> /// <param name="e">Event arguments</param> public void StopContinuousMeasurement(out string error) { error = ""; try { // stop running data acquisition // runMeasurement = false; Measurement.StopDaq(); // Environment.Disconnect(myDevice); // Environment.Dispose(); // AddToLog("Continuous measuring stopped!"); } catch (Exception ex) { error = ex.Message; // MessageBox.Show(ex.Message, ex.ToString()); } }