EasyManuals Logo
Home>Tektronix>Measuring Instruments>TDSUSB2

Tektronix TDSUSB2 User Manual

Tektronix TDSUSB2
233 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #156 background imageLoading...
Page #156 background image
R-GPIB Commands Sample Program
{
printf("Error : %s\nibsta = 0x%x iber r = %d (%s)\n",
ErrorMsg, ibsta, iberr, ErrorMnemonic[iberr]);
if (ud != -1)
{
printf("Cleanup: Taking device ofine\n");
ibonl(ud, 0);
}
exit(0);
}
int start_application( int scope )
{
char write_buffer[100];
char read_buffer[100];
char app_name[] = "\"USB2.0 Test Package\"\n";
int status, timer;
/* Start the TDSUSB2 application */
sprintf(write_buffer, "%s", "Application:activate \"USB2.0 Test Package\"");
status = ibwrt(scope, write_buffer, strlen(write_buffer));
if (ibsta & ERR)
{
GPIBCleanup(scope, "Unable to start the application");
return 0;
}
timer = 1;
while (1)
{
/* Check whether application has started */
sprintf(write_buffer, "%s", "Variable:value? \"application\"");
status = ibwrt(scope, write_buffer, strlen(write_buffer));
status = ibrd(scope, read_buffer, sizeof(read_buffer));
144 TDSUSB2 Universal Serial Bus Measurements Package

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tektronix TDSUSB2 and is the answer not in the manual?

Tektronix TDSUSB2 Specifications

General IconGeneral
BrandTektronix
ModelTDSUSB2
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals