Skip to content
Snippets Groups Projects
Commit 0b032102 authored by Sonia Minolli's avatar Sonia Minolli Committed by Patrick MADELA
Browse files

Add error handling in prepare task (PROBLEM-1070)

parent 90b27fcb
No related branches found
No related tags found
No related merge requests found
...@@ -259,7 +259,7 @@ throw (ni660Xsl::DAQException) ...@@ -259,7 +259,7 @@ throw (ni660Xsl::DAQException)
} }
int err = DAQmxTaskControl(this->task_handle_, DAQmx_Val_Task_Verify); int err = DAQmxTaskControl(this->task_handle_, DAQmx_Val_Task_Verify);
if(err<0) if(err<0 || err>0)
{ {
this->state_ = UNKNOWN; this->state_ = UNKNOWN;
throw ni660Xsl::DAQException("user configuration invalid", throw ni660Xsl::DAQException("user configuration invalid",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment