Programming Examples 55
SR620 Universal Time Interval Counter
/* ********************************************************************* */
void GetGpib (address) /* get an answer from device at address */
int address;
{
char r_string[40], temp[80];
sprintf (r_string, "UNT UNL MLA TALK %d", address);
transmit (&status, r_string);
StatCheck (address);
strcpy (temp, " ");
receive (&status, &length, temp);
StatCheck (address);
strcpy (recv, temp);
}
/* ******************************************************************** */
void StatCheck (address)
/* check the gpib status and exit if error */
int address;
{
if (status != 0)
{
printf ("Error at device %d : status = %d",address,status);
exit (0);
}
}
Содержание SR620
Страница 2: ...SR620 Universal Time Interval Counter...
Страница 6: ...iv Table of Contents SR620 Universal Time Interval Counter...
Страница 8: ...vi Safety and Preparation for Use SR620 Universal Time Interval Counter...
Страница 12: ...x Specifications SR620 Universal Time Interval Counter...
Страница 58: ...42 Programming Commands SR620 Universal Time Interval Counter...
Страница 72: ...56 Programming Examples SR620 Universal Time Interval Counter...
Страница 76: ...60 Troubleshooting Tips SR620 Universal Time Interval Counter...
Страница 82: ...66 Performance Test SR620 Universal Time Interval Counter...
Страница 90: ...74 Calibration Procedure SR620 Universal Time Interval Counter...
Страница 102: ...86 Circuit Description SR620 Universal Time Interval Counter...
Страница 124: ...108 Parts List SR620 Universal Time Interval Counter...