public override void AcquisitionStarting()
 {
     synth = (Synth)Environs.Hardware.Instruments[(string)settings["synth"]];
     synth.Connect();
     synth.Amplitude   = (double)settings["scanOnAmplitude"];
     synth.DCFMEnabled = false;
 }
 public override void AcquisitionStarting()
 {
     synth = (Synth)Environs.Hardware.Instruments[(string)settings["synth"]];
     synth.Connect();
     synth.Frequency   = (double)settings["onFrequency"];
     synth.DCFMEnabled = false;
 }
Esempio n. 3
0
        const double VCO_LOW  = 0;            // lower input range of the VCO

        private void StartAcquisition()
        {
            if (((string)Environs.Hardware.GetInfo("phaseLockControlMethod")) == "analog")
            {
                cm = ControlMethod.analog;
            }
            else
            {
                cm = ControlMethod.synth;  //synth is default
            }
            if (cm == ControlMethod.synth)
            {
                redSynth = (Synth)Environs.Hardware.Instruments["red"];
                redSynth.Connect();
            }
            else
            {
                redSynth = null;
            }

            if (cm == ControlMethod.analog && !Environs.Debug)
            {
                configureAnalogOutput();
            }

            oscillatorFrequency        = OSCILLATOR_TARGET_RATE;
            accumulatedPhaseDifference = 0;
            sampleCounter = 0;
            ClearGUI();
            PrepareDataStores();

            if (!Environs.Debug)
            {
                StartCounter();
            }
            else
            {
                StartFakeCounter();
            }
        }