Beispiel #1
0
        /// <summary>
        /// Trigger full sweep time calculation and display in human readable form
        /// </summary>
        private void GetSweepTime()
        {
            ulong  start = (ulong)numStartFreq.Value;
            ulong  stop  = (ulong)numStopFreq.Value;
            ulong  step  = (ulong)numStepSize.Value;
            double dwell = (double)numDwellTime.Value;

            // Keep stop bigger than start
            if (start > stop)
            {
                numStartFreq.Value = stop;
                numStopFreq.Value  = start;
                return;
            }

            // Human readable time
            StatusMessage = "Sweep time: " + Sweep.PrettifyTime(Sweep.Time(start, stop, step, dwell));
        }
Beispiel #2
0
 public static void SweepThreadStart(UInt64 start, UInt64 stop, UInt64 step, double dwell)
 {
     SweepClass = new Sweep(start, stop, step, dwell);
 }