SetupController
Sets up a controller based on the input parameters.
Syntax
void SetupController( reset, tdl, power, rows, cols, timFile, utilFile, pciFile );
Parameters
bool reset
'true' to reset the controller; false otherwise.
bool tdl
'true' to send TDLs to the PCI board and any board whose .lod file parameter is not NULL.
bool power
'true' to power on the controller; false otherwise.
long rows
The image row dimension (in pixels).
long cols
The image column dimension (in pixels).
const char * timFile
The timing board DSP file to load (.lod file).
const char * utilFile
[optional] The utility board DSP file to load (.lod file). Default: NULL
const char * pciFile
[optional] The PCI board DSP file to load (.lod file). Default: NULL
Returns
None
Required Headers
CController.h
Namespace
arc
Throws
std::runtime_error
Remarks
This must be called before the controller will respond to commands other than 'TDL', 'WRM', and 'RDM'. Exceptions can be caught using a try/catch block.
Example
        // This code demonstrates how to perform a typical
        // controller setup.

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

        CController cController;

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

        try {
            cController.SetupController( true, true, true, 512, 600, "C:\\tim.lod" );
        }
        catch ( std::exception &e )
        {
            cerr << "Exception Occurred: " << e.what() << endl;
        }

© Astronomical Research Cameras, Inc.