Commit a18a006c authored by Daniel Roldan's avatar Daniel Roldan

AquisitionFrameRate, fix variables names

parent a6ed6d1a
...@@ -186,12 +186,12 @@ class LIBBASLER_API Camera ...@@ -186,12 +186,12 @@ class LIBBASLER_API Camera
void getAcquisitionFrameCount(int& AFC) const; void getAcquisitionFrameCount(int& AFC) const;
// -- change AcquisitionFrameRateEnable // -- change AcquisitionFrameRateEnable
void setAcquisitionFrameRateEnable(bool AFC); void setAcquisitionFrameRateEnable(bool AFRE);
void getAcquisitionFrameRateEnable(bool& AFC) const; void getAcquisitionFrameRateEnable(bool& AFRE) const;
// -- change acq frame count // -- change acq frame count
void setAcquisitionFrameRateAbs(int AFC); void setAcquisitionFrameRateAbs(int AFRA);
void getAcquisitionFrameRateAbs(int& AFC) const; void getAcquisitionFrameRateAbs(int& AFRA) const;
// -- Pylon buffers statistics // -- Pylon buffers statistics
void getStatisticsTotalBufferCount(long& count); void getStatisticsTotalBufferCount(long& count);
......
...@@ -1803,13 +1803,13 @@ void Camera::setFrameTransmissionDelay(int ftd) ...@@ -1803,13 +1803,13 @@ void Camera::setFrameTransmissionDelay(int ftd)
//-------------------------------------------------------- //--------------------------------------------------------
// //
//----------------------------------------------------- //-----------------------------------------------------
void Camera::setAcquisitionFrameRateEnable(bool& val) void Camera::setAcquisitionFrameRateEnable(bool AFRE)
{ {
DEB_MEMBER_FUNCT(); DEB_MEMBER_FUNCT();
DEB_PARAM() << DEB_VAR1(val); DEB_PARAM() << DEB_VAR1(AFRE);
try try
{ {
Camera_->AcquisitionFrameRateEnable.SetValue(val); Camera_->AcquisitionFrameRateEnable.SetValue(AFRE);
} }
catch (GenICam::GenericException &e) catch (GenICam::GenericException &e)
{ {
...@@ -1821,19 +1821,19 @@ void Camera::setAcquisitionFrameRateEnable(bool& val) ...@@ -1821,19 +1821,19 @@ void Camera::setAcquisitionFrameRateEnable(bool& val)
//-------------------------------------------------------- //--------------------------------------------------------
// //
//----------------------------------------------------- //-----------------------------------------------------
void Camera::getAcquisitionFrameRateEnable(bool& val) const void Camera::getAcquisitionFrameRateEnable(bool& AFRE) const
{ {
DEB_MEMBER_FUNCT(); DEB_MEMBER_FUNCT();
DEB_PARAM() << DEB_VAR1(val); DEB_PARAM() << DEB_VAR1(AFRE);
try try
{ {
if (GenApi::IsAvailable(Camera_->AcquisitionFrameRateEnable)) if (GenApi::IsAvailable(Camera_->AcquisitionFrameRateEnable))
{ {
val = Camera_->AcquisitionFrameRateEnable.GetValue(); AFRE = Camera_->AcquisitionFrameRateEnable.GetValue();
} }
else else
{ {
val = false; AFRE = false;
// THROW_HW_ERROR(Error)<<"AcquisitionFrameRateEnable Parameter is not Available !"; // THROW_HW_ERROR(Error)<<"AcquisitionFrameRateEnable Parameter is not Available !";
} }
} }
...@@ -1842,19 +1842,19 @@ void Camera::getAcquisitionFrameRateEnable(bool& val) const ...@@ -1842,19 +1842,19 @@ void Camera::getAcquisitionFrameRateEnable(bool& val) const
// Error handling // Error handling
THROW_HW_ERROR(Error) << e.GetDescription(); THROW_HW_ERROR(Error) << e.GetDescription();
} }
DEB_RETURN() << DEB_VAR1(val); DEB_RETURN() << DEB_VAR1(AFRE);
} }
//-------------------------------------------------------- //--------------------------------------------------------
// //
//----------------------------------------------------- //-----------------------------------------------------
void Camera::setAcquisitionFrameRateAbs(int& val) void Camera::setAcquisitionFrameRateAbs(int AFRA)
{ {
DEB_MEMBER_FUNCT(); DEB_MEMBER_FUNCT();
DEB_PARAM() << DEB_VAR1(val); DEB_PARAM() << DEB_VAR1(AFRA);
try try
{ {
Camera_->AcquisitionFrameRateAbs.SetValue(val); Camera_->AcquisitionFrameRateAbs.SetValue(AFRA);
} }
catch (GenICam::GenericException &e) catch (GenICam::GenericException &e)
{ {
...@@ -1866,19 +1866,19 @@ void Camera::setAcquisitionFrameRateAbs(int& val) ...@@ -1866,19 +1866,19 @@ void Camera::setAcquisitionFrameRateAbs(int& val)
//-------------------------------------------------------- //--------------------------------------------------------
// //
//----------------------------------------------------- //-----------------------------------------------------
void Camera::getAcquisitionFrameRateAbs(int& val) void Camera::getAcquisitionFrameRateAbs(int& AFRA) const
{ {
DEB_MEMBER_FUNCT(); DEB_MEMBER_FUNCT();
DEB_PARAM() << DEB_VAR1(val); DEB_PARAM() << DEB_VAR1(AFRA);
try try
{ {
if (GenApi::IsAvailable(Camera_->AcquisitionFrameRateAbs)) if (GenApi::IsAvailable(Camera_->AcquisitionFrameRateAbs))
{ {
val = Camera_->AcquisitionFrameRateAbs.GetValue(); AFRA = Camera_->AcquisitionFrameRateAbs.GetValue();
} }
else else
{ {
val = false; AFRA = false;
// THROW_HW_ERROR(Error)<<"AcquisitionFrameRateAbs Parameter is not Available !"; // THROW_HW_ERROR(Error)<<"AcquisitionFrameRateAbs Parameter is not Available !";
} }
} }
...@@ -1887,7 +1887,7 @@ void Camera::getAcquisitionFrameRateAbs(int& val) ...@@ -1887,7 +1887,7 @@ void Camera::getAcquisitionFrameRateAbs(int& val)
// Error handling // Error handling
THROW_HW_ERROR(Error) << e.GetDescription(); THROW_HW_ERROR(Error) << e.GetDescription();
} }
DEB_RETURN() << DEB_VAR1(val); DEB_RETURN() << DEB_VAR1(AFRA);
} }
//--------------------------- //---------------------------
......
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