Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Fixed destruction of error task
Browse files Browse the repository at this point in the history
  • Loading branch information
MPIBR-kretschmerf committed Nov 24, 2016
1 parent 2845877 commit 8e58ce7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NIDAQmxInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ void NIDAQmxInterface::DAQmxDestroyInterface()
DAQmxStopCustomTask(daq->di_port);
DAQmxStopCustomTask(daq->do_port);
DAQmxStopCustomTask(daq->do_clk);
DAQmxStopCustomTask(daq->di_error);

/* clear tasks */
DAQmxErrChk(DAQmxClearTask(daq->di_port));
Expand All @@ -135,6 +136,8 @@ void NIDAQmxInterface::DAQmxDestroyInterface()
daq->do_port = 0;
DAQmxErrChk(DAQmxClearTask(daq->do_clk));
daq->do_clk = 0;
DAQmxErrChk(DAQmxClearTask(daq->di_error));
daq->di_error = 0;

return;
}
Expand Down

0 comments on commit 8e58ce7

Please sign in to comment.