public void SetMeasRangeOfAmps(EnumMeasRangeAmps Range) { switch (Range) { case EnumMeasRangeAmps.AUTO: Send(":SENS:CURR:RANG:AUTO ON"); break; default: Send(string.Format(":SENS:CURR:RANG {0}", this.ConvertMeasRangeAmpsToDouble(Range))); break; } GetMeasRangeOfAmps(); }
double ConvertMeasRangeAmpsToDouble(EnumMeasRangeAmps Range) { double real = 1.05 * Math.Pow(10, ((int)Range) - 7); return(real); }