public debugFORM(Interpreter n, Ctrl c) { ctrl = c; InitializeComponent(); motor_test_ST = new SrbThread(motor_test_Thread); get_speed_table_ST = new SrbThread(get_speed_table_Thread); TestSequence_ST = new SrbThread(TestSequence_Thread); bgd = n; }
public debugFORM(Interpreter n, Ctrl c) { ctrl = c; InitializeComponent(); motor_test_ST = new SrbThread(motor_test_Thread); get_speed_table_ST = new SrbThread(get_speed_table_Thread); bgd = n; test_sequence = new TestSequence(bgd); test_sequence.eGetMotorStatus += Test_sequence_eGetMotorStatus; test_sequence.chart = this.chart1; chart1.setXToStr(test_sequence.strToMs); }
private void syncDiffTestBTN_Click(object sender, EventArgs e) { if (sync_test_ST == null) { sync_test_ST = new SrbThread(sync_test_Thread); } if (this.sync_test_ST.Is_running == false) { (sender as ToolStripMenuItem).BackColor = Color.Gold; sync_test_ST.run(sync_bc.Bus); } else { (sender as ToolStripMenuItem).BackColor = Control.DefaultBackColor; sync_test_ST.stop(); } }
public TestSequence(Interpreter bgd) { this.bgd = bgd; st = new SrbThread(TestSequence_Thread); st.Priority = System.Threading.ThreadPriority.Highest; }