long deviceNumber |
The device number of the driver/PCI board to open. |
unsigned long bytes |
The size of the kernel image buffer to allocate
( in bytes ). |
// This code demonstrates how to open driver 0.
#include <iostream.h>
#include "CController.h"
using namespace std;
using namespace arc;
CController cController;
try {
// This MUST be called first!
cController.GetDeviceBindings();
if ( cController.GetDeviceBindingCount() <= 0 )
throw std::runtime_error( "Failed to find any ARC devices!" );
cController.OpenDriver( 0 );
// .... do something here ....
// Close the driver when we're all done.
cController.CloseDriver();
}
catch ( std::exception &e )
{
cerr << "Exception Occurred: " << e.what() << endl;
}
© Astronomical Research Cameras, Inc.