UnsetSubArray
Return a controller to normal operation after being in sub-array mode.
Syntax
void UnsetSubArray( rows, cols );
Parameters
long rows
The new image row size to set on the controller.
long cols
The new image column size to set on the controller.
Returns
None
Required Headers
CController.h
Namespace
arc
Throws
std::runtime_error
Remarks
None
Example
        // This code demonstrates how to set the sub-array
        // size to 200x300 at location ( 500, 400 ) on a
        // 1024x1200 pixel image. The bias offset is 650
        // pixels with a bias column width of 100 pixels.
        // Then go back to normal mode.

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

        CController cController;

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

        try {
            long lOldRows = 0, lOldCols = 0;

            cController.SetSubArray( &lOldRows, // Returns old image row size
                                     &lOldCols, // Returns old image column size
                                     500,       // Center row of sub-area
                                     400,       // Center col of sub-area
                                     650,       // Bias region offset
                                     100 );     // Bias region column size

            // .... take some sub-array images ....

            // Return to normal operational mode
            cController.UnsetSubArray( lOldRows, lOldCols );
        }
        catch ( std::exception &e )
        {
            cerr << "Exception Occurred: " << e.what() << endl;
        }

© Astronomical Research Cameras, Inc.