// Demonstrates how to send 500 TDL's to
// a controller timing board.
#include <iostream.h>
#include "CController.h"
using namespace std;
using namespace arc;
CController cController;
try {
// .... open driver, initialize, etc ....
for ( int i=0; i<500; i++ )
{
lReply = cController.Command( TIM_ID, TDL, i );
if ( lReply != 0x112233 )
throw std::runtime_error( "TDL failed!" );
}
// .... do something else ....
}
catch ( std::exception &e )
{
cerr << "Exception Occurred: " << e.what() << endl;
}
© Astronomical Research Cameras, Inc.