Quantum Data 881 User Manual page 568

Hide thumbs Also See for 881:
Table of Contents

Advertisement

190
Chapter 15 Script SDK
{
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());

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

882

Table of Contents