Example #1
0
        /// <summary>
        /// tower height measurment
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnTstart_Click(object sender, EventArgs e)
        {
            Seconds     = 0;
            IsBladeMeas = false;

            if (tower == null)
            {
                ConfigSensor();

                tower = new TowerMeas(ls, cm);
            }

            meas = tower;

            try
            {
                tower.StartMeas();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            timer1.Start();
        }
Example #2
0
        /// <summary>
        /// blade Meas
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnBladeStart_Click(object sender, EventArgs e)
        {
            Seconds     = 0;
            IsBladeMeas = true;

            if (blade == null)
            {
                ConfigSensor();

                blade = new BladeMeas(ls, cm);
            }

            meas = blade;

            try
            {
                blade.StartMeas();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            timer1.Start();
        }