x += 0.0025; /* increment x6 output by 2.5 mV */
if (x | >= 10) x | = 0; |
|
|
|
|
|
sprintf (str2, | ″X6,%f$″, x); | /* | make | x6 | command | string */ | |
txstr | (str2); |
| /* | send | x6 | command | */ |
/* print results to screen */ printf (″Output = %10.36\n″, v1);
}
}
/* ********************************************* */ nocom ()
/* error handling routine goes here */
{
printf(″RS232 Timeout Error\n″); putch (7);
exit ();
}
46