c#基础中怎么去写一个四输入量模拟电流的开关

double value = 0.0;
            inPut_4 inPut4 = new inPut_4();
            inPut4.Open("COM4");
            value = (double)inPut4.getInPut4_Humidity();
            txtCurrent.Text = value.ToString("f");
            inPut4.Close();
            inPut4 = null;
            value = double.Parse(txtCurrent.Text);
            double temp = (value - 4) / 16 * 70 - 10;
            txtTemp.Text = temp.ToString("f1") + "℃";

qq_伴而不弃i_1
浏览 874回答 0
0回答
打开App,查看更多内容
随时随地看视频慕课网APP