private void StartGetTemp() //start getting signal without click { timerDrawTemp.Start(); //start timer TempGraph.f_ClearAllPix(); TempGraph.f_reXY(); TempGraph.f_LoadOnePix(ref x2, ref y2, Color.Red, 2); TempGraph.f_AddPix(ref x3, ref y3, Color.Blue, 2); }
private void StartDraw()//start getting signal without click { TempGraph.f_ClearAllPix(); TempGraph.f_reXY(); TempGraph.f_LoadOnePix(ref x1, ref y1, Color.Red, 2); TempGraph.f_AddPix(ref x_b, ref y_b, Color.Blue, 2); TempGraph.f_AddPix(ref x_p, ref y_p, Color.Green, 2); }
/*******************************************************************************************************************/ private void btnGetAnalogIn_Click(object sender, EventArgs e) //start the timer when click the button { timerDraw.Start(); //start timer Graph1D.f_ClearAllPix(); TempGraph.f_ClearAllPix(); Graph1D.f_reXY(); TempGraph.f_reXY(); Graph1D.f_LoadOnePix(ref x1, ref y1, Color.Red, 2); TempGraph.f_LoadOnePix(ref x2, ref y2, Color.Red, 2); TempGraph.f_AddPix(ref x3, ref y3, Color.Blue, 2); }
private void initial_set_Ports_Low() { for (int i = 0; i < 8; i++) { digitalOutLow(i); } digitalOutLow(10); digitalOutLow(11); digitalOutLow(12); digitalOutLow(13); pumpIndicator.BackColor = Color.Gray;//clear all expected valveIndicator1.BackColor = Color.Gray; preconOnIndicator1.BackColor = Color.Gray; preconHighIndicator1.BackColor = Color.Gray; columnIndicator.BackColor = Color.Gray; valvaIndicator2.BackColor = Color.Gray; preconOnIndicator2.BackColor = Color.Gray; preconHighIndicator2.BackColor = Color.Gray; //TempGraph initial TempGraph.f_ClearAllPix(); TempGraph.f_reXY(); TempGraph.f_LoadOnePix(ref x2, ref y2, Color.Red, 2); TempGraph.f_AddPix(ref x3, ref y3, Color.Blue, 2); }