Exemplo n.º 1
0
        private void StopMeasAndClear()
        {
            m_maiDevice.DAChannels.StopNotificationThread();
            m_maiDevice.DAChannels.StopOutput();

            m_maiDevice.ADChannels.DataSink.Disable();
            m_maiDevice.StopMeasure();
            m_maiDevice.ClearAllChannelLists();
        }
Exemplo n.º 2
0
        private void buttonMeasrement_Click(object sender, EventArgs e)
        {
            try{
                FormMeasureAD mad = new FormMeasureAD(this);
                mad.ShowDialog();
                m_maiDevice.StopMeasure();
                m_maiDevice.ADChannels.DataSink.Disable();

                m_maiDevice.ADChannels.DataSink.Target = null;

                m_maiDevice.ClearAllChannelLists();
            }
            catch (Exception x) {
                m_maiDevice.StopMeasure();
                m_maiDevice.ADChannels.DataSink.Disable();

                m_maiDevice.ADChannels.DataSink.Target = null;

                m_maiDevice.ClearAllChannelLists();
                MessageBox.Show(x.Message);
            }
        }