Chapter 15 Script SDK
508
{
sc.SetCancelOnError( false);
// measure the incoming signal
sc.Exec("TMAU");
// repeat measurement if there is no incoming signal
while (sc.Failed())
{
sc.Pause(delay);
sc.Exec("TMAU");
}
// if Stop is pressed, close the file and end script
if (sc.Canceled()) {
sc.Exec("DATE?");
fprintf( outfile, "\nMeasurement end date and time: %s, ", sc.GetResponse());
sc.Exec("TIME?");
fprintf( outfile, "%s\n\n", sc.GetResponse());
fprintf( outfile, "End of timing analyzer log\n" );
fclose( outfile );
return true;
}
// query and write measured timing values to the text file
fprintf( outfile, "%d\t\t", num);
sc.Exec("TMAX:SCAN?");
fprintf( outfile, "%s\t", sc.GetResponse());
sc.Exec("TMAX:PRAT?");
fprintf( outfile, "%s\t", sc.GetResponse());
sc.Exec("TMAX:HRAT?");
fprintf( outfile, "%s\t", sc.GetResponse());
Need help?
Do you have a question about the 881 and is the answer not in the manual?