Quantum Data 881 User Manual page 563

Hide thumbs Also See for 881:
Table of Contents

Advertisement

882 Video Test Instrument User Guide (Rev. A.35)
else
printf("\nThere is no response.\n");
// =========================================================
// Demonstration of multi-line respones
// =========================================================
if (sc.Canceled()) {
return true;
}
// query the first 10 test images in the generator
sc.SetCmdName("IMGQ?");
sc.Append(" 1 10");
sc.Exec();
printf("\nThe response of command \"%s\" has %d lines\n",
sc.GetCmdName(), sc.GetRespLineCount());
printf("\nThe 9th line of response is %s\n", sc.GetResponse(9));
for ( UINT32 index=1; index<sc.GetRespLineCount()+1; index++ ) {
printf("Response line %d is: %s \n", index,
sc.GetResponse(index));
}
// =========================================================
// Demonstration of Operator "=" and "+=" overloading
// =========================================================
sc.Reset();
if (sc.Canceled()) {
return true;
}
sc
= "SCRX:";
sc += "LIST";
sc += "?";
sc.Exec();
printf("\nThe return value of command \"%s\" is %s\n",
sc.GetCmdName(), sc.GetResponse());
// =========================================================
// Demonstration of QDLcd associated APIs, InputInteger() &
InputFloat()
// =========================================================
if (sc.Canceled()) {
return true;
}
// Test "InputInteger( const char* prompt )" API
INT32 test = sc.InputInteger( "My test:" );
printf("\nThe input of my test is: %d\n", test);
if (sc.Canceled()) {
return true;
}
test = sc.InputInteger( "Input another one:" );
printf("\nThe input of second input is: %d\n", test);
if (sc.Canceled()) {
return true;
}
test = sc.InputInteger( "Test limity:", 3, 300 );
printf("\nThe input of test limit is: %d\n", test);
if (sc.Canceled()) {
185

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

882

Table of Contents