EasyManua.ls Logo

Quantum Data 881 - Page 568

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...
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());

Table of Contents

Related product manuals