EasyManua.ls Logo

Quantum Data 881 - Page 553

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...
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;
}

Table of Contents

Related product manuals