Quantum Data 881 User Manual page 566

Hide thumbs Also See for 881:
Table of Contents

Advertisement

188
Chapter 15 Script SDK
else
printf("\nCommand execution failed.\n");
// =========================================================
// Demonstration of detecting invalid command
// =========================================================
// First, set CancelOnError to be FALSE, the test should continue to
next
sc.SetCancelOnError( false );
sc.SetCmdName("VERP?");
sc.Exec();
printf("\nThe error status of the invalid command %s is %d\n",
sc.GetCmdName(), sc.GetError());
if (sc.Canceled()) {
printf("The test exited because the command is not valid\n");
return true;
}
else
{
printf("Script not cancelled.
}
// Then, set CancelOnError to be TRUE, the test should continue to
next
sc.SetCancelOnError( true );
sc.SetCmdName("VERP?");
sc.Exec();
printf("\nThe error status of the invalid command %s is %d\n",
sc.GetCmdName(), sc.GetError());
if (sc.Canceled()) {
printf("The test exited because the command is not valid\n");
return true;
}
else
{
printf("Script not cancelled.
}
return true;
}
Execution should continue\n");
Execution should continue\n");

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

882

Table of Contents