float expTime |
The exposure time ( in seconds ). |
long lRows |
The image row dimension ( pixels ). |
long lCols |
The image column dimension ( pixels ). |
bool *pbAbort |
[optional] Pointer to a bool variable that can be used to
abort/stop an exposure/readout. Default: NULL |
CExpIFace* pExpIFace |
[optional] Pointer to a CExpIFace class that is called each time the
elapsed time or pixel count is updated. The user must override the ExposeCallback() and ReadCallback()
methods ( see CExpIFace.h for details ). Default: NULL |
bool bOpenShutter |
[optional] Set to 'true' to open the shutter during the
exposure. Set to 'false' to keep the shutter closed during the exposure ( dark frame ).
Default value: true |
// This code demonstrates how to start a
// 0.5 second exposure.
#include <iostream.h>
#include "CController.h"
using namespace std;
using namespace arc;
class IFExpose : public CExpIFace
{
public:
void ExposeCallback( float fElapsedTime )
{
cout << "Elapsed Time: " << fElapsedTime << endl;
}
void ReadCallback( int dPixelCount )
{
cout << "Pixel Count: " << dPixelCount << endl;
}
void FrameCallback( int dFPBCount,
int dPCIFrameCount,
int dRows,
int dCols,
void* pBuffer ) { // Not Used }
};
int main()
{
CController cController;
IFExpose cIFExp;
// .... open driver, initialize, etc ....
try {
cController.Expose( 0.5, dRows, dCols, NULL, cIFExp );
}
catch ( std::exception &e )
{
cerr << "Exception Occurred: " << e.what() << endl;
}
. . . .
}
© Astronomical Research Cameras, Inc.