IsDemoTemperature
Tests if the SetDemoTemperature() method has been called to put the controller into demo temperature mode. This mode is provides a fixed ADU value that is used to calculate the temperature for the IsDemoTemperature() method. This is purely for DEBUG.
Syntax
bool IsDemoTemperature();
Parameters
None
Returns
bool - 'true' if the controller is set for demo temperature mode. Returns 'false' otherwise.
Required Headers
CController.h
Namespace
arc
Throws
None
Remarks
See SetDemoTemperature() for details.
Example
        #include <iostream.h>
        #include "CController.h"
        using namespace std;
        using namespace arc;

        CController cController;

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

        try {
            cController.SetDemoTemperature( true );

            if ( cController.IsDemoTemperature() )
            {
                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.