106 Application Programs
} while (((int)condition_data && WTG) == 0) ; /* Loop until bit 5 (value 32) is true. */
/* Send trigger command to start List and generate the voltage ramp. */
cmd = "TRIGGER:IMMEDIATE”; /* This is an immediate trigger, which is always */
error = iooutputs(SLOTO, cmd, strlen(cmd)); /* active. Therefore, it does not need to be */
error_handler(error, cmd); /* selected as a trigger source. */
}
error_handler(error,bad_string) /* This is a generalized error checking routine. */
int error;
char *bad_string;
{
if (error != 0) {
printf("Agilent -1B error while sending or receiving ‘%s’.\n”, bad_string);
printf("Error #: %d - - %s\n”, error, errstr(error));
}
}