Text: |
ԲΠ= òðåòÿ ëàáà ×²Ñ 3
Çàïèòàííÿ:int t = 0;
bool a, b;
for (int n = 0; n < 5; n++)
{
t = 0;
a = false;
b = false;
Do(1, 0, 16, -10);
Time.Pause(2);
Do(1, 1, 16, 2);
Time.Pause(2);
Do(1, 0, 16, 15);
Time.Pause(2);
Do(3, 0, 16, 2);
Do(2, 0, 16, 2047);
double U1 = Do(4, 0, 0, 0) * 5.0 / 2047.0;
Time.Pause(1);
if ((Math.Abs(U1)>0.10) & (Math.Abs(U1)<0.7)) a = false; else a = true;
Do(3, 0, 16, 2);
Do(2, 0, 16, -2047);
U1 = Do(4, 0, 0, 0) * 5.0 / 2047.0;
Time.Pause(1);
if ((Math.Abs(U1)>0.10) & (Math.Abs(U1)<0.7)) b = false; else b = true;
Do(1, 1, 16, 2);
Time.Pause(2);
if (a & b) t = 9; else t = 0;
Do(1, 0, 16, t+ 1);
Time.Pause(2);
Do(1, 1, 16, 16);
Time.Pause(2);
====================================
|