sampseq.cpp
882 Video Test Instrument User Guide (Rev. A.35)
This example delays and does nothing except waits to be cancelled, then reports to a
serial terminal whether it was cancelled.
#include <stdio.h>
#include <QDScriptContext.h>
bool Script_tcan( QDScriptContext& sc )
{
sc.Exec("CIOY");
printf("Pause for 10 seconds\n");
sc.Pause( 10000 );
if (sc.Canceled())
{
printf("Script was canceled\n");
}
else
{
printf("Script completed\n");
}
return true;
}
// enable printf to serial terminal
// pause for 10 seconds
501
Need help?
Do you have a question about the 881 and is the answer not in the manual?