Ejemplo n.º 1
0
        public BestPEST(Steuerung parent) : base(parent)
        {
            double lgit;

            plgit = new double[2 * MaximaleSignalStaerke];
            mlgit = new double[2 * MaximaleSignalStaerke];

            _SchwelleErreichtMessage = "BestPEST: Schwelle erreicht!;;";

            NTrials = parent.NTrials;

            std = MaximaleSignalStaerke / 5;

            for (int i = 0; i < (2 * MaximaleSignalStaerke); i++)
            {
                lgit     = 1 / (1 + Math.Exp((MaximaleSignalStaerke - i) / std));
                plgit[i] = Math.Log(lgit);
                mlgit[i] = Math.Log(1 - lgit);
            }

            probability = new double[2 * MaximaleSignalStaerke];

            SignalStaerke = MaximaleSignalStaerke;
            Gesehen       = true;

            Threshold();

            SignalStaerke = 0;
            Gesehen       = false;

            //Threshold() called once more first run of ZeigeNeueSignalstaerke()
        }
Ejemplo n.º 2
0
        public MesseSchwellen(String pnummer, String aseite, bool ractive, String r, bool lactive, String l, bool mactive, String m, bool sactive, String s, Steuerung parentObj)
        {
            parentObject = parentObj;

            InitializeComponent();
            Probandennummer = pnummer;
            Augenseite      = aseite;
            try
            {
                RFF = Convert.ToInt16(r);
            }
            catch
            {
                RFF = 999;
            }
            try
            {
                LFF = Convert.ToInt16(l);
            }
            catch
            {
                LFF = 999;
            }
            try
            {
                MFF = Convert.ToInt16(m);
            }
            catch
            {
                MFF = 999;
            }
            try
            {
                SFF = Convert.ToInt16(s);
            }
            catch
            {
                SFF = 999;
            }
            if (!ractive)
            {
                RodList.Enabled = false;
            }
            if (!lactive)
            {
                LConeList.Enabled = false;
            }
            if (!mactive)
            {
                MConeList.Enabled = false;
            }
            if (!sactive)
            {
                SConeList.Enabled = false;
            }
            for (int i = 0; i < 12; i++)
            {
                if (ractive)
                {
                    if (frequenzen[i] <= RFF)
                    {
                        RodList.Items.Add(frequenzen[i], true); gesamtzahl++;
                    }
                }
                if (lactive)
                {
                    if (frequenzen[i] <= LFF)
                    {
                        LConeList.Items.Add(frequenzen[i], true); gesamtzahl++;
                    }
                }
                if (mactive)
                {
                    if (frequenzen[i] <= MFF)
                    {
                        MConeList.Items.Add(frequenzen[i], true); gesamtzahl++;
                    }
                }
                if (sactive)
                {
                    if (frequenzen[i] <= SFF)
                    {
                        SConeList.Items.Add(frequenzen[i], true); gesamtzahl++;
                    }
                }
            }
            RodList.CheckOnClick   = true;
            LConeList.CheckOnClick = true;
            MConeList.CheckOnClick = true;
            SConeList.CheckOnClick = true;
            fortschritt.Maximum    = gesamtzahl;
            fortschritt.Value      = 0;
            if (Directory.GetFiles(@".\Untersuchungen", "*.txt").Length > 0)
            {
                result.Enabled = true;
            }
            else
            {
                result.Enabled = false;
            }
        }
