private void btnResetTeachResult_Click(object sender, EventArgs e) { Global_Tick = 0; Total_PointRecord = null; Total_PointRecordString = null; Total_AngleRecord = null; Total_AngleRecordString = null; this.labelCurrent.Text = Global_Tick.ToString() + "/" + Total_Counts.ToString(); TeachTimer.Stop(); this.TextBoxPointResult.Text = ""; }
//开始记录点位 private void btnStartTeach_Click(object sender, EventArgs e) { //手动设置时间间隔 Global_Tick_Time = Convert.ToInt32(txtRecordTick.Text); TeachTimer.Interval = Global_Tick_Time; //初始化记录点位的数组 Total_Counts = Convert.ToInt32(txtRecordLimit.Text); Total_PointRecord = new double[(Total_Counts + 1), 6]; Total_PointRecordString = new string[(Total_Counts + 1)]; Total_AngleRecord = new double[(Total_Counts + 1), 6]; Total_AngleRecordString = new string[(Total_Counts + 1)]; TeachTimer.Start(); }
private void btnStopTeach_Click(object sender, EventArgs e) { TeachTimer.Stop(); }