Example #1
0
        public string GetGainPhaseInfo(double frequency, bool logFrequencyAxis)
        {
            string sFrequency = "Frequency: " + frequency.ToString(FRAResult.GetFrequencyFormat(frequency, logFrequencyAxis));
            double gain       = GetGainDB(frequency);
            string sGain      = "        Gain: " + gain.ToString(FRAResult.GetGainFormat(gain));
            double phase      = GetPhaseDegrees(frequency);
            string sPhase     = "        Phase: " + phase.ToString(FRAResult.GetPhaseFormat(phase));

            return(sFrequency + sGain + sPhase);
        }
Example #2
0
        public string GetImpedanceInfo(double frequency, bool logFrequencyAxis)
        {
            string sFrequency = "Frequency: " + frequency.ToString(FRAResult.GetFrequencyFormat(frequency, logFrequencyAxis));
            double impedance  = GetDUTImpedanceMilliOmhs(frequency);
            string sImpedance = "        Impedance: " + impedance.ToString(FRAResult.GetImpedanceFormat(impedance));
            double phase      = GetDUTPhaseDegrees(frequency);
            string sPhase     = "        Phase: " + phase.ToString(FRAResult.GetPhaseFormat(phase));

            return(sFrequency + sImpedance + sPhase);
        }
Example #3
0
        public string GetInducductanceInfo(double frequency, bool logFrequencyAxis)
        {
            string sFrequency  = "Frequency: " + frequency.ToString(FRAResult.GetFrequencyFormat(frequency, logFrequencyAxis));
            double inductance  = GetDUTInductanceNanoHenry(frequency);
            string sInductance = "        Inductance: " + inductance.ToString(FRAResult.GetInductanceFormat(inductance));
            double esr         = GetDUT_ESR_MilliOhms(frequency);
            string sESR        = "        ESR: " + esr.ToString(FRAResult.GetImpedanceFormat(esr));
            double qFactor     = GetDUT_Q_Inductor(frequency);
            string sQ          = "       Q: " + qFactor.ToString(FRAResult.GetQFactorFormat(qFactor));

            return(sFrequency + sInductance + sESR + sQ);
        }
Example #4
0
        public string GetCapacitanceInfo(double frequency, bool logFrequencyAxis)
        {
            string sFrequency   = "Frequency: " + frequency.ToString(FRAResult.GetFrequencyFormat(frequency, logFrequencyAxis));
            double capacitance  = GetDUTCapacitancePicoFarad(frequency);
            string sCapacitance = "        Capacitance: " + capacitance.ToString(FRAResult.GetCapacitanceFormat(capacitance));
            double esr          = GetDUT_ESR_MilliOhms(frequency);
            string sESR         = "        ESR: " + esr.ToString(FRAResult.GetImpedanceFormat(esr));
            double qFactor      = GetDUT_Q_Capacitor(frequency);
            string sQ           = "       Q: " + qFactor.ToString(FRAResult.GetQFactorFormat(qFactor));

            return(sFrequency + sCapacitance + sESR + sQ);
        }
Example #5
0
 public InfoFile(FRAFile file)
 {
     InitializeComponent();
     this.TopMost                          = true;
     textBoxFileName.Text                  = file.FileName;
     textBoxPath.Text                      = file.FilePath;
     textBoxFileType.Text                  = file.FRAFileType.ToString();
     textBoxReferenceResistor.Text         = (file.ReferenceResistorOhms * 1000).ToString(FRAResult.GetImpedanceFormat(file.ReferenceResistorOhms * 1000));
     textBoxMinFrequency.Text              = file.MinFrequencyHz.ToString(FRAResult.GetFrequencyFormat(file.MinFrequencyHz, true));
     textBoxMaxFrequency.Text              = file.MaxFrequencyHz.ToString(FRAResult.GetFrequencyFormat(file.MaxFrequencyHz, true));
     textBoxNrOfDataPoints.Text            = file.Count.ToString();
     textBoxAverageGain.Text               = file.AverageGainDB.ToString(FRAResult.GetGainFormat(file.AverageGainDB));
     textBoxMaxGain.Text                   = file.MaxGainDB.ToString(FRAResult.GetGainFormat(file.MaxGainDB));
     textBoxMinGain.Text                   = file.MinGainDB.ToString(FRAResult.GetGainFormat(file.MinGainDB));
     textBoxMaxImpedance.Text              = file.MaxDUTImpedanceOhms.ToString(FRAResult.GetImpedanceFormat(file.MaxDUTImpedanceOhms));
     textBoxMinImpedance.Text              = file.MinDUTImpedanceOhms.ToString(FRAResult.GetImpedanceFormat(file.MinDUTImpedanceOhms));
     textBoxMaxCapacitance.Text            = file.MaxDUTCapacitancePicoFarad.ToString(FRAResult.GetCapacitanceFormat(file.MaxDUTCapacitancePicoFarad));
     textBoxMinCapacitance.Text            = file.MinDUTCapacitancePicoFarad.ToString(FRAResult.GetCapacitanceFormat(file.MinDUTCapacitancePicoFarad));
     textBoxMaxInductance.Text             = file.MaxDUTInductanceNanoHenry.ToString(FRAResult.GetInductanceFormat(file.MaxDUTInductanceNanoHenry));
     textBoxMinInductance.Text             = file.MinDUTInductanceNanoHenry.ToString(FRAResult.GetInductanceFormat(file.MinDUTInductanceNanoHenry));
     textBoxMax_ESR.Text                   = file.MaxDUT_ESR_Ohms.ToString(FRAResult.GetImpedanceFormat(file.MaxDUT_ESR_Ohms));
     textBoxMin_ESR.Text                   = file.MinDUT_ESR_Ohms.ToString(FRAResult.GetImpedanceFormat(file.MinDUT_ESR_Ohms));
     richTextBoxMeasurementConditions.Text = file.MeasurementConditions;
 }