Quantum Data 881 User Manual page 533

Video test instrument
Hide thumbs Also See for 881:
Table of Contents

Advertisement

882 Video Test Instrument User Guide (Rev. A.35)
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());
}
505

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

882

Table of Contents