public void SetMeasure(MeasType command) { HandlerError.ClearErrors(); try { WriteCommand(MeasureType.SetMeasure(command)); } catch (Exception e) { HandlerError.ErrorOccurred = true; HandlerError.ErrorMsg = "Data Adquisition Agilent 34401A. " + e.Message; throw new Exception(HandlerError.ErrorMsg); } }
public void SetMeasure(MeasType command, string channel) { HandlerError.ClearErrors(); try { WriteCommand(MeasureType.SetMeasure(command) + " (@" + channel + ")"); } catch (Exception e) { HandlerError.ErrorOccurred = true; HandlerError.ErrorMsg = "Data Adquisition Agilent 34970A. " + e.Message; throw new Exception(HandlerError.ErrorMsg); } }