User`s manual

ipromptf(addr, "SYSTem:ERRor?\n", "%t", into); // Query error register
if (atoi(into)) // Determine if error is present
{ // If errors present, print and exit
printf("\n\nThe program detected the following error(s):\n\n");
while (atoi(into))
{
printf("%s \t- in function %s\n", into, func_tion);
ipromptf(addr, "SYSTem:ERRor?\n", "%t", into); // Query error register
}
// Close communication
iclose(addr);
// Release SICL resource allocation; not needed for Windows NT
_siclcleanup();
printf("\n\nClose the window or press Alt-F4 to exit");
exit(1);
}
}
//**********************************************************************
void time_out(char *func_name)
{
printf("\n\n\tThe program timed out in function: %s", func_name);
// Close communication
iclose(addr);
// Release SICL resource allocation; not needed for Windows NT
_siclcleanup();
printf("\n\nClose the window or press Alt-F4 to exit");
exit(1);
}
Chapter 1 Getting Started 45