Exemplo n.º 1
0
        private void update_textboxes()
        {
            textBox_Frequency.Value = Convert.ToDecimal(m_SamplingFrequency);
            // TODO: ?????
            //textBox_Amplitude.Text = gaussian_a.ToString();
            //textBox_Period.Text = gaussian_b.ToString();
            //textBox_Phase.Text = gaussian_c.ToString();
            ad_bits_textbox.Text         = m_ADBits.ToString();
            textBox_ADReferenceHigh.Text = m_ADVoltageHigh.ToString();
            textBox_ADReferenceLow.Text  = m_ADVoltageLow.ToString();

            if (m_currentWave != null)
            {
                if (radioButton_PulseInfoAnalog.Checked)
                {
                    textBox_PulseInformation.Text = m_currentWave.GetAnalogStats();
                }
                else
                {
                    textBox_PulseInformation.Text = m_currentWave.GetDigitalStats(m_ADBits, m_ADVoltageHigh, m_ADVoltageLow);
                }
            }
        }