Ejemplo n.º 3
0
        public LogWriter logfiletmp;//Wird durch die Funktion LogFile an die Namenskonvention von DebugFile angepasst
        //public LogWriter DebugFile = new LogWriter("debugdata.txt", true);

        public KontrolliereMessungen(Steuerung gpObject)
        {
            this.mainProgram = gpObject;
            UseBestPEST      = mainProgram.UseBestPEST;

            InitializeComponent();

            #region Kalibrierung einlesen und MaxWerte berechnen/anzeigen
            if (Globals.ReadCalibrationData() == 0)
            {
                this.lblIRMHMax.Text = Globals.dMaxMH(0).ToString();
                IRChannel.MaxMHCal   = Globals.dMaxMH(0);
                IRChannel.ParameterPolynom(Globals.poly4(0), Globals.poly3(0), Globals.poly2(0), Globals.poly1(0), Globals.intercept(0));

                this.lblIGMHMax.Text = Globals.dMaxMH(1).ToString();
                IGChannel.MaxMHCal   = Globals.dMaxMH(1);
                IGChannel.ParameterPolynom(Globals.poly4(1), Globals.poly3(1), Globals.poly2(1), Globals.poly1(1), Globals.intercept(1));

                this.lblIBMHMax.Text = Globals.dMaxMH(2).ToString();
                IBChannel.MaxMHCal   = Globals.dMaxMH(2);
                IBChannel.ParameterPolynom(Globals.poly4(2), Globals.poly3(2), Globals.poly2(2), Globals.poly1(2), Globals.intercept(2));

                this.lblICMHMax.Text = Globals.dMaxMH(3).ToString();
                ICChannel.MaxMHCal   = Globals.dMaxMH(3);
                ICChannel.ParameterPolynom(Globals.poly4(3), Globals.poly3(3), Globals.poly2(3), Globals.poly1(3), Globals.intercept(3));

                this.lblORMHMax.Text = Globals.dMaxMH(4).ToString();
                ORChannel.MaxMHCal   = Globals.dMaxMH(4);
                ORChannel.ParameterPolynom(Globals.poly4(4), Globals.poly3(4), Globals.poly2(4), Globals.poly1(4), Globals.intercept(4));

                this.lblOGMHMax.Text = Globals.dMaxMH(5).ToString();
                OGChannel.MaxMHCal   = Globals.dMaxMH(5);
                OGChannel.ParameterPolynom(Globals.poly4(5), Globals.poly3(5), Globals.poly2(5), Globals.poly1(5), Globals.intercept(5));

                this.lblOBMHMax.Text = Globals.dMaxMH(6).ToString();
                OBChannel.MaxMHCal   = Globals.dMaxMH(6);
                OBChannel.ParameterPolynom(Globals.poly4(6), Globals.poly3(6), Globals.poly2(6), Globals.poly1(6), Globals.intercept(6));

                this.lblOCMHMax.Text = Globals.dMaxMH(7).ToString();
                OCChannel.MaxMHCal   = Globals.dMaxMH(7);
                OCChannel.ParameterPolynom(Globals.poly4(7), Globals.poly3(7), Globals.poly2(7), Globals.poly1(7), Globals.intercept(7));
            }
            else
            {
                this.lblIRMHMax.Text = "Kalibrierung durchführen!";
                this.lblIGMHMax.Text = "Kalibrierung durchführen!";
                this.lblIBMHMax.Text = "Kalibrierung durchführen!";
                this.lblICMHMax.Text = "Kalibrierung durchführen!";
                this.lblORMHMax.Text = "Kalibrierung durchführen!";
                this.lblOGMHMax.Text = "Kalibrierung durchführen!";
                this.lblOBMHMax.Text = "Kalibrierung durchführen!";
                this.lblOCMHMax.Text = "Kalibrierung durchführen!";
                btnUntersuchungAbbrechenActive(false);
                btnUntersuchungStartenActive(false);
            }
            #endregion

            channels.Add(IRChannel);
            channels.Add(IGChannel);
            channels.Add(IBChannel);
            channels.Add(ICChannel);
            channels.Add(ORChannel);
            channels.Add(OGChannel);
            channels.Add(OBChannel);
            channels.Add(OCChannel);

            this.btnUntersuchungAbbrechenActive(false);
            this.btnUntersuchungStartenActive(true);

            this.KeyPreview = true;

            this.showEnvFreq.Text  = SignalGeneration.Envelope;
            this.showEnvPause.Text = SignalGeneration.PauseEnvelope.ToString();
        }
Ejemplo n.º 4
0
 protected Teststrategie(Steuerung parent)
 {
     this.AudioControl = parent.AudioControl;
 }
Ejemplo n.º 5
0
 public StdStrategie(Steuerung strg)
 {
     this.AudioControl = strg.AudioControl;
 }
Ejemplo n.º 6
0
 public StdStrategie(Steuerung strg, string LEDgruppe, bool CFFtest)
 {
     this.AudioControl = strg.AudioControl;
     LED_Gruppe        = LEDgruppe;
     testeCFF          = CFFtest;
 }