SetDemoTemperature
Turns on the use of a demo temperature feature. This is purely a DEBUG function that allows the testing of the temperature code using a fixed predefined default ADU value. The use of this method affects the return value from GetArrayTemperature(). This method IS NOT meant for use in production applications.
Syntax
void SetDemoTemperature( onOff );
Parameters
bool onOff
Set to 'true' to turn demo temperature feature on. Set to 'false' otherwise.
Returns
None
Required Headers
CController.h
Namespace
arc
Throws
None
Remarks
All subsequent calls to GetArrayTemperature() will result in the incrementing of the default ADU value and should produce incrementing temperature readings. The current default ADU value produces a starting temperature of -50.2 C. This method may be removed from the API at any time.
Example
        #include <iostream.h>
        #include "CController.h"
        using namespace std;
        using namespace arc;

        CController cController;

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

        try {
            cController.SetDemoTemperature( true );

            for ( int i=0; i<10; i++ )
            {
                cout << "temperature: "
                     << cController.GetArrayTemperature()
                     << endl;
            }
		}
        catch ( std::exception &e )
        {
            cerr << "Exception Occurred: " << e.what() << endl;
        }

        Output:

        temperature: -50.2419
        temperature: -50.5543
        temperature: -50.8667
        temperature: -51.1793
        temperature: -51.4918
        temperature: -51.8045
        temperature: -52.1172
        temperature: -52.4299
        temperature: -52.7427
        temperature: -53.0556

© Astronomical Research Cameras, Inc.