Quantum Data 881 User Manual page 553

Hide thumbs Also See for 881:
Table of Contents

Advertisement

apnd.cpp
882 Video Test Instrument User Guide (Rev. A.35)
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;
}
175

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

882

Table of Contents