/// <summary> /// Aborts the active measurement. /// </summary> /// <exception cref="System.NullReferenceException">Not connected to a device.</exception> /// <exception cref="System.Exception">Device is not measuring.</exception> public void AbortMeasurement() { if (_comm == null) { throw new NullReferenceException("Not connected to a device."); } if (_comm.ActiveMeasurement == null) { throw new Exception("Device is not measuring."); } Run(() => _comm.Abort()); }