SRS Labs Lock-In Amplifier, SR530 manual txstr ″q2$″ /* read channel 2 output

Models: SR530 Lock-In Amplifier

1 82
Download 82 pages 49.26 Kb
Page 54
Image 54

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 */

 

2 = %10.36\n″, v1, v2);

printf (″Channel

1 = %10.36

Channel

}

}

/* ********************************************* */ nocom ()

/* error handling routine goes here */

{

printf(″RS232 Timeout Error\n″); putch (7);

exit ();

}

50

Page 54
Image 54
SRS Labs Lock-In Amplifier, SR530 manual txstr ″q2$″ /* read channel 2 output