EasyManua.ls Logo

Quantum Data 881 - Page 563

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) 185
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()) {

Table of Contents

Related product manuals