SRS Labs Lock-In Amplifier Stereo Amplifier User Manual


 
50
txstr (q2$); /* read channel 2 output */
rxstr (str2); /* into str2 */
sscanf (str2, %f, &v2); /* scan str2 for a float variable */
x += 0.0025; /* increment x6 output by 2.5 mV */
if (x >= 10) x = 0;
sprintf (str3, X6,%f$, x); /* make x6 command string */
txstr (str3); /* send x6 command */
/* print results to screen */
printf (Channel 1 = %10.36 Channel 2 = %10.36\n, v1, v2);
}
}
/* ********************************************* */
nocom ()
/* error handling routine goes here */
{
printf(RS232 Timeout Error\n);
putch (7);
exit ();
}