IsDeviceCCD
Tests if a controller is connected to an IR array or CCD. The way it's determined is by testing the controller configuration parameter video bits.
Syntax
bool IsDeviceCCD();
Parameters
None
Returns
bool - 'true' if the controller is connected to a CCD. Returns 'false' if connected to an IR array.
Required Headers
CController.h
Namespace
arc
Throws
std::runtime_error
Remarks
None
Example
        // This code demonstrates how to test if a
        // controller is connected to a CCD or IR
        // array.

        #include <iostream.h>
        #include "CController.h"
        using namespace std;
        using namespace arc;

        CController cController;

        // .... open driver, initialize, etc ....

        try {
            if ( cController.IsDeviceCCD() )
                cout << "We are using a CCD!" << endl;
            else
                cout << "We are using an IR array!" << endl;
        }
        catch ( std::exception &e )
        {
            cerr << "Exception Occurred: " << e.what() << endl;
        }

© Astronomical Research Cameras, Inc.