R-GPIB Commands Sample Program
}
Sleep(1000);
/*Generate the report*/
sprintf(write_buffer, "variable:value \"reportGenerate\",\"generate\"");
printf("%s",write_buffer);
ibwrt(scope, write_buffer, strlen(write_buffer));
if (ibsta & ERR)
{
GPIBCleanup(scope, "Unable to start the application");
return;
}
Sleep(2000);
printf("\t Full Speed Signal Quality Result stored\n");
}
void main()
{
int Dev;
char write_buffer[100];
int status;
Dev = ibdev (BDINDEX, PRIMARY_ADDR_OF_DMM, NO_SECONDARY_ADDR,
TIMEOUT, EOTMODE, EOSMODE);
if (ibsta & ERR)
{
GPIBCleanup(Dev, "Unable to open device");
}
else
{
printf("My device id - %i", Dev);
}
Sleep(1000);
sprintf(write_buffer, "%s", "header off");
148 TDSUSB2 Universal Serial Bus Measurements Package