Beispiel #1
0
        public Form1()
        {
            BlockingCollection <RawData> rawData = new BlockingCollection <RawData>();
            DAQ daq = new DAQ();

            converter = new ConvertAlgo();
            IDAQ transducerdaq = new TransducerDAQ(daq, rawData);

            dataTreatment = new DataTreatment(rawData, converter);
            Measure       = new UC2M2_UC3M3_Measure(transducerdaq, dataTreatment);
            InitializeComponent();
            dataTreatment.Attach(this); // Lars
            GUIgraphList = new List <ConvertedData>();
        }
Beispiel #2
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();
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            BlockingCollection <RawData> rawCollection   = new BlockingCollection <RawData>();
            BlockingCollection <RawData> graphCollection = new BlockingCollection <RawData>();
            DAQ         daq         = new DAQ();
            ConvertAlgo convertAlgo = new ConvertAlgo();

            IDAQ          transducerdaq = new TransducerDAQ(daq, rawCollection);
            DataTreatment dataTreatment = new DataTreatment(rawCollection, graphCollection, convertAlgo, );
            IMeasure      measurement   = new UC2M2_UC3M3_Measure(transducerdaq, dataTreatment);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainGUI(dataTreatment));
        }
Beispiel #4
0
        static void Main()
        {
            BlockingCollection <double> rawCollection         = new BlockingCollection <double>();
            BlockingCollection <double> graphCollection       = new BlockingCollection <double>();
            BlockingCollection <double> calibrationCollection = new BlockingCollection <double>();
            BlockingCollection <double> alarmCollection       = new BlockingCollection <double>();
            BlockingCollection <double> filterCollection      = new BlockingCollection <double>();

            DAQ               daq         = new DAQ();
            ConvertAlgo       convertAlgo = new ConvertAlgo();
            BloodPressureAlgo bpAlgo      = new BloodPressureAlgo();
            PulseAlgo         pulseAlgo   = new PulseAlgo();

            IDAQ       transducerdaq = new TransducerDAQ(daq, rawCollection, calibrationCollection);
            IData      data          = new Database();
            IAlarmType alarmType     = new HighAlarm();
            ILimits    limits        = new UC9S5_Limits();


            IAlarm  alarm                      = new UC5S1_Alarm(alarmCollection, limits, alarmType, bpAlgo);
            IFilter filter                     = new UC7S3_Filter(filterCollection, data, convertAlgo);
            UC1M1_ZeroAdjustment uc1           = new UC1M1_ZeroAdjustment(calibrationCollection, transducerdaq);
            DataTreatment        dataTreatment = new DataTreatment(rawCollection, graphCollection, filterCollection, alarmCollection, convertAlgo, data, alarm, uc1);
            IMeasure             measurement   = new UC2M2_UC3M3_Measure(transducerdaq, dataTreatment, alarm, filter);
            ICalibrate           calibrate     = new UC6S2_Calibrate(calibrationCollection, transducerdaq, data);
            IZeroAdjustment      zero          = new UC1M1_ZeroAdjustment(calibrationCollection, transducerdaq);
            IPulse pulse = new UC8S4_Pulse(dataTreatment, pulseAlgo);
            ISave  save  = new UC4M4_SaveData(data, dataTreatment);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ZeroAdjustmentGUI   zeroAdjustment = new ZeroAdjustmentGUI(zero);
            CalibrateGUI        calibrateGUI   = new CalibrateGUI(calibrate, measurement);
            LoginToCalibrateGUI login          = new LoginToCalibrateGUI(calibrateGUI);
            SaveDataGUI         saveGUI        = new SaveDataGUI(save);
            ChangeLimitsGUI     limitsGUI      = new ChangeLimitsGUI(limits);
            MainGUI             gui            = new MainGUI(dataTreatment, measurement, login, zeroAdjustment, alarm, pulse, bpAlgo, filter, saveGUI, limitsGUI, calibrateGUI);

            Application.Run(gui);
        }