/// <summary> /// Prepare ADC data for visualization /// </summary> public void BuildData() { ADCValues.Clear(); if (RxArray == null) { return; } VoltPoint[] temp = new VoltPoint[RxArray.Length]; RaiseProgressChanged(null); Debug.WriteLine("=> filling ADCValues"); for (int i = 0; i < RxArray.Length; i++) { temp[i] = (new VoltPoint(((double)RxArray[i] / (double)RCUCom.ADCBinMax) * RCUCom.ADCVoltMax, i / RCUCom.ADCSampleRate)); } ADCValues.AddRange(temp); //foreach (var item in temp) //{ // ADCValues.Add(item); //} }
/// <summary> /// Prepare ADC data for visualization /// </summary> public void BuildData() { ADCValues.Clear(); if (RxArray == null) return; VoltPoint[] temp = new VoltPoint[RxArray.Length]; RaiseProgressChanged(null); Debug.WriteLine("=> filling ADCValues"); for (int i = 0; i < RxArray.Length; i++) { temp[i] = (new VoltPoint(((double)RxArray[i] / (double)RCUCom.ADCBinMax) * RCUCom.ADCVoltMax, i / RCUCom.ADCSampleRate)); } ADCValues.AddRange(temp); //foreach (var item in temp) //{ // ADCValues.Add(item); //} }