LoadControllerFile
Loads a timing or utility DSP file (.lod) into a controller. Works will GenII/III/IV controllers.
Syntax
void LoadControllerFile( filename, validate );
Parameters
const char * filename
The DSP file (.lod) to load. Can be for the timing or utility board. The destination board is automatically determined from the file contents.
bool validate
[optional] Set to 'true' if the download should be read back and checked after every write. Default: 'true'
Returns
None
Required Headers
CController.h
Namespace
arc
Throws
std::runtime_error
Remarks
This method MUST be used before the controller will respond to any commands other than Test Data Link, Read Memory, and Write Memory. The SetupController() method incorporates this method and may be used in place of this and several other methods. Exceptions can be caught using a try/catch block.
Example
        // This code demonstrates how to load a timing file.

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

        CController cController;

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

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

© Astronomical Research Cameras, Inc.