GetDeviceBindings
Searches for available ARC, Inc PCI devices and stores the list, which can be accessed via device number (0,1,2...).
Syntax
void GetDeviceBindings();
Parameters
None
Returns
None
Required Headers
CController.h
Namespace
arc
Throws
std::runtime_error
Remarks
This method must be called first, or OpenDriver() will fail. Exceptions can be caught using a try/catch block.
Example
        // This code demonstrates how to instantiate a new CController
        // object and print the number of available devices ( PCI boards ).

        #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();

            long dDevCount = cController.GetDeviceBindingCount();
            cout << "Found " << dDevCount << " devices!" << endl;
 
            // .... do something else here ....
         }
        catch ( std::exception &e )
        {
            cerr << "Exception Occurred: " << e.what() << endl;
        }

© Astronomical Research Cameras, Inc.