public CounterConfigPanelFrequency(CTChannel AImyPanel) { InitializeComponent(); m_ctpanel = AImyPanel; comboBoxFCtResulution.SelectedIndex = (int)m_ctpanel.FCResolution; comboBoxSignalEdge.SelectedIndex = (int)m_ctpanel.Edge; }
public CounterConfigPanelPeriodPulsewidth(CTChannel AImyPanel) { InitializeComponent(); m_ctpanel = AImyPanel; comboBoxResolution.SelectedIndex = (int)m_ctpanel.Resolution; comboBoxSignalEdge.SelectedIndex = (int)m_ctpanel.Edge; }
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); } }
internal void SetMChannel(CTChannel AICardformChannelCT, FormMeasureCT AIParentForm) { m_CardFormChannel = AICardformChannelCT; labelChanneltype.Text = m_CardFormChannel.GetMeasurementType(); labelChannel.Text = m_CardFormChannel.GetMeasurementChannelCaption(); label1.Visible = m_CardFormChannel.MChan.IsADSync; m_ParentForm = AIParentForm; }
public CounterConfigPanelIncremental(CTChannel AImyPanel) { InitializeComponent(); m_ctpanel = AImyPanel; comboBoxSignalEdge.SelectedIndex = (int)m_ctpanel.Edge; comboBoxHWResetMode.SelectedIndex = (int)m_ctpanel.HWResetMode; comboBoxHWREdge.SelectedIndex = (int)m_ctpanel.HWResetEdge; comboBoxInterpolation.SelectedIndex = (int)m_ctpanel.InterpolationMode; }
public CounterConfigPanelImpulse(CTChannel AImyPanel) { InitializeComponent(); m_ctpanel = AImyPanel; numericUpDownPresetValue.Maximum = UInt32.MaxValue; numericUpDownPresetValue.Value = m_ctpanel.PresetValue; comboBoxImpulseDirection.SelectedIndex = (int)m_ctpanel.UpOrDown; comboBoxSignalEdge.SelectedIndex = (int)m_ctpanel.Edge; }
public CTSetup(CTChannel AIMyPanel) { m_CTPanel = AIMyPanel; InitializeComponent(); rbIncremental.Enabled = m_CTPanel.Channel.IsCounterModeAvailable(CounterMode.INCREMENTALCOUNTER); rbIncExtFlow.Enabled = m_CTPanel.Channel.IsCounterModeAvailable(CounterMode.INCEEXTFLOWRATE); rbIncExtTime.Enabled = m_CTPanel.Channel.IsCounterModeAvailable(CounterMode.INCEEXTTIMESTAMP); rbImpulse.Enabled = m_CTPanel.Channel.IsCounterModeAvailable(CounterMode.IMPULSECOUNTER); rbFreq.Enabled = m_CTPanel.Channel.IsCounterModeAvailable(CounterMode.FREQUENCYCOUNTER); rbPeriod.Enabled = m_CTPanel.Channel.IsCounterModeAvailable(CounterMode.PERIODCOUNTER); rbPulsewidth.Enabled = m_CTPanel.Channel.IsCounterModeAvailable(CounterMode.PULSEWIDTHCOUNTER); rbUpDown.Enabled = m_CTPanel.Channel.IsCounterModeAvailable(CounterMode.UPDOWNCOUNTER); checkBoxSyncToAD.Enabled = m_CTPanel.Channel.MyDevice.IsDSPDevice; Mode = m_CTPanel.Mode; checkBoxSyncToAD.Checked = m_CTPanel.ADSync; }
public CounterConfigPanelIncExtTimestamp(CTChannel AImyPanel) { InitializeComponent(); m_ctpanel = AImyPanel; comboBoxResolution.SelectedIndex = (int)m_ctpanel.IncTimestampResolution; }