public void DownloadShowData(Station _st) { _eventtime = ShowDB.Query(_selectedStation, ShowDataType.EventTime); _pulseheight = ShowDB.Query(_selectedStation, ShowDataType.PulseHeight); _pulseintegral = ShowDB.Query(_selectedStation, ShowDataType.PulseIntegral); _singleslow = ShowDB.Query(_selectedStation, ShowDataType.SinglesLow); _singleshigh = ShowDB.Query(_selectedStation, ShowDataType.SinglesHigh); _singlesratelow = ShowDB.Query(_selectedStation, ShowDataType.SinglesRateLow); _singlesratehigh = ShowDB.Query(_selectedStation, ShowDataType.SinglesRateHigh); }
public async void SetStation(Station _station) { Channel1.Clear(); Channel2.Clear(); Channel3.Clear(); Channel4.Clear(); await Task.Run(() => _dataSheet = ShowDB.Query(_station, _plotType)); // Channel 1 for (int i = 0; i < _dataSheet.Data[0].Count; i++) { Channel1.Add(new DataPoint(XFormat(i), _dataSheet.Data[0][i])); } // Channel 2 if (_dataSheet.Data.Length >= 2) { for (int i = 0; i < _dataSheet.Data[1].Count; i++) { Channel2.Add(new DataPoint(XFormat(i), _dataSheet.Data[1][i])); } } if (_station.DetectorConfiguration == DetectorConfiguration.MasterAndSlave) { // Channel 3 for (int i = 0; i < _dataSheet.Data[2].Count; i++) { Channel3.Add(new DataPoint(XFormat(i), _dataSheet.Data[2][i])); } // Channel 4 for (int i = 0; i < _dataSheet.Data[3].Count; i++) { Channel4.Add(new DataPoint(XFormat(i), _dataSheet.Data[3][i])); } } }