IsDriverOpen
Returns true if the device driver is open and available for commucations with the driver, PCI board, and camera controller.
Syntax
bool IsDriverOpen();
Parameters
None
Returns
bool - Returns 'true' if the device driver is open and available for communcations. Returns 'false' otherwise.
Required Headers
CController.h
Namespace
arc
Throws
None
Remarks
None
Example
        // This code demonstrates how to instantiate a new CController
        // object, open a driver and then verify that the driver is open
        // and available for communications with driver, PCI board and
        // camera controller.

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

        CController cController;

        try {
            // Find all ARC PCI boards in the system.
            // This MUST be called first!
            cController.GetDeviceBindings();

            if ( cController.GetDeviceBindingCount() <= 0 )
                throw std::runtime_error( "No PCI devices available!" );

            cController.OpenDriver( 0 );

            // Check if the driver is open.
            bool bIsOpen = cController.IsDriverOpen();

            if ( !bIsOpen )
                throw std::runtime_error( "Not connected to any driver!" );
 
            // .... do something else here ....
         }
        catch ( std::exception &e )
        {
            cerr << "Exception Occurred: " << e.what() << endl;
        }

© Astronomical Research Cameras, Inc.