/// <summary> /// If the user have configured a different unit scale (dBuV or Watt) this function will /// return the amplitude in those units (from dBm) input /// </summary> /// <param name="dAmplitudeDBM">standard amplitude dBm value</param> /// <returns></returns> private double ConvertToCurrentAmplitudeUnit(double dAmplitudeDBM) { double fResult = 0.0f; switch (m_objRFEAnalyzer.CurrentAmplitudeUnit) { case RFECommunicator.eAmplitudeUnit.dBm: fResult = dAmplitudeDBM; break; case RFECommunicator.eAmplitudeUnit.dBuV: fResult = RFECommunicator.Convert_dBm_2_dBuV(dAmplitudeDBM); break; case RFECommunicator.eAmplitudeUnit.Watt: fResult = RFECommunicator.Convert_dBm_2_Watt(dAmplitudeDBM); break; } return(fResult); }