Exemplo n.º 1
0
        public void Start()
        {
            _dataCollector.StartLoading();

            while (!_dataQueue.IsCompleted)
            {
                processedDataList = new List <double>();
                try
                {
                    rawDataList = _dataQueue.Take();
                }
                catch
                {
                }
                //Kør unitconverteren
                processedDataList = _unitConverter.GetCalibratedSampleList(rawDataList, slope, _zeroPointAdjustment.zeroPoint);
                // Digital filter

                //gem resultatet i processedDataList
                if (filterSwitchedOn == true)
                {
                    processedDataList = _digitalFilter.FilterOn(processedDataList);
                }
                else
                {
                    processedDataList = _digitalFilter.FilterOff(processedDataList);
                }
                _dataQueueToCalculation.Add(processedDataList);
            }
        }