예제 #1
0
 private void StopAcquisition()
 {
     if (!Environs.Debug)
     {
         if (counterTask != null)
         {
             counterTask.Dispose();
         }
         if (cm == ControlMethod.analog)
         {
             analogOutputTask.Dispose();
         }
     }
     else
     {
         lock (this) debugAbortFlag = true;
     }
     if (cm == ControlMethod.synth)
     {
         redSynth.Disconnect();
     }
 }
 public override void AcquisitionFinished()
 {
     synth.Amplitude = (double)settings["offAmplitude"];
     synth.Frequency = (double)settings["offFrequency"];
     synth.Disconnect();
 }