Command
Sends a command to the pci, timing, or utility board.
Syntax
long Command( board_id, command, arg1, arg2, arg3, arg4 );
Parameters
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.
Returns
long - A command specific reply value. For most commands the reply will be 'DON' (done).
Required Headers
CController.h
Namespace
arc
Throws
std::runtime_error
Remarks
Exceptions can be caught using a try/catch block.
Example
        // 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.