EasyManua.ls Logo

Quantum Data 881 - Page 565

Quantum Data 881
1144 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
882 Video Test Instrument User Guide (Rev. A.35) 187
else
printf("\nCommand execution failed.\n");
// =========================================================
// Demonstration of GetDoubleResponse()
// =========================================================
if (sc.Canceled()) {
return true;
}
sc.SetCmdName("PRAT?");
//sc.ClearScreen();
sc.Exec();
if (sc.Succeed()) {
printf("\nTest GetDoubleResponse(): The return value of command
\"%s\" is %f\n", sc.GetCmdName(), sc.GetDoubleResponse());
}
else
printf("\nCommand execution failed. Error is %d\n",
sc.GetError());
// =========================================================
// Demonstration of GetBoolResponse()
// =========================================================
if (sc.Canceled()) {
return true;
}
sc.SetCmdName("PDAX:RPTG?");
//sc.ClearScreen();
sc.Exec();
if (sc.Succeed()) {
printf("\nTest GetBoolResponse(): The return value of command
\"%s\" is %d\n", sc.GetCmdName(), sc.GetBoolResponse());
}
else
printf("\nCommand execution failed.\n");
// =========================================================
// Demonstration of Pause()
// =========================================================
printf("Pause for 6 seconds\n");
sc.Pause( 6000 );
if (sc.Canceled()) {
return true;
}
printf("\nWake up from Pause(6000)\n");
if (sc.Canceled()) {
return true;
}
sc.SetCmdName("VERG?");
//sc.ClearScreen();
sc.Exec();
if (sc.Succeed()) {
printf("\nThe return value of command \"%s\" is %s\n",
sc.GetCmdName(), sc.GetResponse());
}

Table of Contents

Related product manuals