std::string deviceNames[]
|
Array of device names, such as sDeviceName =
{ "astropci1" }. |
int nameCount |
The number of elements in parameter 1 array. |
// This code demonstrates how to instantiate a new CController
// object and manually set the available device list using the
// older V1.7 device driver.
#include <iostream.h>
#include "CController.h"
using namespace std;
using namespace arc;
CController cController;
try {
std::string sDevNames[ 1 ] = { "astropci1" };
cController.UseDeviceBindings( sDevNames, 1 );
cController.OpenDriver( 0 );
// .... do something here ....
// Close the driver connection when program
// is finished.
cController.CloseDriver();
}
catch ( std::exception &e )
{
cerr << "Exception Occurred: " << e.what() << endl;
}
© Astronomical Research Cameras, Inc.