예제 #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            TurbidoCore core = new TurbidoCore();

            Application.Run(new TurbidostatControlPanel(ref core));
        }
예제 #2
0
        public TurbidostatControlPanel(ref TurbidoCore core_)
        {
            InitializeComponent();
            this.ControlBox = false;
            timerSystem.Start();
            core              = core_;
            library           = new TurbidoAlgorithmLibrary(ref core);
            core.library      = library;
            core.controlPanel = this;
            library.StartODVoltageScaleDataSaver();
            od_monitor.Hide();
            scale_monitor.Hide();
            core.assignMonitors(ref od_monitor, ref scale_monitor);
            core.MainLog.CollectionChanged += updateLog;

            textBoxParameterTransferPeriod.Text = library.TransferCyclePeriod.ToString();
        }
        public LaserCalibrator(ref TurbidoCore _core)
        {
            InitializeComponent();

            core          = _core;
            currentSample = 0;
            p0            = new double[numChan];
            p1            = new double[numChan];

            // initalize data arrays
            for (int i = 0; i < numChan; i++)
            {
                OD.Add(new List <double>());
                Volt.Add(new List <double>());
            }

            create_a_chart(10, 10, 320, 180, "Culture 1A");
            create_a_chart(330, 10, 320, 180, "Culture 2A");
            create_a_chart(650, 10, 320, 180, "Culture 3A");
            create_a_chart(970, 10, 320, 180, "Culture 4A");
            create_a_chart(10, 370, 320, 180, "Culture 1B");
            create_a_chart(330, 370, 320, 180, "Culture 2B");
            create_a_chart(650, 370, 320, 180, "Culture 3B");
            create_a_chart(970, 370, 320, 180, "Culture 4B");
            create_a_chart(10, 190, 320, 180, "Culture 5A");
            create_a_chart(330, 190, 320, 180, "Culture 6A");
            create_a_chart(650, 190, 320, 180, "Culture 7A");
            create_a_chart(970, 190, 320, 180, "Culture 8A");
            create_a_chart(10, 550, 320, 180, "Culture 5B");
            create_a_chart(330, 550, 320, 180, "Culture 6B");
            create_a_chart(650, 550, 320, 180, "Culture 7B");
            create_a_chart(970, 550, 320, 180, "Culture 8B");

            //core.ReinitializeODReader.Stop();
            //core.ODReader.stopContinuousRead();
            core.ODReader = new MCC_AnalogInput(0);
        }