882 Video Test Instrument User Guide (Rev. A.35)
189
timinglog.cpp
This example demonstrates the ability to output data to a file. It uses the new functions
related to file output: fopen(); fclose(); fprint().
#include <stdio.h>
#include <QDScriptContext.h>
extern int fopen();
extern int fclose();
extern int fprintf();
// set up delay between timing measurements as 5000 milliseconds
UINT32 delay = 5000;
bool Script_timinglog( QDScriptContext& sc )
{
INT32 num = 1;
// open a text file to write to
FILE* outfile = fopen("/card0/timing_log.txt","w");
fprintf( outfile, "Start of timing analyzer log\n\n" );
fprintf( outfile, "Delay between timing measurements: %d milliseconds\n", delay );
sc.Exec("DATE?");
fprintf( outfile, "Measurement start date and time: %s, ", sc.GetResponse());
sc.Exec("TIME?");
fprintf( outfile, "%s\n\n", sc.GetResponse());
fprintf( outfile,
"Number\tSCAN\tPRAT\t\t\tHRAT\tVRAT\t\tHTOT\tHRES\tHSPD\tHSPW\tHSPP\tVTOT\tV
RES\tVSPD\tVSPW\tVSPP\tHVPD\n" );
fprintf( outfile,
"====\t====\t====\t====\t====\t====\t====\t====\t====\t====\t====\t====\t====\n" );
// infinite loop until you press Stop on top right
while (true)
Summary of Contents for 881
Page 1: ...881 882 Video Test Instrument User Guide 882E for HDMI ...
Page 12: ...10 Contents ...
Page 50: ...38 Chapter 1 Getting Started ...
Page 84: ...72 Chapter 2 Testing Video Displays ...
Page 99: ...882 Video Test Instrument User Guide Rev A 35 87 ...
Page 102: ...90 Chapter 3 Administrative Tasks ...
Page 107: ...882 Video Test Instrument User Guide Rev A 35 95 ...
Page 216: ...204 Chapter 5 Working with Formats ...
Page 248: ...236 Chapter 7 Working with Images ...
Page 264: ...252 Chapter 8 Working with Test Sequences ...
Page 382: ...40 Chapter 11 Testing EDID for HDMI 2 Expand the EDID Block in the navigation view ...
Page 446: ...104 Chapter 12 CEC Interactive Troubleshooting Environment ITE ...
Page 493: ...882 Video Test Instrument User Guide Rev A 35 151 ...
Page 591: ...882 Video Test Instrument User Guide Rev A 35 213 Commands by name ...
Page 687: ...882 Video Test Instrument User Guide Rev A 35 309 Example DVIC 23 FMTU ...
Page 1018: ...580 Appendix B Image Reference The EMITest5 image is shown below ...
Page 1094: ...656 Appendix B Image Reference ...
Page 1124: ...686 Appendix C Error Messages ...
Page 1140: ...702 Appendix D Format Reference ...