Stanford Research Systems SR530 Manual page 54

Lock-in amplifier
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents