IsControllerConnected
Tests if a controller is connected and powered on by sending a Test Data Link ( 'TDL' ) command to the controller. If it succeeds, then the controller is connected and ready.
Syntax
bool IsControllerConnected();
Parameters
None
Returns
bool - 'true' if a Test Data Link ( 'TDL' ) command to the controller succeeds; 'false' otherwise.
Required Headers
CController.h
Namespace
arc
Throws
std::runtime_error
Remarks
None
Example
        // This code demonstrates how to test if a
        // controller is connected and ready.

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

        CController cController;

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

        try {
            if ( cController.IsControllerConnected() )
            {
                // .... do something ....
            }
        }
        catch ( std::exception &e )
        {
            cerr << "Exception Occurred: " << e.what() << endl;
        }

© Astronomical Research Cameras, Inc.