Text: |
ԲΠ= Òû õ
Çàïèòàííÿ:double temp ;
Do(1, 0, 17, 50);
Do(1, 0, 16, 1500);
Time.Pause(15);
double res_0, res, T;
for (int i = 1; i <= 150;i++ )
{
res_0 = Do(2, 0, 0, 0);
res = res_0 / 2047.0;
temp =78+ res / 0.015;
T = 0.5 * i;
if (temp < 81)
{
Do(1, 0, 16, 1500);
}
else {
Do(1, 0, 16, 0);
}
Time.Pause(0.5);
string buf = String.Format("{0:0.#######}\t{1:0.#######}", T, temp);
C.write(buf);
temp = 0;
}
====================================
|