Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            BlockingCollection <RawData> rawData = new BlockingCollection <RawData>();
            DAQ daq = new DAQ();

            IDAQ transducerdaq = new TransducerDAQ(daq, rawData);
            UC2M2_UC3M3_Measure newMeasurement = new UC2M2_UC3M3_Measure(transducerdaq);
            DataTreatment       dataTreatment  = new DataTreatment(rawData);


            newMeasurement.StartMeasurement();
            dataTreatment.ShowData();

            Console.ReadKey();
        }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Counter++;

            if (Counter % 2 != 0)
            {
                Measure.StartMeasurement();

                Running           = true;
                button1.BackColor = Color.Red;
                button1.Text      = "STOP MÅLING";
            }
            else
            {
                Measure.StopMeasurement();

                Running           = false;
                button1.BackColor = Color.ForestGreen;
                button1.Text      = "START MÅLING";
            }
        }