Пример #1
0
        private void InsertChannels(MAIDevice selected)
        {
            flpADChannels.Controls.Clear();
            for (int i = 0; i < selected.ADChannels.Count(); i++)
            {
                ADChannelSmall nc = new ADChannelSmall(selected.ADChannels[i]);

                flpADChannels.Controls.Add(nc);
            }
            flpDAChannels.Controls.Clear();
            for (int i = 0; i < selected.DAChannels.Count(); i++)
            {
                DAChannelSmall nc = new DAChannelSmall(selected.DAChannels[i]);
                flpDAChannels.Controls.Add(nc);
            }
            flpDIOChannels.Controls.Clear();
            for (int i = 0; i < selected.TTLChannels.Count(); i++)
            {
                DIOChannel nc = new DIOChannel(selected.TTLChannels[i]);
                flpDIOChannels.Controls.Add(nc);
            }
            flpCT.Controls.Clear();
            for (int i = 0; i < selected.CTChannels.Count(); i++)
            {
                CTChannel nc = new CTChannel(selected.CTChannels[i], this);
                flpCT.Controls.Add(nc);
            }
        }
Пример #2
0
 public ADSetup(ADChannelSmall AIParent)
 {
     m_Parent = AIParent;
     InitializeComponent();
      comboBoxGain.SelectedIndex =(int) m_Parent.GainF;
      comboBoxOversampling.SelectedIndex = (int)m_Parent.Oversampling;
      checkBoxBipolar.Checked = m_Parent.Bipolar;
 }
Пример #3
0
 public ADSetup(ADChannelSmall AIParent)
 {
     m_Parent = AIParent;
     InitializeComponent();
     comboBoxGain.SelectedIndex         = (int)m_Parent.GainF;
     comboBoxOversampling.SelectedIndex = (int)m_Parent.Oversampling;
     checkBoxBipolar.Checked            = m_Parent.Bipolar;
 }
Пример #4
0
        private void InsertChannels(MAIDevice selected)
        {
            flpADChannels.Controls.Clear();
            for (int i = 0; i < selected.ADChannels.Count(); i++) {
                ADChannelSmall nc = new ADChannelSmall(selected.ADChannels[i]);

                flpADChannels.Controls.Add(nc);
            }
            flpDAChannels.Controls.Clear();
            for (int i = 0; i < selected.DAChannels.Count(); i++) {
                DAChannelSmall nc = new DAChannelSmall(selected.DAChannels[i]);
                flpDAChannels.Controls.Add(nc);
            }
            flpDIOChannels.Controls.Clear();
            for (int i = 0; i < selected.TTLChannels.Count(); i++) {
                DIOChannel nc = new DIOChannel(selected.TTLChannels[i]);
                flpDIOChannels.Controls.Add(nc);
            }
            flpCT.Controls.Clear();
            for (int i = 0; i < selected.CTChannels.Count(); i++) {
                CTChannel nc = new CTChannel(selected.CTChannels[i], this);
                flpCT.Controls.Add(nc);
            }
        }