Ejemplo n.º 1
0
        //=============================================================================

        internal void StartScan()
        {
            if (saleae == null)
            {   // Don't do anything if not yet connected!
                return;
            }

            StopScan();

            if (ScanSeconds < 1)
            {
                ScanSeconds = 1;
                OnPropertyChanged("ScanSec");
            }

            if (BurstSeconds < 5)
            {
                BurstSeconds = 5;
                OnPropertyChanged("BurstSeconds");
            }
            else if (BurstSeconds > 120)
            {
                BurstSeconds = 120;
                OnPropertyChanged("BurstSeconds");
            }

            logger = new LoggingThread(saleae, ScanSeconds, BurstSeconds, CallerLoggingEventHandler);
            logger.StartScan();
        }
Ejemplo n.º 2
0
 internal void StopScan()
 {
     if (logger != null)
     {
         logger.StopScan();
         logger = null;
     }
 }
Ejemplo n.º 3
0
        //=============================================================================

        internal void StartScan()
        {
            if (saleae == null)
            {   // Don't do anything if not yet connected!
                return;
            }

            if (BurstSeconds < 1)
            {
                BurstSeconds = 1;
            }

            StopScan();

            logger = new LoggingThread(saleae, ScanSeconds, BurstSeconds, CallerLoggingEventHandler);
            logger.StartScan();
        }
Ejemplo n.º 4
0
        //=============================================================================
        internal void StartScan()
        {
            if( saleae == null )
            {   // Don't do anything if not yet connected!
                return;
            }

            StopScan();

            if (ScanSeconds < 1)
            {
                ScanSeconds = 1;
                OnPropertyChanged("ScanSec");
            }

            if(BurstSeconds < 5)
            {
                BurstSeconds = 5;
                OnPropertyChanged("BurstSeconds");
            }
            else if( BurstSeconds > 120 )
            {
                BurstSeconds = 120;
                OnPropertyChanged("BurstSeconds");
            }

            logger = new LoggingThread(saleae, ScanSeconds, BurstSeconds, CallerLoggingEventHandler);
            logger.StartScan();
        }
Ejemplo n.º 5
0
 internal void StopScan()
 {
     if (logger != null)
     {
         logger.StopScan();
         logger = null;
     }
 }