Example #1
0
        private static void Oszilloskop()
        {
            Funktionsgenerator8562FPZ_Parallel saegefunktionsgenerator = new GPIO1.Funktionsgenerator8562FPZ_Parallel(GPIO1.Funktionsgenerator8562FPZ_Parallel.Wellenform.Saege);
            Thread funktionsthread = new Thread(() => saegefunktionsgenerator.Generate(1));

            funktionsthread.Start();

            OszilloskopAD_MCP3201_SPI osci = new OszilloskopAD_MCP3201_SPI();
            Thread osciThread = new Thread(() => osci.DoVerySmartDisplay());

            osciThread.Start();

            Thread.Sleep(10000);

            funktionsthread.Abort();
            osciThread.Abort();
        }
        public void DoWork()
        {
            Funktionsgenerator8562FPZ_Parallel saegefunktionsgenerator = new GPIO1.Funktionsgenerator8562FPZ_Parallel(GPIO1.Funktionsgenerator8562FPZ_Parallel.Wellenform.Saege);
            Thread funktionsthread = new Thread(() => saegefunktionsgenerator.Generate(5));

            funktionsthread.Start();

            Thread adcThread = new Thread(() => ADC());

            adcThread.Start();

            Thread dacThread = new Thread(() => DAC());

            dacThread.Start();

            Console.WriteLine("Pressen sie die Anykey-Taste!");
            Console.ReadKey();

            funktionsthread.Abort();
            adcThread.Abort();
            dacThread.Abort();
        }