예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
     }
 }