本文整理汇总了C++中QSICamera::put_SetCCDTemperature方法的典型用法代码示例。如果您正苦于以下问题:C++ QSICamera::put_SetCCDTemperature方法的具体用法?C++ QSICamera::put_SetCCDTemperature怎么用?C++ QSICamera::put_SetCCDTemperature使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QSICamera
的用法示例。
在下文中一共展示了QSICamera::put_SetCCDTemperature方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
extern "C" int QSICamera_put_SetCCDTemperature (double newVal)
{
QSI_func = __func__;
try {Q.put_SetCCDTemperature (newVal);}
catch (...) {return 0;}
return 1;
}
示例2: main
//.........这里部分代码省略.........
for (int i = 0; i < iNumFound; i++)
{
std::cout << camSerial[i] << ":" << camDesc[i] << "\n";
}
cam.put_SelectCamera(camSerial[0]);
cam.put_IsMainCamera(true);
// Connect to the selected camera and retrieve camera parameters
cam.put_Connected(true);
std::cout << "Camera connected. \n";
// Get Model Number
cam.get_ModelNumber(modelNumber);
std::cout << modelNumber << "\n";
// Get Camera Description
cam.get_Description(desc);
std:: cout << desc << "\n";
// Enable the beeper
cam.put_SoundEnabled(true);
// Enable the indicator LED
cam.put_LEDEnabled(true);
// Set the fan mode
cam.put_FanMode(QSICamera::fanQuiet);
// Query the current flush mode setting
cam.put_PreExposureFlush(QSICamera::FlushNormal);
// Query if the camera can control the CCD temp
cam.get_CanSetCCDTemperature(&canSetTemp);
if (canSetTemp)
{
// Set the CCD temp setpoint to 10.0C
cam.put_SetCCDTemperature(10.0);
// Enable the cooler
cam.put_CoolerOn(true);
}
if (modelNumber.substr(0,1) == "6")
{
cam.put_ReadoutSpeed(QSICamera::FastReadout);
}
// Does the camera have a filer wheel?
cam.get_HasFilterWheel(&hasFilters);
if ( hasFilters)
{
// Set the filter wheel to position 1 (0 based position)
cam.put_Position(0);
}
if (modelNumber.substr(0,3) == "520" || modelNumber.substr(0,3) == "540")
{
cam.put_CameraGain(QSICamera::CameraGainHigh);
cam.put_PreExposureFlush(QSICamera::FlushNormal);
}
//
//////////////////////////////////////////////////////////////
// Set image size
//
cam.put_BinX(1);
cam.put_BinY(1);
// Get the dimensions of the CCD
cam.get_CameraXSize(&xsize);
cam.get_CameraYSize(&ysize);
// Set the exposure to a full frame