Represents a synth and what you can do to it.
Inheritance: GPIBInstrument
 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;
 }
Example #3
0
        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();
        }