예제 #1
0
        private void m3_status_timer_Tick(object sender, EventArgs e)
        {
            ret = iRemoting.GET_position(_Pwd, ref _position);
            if (ret == 0)
            {
                lab_m3_m_x.Text = _position.Mach[0].ToString();
                lab_m3_m_y.Text = _position.Mach[1].ToString();
                lab_m3_m_z.Text = _position.Mach[2].ToString();
            }
            ret = iRemoting.GET_status(_Pwd, ref _status);
            if (ret == 0)
            {
                lab_m3_status.Text = _status.Status;
                lab_m3_mode.Text   = _status.Mode;
            }
            short asd = iRemoting.GET_time(_Pwd, ref _time);

            if (asd == 0)
            {
                lab_m3_open.Text = _time.Power[0].ToString() + " : " +
                                   _time.Power[1].ToString() + " : " + _time.Power[2].ToString();
            }
        }