R-GPIB Commands Sample Program
read_buffer[ibcnt] = ’\0’;
if (strcmp(app_name, read_buffer) == 0)
{
return 1;
}
timer++;
if (timer > 60)
{
return 0;
}
Sleep(1000);
}
return 1;
}
int exit_application(int scope)
{
char write_buffer[100];
printf("Exit Application ...\n");
sprintf(write_buffer, "%s", "Variable:value \"application\",\"exit\"");
ibwrt(scope, write_buffer, strlen(write_buffer));
return 1;
}
int recall_setup(int scope, char* filename)
{
char write_buffer[100];
int status;
/* Set Recall file name */
sprintf(write_buffer, "%s%s%s", "Variable:value \"recallName\",\"", fi lename, "\"");
status = ibwrt(scope, write_buffer, strlen(write_buffer));
if (ibsta & ERR)
{
TDSUSB2 Universal Serial Bus Measurements Package 145