Exemple #1
0
        public void TestSetFrequencyTo100Mhz()
        {
            Message call = new Message();

            call.Add(setFreqTo100MHz);
            Expect.Once.On(mockDevice).Method("SendDataToEP2").With(call.ToArray());
            dds.SetFrequency(100e6);
            mocks.VerifyAllExpectationsHaveBeenMet();
        }
Exemple #2
0
 private void setChannel(AD9958 dds, ChannelSetting Setting)
 {
     if (Setting.Channel == 2)
     {
         dds.SetTwoChannelRelativePhase(Setting.Frequency, Setting.Phase);
     }
     else
     {
         dds.SetFrequency(Setting.Channel, Setting.Frequency);
     }
 }
Exemple #3
0
        public void singletone(int channel, int amplitude, double freq)
        {
            AD9958 selectedDDS = ddsList[0];

            selectedDDS.MasterReset();

            //Set a saftely limit for the rf amplifier for evaporative cooling NTU.
            if (amplitude > 400)
            {
                amplitude = 400;
            }

            selectedDDS.SetFrequency(channel, amplitude, freq);
        }