long board_id |
Board to send the command to: PCI_ID (pci board), TIM_ID
(timing board), or UTIL_ID (utility board). |
long command |
A valid pci, timing, or utility board command. See
CController.h command list for details.
|
long arg1 |
[optional] Command dependent argument. Default value: -1.
|
long arg2 |
[optional] Command dependent argument. Default value: -1.
|
long arg3 |
[optional] Command dependent argument. Default value: -1.
|
long arg4 |
[optional] Command dependent argument. Default value: -1.
|
// This code demonstrates how to send a test data link (TDL)
// command to the controller timing board.
#include <iostream.h>
#include "CController.h"
using namespace std;
using namespace arc;
CController cController;
try {
long lReply = cController.Command( TIM_ID, TDL, 0x112233 );
if ( lReply != 0x112233 )
throw std::runtime_error( "TDL command failed" );
}
catch ( std::exception &e )
{
cerr << "Exception Occurred: " << e.what() << endl;
}
© Astronomical Research Cameras, Inc.