예제 #1
0
파일: MainGUI.cs 프로젝트: labJunky/DDS
        private void setChannelButton_Click(object sender, EventArgs e)
        {
            // Parse information
            AD9958         selectedDDS = ddsList[deviceListBox.SelectedIndex];
            ChannelSetting setting     = ((IChannelSetting)channelTabControl.SelectedTab.Controls[0]).ChannelSetting;

            setChannel(selectedDDS, setting);
        }
예제 #2
0
        private ChannelSetting getChannelSetting()
        {
            ChannelSetting setting = new ChannelSetting();

            setting.Channel   = Convert.ToInt32(comboBox1.Text);
            setting.Frequency = Convert.ToDouble(frequencyTextBox.Text);
            return(setting);
        }
예제 #3
0
        private ChannelSetting getChannelSetting()
        {
            ChannelSetting setting = new ChannelSetting();

            setting.Channel   = 2;
            setting.Frequency = Convert.ToDouble(frequencyComboBox.Text);
            setting.Phase     = Convert.ToDouble(phaseComboBox.Text);
            return(setting);
        }
예제 #4
0
파일: MainGUI.cs 프로젝트: labJunky/DDS
 private void setChannel(AD9958 dds, ChannelSetting Setting)
 {
     if (Setting.Channel == 2)
     {
         dds.SetTwoChannelRelativePhase(Setting.Frequency, Setting.Phase);
     }
     else
     {
         dds.SetFrequency(Setting.Channel, Setting.Frequency);
     }
 }