GetHstr
Returns the value of the HSTR ( status ) PCI board register.
Syntax
long GetHstr();
Parameters
None
Returns
long - The value of the HSTR PCI register.
Required Headers
CController.h
Namespace
arc
Throws
std::runtime_error
Remarks
None
Example
        // This code demonstrates how to use GetHstr() to
        // determine if the controller is currently performing
        // an image readout.

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

        CController cController;

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

        try {
            long lStatus = ( GetHstr() & HTF_BITS ) >> 3;

            cout << "Controller is in readout: "
                 << ( lStatus == READOUT ? true : false )
                 << endl;
         }
        catch ( std::exception &e )
        {
            cerr << "Exception Occurred: " << e.what() << endl;
        }

© Astronomical Research Cameras, Inc.