Пример #1
0
        private void buttonCardConfig_Click(object sender, EventArgs e)
        {
            try {
                FormOutputWaveForms outwav = new FormOutputWaveForms(this);
                outwav.ShowDialog();
                m_maiDevice.StopMeasure();
                m_maiDevice.DAChannels.StopOutput();
                m_maiDevice.DAChannels.ClearProcessDataBufferEventHandlers();
                m_maiDevice.DAChannels.StopNotificationThread();


                m_maiDevice.ClearAllChannelLists();
            }
            catch (Exception x) {
                m_maiDevice.StopMeasure();
                m_maiDevice.DAChannels.StopOutput();
                m_maiDevice.ClearAllChannelLists();
                m_maiDevice.DAChannels.ClearProcessDataBufferEventHandlers();
                m_maiDevice.DAChannels.StopNotificationThread();

                MessageBox.Show(x.Message);
            }
        }
Пример #2
0
        private void buttonCardConfig_Click(object sender, EventArgs e)
        {
            try {
                FormOutputWaveForms outwav = new FormOutputWaveForms(this);
                outwav.ShowDialog();
                m_maiDevice.StopMeasure();
                m_maiDevice.DAChannels.StopOutput();
                m_maiDevice.DAChannels.ClearProcessDataBufferEventHandlers();
                m_maiDevice.DAChannels.StopNotificationThread();

                m_maiDevice.ClearAllChannelLists();
            }
            catch (Exception x) {
                m_maiDevice.StopMeasure();
                m_maiDevice.DAChannels.StopOutput();
                m_maiDevice.ClearAllChannelLists();
                m_maiDevice.DAChannels.ClearProcessDataBufferEventHandlers();
                m_maiDevice.DAChannels.StopNotificationThread();

                MessageBox.Show(x.Message);

            }
        }