예제 #1
0
        public void TestSetSingleChannelFM()
        {
            Message call = new Message();

            call.Add(selectChannelZero);
            call.Add(setTwoLevel);
            call.Add(selectFrequencyModulation);
            call.Add(setFreqTuningWord1MHz);
            call.Add(setChanWordOne2MHz);

            Expect.Once.On(mockMicrocontroller).Method("SendDataToEP2").With(call.ToArray());
            dds.SetModulation(0, 2, "fm", 1e6, 2e6);

            mocks.VerifyAllExpectationsHaveBeenMet();
        }
예제 #2
0
파일: MainGUI.cs 프로젝트: labJunky/DDS
        private void button1_Click(object sender, EventArgs e)
        {
            AD9958            selectedDDS = ddsList[deviceListBox.SelectedIndex];
            ModulationSetting setting     = modulationUserControl1.ModulationSetting;

            selectedDDS.SetModulation(setting.Channel, setting.Levels, setting.Mode, setting.ChannelWords.ToArray());
        }