882 Video Test Instrument User Guide (Rev. A.35)
175
apnd.cpp
This example shows how to append text to a command string using the Append function
and demonstrates printing debug messages to a serial port.
#include <stdio.h>
#include <QDScriptContext.h>
bool Script_apnd( QDScriptContext& sc)
{
// enable printf to serial terminal
sc.Exec("CIOY");
// create a command to load the DMT0660 timing format
sc.SetCmdName("FMTL");
sc.Append("/tffs0/Library/Formats/dmt0660.xml");
// print the entire command string to the serial port
printf( "%s\n", sc.GetCmdName() );
// invoke the full FMTL command using the previously assigned command
string
sc.Exec();
// create a command to use the selected timing format
sc.SetCmdName("FMTU");
// invoke the FMTU command using the previously assigned command string
sc.Exec();
return 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 ...