private const double baseLine = 1.4; //loop baseline voltage=1.4v private void timerDrawSignal_Tick(object sender, EventArgs e) //start timer and draw { double analogDataIn = analogIn1() + baseLine; txtAnalogIn.Text = analogDataIn.ToString();//display in textbox x1.Add(DrawSingalIndex); y1.Add((float)analogDataIn); DrawSingalIndex = (float)(DrawSingalIndex + 0.25); //for each count the x add 0.1 Graph1D.f_Refresh(); //sampling }
private const double baseLine = 1.4; //loop baseline voltage=1.4v private void timerDraw_Tick(object sender, EventArgs e) //start timer and draw { double analogDataIn = analogIn1() + baseLine; //double setTemp = tempFunction(25, 10, 10, 10); double setTemp = 0; double actualTemp = analogIn2() * 175000 / 7 + 35000; //thermal couple:25C voltage=0mv, 200C voltage=7mv txtAnalogIn.Text = analogDataIn.ToString(); //display in textbox x1.Add(timerDrawI); y1.Add((float)analogDataIn); x2.Add(timerDrawI); y2.Add((float)setTemp); x3.Add(timerDrawI); y3.Add((float)actualTemp); timerDrawI = (float)(timerDrawI + 0.25); //for each count the x add 0.1 Graph1D.f_Refresh(); //sampling TempGraph.f_Refresh(); }
private const double baseLine = 1.4; //loop baseline voltage=1.4v private void timerDrawSignal_Tick(object sender, EventArgs e) //start timer and draw { double analogDataIn = analogIn1() + baseLine; double analogDataIn2 = analogIn3() + baseLine; x1.Add(DrawSingalIndex); y1.Add((float)analogDataIn); if (heartcuttingNumber > 0) { x4.Add(DrawSingalIndex); y4.Add((float)analogDataIn2); //file.WriteLine(DrawSingalIndex.ToString() + " " + analogDataIn.ToString() + " " + analogDataIn2.ToString()); } else { //file.WriteLine(DrawSingalIndex.ToString() + " " + analogDataIn.ToString()); } DrawSingalIndex = (float)(DrawSingalIndex + 0.25); //for each count the x add 0.1 Graph1D.f_Refresh(); //sampling }