Ejemplo n.º 1
0
        public void Setup()
        {
            _logger = SerilogHelper.CreateLogger(nameof(X20Device_Test));
            var fac = SerilogHelper.GetLoggerFactory();

            _device = DeviceHelper.GetFirstSuitableDevice(fac);
        }
Ejemplo n.º 2
0
        public void Setup()
        {
            _logger = SerilogHelper.CreateLogger(nameof(CmdGetCapabilitiesDescriptor_Test));
            var fac = SerilogHelper.GetLoggerFactory();

            _device = DeviceHelper.GetFirstSuitableDevice(fac);
        }
        public void Setup()
        {
            _logger = SerilogHelper.CreateLogger(nameof(DataTransfer_Stability_Test));
            var fac = SerilogHelper.GetLoggerFactory();

            _device = DeviceHelper.GetFirstSuitableDevice(fac);
        }
Ejemplo n.º 4
0
        public void Setup()
        {
            _logger = SerilogHelper.CreateLogger(nameof(DataTransfer_Test));

            var fac = SerilogHelper.GetLoggerFactory();

            _device = DeviceHelper.GetFirstSuitableDevice(fac);
            var usePpgResponse = _device.UsePpgWaveform();
        }
Ejemplo n.º 5
0
        private void DisposeDeviceAndWaitForNewConnection()
        {
            try
            {
                _device?.Dispose();
                _device = null;
            }
            catch
            {
            }
            finally
            {
                _device = null;

                ClearDeviceInfoDelegate d = () => ClearDeviceDetails();
                Invoke(d);
            }
        }
Ejemplo n.º 6
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     if (_device == null)
     {
         _device = GetConnectedDevice();
         if (_device != null)
         {
             DisplayDeviceDetails();
         }
     }
     if (_device != null)
     {
         try
         {
             UpdatePlotData();
         }
         catch (Exception ex)
         {
             Debug.WriteLine(ex.Message);
         }
     }
 }