private void XRayDataStateStopBtn_Checked(object sender, RoutedEventArgs eventArguments) { try { AccessDetectorsData.Detectors.SetDataTransferMode(dataTransferMode.Stop); } catch (Exception ex) { AnomalyShow(ex); } try { PxeWriteAccess pxeAccess = new PxeWriteAccess(); pxeAccess.CreatePXE("Test" + DateTime.Now.Ticks.ToString() + ".pxe"); pxeAccess.CreatePXEHeader(1, (uint)AccessDetectorsData.Detectors.RawDataCollection.Count, (uint)AccessDetectorsData.Detectors.PixelsPerColumn); while (AccessDetectorsData.Detectors.RawDataCollection.Count > 0) { DataInfo information = AccessDetectorsData.Detectors.RawDataCollection.Take(); float[] data = PixelConverter.Convert(information.LineData); pxeAccess.WriteDataLines(1, data, 1); } pxeAccess.ClosePXEWrite(); } catch (Exception ex) { AnomalyShow(ex); } }
public ArchiveData(EventLoggerAccess log, Calibration calibration) { _log = log; _calibration = calibration; _pxeWriteAccess = new PxeWriteAccess(); }