Commit 3e953c02 authored by Laurent Claustre's avatar Laurent Claustre

Added a prepareAcq() for camera

parent b3a107bb
......@@ -136,6 +136,7 @@ namespace lima
Camera(const std::string& config_path,int camera_number=0);
~Camera();
void prepareAcq();
void startAcq();
void stopAcq();
......
......@@ -63,6 +63,7 @@ namespace Andor
Camera(const std::string& config_path,int camera_number=0);
~Camera();
void prepareAcq();
void startAcq();
void stopAcq();
......
......@@ -271,6 +271,20 @@ Camera::~Camera()
m_camera_handle = 0;
}
//---------------------------
// @brief prepare the acquistion
//---------------------------
void Camera::prepareAcq()
{
DEB_MEMBER_FUNCT();
if (andorError(PrepareAcquisition()))
{
DEB_ERROR() << "Cannot prepare acquisition" << " : error code = " << m_camera_error_str;
THROW_HW_ERROR(Error) << "Cannot prepare acquisition";
}
}
//---------------------------
// @brief start the acquistion
//---------------------------
......
......@@ -93,6 +93,7 @@ void Interface::reset(ResetLevel reset_level)
void Interface::prepareAcq()
{
DEB_MEMBER_FUNCT();
m_cam.prepareAcq();
}
//-----------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment