Skip to content
Snippets Groups Projects
Commit 27681fbe authored by Sonia Minolli's avatar Sonia Minolli
Browse files

Add more explicit error message when driver error at configuration time (TANGODEVIC-1698)

parent 4f8e9d2c
No related branches found
No related tags found
No related merge requests found
......@@ -394,7 +394,7 @@ void ADContinuousAIBoard::configure_continuous_ai (const asl::ContinuousAIConfig
if (err < 0) {
//- could not register buffer
throw asl::DAQException("DAQ buffer setup failed",
throw asl::DAQException("DAQ buffer 0 setup failed - possible driver memory problem",
adl::d2kdask_error_text(err),
"ADContinuousAIBoard::configure_continuous_ai",
err);
......@@ -411,7 +411,7 @@ void ADContinuousAIBoard::configure_continuous_ai (const asl::ContinuousAIConfig
if (err < 0) {
//- could not register buffer
throw asl::DAQException("DAQ buffer setup failed",
throw asl::DAQException("DAQ buffer 1 setup failed - possible driver memory problem",
adl::d2kdask_error_text(err),
"ADContinuousAIBoard::configure_continuous_ai",
err);
......@@ -981,7 +981,10 @@ void ADContinuousAIBoard::stop_continuous_ai ()
}
#else
if (daq_buffer_0_)
this->stop_count_ = this->daq_buffer_0_->depth() / 2;
else
this->stop_count_ = 0;
#endif // _SIMULATION_
this->has_been_started_at_least_once_ = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment